Specifications
sigmadue - IEC 61131-3 Function Block Library
176
5-3-40 TCP/IP Port
FB Prototype
TCP_IP_Port
Input parameters
Output parameters
Description
This function block configure the required TCP/IP Port and the parameters to be
used with the selected Modbus TCP/IP Agent.
Reference
table
Input
Output
Label Type Description
ENABLE BOOL Command to enable the TCP/IP port operations
PORT UINT Required server TCP/IP port (default value = 502)
USESEC BOOL Enable/Disable security functions (default value = FALSE)
T_OUT UINT
Communication time out factor (this value is a multiple of
100ms - eg. 10 means 10 x 100ms = 1 s)
Label Type Description
ERROR BOOL TCP/IP port communication error status
ERCODE USINT TCP/IP port communication error code
ENABLE
PORT
USESEC
T_OUT
BOOL
UINT
BOOL
UINT
¡
¡
¡
¡
BOOL
USINT
ERROR
ERCODE
¡
¡
Label Options
ENABLE
FALSE = TCP Port DISABLE
TRUE = TCP Port ENABLE
PORT Default value = 502
T_OUT 0... 65535. Deafult value 10 (1000 ms)
Label Options
ERCODE
0 = Communication OK
1 = Server not available
2 = Resource not available
3 = TCP/IP problems