
7 Operation
C-863.12 Mercury Controller
MS249E
Version: 1.2.1
113
Action
Command
Result
MAC END
Start the STARTUP
macro on the
controller.
Alternative:
If the variables for
storing positions are
not to be initialized,
start the MAINLOOP
macro on the controller
instead.
MAC START startup
Joystick control is activated by pressing the joystick
button. When joystick control is activated, the
pushbutton box LEDs flash rapidly and therefore
indicate that the box buttons should not be pressed.
After releasing the joystick button, joystick control is
deactivated and the LEDs switch themselves off. The
pushbutton box can now be used for moving to the
saved positions or for saving the current position.
The respective button on the pushbutton box is
pressed briefly to move the positioner to a stored
position.
To store the current position of the positioner, a
button is pressed on the pushbutton box until the
button LED lights up.
7.7.8
Macro Example: Joystick Control with Change in Velocity
INFORMATION
When macros are recorded on the
Controller macros
tab in PIMikroMove, the
MAC BEG
and
MAC END
commands must be left out.
Action
Command
Result
Connect C-819.20 or C-
819.30 joystick to the
Joystick
socket.
-
For commands, the joystick axis connected is
accessible as axis 1 of joystick 1 and the joystick
button is accessible as button 1 of joystick 1.
Switch on servo mode
for axis 1.
SVO 1 1
The servo mode must be switched on, so that axis 1
can be controlled via a joystick.
Start reference move
for axis 1.
FRF 1
The axis starts a reference move
–
here to the
reference switch. After this, absolute axis positions
can be commanded.
Specify which axis is to
be controlled via the
joystick axis.
JAX 1 1 1
Axis 1 is assigned to joystick axis 1 of joystick 1.
Joystick control is not yet active.
Record the JOYVEL
macro on the
controller.
MAC BEG joyvel
The macro has the following tasks:
JON 1 1
▪
Activate joystick 1
JRC 3 JBS? 1 1 = 1
▪
If joystick button 1 is pressed, jump 3 lines
forward (to
VEL 1 1
).