Automation of Procedures Using Macros
Many applications require automated motion sequence. The user can specify the appropriate sequence of motion commands using macros.
- Commands, included in the General Command Set (GCS), are used for commanding the motions.
- A series of GCS commands can be stored as a macro on the PC as well as on most controllers.
- The processing or the stopping of a macro can be subject to conditions. In addition, loops can be realized for example.
- Macros can call up themselves or other macros at several nesting levels.
- Variables can be used in macros and input signals can be evaluated for conditions and variables.
- For the standalone operation any macro can be defined as the autostart macro. This macro will automatically start with every switch-on or reboot of the controller.
The following example, where Axis X is initialized after the controller is switched on and two positions are approached, shows how simple this is. The "STRATUP" macro is automatically initialized when starting the controller.