User manual

IEC61131 User and Reference Manual
April 22, 2008
285
getregb
Get value of boolean register
Description
The getregb function returns the state of specified Modbus register. If the register is found,
its state is returned; otherwise FALSE is returned. The validity of the specified Modbus
register is not checked. If the register is found and its current value is > 1, then TRUE is
returned; otherwise FALSE is returned.
This function provides a method for accessing database registers defined in a C Application
database handler, such as the RealFLO database handler. This function may also be used
to access the Permanent Non-Volatile Registers. See the section Modbus Addressing for
more details.
address
getregb
value
Arguments
Inputs
Type
Description
address
Integer
Address of any valid Modbus register. Address may be a
Network Address assigned to a variable in the Dictionary, or
address may be a assigned to a C Application variable using a
database handler or address may be a register from the
Permanent Registers.
Outputs
Type
Description
value
Boolean
TRUE if value at Modbus register is non-zero.
FALSE if value at Modbus register is 0 or if register is not
found.
See Also
setregb