User manual

Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
57
Ladder Logic - Parameters
A Kingfisher RTU stores all I/O points, configuration settings and data variables in 16-bit registers. Ladder
logic is able to read and write to most of these registers allowing the RTU to perform a wide range of
functions - including the ability to reconfigure itself. In addition to these registers, constants and indirect
addressing may also be used for ladder logic parameters (where applicable) as detailed below.
RTU Register Types
#AIss.c Analog Input (read only)
Where:
ss = Slot number, 1-64
cc = Channel number, 1-16
c = Channel number, 1-8
xxxx = Register number, 1-2048
yyyy = Register number 1,3,5…2047 (odd numbers only)
rrr = RTU address, 1-249
tt = Timer number, 1-64
#AOss.c Analog Output
#DIss.cc Digital Input (read only)
#DOss.cc Digital Output
#Rxxxx Local Register
#Fyyyy Floating Point Register (32 bit)
#Lyyyy Long Register (32 bit)
#NRrrr.xxxx Network Register
#NArrr.ss.c Network Analog Register
#NDrrr.ss.cc Network Digital Register
#NFrrr.yyyy Network Float Register
#NLrrr.yyyy Network Long Register
#Ttt Timer Register
#Y... System Register
#YP... Port Register
#YL... Network Link Register
#YM... Module Register
A complete listing of all the available RTU registers and their descriptions is contained in the appendix - RTU
Data.
Constants
Constants can be used in ladder logic in the following formats:
Integer: 0 to 65535 (default format)
Hexadecimal: 16#0 to 16#FFFF. For an explanation of hexadecimal numbers, please see the appendix -
Hexadecimal Numbers.
Floating Point: Floating point numbers can have up to 7 decimal digits of precision and can have values in
the range of 3.4e-38 to 3.4e+38. Floating point constants can be defined in two formats as shown below.
[-]nnnn.nnn
[-]nnnn.nnne[-]nnn
where nnnn.nnn can be up to 7 decimal digits (0-9) and [-] denotes a negative number or a negative
exponential (optional). Egs. -1.0, 1.234e-3 (which can also be expressed as 0.001234). Floating point
numbers must always contain a decimal point as this distinguishes them from integer constants.
Long: A signed 32 bit number in the range: -2,147,483,648 to 2,147,483,647.
Bit: 0 or 1.