![Physik Instrumente C-863 Mercury User Manual Download Page 33](http://html.mh-extra.com/html/physik-instrumente/c-863-mercury/c-863-mercury_user-manual_1553908033.webp)
Macros
5
Macros
The Mercury™ controller macro feature allows defining command sequences and
storing them permanently in non-volatile memory in the controller. Each defined
macro can be executed later by command. A Start-up macro can be defined that
will be executed automatically every time the controller is started, making possible
customized stand-alone operation without a host computer.
If you are working with one of the PI operating software interfaces (
PIMikroMove™
or
MMCRun
), it is also possible to store macros on the host PC (known as
host
macros
). See the corresponding software manual for details.
The native and GCS command sets have differing macro architectures. In each,
however, a macro consists of valid commands in the corresponding command set.
The Mercury™ GCS macro capability is implemented for Mercurys™ with native
firmware via the GCS DLL. That DLL translates macros between the two command
sets and macro architectures. See the Command Manual for the command set you
are using for details.
Examples of what is possible with an autostart macro sequence and a pushbutton
box and/or joystick to make the Mercury™ a stand-alone controller under operator
control include the following:
Execute commands that set proper operating parameters
Execute motion commands
Execute commands that wait for motion to complete
Light one or more LEDs
Execute a command or macro conditionally, depending on whether a
pushbutton or joystick button is pressed or not
Execute a command or macro conditionally, depending on the response to
certain other commands
Execute a command or macro conditionally, depending on the position of
the connected joystick axis
With custom cabling, execute a command or macro conditionally, depending
on the state of an output from a different Mercury™ or other external signal
The techniques generally employed include:
Using separate macros for different initialization and operating functions
Calling one macro from another, perhaps conditionally
Invoking repeated execution of a macro
Wiring outputs from one Mercury™ to the inputs of another
See the Commands manual for the command set you are using for details.
www.pi.ws
C-863 MS173E Release 1.2.7
Page 29