User manual
IEC61131 User and Reference Manual 
April 22, 2008     
287 
getregsl 
Get value of signed long integer register 
Description 
The getregsl function returns the signed long integer 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 has a range of -2,147,483,647 to 
2,147,483,647. 
The validity of the specified Modbus register is not checked. If the registers are found, their 
current values are used to form the signed long integer 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
getregsl
value
Arguments 
Inputs 
Type 
Description 
address 
Integer 
First Modbus register of 2 consecutive registers assigned to a 
signed long integer value. Address may be a Network Address 
assigned to a integer variable in the Dictionary, or address may 
be assigned to a C Application signed long integer variable 
using a database handler or address may be a double register 
from the Permanent Registers. 
Outputs 
Type 
Description 
value 
Integer
Signed long integer value read at the specified Modbus 
registers. 
Zero if both registers are not found.. 
See Also 
setregsl 










