
8 GCS Commands
C-863.12 Mercury Controller
MS249E
Version: 1.2.1
205
WAC (Wait For Condition)
Description:
Waits until a specified condition of the following type
occurs: a specified value is compared with a queried value
according a specified rule.
Can only be used in macros.
See also the MEX command (p. 176).
Format:
WAC <CMD?> <OP> <value>
Arguments
<CMD?> is one query command in its usual notation. The
response has to be a single value and not more. For an
example see below.
<OP> is the operator to be used. The following operators
are possible:
= <= < > >= !=
Important: There must be a blank space before and after
the operator!
<value> is the value to be compared with the response to
<CMD?>.
Response:
None
Example:
Send:
MAC BEG LPMOTION
MVR 1 1
WAC ONT? 1 = 1
MVR 1 -1
WAC ONT? 1 = 1
MAC START LPMOTION
MAC END
MAC START LPMOTION
Note: Macro LPMOTION is first recorded and then started.
WAC ONT? 1 = 1 waits until the response to ONT? 1 is 1=1.
To form an infinite loop, the macro calls itself.
WPA (Save Parameters To Non-Volatile Memory)
Description:
Writes the currently valid value of a parameter of a
specified element from volatile memory (RAM) to
nonvolatile memory. The values saved this way become
the default values.