Sample Program

Sample Program 1:

Using the sample 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 explicitly 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.

Sample Program 2: Download (example file)

All terminal settings including the CoE entries can be set via the visualization (Fig. Visualization sample program):

Sample Program 3:
Visualization sample program

Display area

In the display area the measured value is processed as a string ("Scaled" view) or in hexadecimal form and additionally shown in binary form.

Control area

The terminal can be controlled via process data using the 10 buttons. The Control word is shown in binary, decimal and hexadecimal form.

Settings and Status areas

The Settings area shows the measurement type and the measuring range reported by the terminal. The Status area shows the status bits as colored surfaces. Both areas contain the Settings word and the Status word in binary, decimal and hexadecimal form.

CoE area

In the lower area the CoE settings can be read, edited and written.

Procedure for starting the program

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