User manual
IEC61131 User and Reference Manual
April 22, 2008
288
getregss
Get value of signed short integer register
Description
The getregss function returns the signed short integer value that is assigned to the one
Modbus register specified. The value returned has a range of -32,768 to 32,767. The validity
of the specified Modbus register is not checked. If the register is 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
getregss
value
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.
Outputs
Type
Description
value
Integer
Current value in the range of -32,768 to 32,767 read at the
specified Modbus register.
Zero if register is not found.
See Also
setregss