07/2020
Corona II
– LED Line Scan Illumination
PMA_CHR_CD40069_R05_Manual_Corona-II_XLC4
89
6.5.2.2 General structure of all commands
The XLC4 commands are transferred in a command message of a uniform string structure:
Start
Address
Space
Command
End
STX
“#”,HexChar
Blank
String
ETX
0x02
0x23,HexChar
0x20
0x03
Start of the
command
Optional, for use with
RS485 port
End of the
command
Allowed characters:
0,1,2,3,4,5,6,7,8,9,
A,B,C,D,F
The message string is enclosed by STX as start character and ETX as end character. If the
controller does not receive STX, the message is ignored. If the controller does not receive
ETX, no response is sent. In both cases the sender of the message should handle this issue
with a time-out.
The command string itself is built in the following structure:
CommandID
Space
ParameterList
2 or 3 uppercase
characters
0x20
List of decimal or hexadecimal numbers
alphanumeric characters.
See at each
command
As separator from
ParameterList
See at each command, more than one parameters
are separated by a “Space” or by “,”; the sign “,” is
used to separate numbers.
Each command message sent to the XLC4 is acknowledged by a response message of
following structure:
ResponseMessage = STX , Response , ETX
with:
Response
=
ResponseID , [ValueList]
ValueList
=
Space, Value
, {“,” , Value}
Value
=
decimal number | hexadecimal number |
single character | string