Galil Motion Control cadman Page 13
contain DMC commands contained in quotes, other macro names, and certain CAD-to-DMC
commands. All macros must end with the END_MACRO statement.
The CAD-to-DMC software does not perform any error checking on DMC commands issued
through a macro; any errors that do exist will only be detected at runtime. It is the responsibility
of the user to ensure that valid commands are sent.
Macros are declared using the macro commands listed below. In addition, Appendix A contains
examples which use macros extensively.
FIRST_MACRO
PURPOSE:
The FIRST_MACRO is used to perform operations before any motion takes place.
This can be used to submit initialization information to the controller and prepare for the
beginning of the process.
USAGE:
FIRST_MACRO
<command>
<command>
..........
<command>
END_MACRO
If FIRST_MACRO is present in a drawing, it will automatically execute prior to the
beginning of motion. A user specified macro name is not required with this command so
any word directly following FIRST_MACRO will generate a warning.
LAST_MACRO
PURPOSE:
The LAST_MACRO is used to send commands after the motion sequence is complete
and all other commands have been sent. This is useful for shutting down the controller.
USAGE:
LAST_MACRO
<command>
<command>
..........