Sample Program
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. |
Download sample program
In this example program an EL3356 is addressed by a PLC program. The Zip-file contains the PLC *.pro and the System Manager *.tsm.
The terminal can be operated via simple visualisation; the function InputFreeze is programmed out by way of example.
The EL3356 terminal is to be connected as shown below:
An EL9510 power supply terminal is used here to feed the strain gauge with 10 V.
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 Manager and TwinCAT PLC will open.
- Connect the hardware in accordance with fig. Connection for sample program and connect the Ethernet adapter of your PC to the EtherCAT coupler (further information on this can be found in the corresponding coupler manuals)
- Select the local Ethernet adapter (with real-time driver, if applicable) under System configuration, I/O configuration, I/O devices, Device (EtherCAT); then on the “Adapter” tab choose “Search...”, select the appropriate adapter and confirm (see Fig. Searching the Ethernet adapter + Selection and confirmation of the Ethernet adapter).
- Activate and confirm the configuration (Fig. Activation of the configuration + Confirming the activation of the configuration)
- Confirm new variable mapping, restart in RUN mode (Fig. Generate variable mapping + Restarting TwinCAT in RUN mode)
- In TwinCAT PLC, under the “Project” menu, select “Rebuild all” to compile the project (Fig. Compile project)
- In TwinCAT PLC: log in with the “F11” button, confirm loading the program (Fig. Confirming program start), run the program with the “F5” button