EasyManua.ls Logo

PI MS249E - Commands and Parameters for Macros

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
98 Version: 1.2.1 MS249E C-863.12 Mercury Controller
7.7.2 Commands and Parameters for Macros
Commands
The following commands are available specifically for handling macros or for use in macros:
Command
Syntax
Function
ADD (p.
130)
ADD <Variable> <FLOAT1>
<FLOAT2>
Adds two values and saves the result to a variable
(p. 118). Can only be used for local variables in
macros.
CPY (p.
134)
CPY <Variable> <CMD?>
Copies a command response to a variable (p. 118).
Can only be used for local variables in macros.
DEL (p.
142)
DEL <uint>
Can only be used in macros. Delays <uint>
milliseconds.
JRC (p.
169)
JRC <Jump> <CMD?> <OP>
<Value>
Can only be used in macros. Triggers a relative
jump of the macro execution pointer depending
on a condition.
MAC (p.
171)
MAC BEG <macro name>
Starts the recording of a macro with the name
macro name on the controller. macro name can
consist of up to 8 characters.
MAC DEF <macro name>
Defines the specified macro as the startup macro.
MAC DEF?
Gets the startup macro.
MAC DEL <macro name>
Deletes the specified macro.
MAC END
Ends the macro recording.
MAC ERR?
Reports the last error that occurred while the
macro was running.
MAC NSTART <macro name>
<uint> [<String1> [<String2>]]
Starts the specified macro n times in succession (n
= number of times). The values of local variables
can be set for the macro with <String1> and
<String2>.
MAC START <macro name>
[<String1> [<String2>]]
Runs the specified macro. The values of local
variables can be set for the macro with <String1>
and <String2>.
MAC? (p.
173)
MAC? [<macro name>]
Lists all macros or the content of a specified
macro.
MEX (p.
176)
MEX <CMD?> <OP> <Value>
Can only be used in macros. Stops the macro
execution depending on a condition.
RMC? (p.
182)
RMC?
Lists macros which are currently running.
VAR (p.
202)
VAR <Variable> <String>
Sets a variable (p. 118) to a certain value or
deletes it. Can only be used for local variables in
macros.

Table of Contents

Related product manuals