Example program

Example program 1:

Using the example programs

This document contains sample applications of our products for certain areas of application. The application notices provided here are based on typical features of our products and only serve as examples. The notices contained in this document explicitly do not refer to specific applications. The user 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.

The program presented here reads the individual values from the terminal and visualizes them. The process data "Status" and "Control" are linked as WORD in the System Manager and decomposed into the individual bits in the PLC.

The visualization displays both channels above each other; the control takes place via the "Control" section. If a field is highlighted in color, the associated bit is TRUE.

The measuring mode can be changed via the numerical entry in the field on the right next to the mode entry. In the two single shot settings a new measurement can be requested by clicking on Start.

The Autorange function can be disabled by clicking on "Dis. Autorange". The measuring range can then be selected manually via the numeric field to the right of the range.

Example program 2:Download (example file)

Example program 3:
Example program

After opening the .tsm file with the System Manager the EtherCAT master must be notified of the current MAC address. Click the "Search..." button:

Example program 4:
Find MAC address

Procedure for starting the program

Example program 5:
Searching the Ethernet adapter
Example program 6:
Selection and confirmation of the Ethernet adapter
Example program 7:
Activation of the configuration
Example program 8:
Confirming the activation of the configuration
Example program 9:
Generating variable mapping
Example program 10:
Restarting TwinCAT in RUN mode
Example program 12:
Confirming program start