Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing handling of Tag Bus array elements #21

Open
brbrindle opened this issue Aug 4, 2016 · 1 comment
Open

Missing handling of Tag Bus array elements #21

brbrindle opened this issue Aug 4, 2016 · 1 comment

Comments

@brbrindle
Copy link

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

@becega
Copy link
Contributor

becega commented Jan 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants