152
10.2.
Usage example – HDL dimmer control
Task
of this example is to change HDL dimmer value on specific KNX group address change.
•
Add new object in Objects tab
•
Add Event-based script which will monitor newly created object
•
In Scripting Editor specify the following code for this script
1.
local
value
=
dpt.decode
(
event.datahex, dt.scale
)
2.
HDL.chanreg
(
1
,
12
,
1
, value,
1
)
HDL.chanreg
function description
HDL.chanreg
(
dstsubnet, dstdevice, chan, value, delay
)
Parameters:
•
dstsubnet
– device subnet
•
dstdevice
– device address
•
chan
– channel number (1..n)
•
value
– value (0..100, or true / false)
•
delay
– transition time or delay in seconds (0..65535), by default is 0
Test the program
If you change the value for object 4/1/1 in Objects menu with Set Value, it will automatically
change dimmer state in HDL network.
10.3.
Usage example – HDL relay control
Task
of this example is to change HDL dimmer value on specific KNX group address change.
•
Add new object in Objects tab
•
Add Event-based script which will monitor newly created object
•
In Scripting Editor specify the following code for this script
Содержание 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...