Support for 64-bit data types
- Last UpdatedAug 29, 2024
- 1 minute read
The MBTCP Communication Driver supports the following 64-bit data types:
|
Data Type |
Variant Type |
|---|---|
|
64-bit floating point (double) |
VT_R8 |
|
64-bit signed integer (long long) |
VT_I8 |
|
64-bit unsigned integer (unsigned long long) |
VT_UI8 |
Clients advising data values from the MBTCP Communication Driver can subscribe to tags in these 64-bit data-types using specific item syntax. The MBTCP Communication Driver reads four consecutive registers in the PLC to get a 64-bit value. These registers are read in four register orders:
-
Order 1: R1 R2 R3 R4 (Default)
-
Order 2: R2 R1 R4 R3
-
Order 3: R3 R4 R1 R2
-
Order 4: R4 R3 R2 R1
where R1, R2, R3, R4 are the registers. You can select the order in which the registers are to be read.
Comparison examples of zero- and one-based addressing:
|
Addressing |
Item Name |
Register Address |
|---|---|---|
|
0-Based |
400000 |
00000 |
|
400001 |
00001 |
|
|
1-Based |
400000 |
Invalid item |
|
400001 |
00000 |
|
|
400002 |
00001 |