
8 GCS Commands
172
Version: 1.2.1
MS249E
C-863.12 Mercury Controller
Deletes specified macro.
MAC NSTART <macro name> <uint> [<String1> [<String2>]]
Repeats the specified macro <uint> times. The macro is re-
run each time.
<String1> and <String2> are optional arguments which
specify the values for local variables 1 and 2 used in the
specified macro. <String1> and <String2> can be specified
directly or via the values of variables. Macro will not run if
the macro contains local variables but <String1> and
<String2> are not specified in the MAC NSTART command.
Refer to
“Variables”
(p. 118) for further details.
MAC START <macroname> [<String1> [<String2>]]
Runs the specified macro once. <String1> and <String2>
have the same function as with MAC NSTART.
Response:
None
Troubleshooting: Macro recording is active (keywords BEG, DEL) or inactive
(END)
Macro contains a disallowed MAC command
Notes:
Running a macro is not allowed when a macro is being
recorded.
When a macro is recorded for a controller whose address is
different from 1, the target address must be part of each
command line, but will not become part of the macro
content. PIMikroMove automatically sends the target
address during the macro recording so that it does not
have to be entered there. You will find further information
in "Working with Macros" (p. 99) and "Target and Sender
Address" (p. 117).
The
MAC BEG
and
MAC END
commands may not be
specified when macros are recorded in the
Controller
macros
tab in PIMikroMove.
A macro can be overwritten by a macro with the same
name.
Macros can contain local and global variables. Refer to
"Variables" (p. 118) for further information.
A running macro sends no responses to any interface.
Depending on the value of parameter 0x72 (
Ignore Macro
Error?
), the following options exist when an error is caused
by a running macro:
0 = Macro running is aborted (default).