
8 GCS Commands
C-863.12 Mercury Controller
MS249E
Version: 1.2.1
177
MAC START KEY2
MEX DIO? 4 = 1
MAC START LOOP
KEY1 macro contains the following:
MEX DIO? 4 = 1
MEX DIO? 1 = 0
MVR 1 1.0
DEL 100
KEY2 macro contains the following:
MEX DIO? 4 = 1
MEX DIO? 2 = 0
MVR 1 -1.0
DEL 100
LOOP macro forms an infinite loop by permanently calling
KEY1, KEY2 and itself.
KEY1 checks the state of the digital input channel 1 (is on
the I/O socket (p. 266)). If it is not set (0), the macro is
aborted, otherwise the macro will move axis 1 by 1.0 in
positive direction (relative move).
KEY2 checks the state of the digital input channel 2 and
moves axis 1 in negative direction accordingly.
By connecting the digital input channels 1, 2 and 4 with
pushbuttons, e.g., with the C-170.PB pushbutton box, it is
possible to realize interactive control of an axis without
any software assistance. The delay (DEL 100) is required to
avoid generating multiple MVR commands while pressing
the pushbutton for a short time.
Channel 4 is used as a global exit. Since MEX only stops
execution of the current macro, it must also be included in
the calling macro, which would otherwise continue.
MOV (Set Target Position)
Description:
Sets an absolute target position for the specified axis.
Format:
MOV {<AxisID> <Position>}