Logic Machine Forum
How define the modbus profile for several items in one register? - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: How define the modbus profile for several items in one register? (/showthread.php?tid=219)



How define the modbus profile for several items in one register? - Bapits - 15.02.2016

How to define the modbus profile for several items in one register? For example, the on/off status and the fan volume in the register 32001.


RE: How define the modbus profile for several items in one register? - admin - 15.02.2016

You have to add each status (on/off, fan etc) as a separate profile entry. Each entry should have it's own value_bitmask according to required shift and data width in bits. Look here for an example: http://openrb.com/docs/modbus.htm