Accessing 64-bit data with the Modbus TCP/IP Ethernet Driver in TOP Server
Does the TOP Server Modbus TCP/IP Ethernet Driver support reading 64-bit data types (LLONG, QWORD)?
At this time, the TOP Server Modbus TCP/IP Ethernet Driver does not support the LLONG and QWORD data types. Doubles (64-bit floats) are supported.
However, there is a workaround that would require using the Advanced Tag Plug-In to calculate the 64-bit value from two 32-bit tags.
This would require an additional license.
Example: Reading a 64-bit Unsigned Integer (QWORD) big endian from base address 43203 using Advanced Tags.
- Create 2 32-bit unsigned DWord integer tags addressed at 43203 and 43205
- Create a Derived tag on Advanced Tags Plugin and use the manual multiplication with 2^32. Adding them together would allow you to reach the 64-bit value.
- The expression on the Derived Tag would be TAG (Channel1.Device1.Tag1)*4294967296+TAG (Channel1.Device1.Tag2)
- Tag1 represents the Bit32-Bit63, Tag2 represents Bit0-Bit31