-

Ethernet

The function blocks for Ethernet communication are used to exchange data between Ethernet devices via Transport Layer Security (TLS) protocol.

TLS (Transport Layer Security) is a cryptographic protocol which enables secure communication between the communication partners in the network. The TLS protocol works on top of TCP (Transmission Control Protocol). To enable communication and to exchange data with the TLS_SEND and TLS_RECEIVE function blocks, first a connection between the communication partners must be established with the TLS_SOCKET function block. During the data exchange, the connection remains open. When the data exchange is finished, the connection has to be closed.

The following function blocks for Ethernet operations are available:

Function blockDescription
TLS_SOCKETOpens a TLS socket for secure communication via Transport Layer Security (TLS).
TLS_SENDTransmits data to a connected device via TLS-secured connection.
TLS_RECEIVEReceives data from a connected device via TLS-secured connection.

WARNING
Unintended machine operation
Verify that the influence of the output data cannot result in an unintended or hazardous behavior of the entire system.1

1When running the application logic in simulation mode, the function blocks for Ethernet communication establish a real connection to other devices/servers. Thus, outputs and variables connected to real hardware may be set and therefore may cause real damage to the machine.

Further Info
For a description of the Ethernet function blocks to be used for data exchange via Transmission Control Protocol (TCP), see the "Extended Functions and Function Blocks - Ethernet" help chapter.