112 Version: 1.2.1 MS249E C-863.12 Mercury Controller
▪ Switch all LEDs on the pushbutton box off
Record the TESTDION
macro on the
controller.
The macro has the following tasks:
▪ Stop macro execution if the number of local
variables given when starting TESTDION is not 1
▪ Stop macro execution if the button specified via
local variable 1 on the pushbutton box is no
longer pressed (corresponding input line has the
low state)
▪ If the button is still pressed, jump 3 lines forward
(to DEL 400)
▪ Start the MVAX2ST macro because the button
was only briefly pressed. The value of the local
variable 1 is also used for local variable 1 in
MVAX2ST. MVAX2ST moves axis 1 to the position
assigned for the button.
▪ Stop macro execution if button is no longer
pressed
▪ Stop macro execution if button is no longer
pressed
▪ Switch the pushbutton box LED on that is
associated with the button pressed to indicate
storing of the current position
▪ The macro is executed further only if the button
is no longer pressed
▪ Save the current position of axis 1 in the global
variable designated via local variable 1
Record the MVAX2ST
macro on the
controller.
The macro has the following tasks:
▪ Get the storage variable designated via local
variable 1 and copies its value to local variable 2
▪ Start motion of axis 1 to the target position
specified via local variable 2