User Manual
49
The action itself, i.e. what should be done when the trigger event occurs, is written as source code
in the Lua programming language. Syntax highlighting is supported to make writing Lua code simpler
and more user-friendly.
For a basic description of the Lua langauge and its syntax, see NETIO Lua Programming section at
https://wiki.netio-products.com
The pre-filled action periodically activates and deactivates 2 outputs.
To activate this action, check Enabled at the top and restart your NETIO 4x device.
Figure 28. Activating the pre-filled action
Description of the pre-filled “Default script”:
Introductory comments (in Lua, comments start with double dashes: “--”)
-- Lua code example for switching outputs 1 and 2 every second
-- For more information see NETIO4x AN01
-- Settings:
-- Enabled: checked
-- Trigger: System started up