EasyManua.ls Logo

PI MS249E - Page 109

PI MS249E
279 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Operation
C-863.12 Mercury Controller MS249E Version: 1.2.1 103
Starting a macro
INFORMATION
Any commands can be sent from the command line when a macro is running on the controller.
The macro content and motion commands received from the command line can overwrite
each other.
INFORMATION
It is not possible to run several macros simultaneously. Only one macro can be run at a time.
INFORMATION
You can link the macro execution to conditions with the JRC and WAC commands. The
commands must be included in the macro.
In the following, PITerminal or the Command entry window of PIMikroMove is used to enter
commands. Details on working with the Controller macros tab in PIMikroMove are in the
PIMikroMove manual.
1. If the macro is to continue running despite an error:
Set the Ignore Macro Error? parameter (ID 0x72) correspondingly: Send the SPA 1
0x72 Status command, whereby Status can have the value 0 or 1 (0 = Stop
macro when error occurs (default); 1 = Ignore macro error).
Further information on changing parameters can be found in "Adapting Settings" (p.
231).
2. Start the macro:
If the macro is to be run once, send the MAC START macroname string
command, whereby macroname indicates the name of the macro.
If the macro is to be run n times, send the MAC NSTART macroname n
string command, whereby macroname indicates the name of the macro and n
indicates the number of runs.
string stands for the values of local variables. The values only have to be specified when
the macro contains corresponding local variables. The sequence of the values in the
input must correspond to the numbering of the appropriate local variables, starting
with the value of local variable 1. The individual values must be separated from each
other by spaces.
3. If you want to check whether the macro is running:
Query whether a macro is running on the controller by sending the #8 command.
Query the name of the macro that is currently running on the controller by sending
the RMC? command.

Table of Contents

Related product manuals