
Chapter
9
51
ML-9011A
9.4 Communications Protocol
■
Numerical notation
Signs
Values
The value itself is expressed as a decimal number unless otherwise specified.
Data with decimals (Examples of numerical notation)
■
String notation
Plus
Nothing is added before the number.
Minus
0x2D is added before the character.
Hexadecimal notation itself does not indicate the sign of a value.
Decimal numbers
Available ASCII codes are from 0x30 to 0x39.
Hexadecimal numbers
(in the checksum segment)
A value from 0x41 to 0x46 is added to the ASCII code available for
the decimal numbers.
Lowercase letters cannot be used.
The decimal number "1"
0x31
The decimal number "-1"
0x2D, 0x31
The hexadecimal number "FFA0" 0x46, 0x46, 0x41, 0x30
"12.3%," when the increment is
0.1% (as in LD current)
123
ASCII code
(symbols and alphanumeric)
Single-byte code from 0x20 to 0x7F
Single-byte katakana
Single-byte code from 0xA1 to 0xDF
Kanji
Double-byte Shift-JIS code starting with a code from 0x80 to 0x9F or
from 0xE0 to 0xFF
・
Commas are generally not expressed since commas are special characters used as
delimiters. To indicate a comma used as a comma, add the special character “\”
before the character.
Characters after “\” are not treated as delimiters. Use “\,” to
designate a comma. To express “\,” use “\\”.
・
Strings can be up to 48 bytes unless otherwise specified.