Operation
GBSOTXBA_V(1).DOCX
Page - 19
Press F2 to cancel the current command.
5 Data protocol
5.1 Basic principles of communication
You need suitable PC software to communicate with the SorTexx system. This software sends commands to
SorTexx in order to perform certain actions. On receiving a command, the LED control unit sends an answer to
the PC.
The LED control unit also receives commands while waiting for an acknowledgement. If this is a command to
switch an LED on, it is written in the buffer memory (if this is activated). Otherwise, commands are executed
straightaway. The "Read button" and "Clear button" commands should not be used in this status because this
interferes with automatic button polling by the control unit.
5.2 Command
A command (from PC to LED control unit) always consists of 11 bytes:
0
1
2
3
4
5
6
7
8
9
10
Start
Shelf number
Compartment
number
Command
Parameter
Result
Stop
“<"”
“000”…”999”
“000”…”999”
“1”…”9”, “Q”,
“R”, “S”, “T”,
“W”
“0”…“9”,
“A”…“F”
“0”
“>”
In operation mode “Counting Frame”:
0
1
2
3
4
5
6
7
8
9
10
Start
Counter value
Counter number
Command
Parameter
Result
Stop
„<“
„0000“…„9999“
„00“…„10“
„U“, „V“
„0“
„0“
„>“
A command usually addresses a certain module. This module is given a unique definition by the shelf number
and the compartment number.
Some commands can also be sent as broadcast, i.e. the command is executed by all modules. When the shelf
number or compartment number is “000”, the command is treated as a broadcast.
5.3 Answer
The answer (from LED control unit to the PC) always consists of 11 bytes. It has the same format as the
command data package:
0
1
2
3
4
5
6
7
8
9
10
Start
Shelf number
Compartment
number
Command
Parameter
Result
Stop
“<”
“000”…“999”
“000”…“999”
“1”…“9, “Q”,
“R”, “S”
“0”…“9”,
“A”…“F”
“0”…“9”,
“A”…“C”
“>”
Byte 9 contains the result of the command:
•
“0” = OK. This result is also sent after successful acknowledgement.
•
“2” = time-out error when waiting for one certain module to answer
•
“5” = wrong module answer
•
“6” = unknown command
•
“7” = wrong data package
•
“8” = wrong shelf number or compartment number
•
“9” = wrong parameter
•
“A” = buffer memory is full
•
“B” = waiting for acknowledgement (buffer memory is not active) => command ignored
•
“C” = for LED switch-on command demanding acknowledgement: the command is executed or written in the
buffer memory. “OK” (“0”) is only reported after positive acknowledgement.