diff -r 4eeed820fd3a -r ae8063127e95 svghmi/gen_index_xhtml.xslt --- a/svghmi/gen_index_xhtml.xslt Thu Mar 19 19:23:56 2020 +0100 +++ b/svghmi/gen_index_xhtml.xslt Fri Mar 20 10:00:59 2020 +0100 @@ -5,9 +5,6 @@ - HMI_ROOT - - HMI_PLC_STATUS @@ -25,8 +22,12 @@ - - + + / + + + / + @@ -597,8 +598,11 @@ - + + /* + + */ , @@ -676,6 +680,51 @@ + + + frequency: 2, + + dispatch: function(value) { + + // do something + + }, + + init: function() { + + + id(" + + ").addEventListener( + + "click", + + evt => {let new_val = " + + "); + + // do something with new_val + + }); + + + }, + + + + sub: function(off){ + + subscribe.call(this,off) + + }, + + unsub: function(){ + + unsubscribe.call(this) + + }, + + frequency: 5, @@ -1134,6 +1183,8 @@ BOOL: (dv,offset) => [dv.getInt8(offset, true), 1], + NODE: (dv,offset) => [dv.getInt8(offset, true), 1], + STRING: (dv, offset) => { size = dv.getInt8(offset); @@ -1316,6 +1367,8 @@ BOOL: (truth) => new Int16Array([truth]), + NODE: (truth) => new Int16Array([truth]), + STRING: (str) => { // beremiz default string max size is 128