127
7.
Modbus RTU/TCP interconnection with LM2
Modbus RTU is supported over RS485 interface. Modbus TCP is supported over Ethernet port.
Modbus communication is done directly from scripts (usually resident script is used to read
Modbus value after some specific time interval and write them into KNX object).
Once script is added, you can add the code in the Script Editor. There are lots of predefined code
blocks in the Helpers.
7.1.
Master functions
mb:setslave(slaveid)
Sets slave id to read/write data from/to
mb:readcoils(start, count)
mb:readdiscreteinputs(start, count)
mb:readregisters(start, count)
mb:readinputregisters(start, count)
Reads count registers/coils from the start address. Returns all values on success and nil, error
description on error
mb:writebits(start, v1, [v2, [v3, ...]])
mb:writeregisters(start, v1, [v2, [v3, ...]])
Writes values to registers/coils from the start address. Single write will be used when only one
value is supplied, multiple write otherwise. Returns all of values written on success and nil, error
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...