65
Enable the script with the name
scriptname
.
script.disable('scriptname')
Disable the script with the name
scriptname
.
status = script.status('scriptname')
Returns true/false if script is found, nil otherwise
1.2.21.
JSON library
Note:
json is not loaded by default, use
require('json')
before calling any functions from this
library.
json.encode (value)
Converts Lua variable to JSON string. Script execution is stopped in case of an error.
json.pencode (value)
Converts Lua variable to JSON string in protected mode, returns nil on error.
json.decode (value)
Converts JSON string to Lua variable. Script execution is stopped in case of an error.
json.pdecode (value)
Converts JSON string to Lua variable in protected mode, returns nil on error.
1.2.22.
Conversion
Compatibility layer:
lmcore
is an alias of
cnv
.
cnv.strtohex (str)
Converts given binary string to a hex-encoded string.
cnv.hextostr (hex [, keepnulls])
Converts given hex-encoded string to a binary string. NULL characters are ignored by default,
but can be included by setting second parameter to true.
cnv.tonumber (value)
Converts the given value to number using following rules: numbers and valid numeric strings are
treated as is, boolean
true
is 1, boolean
false
is 0, everything else is
nil
.
cnv.hextoint(hexvalue, bytes)
Converts the given hex string to and integer of a given length in bytes.
cnv.inttohex(intvalue, bytes)
Converts the given integer to a hex string of given bytes.
Содержание LogicMachine3 Re:actor
Страница 10: ...10 Terminal connection schemes KNX TP...
Страница 12: ...12 24V power supply...
Страница 13: ...13 Analog inputs e g reed contact...
Страница 14: ...14 Analog inputs 0 10V...
Страница 15: ...15 Digital output...
Страница 16: ...16 Resistive sensor input...
Страница 17: ...17 Analog output...
Страница 26: ...26 Make sure that bus status is Online press button in ETS...
Страница 35: ...35 o Then minimize side bar by pressing on left arrow icon to make the map more visible...
Страница 83: ...83 66 if err then 67 alert FTP upload failed s err 68 end...
Страница 107: ...107...
Страница 108: ...108 1 14 Help Documentation for scripting syntaxes is displayed in Help tab...
Страница 122: ...122 4 16 Running processes System running processes can be seen in Status Running processes window...
Страница 126: ...126 Datapoints can be shown also in a way of table which can be later exported as CSV file...
Страница 141: ...141...