Example Installation
The TwinCAT controller toolbox offers the programmer transfer elements with which a very wide variety of controllers can be implemented.
- 1. Save the sample program CT_Sample00.zip and unpack it.
- The sample program TcControllerToolbox_Examples.sln is loaded into the TwinCAT XAE, compiled and started.
- 2. Load the solution file.
- 3. Compile the PLC project via the menu option Project - Rebuild All.
- 4. Load the PLC project into the runtime system via the menu option Online - Login.
- 5. Start the program via the menu option Online - Run.
Using TwinCAT ScopeView examples
TwinCAT ScopeView allows the signal curves from the individual examples to be displayed graphically. The settings supplied in TcControllerToolboxExamples_Scope_x.sv can be used for this purpose. This specification of the Scope file to be used for each particular example can be found in the comments in the project's MAIN program.
- 6. Load the Scope configuration file into the TwinCAT ScopeView.
- 7. Start the recording via the menu or by pressing the Record key.
Select the desired example project
Because the example project contains a number of different examples, it is necessary to set the variable nExampleSelector
to the appropriate example number in the MAIN program.
- 8. Double-click the variable
nExampleSelector
.
- 9. Enter the number of the example.
- 10. Click OK.
- 11. Press the [F7] key or click Force Values in the menu Online.