User manual

Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
242
Appendix - RTU Data
Available data: Local Registers, Floating Point Registers, Long Registers, Network Registers, Timer
Registers, IO Modules (includes PS-xx and LP-1/2/3), System Registers, Port Registers, Network Link
Registers and Module Registers.
RTU Data - Local Registers
There are 2048* local registers in an RTU which can be used for general purpose data storage. Local
registers can be accessed as either 16-bit registers or as single bits.
#Rxxxx Local register xxxx [1-2048]
Read/Write
#Rxxxx.cc Channel cc [1-16] of local register xxxx [1-2048]
Read/Write
* Additional registers are available as Network Registers. Network registers of unused RTU addresses can
be used as if they were additional local registers. Providing there is enough memory allocated for Network
Register Blocks, an additional 2048 network registers are available for each RTU address allowing up to
509,952 (249 x 2048) data registers per RTU.
RTU Data - Floating Point Registers
Floating Point Registers are 32-bit numbers used for storing fractional numbers, very large or very small
numbers and numbers where high precision is required. Each floating point register uses two consecutive
local registers and can have up to 7 digits of precision. Floating point registers can store signed numbers in
the range of 3.4e-38 to 3.4e+38.
#Fyyyy Floating point register yyyy [1, 3, 5 … 2047]
Read/Write
E.g. Floating point number 100.0 is represented in hexadecimal as 0x42c80000. This would be stored as
0x0000 in odd register and 0x42c8 in the next even register, e.g.
#NA5.1 0x0000
#NA5.2 0x42c8
It is recommended that long registers be used for counting instead of floating point registers as a floating
point register can only count up to 16,777,216 whereas a long register can count up to 2,147,483,647. To
convert between floating point and integer format (as used by 16-bit registers), the Copy or Multi-Copy
ladder blocks are used.
RTU Data - Long Registers
Long Registers are 32-bit numbers used for storing large signed integers. Each long register uses two local
registers and can store numbers in the range of
-2,147,483,648 to 2,147,483,647.
#Lyyyy Long register yyyy [1, 3, 5 … 2047]
Read/Write
E.g. Long Integer number 100,500 is represented in hexadecimal as 0x18894. This would be stored as
0x8894 in odd register and 0x0001 in the next even register, e.g.
#L5.1 0x8894
#L5.2 0x0001
To convert between long and integer format (as used by 16-bit registers), the Copy or Multi-Copy ladder
blocks are used.