EasyManua.ls Logo

PI MS249E - Page 182

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...
8 GCS Commands
176 Version: 1.2.1 MS249E C-863.12 Mercury Controller
Example 3:
Send: MAT INVERT = 0x45 XOR 0xFF
Send: VAR? INVERT
Receive: INVERT=186
NOTICE: The bit operation XOR with the value 0xFF
corresponds to an inversion of the value 0x45. The result is
output in decimal format.
MEX (Stop Macro Execution Due To Condition)
Description:
Stops running the macro due to a specified condition of the
following type: a specified value is compared with a
queried value according to a specified rule.
Can only be used in macros.
When the macro interpreter accesses this command, the
condition is checked. If it is true, the current macro is
stopped; otherwise the macro continues to run with the
next line. Should the condition be fulfilled later, the
interpreter will ignore it.
See also the WAC command (p. 205).
Format:
MEX <CMD?> <OP> <Value>
Arguments
<CMD?> is one query command in its usual syntax. 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 that is compared with the response to
<CMD?>.
Response:
None
Example:
Send: MAC START LOOP
Note:
LOOP macro contains the following:
MAC START KEY1

Table of Contents

Related product manuals