Example program
![]() | Using the example programs This document contains sample applications of our products for certain areas of application. The application notes provided here are based on typical features of our products and only serve as examples. The notes contained in this document explicity do not refer to specific applications. The customer is therefore responsible for assessing and deciding whether the product is suitable for a particular application. We accept no responsibility for the completeness and correctness of the source code contained in this document. We reserve the right to modify the content of this document at any time and accept no responsibility for errors and missing information. |
In this example program an EP3356 is addressed by a PLC program (for TwinCAT 2). The Zip-file (download) contains the PLC*.pro and the System Manager*.tsm. The box can be operated via simple visualization; the function InputFreeze is programmed out by way of example.

The EP3356 EtherCAT Box is to be connected as shown below:

The sensor power supply of 10 V is produced in EP3356.
Procedure for starting the program
- After clicking the Download button, save the zip file locally on your hard disk, and unzip the *.TSM (configuration) and the *.PRO (PLC program) files into a temporary working folder
- Run the *.TSM file and the *.PRO file; the TwinCAT System Manger and TwinCAT PLC will open
- Connect the hardware in accordance with one of the two previous figures and connect the Ethernet adapter of your PC to the EtherCAT coupler / EtherCAT box (further information on this can be found in the corresponding coupler manuals)
- Select the local Ethernet adapter (with real-time driver, if one) under System configuration, I/O configuration, I/O devices, Device (EtherCAT); on the "Adapter" tab choose "Search...", select the appropriate adapter and confirm (see the following two figures)
- Activation of the configuration and confirmation (see the following two figures)
- Confirming new variable mapping, restart in Run Mode (see the following two figures)
- In TwinCAT PLC, under the "Project" menu, select "Rebuild all" to compile the project (see following figure)







In TwinCAT PLC: log in with the "F11" button, confirm loading the program (see following figure), run the program with the "F5" button
