47
1.2. Scripting
Scripting menu allows adding and managing various scripts, depending on the type of the script.
Lua programming language is used to implement user scripts. Most of the Lua language aspects
are covered in the first edition of "Programming in Lua" which is freely available at
http://lua.org/pil/
Note!
Data format — in most cases data is stored and transferred between Logic Machine parts
using hex-encoded strings (2 bytes per 1 byte of data).
There are six main types of scripts:
Event-based
–
scripts that are executed when a group event occurs on the bus. Usually used when
nearly real-time response is required.
Resident
–
scripts that use polling to check for object state changes. Usually used for heating and
ventilation when data is gathered from more than one group address.
Scheduled
–
scripts that run at the required time and day. Can be used for various security systems
and presence simulations.
User libraries
–
user defined scripts to call from other scripts
Common functions
–
common functions to call from other scripts
Start-up (init) script
–
initialization script that is run upon system starting.
1.1.1.
Adding a new script
When pressing on the arrow on the lower side of the
Event-based, Resident
or
Scheduled
buttons,
two possibilities appear:
List view
– sort scripts in list view
Add new script
– add new script to the list
Summary of Contents for LogicMachine3 Re:actor
Page 10: ...10 Terminal connection schemes KNX TP...
Page 12: ...12 24V power supply...
Page 13: ...13 Analog inputs e g reed contact...
Page 14: ...14 Analog inputs 0 10V...
Page 15: ...15 Digital output...
Page 16: ...16 Resistive sensor input...
Page 17: ...17 Analog output...
Page 26: ...26 Make sure that bus status is Online press button in ETS...
Page 35: ...35 o Then minimize side bar by pressing on left arrow icon to make the map more visible...
Page 83: ...83 66 if err then 67 alert FTP upload failed s err 68 end...
Page 107: ...107...
Page 108: ...108 1 14 Help Documentation for scripting syntaxes is displayed in Help tab...
Page 126: ...126 Datapoints can be shown also in a way of table which can be later exported as CSV file...
Page 141: ...141...