Specifications

Operation
Example 2: Macro1 now is splitted in two separate macros (macro2 and
macro3) because it in not necessary to initialize the E-517 every time
motion is to be performed. When you start macro3 this implicates that
macro2 is executed 10 times.
Write macro2:
MAC BEG macro2
MOV A 10 B 10 C 10
DEL 1000
MOV A 0 B 0 C 0
DEL 1000
MAC END
Write macro3:
MAC BEG macro3
ONL 1 1 2 1 3 1
SVO A 1 B 1 C 1
VCO A 1 B 1 C 1
DCO A 1 B 1 C 1
VEL A 100 B 100 C 100
MAC NSTART macro2 10
MAC END
3.8.2 Starting Macro Execution
A defined macro can be run by the command MAC START <macroname>
where <macroname> is the name that was given to the macro to be run.
To run a macro multiple times, call it with MAC NSTART <macroname> n
where n gives the number of times the macro is to be run.
Macro execution will be stopped if there is an error in the macro—either
syntax error or illegal command.
If the E-517 is in OFFLINE mode, move commands from a running macro
are not allowed (they provoke an error message). See
"Control Modes"
(p.
23) for details.
A macro can be started when the wave generator is running, but move
commands from the macro are not executed and provoke an error
message.
Commands sent when a macro is running will be executed not until the
macro is finished or stopped. The only exceptions are #5, #6, #7, #8, #9
and #24 which are executed immediately.
When a macro is running, trackball settings can be used in parallel to
command axis motion. See
"Trackball Functions" (p. 22) for details.
Simultaneous execution of multiple macros is not possible. Only one macro
can be executed at a time.
www.pi.ws E-517 PZ214Equ Release 1.0.0 Page 39