TCP_Connect

Function block TCP_Connect
Connects to a remote TCP port.
VAR_INPUT
V Enable BOOL Connects to a remote TCP port.
V IP ARRAY [0..3] OF BYTE The IP address of the target.
V PortNumber UDINT The TCP port on the target to be connected to.
VAR_OUTPUT
V Enabled BOOL The port is open.
V Busy BOOL The function block is not finished and new output values are to be expected.
V Error BOOL Signals that an error has occurred within the function block.
V ErrorID DINT 0: no error. 1: the port cannot be opened.
V Port RTX_Port The structure that represents a port. Used by other function blocks that send commands to this port.
Usable EtherCAT states: all. Not tied to EtherCAT, only to the port.
  TCP_Connect  
BOOL   Enable   Enabled   BOOL
ARRAY [0..3] OF BYTE   IP   Busy   BOOL
UDINT   PortNumber   Error   BOOL
        ErrorID   DINT
        Port   RTX_Port