7-14
Chapter 7. CPL Communication Function
7 - 5 Numerical Representation in the Application Layer
The specifications of numerical representation are decimal variable-length (zero suppress) for RS and WS
commands and hexadecimal fixed-length for RD, WD, RU and WU commands. Details are as follows:
RS and WS commands
Item Specifications Error handling
Unnecessary
space
Cannot be appended. The message processing is
aborted and a termination
code indicating error is
returned in a response
message.
Unnecessary
zero
Cannot be appended.
Numerical value
= zero
Cannot be omitted.
Be sure to use “0.”
Other
unnecessary
characters
Numerical values may be prefixed with a
“−” expressing a negative number.
Any other characters cannot be
appended.
The "+" sign must not be appended to
indicate positive numerical values.
Range of
available
numerical values
−32768 to +32767
Values outside this range are not
allowed.
RD, WD, RU, and WU commands
Item Specifications Error handling
Unnecessary
space
Cannot be appended. The message processing is
aborted and a termination
code indicating error is
returned in a response
message.
Unnecessary
zero
Cannot be appended.
Numerical value
= zero
Cannot be omitted.
Be sure to use “0000.”
Other
unnecessary
characters
Cannot be appended.
Range of
available
numerical values
0000H to FFFFH