User manual
IEC61131 User and Reference Manual
April 22, 2008
286
getregf
Get value of floating point register
Description
The getregf function returns the floating-point value that is assigned to the two consecutive
Modbus registers starting at address. The lower numbered register must be assigned to the
higher order word. The value returned is an IEEE single precision floating point number.
The validity of the specified Modbus register is not checked. If the registers are found, their
current values are used to form the floating-point value returned. If both registers are not
found, then 0 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
getregf
value
Arguments
Inputs
Type
Description
address
Integer
First Modbus register of 2 consecutive registers assigned to a
floating-point value. Address may be a Network Address assigned
to a real variable in the Dictionary, or address may be assigned to
a C Application floating point variable using a database handler or
address may be a floating-point register from the Permanent
Registers.
Outputs
Type
Description
value
Real
Floating point value read at the specified Modbus registers.
Zero if both registers are not found.
See Also
setregf