User manual
IEC61131 User and Reference Manual 
April 22, 2008     
355 
setregf 
Set value of floating point register 
Description 
The setregf function writes the input floating point value to the specified Modbus register. 
The function writes to two consecutive registers starting at address when the floating-point 
value is written. If the registers are found, their current values are updated. If the registers 
are not found, nothing is done. 
The validity of the specified Modbus register is not checked. It is assumed that address is an 
input or holding register. 
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
value
setregf
Q
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. 
value 
Real 
Value to write to Modbus register. 
Outputs 
Type 
Description 
Q 
Boolean 
TRUE if 0 < address < 65535.  
FALSE for all other cases. 
See Also 
getregf 










