Samples

Overview

The following samples of using the product as a TCP/IP client/server are available for download in our GitHub repository (see below).

Link

Description

Quick Start

Enables a quick start to using the product as a TCP/IP client/server.

Sample01: "Echo" client/server (basic function blocks)

Demonstrates the exemplary implementation of a TCP/IP client/server application, which cyclically exchanges a message between client and server. The basic function blocks serve as a basis.

Sample02: “Echo“ client /server

Demonstrates the exemplary implementation of a TCP/IP client/server application, which cyclically exchanges a message between client and server. The helper function blocks serve as the basis. The application allows a maximum of one connection.

Sample03: “Echo” client/server

Demonstrates the exemplary implementation of a TCP/IP client/server application, which cyclically exchanges a message between client and server. The helper function blocks serve as the basis. The application allows multiple connections.

Sample04: Binary data exchange

Demonstrates the exemplary implementation of a TCP/IP client/server application that implements its own binary protocol for data exchange. The application allows a maximum of one connection.

Sample05: Binary data exchange

Demonstrates the exemplary implementation of a TCP/IP client/server application that implements its own binary protocol for data exchange. The application allows multiple connections.

Sample06: "Echo" client/server with TLS (basic modules)

This sample is essentially based on Sample01 and extends it with TLS.

Sample07: "Echo" client/server with TLS-PSK (basic modules)

This sample is essentially based on Sample01 and extends it with TLS-PSK.

The following samples of using the product as a UDP/IP client/server are available for download in our GitHub repository (see below).

Link

Description

Sample01: Peer-to-peer communication

This sample demonstrates the implementation of a simple peer-to-peer application in the PLC.

Sample02: Multicast

This sample demonstrates how multicast messages can be sent and received via UDP.

Downloads

Sample code and configurations for this product can be obtained from the corresponding repository on GitHub: https://github.com/Beckhoff/TF6310_Samples. There you have the option to clone the repository or download a ZIP file containing the sample.

Samples 1: