You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently no clear way to implement array reads and writes for both holding registers and coils.
implementation should be straight forward
For Coils its just an boolean array into the modus api coil read and write multiple.
For Registers, if the data type of the items are int16/uint16 then can just put items into use as modbus api register read and write multiple. If wanting to use floating point data types a conversion is necessary to send the data type as 2 16 byte words. I have used in the past an implementation I found in the Modbus API examples, attached below are the two VI's needed to accomplish the conversion to and from Float for transmission via Modbus.
Currently no clear way to implement array reads and writes for both holding registers and coils.
implementation should be straight forward
For Coils its just an boolean array into the modus api coil read and write multiple.
For Registers, if the data type of the items are int16/uint16 then can just put items into use as modbus api register read and write multiple. If wanting to use floating point data types a conversion is necessary to send the data type as 2 16 byte words. I have used in the past an implementation I found in the Modbus API examples, attached below are the two VI's needed to accomplish the conversion to and from Float for transmission via Modbus.
Float to 2 Uint16 for Modbus.zip
The text was updated successfully, but these errors were encountered: