3.7
EDH0162En1040 – 06/99
MM4005
Remote Mode
3.3.1
Command Syntax
3.3.1.1
Command Format
xx
— Optional or required preceding.
AA
— Command code.
nn
— Parameter can be represented by:
• A value;
or
• An interrogation "?" (for certains commands);
or
• A variable:
$Ypp
or
$Saa
(for certains commands).
pp
[int]: value variable number
1 to 100
: integers
101 to 120 : floats
aa
[int]: String variable number
1 to 8
: strings
The general format of a command is a two character mnemonic (
AA
). Both
upper and lower case are accepted. Depending on the command, it could
also have optional or required preceding (
xx
) and/or following (
nn
) para-
meters.
3.3.1.2
Blank Spaces
Blank spaces are allowed and ignored in any position, including inside a
numerical value. For the clarity of the program and memory saving consid-
erations, use blank spaces with restraint. The following two commands are
equivalent:
2P A1. 43 6
2PA1.436
but the first example is very confusing and uses more than twice the memo-
ry.
3.3.1.3
Command Line
Commands are executed line by line. A line can consist of one or a number
of commands. The controller will interpret the commands in the order they
are received and then they are executed, usually within a few microseconds.
This means that commands issued on the same line are executed signifi-
cantly closer to each other than if they would be if issued on separate lines.
The maximum number of characters allowed on a command line is 110.
3.3.1.4
Separator
Commands issued on the same line must be separated by a comma (,) or
semicolons (;).
3.3.1.5
Terminator
Each command line, to be executed or accepted in a program, must end
with a line terminator. The terminator must have the format defined in the
GENERAL SETUP mode. The controller supports all combinations of line
feed (LF) and carriage return (CR) combinations: LF, CR, LF/CR and CR/LF.
nn
AA
xx
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com