Overview: Socket Interface
The socket interface can be used for receiving any Ethernet telegrams or for sending telegrams from the controller. In this way any PLC layer protocols can be programmed in IEC 61131-3.
Supported Ethernet protocols
Type |
STREAM |
DGRAM |
RAW |
---|---|---|---|
IP |
n.i. |
n.i. |
n.i. |
ICMP |
n.i. |
n.i. |
n.i. |
IGMP |
n.i. |
n.i. |
n.i. |
TCP |
Implemented* |
n.i. |
n.i. |
UDP |
n.i. |
Implemented* |
n.i. |
RAW |
n.i. |
n.i. |
n.i. |
Table 1
n.i. not implemented
Operating principle of a socket-connection
Before a socket can be opened resources for this type of connection must be made available to the controller. This is done by starting a session. The scope is specified here. The session can then be used for sending or receiving Ethernet telegrams. The implemented protocols are listed in Table 1.
Client-server relationship
A client is defined as a device that intends to establish a connection and initializes the active part of a connection setup. The server is initially passive and awaits a client query. The server becomes active once a client establishes a connection. Once a connection between client and server has been established, both devices can sending or receive data.
* to Tab1
Development environment |
Target platform |
PLC libraries to be linked |
---|---|---|
TwinCAT v2.10.0 and above |
BC9050 (165) firmware version >=B0 |
TcBaseBX9000.lbx |
TwinCAT v2.10.0 and above |
BC9020 (165) firmware version >=B0 |
TcBaseBX9000.lbx |
TwinCAT v2.10.0 and above |
BC9120 (165) firmware version >=B1 |
TcBaseBX9000.lbx |
TwinCAT v2.10.0 and above |
BX9000 (165) firmware version >=1.14 |
TcBaseBX9000.lbx |