With the
dialog, you can create a program and call the axis instance and its corresponding task automatically.Adding a new
axis node with code generation:
Step |
Action |
---|---|
1 |
For , select . |
2 |
For , select .![]() |
If you select the
option, the three following elements are added to your project:After the automatic generation procedure by the system, the project can be built and downloaded to the controller.
The most efficient way to exchange data with the axis is via
.For details, refer to Data Exchange with ModuleInterface.
Regeneration Trigger
If you added / deleted variables within the
dialog and then entered the object under , the call program (PRG) is regenerated with the modified variables.The regeneration procedure implies the following for the program
(PRG):Variable declaration is adapted because of adding / deleting variables (1).
Call of axis is adapted because of adding / deleting variables (2).
Additional user-specific variables
Define additional user-specific variables in the declaration part of the
program:Additional user-specific code
Only integrate additional user-specific code in the body of the generated program call at the following positions:
Before the generated code part (1) or
After the generated code part (2)
Do not modify the system generated declaration and implementation of the code snippets.
This is essential for program call regeneration of the generated code.
Do not modify this generated variables block.
Do not modify this generated body block (including the two comment lines).