Scripting Container
The Scripting Contrainer (download here) is a C# WPF application which represents a collection of all available Automation Interface samples. Most of these samples are also available as a standalone sample download - however, as new samples become available, they will be first published in the Scripting Container before creating a separate sample. Threfore we recommend to become familiar with this application and to check periodically for new samples.
This article describes the general structure of the Scripting Container application and consists of the following topics:
- Basic structure
- First time setup
Basic structure
As mentioned above the ScriptingContainer consists of a collection of Automation Interface samples, which are represented by different projects (each with an own UI) within the ScriptingContainer. The following table gives an overview about all available projects and links to the corresponding documentation article.
Project name |
Description |
---|---|
Implements AI code that reads three different TwinCAT configurations from a XML file. | |
CopyProjectDemo |
Copies I/Os and Axis configuration from an existing TwinCAT configuration to a new configuration. |
Provides a collection of available Automation Interface samples, which can be executed from a graphical user interface. |
First time
When opening the ScriptingContainer for the first time, please set the StartUp Project to the desired user interface, e.g. "ScriptingTestContainer" by right-clicking this project and selecting "Set as StartUp Project". This ensures that the correct GUI will be loaded upon application start-up.
You can now start the application by going to the menu "Debug" and clicking on "Start Debugging". By starting the application this way, you can set breakpoints or step through code execution to easily evaluate the executed script.