24
6.7.5 erial configuration
S
CATRAX Master's
control board allows serial configuration of the equipment. The
communication protocol used is as follows:
Where:
- STX represents beginning of transmission (0x02)
- Size(LSB) is the byte with the least significant size component
- Size(MSB) is the byte with the most significant size component
- Commands is the information sent to the equipment (one or two bytes);
- BCC is the XOR operation for all bytes sent, from STX to Commands
The following table shows the enabling commands that can be sent to
CATRAX
Master:
The following table shows the return commands that can be sent by the equipment:
The following table shows some examples of command:
STX
Size (LSB)
Size (MSB)
Commands
BCC
HEXA
ASCII
FUNCTION
0x48
H
Clears direction from right to left
0x41
A
t Clears direction from left to right
0x44
D
Clears both directions
0x43
C
Back to controlling (command used to leave free state)
0x4C
L
Turnstile free (include free direction <0x4C> + <0x48>)
0x53
S
Direction programming (include direction to be programmed <0x53>
+ <0x48>)
HEXA
ASCII
FUNCTION
0x48
H
free from right to left
0x06
!
ACK, indicates command OK
0x15
§
NACK, indicates invalid command
0x1A
"
Return command form right to left (RET1)
0x1B
#
Return command from left to right (RET2)
Free from left to right (1 passage):
0x02
0x02
0x00
0x48
0x48
Configure from left to right as Always free:
0x02
0x03
0x00
0x4C
0x48
0x05
Return OK command:
0x02
0x02
0x00
0x06
0x06
ATTENTION:
-
Size corresponds to the number of bytes sent (total command bytes: 1).
-
The protocol communication rate is 115,200 bps.
master