
User Manual
E727T0005, valid for E-727
BRO, 2019-06-28
Physik Instrumente (PI) GmbH & Co. KG, Auf der Roemerstrasse 1, 76228 Karlsruhe, Germany
Page 125 / 240
Phone +49 721 4846-0, Fax +49 721 4846-1019, Email
Example: Moving an axis back and forth
INFORMATION
When macros are recorded on the
Controller macros
tab in PIMikroMove, the
MAC BEG
and
MAC END
commands must be omitted.
The axis 1 is to move back and forth. For this purpose, 3 macros are recorded. Macro 1 starts the
motion in the positive direction and waits until the axis has reached the target position. Macro 2
performs this task for the negative direction of motion. Macro 3 calls up macro 1 and 2.
Record the macros by sending:
MAC BEG macro1
MVR 1 12.5
WAC ONT? 1 = 1
MAC END
MAC BEG macro2
MVR 1 -12.5
WAC ONT? 1 = 1
MAC END
MAC BEG macro3
MAC START macro1
MAC START macro2
MAC END
Starting a macro execution
INFORMATION
Any commands can be sent from the command line when a macro is running on
the controller.
The macro content and move commands received from the command line can overwrite each
other.
INFORMATION
Simultaneous execution of multiple macros is not possible. Only one macro can be executed at a
time.