Sample program TwinCAT 2
Preparations 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.
- The *.pro file can be opened by double click or by the TwinCAT PLC Control application with menu selection “File/ Open”. The *.tsm file is provided for the TwinCAT System Manager (to review or overtake configurations).
- This example requires a PLC control with a terminal EL2202-0100. You can use either an embedded PC that has the terminal placed on the right or an IPC with an EtherCAT link of an e.g. RJ-45 connector to the EK1100 coupler with the terminal (e.g. C6915 + EK1100 + EL2202-0100).
- Within this example it’s not necessary to connect the terminals outputs (as there will be the DC operation mode used only). However the Sync Master needs a link to a variable. The external “bDummyOut” variable is designated for that, so it has to be linked with one of the both channels of the terminal.
Please continue with further descriptions in sectionTwinCAT Quickstart, TwinCAT 2.