User manual
IEC61131 User and Reference Manual 
April 22, 2008     
357 
setregss 
Set value of signed short integer register 
Description 
The setregss function writes the input signed short integer value to the specified Modbus 
register. The function writes to one Modbus register when the integer value is written. If the 
register is found, the integer assigned to that register is updated. If the register is 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. Note that if the register is assigned to a Dictionary integer variable, 
this function writes to the high word. 
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
setregss
Q
Arguments 
Inputs 
Type 
Description 
address 
Integer 
Modbus register assigned to a signed short integer value. 
Address may be a Network Address assigned to an integer 
variable in the Dictionary, or address may be assigned to a C 
Application signed short integer variable using a database 
handler, or address may be a register from the Permanent 
Registers.. 
value 
Integer 
Value to write to Modbus register. 
Outputs 
Type 
Description 
Q 
Boolean 
TRUE if 0 < address < 65535.  
FALSE for all other cases. 
See Also 
getregss 










