RML-1
PROGRAMING GUIDELINE
- 5 -
Special conditions are described in section 2-5.
2-3;Format for Mode 2
Format example * P ** A ** 5000 ** [,] ** 5000 ** [terminator]
[Delimiter]
"*" indicates a character whose ASCII code is for the space or lower, or the ";"
character. One or more may be used, without restriction.
"**" indicates either the space or the tab character. One or more may be used,
without restriction.
[,] indicates the "," (comma) character. Only one may be used.
[Command]
PA is the command, and is shown by two letters.
Only a space or tab may validly appear between the P and the A. There is no
restriction as to the number of space or tab characters. If a character other than
space or tab is used, it is read and discarded it with error 1. If P is preceded by a
numeral or by "+", "-", or ".", it is read and discarded with error 2. All other characters
at 0x20 or lower, and ";", are ignored.
When composed of two letters separated by a delimiter, a case-insensitive
comparison is performed against the list of valid commands for the model, and if the
character string does not match it is discarded with error 1. If a match is made, the
corresponding command is executed. Get parameters as required.
[Parameter]
This is a numeral and "+", "-", or ".". The characters that appear are not RML-1
commands.
The "+" may be omitted. The value "5000" must follow without any intervening extra
characters. If a character other than a numeral or "+", "-", and "." appears, the
character string up to that point is taken to be a single parameter.
A parameter has no E expression. They are composed only of numerals and ".", "+",
and "-". A parameter that is larger or smaller than the expected value results in error
3. Except for portions such as PU/PD that have already been executed, this portion
of the parameter is not executed.
(Valid numerical ranges of parameters:)
int type
This indicates a range of -32768 to 32767. A size of two bytes is
ssumed.
long type
This indicates a range of -8388608 to 8388607. A size of four
bytes is assumed.