07/11
CMT 330 Three Knife Trimmer 3-15 Serial Communication
3.9 Serial Communication
Note: Approximate time per book with size
change 26 seconds
Approximate time per book no size
change 13 seconds
1. Physical connection
1.1 Standard PC Comm port to CMT330. --DB9 male/Female Null Mode Cable
9600 baud
1 stop bit
8 data bits
no Parity
no Flow control
2. Message Format
2.1 All messages start with ASCII -1010FF
2.2 All messages end with a Longitudinal
Redundancy Check (LRC) Value. This
value is calculated from the first byte of
the Start sequence to the last byte if the
data after the messages has been converted from ASCII to hex. Example
1010FF
(0x31,0x30,0x31,0x30,0x46,0x46) becomes (0x10,0x10,0xFF).
2.3 All message are formatted as follows
Text Start------------------------------------
1010FF
Sequence number-------------------------00-FF
Message type------------------------------see following information
Data length---------------------------------00-FF
Message type sub code 1-----------------see following information
Sub code 1 data length
(Optional) Message type sub code 2
Sub code 2 data length
(Optional) Message type sub code (n)
Sub code n data length
(LRC)---------------------------------------XOR of the first byte to the last
(ASCII Carriage Return)-----------------0x0d
(ASCII Line Feed)------------------------0x0a
3. Error Detection
3.1 All messages are responded to with an
positive or Negative acknowledgment
1) Positive Acknowledgement (ACK)—
10100600(CR)(LF)
2) Negative Acknowledgement(NAK)--
-10101500(CR)(LF)
3.2 The receiver shall send a (NAK) response if the calculated LRC does not
match the incoming value.
3.3 The receiver shall send a NAK response if the header is not 1010FF.
3.4 If a NAK is received the sender shall
wait 150ms before retransmitting the
message.
3.5 After 3 NAK’s in a row an unrecoverable error should be declared.
3.6 An ACK shall be sent in 50ms after a
good message is received. After
250ms NAK is assumed.
4. Command Codes and Sub Codes
4.1 Host command - Wake Up (00)
4.1.1 Sub Code (10) request Ma-
chine information and reset
message sequence number.
Example --1010FF02000110EC(CR)(LF)
4.2 CMT330 - Response to Wake Up (60)
4.2.1 Sub Code (10) Description of
product “trimmer “
4.2.2 Sub Code (11) Software level
“3.3”
4.2.3 Sub Code (12) Brand
“Challenge”
Example1010FF02601910087472696D6D65722
01102030312094368616C6C656E6765
8F(CR)(LF)
4.3 CMT330 - Serial Initialize (55)
4.3.1 Sub Code (01) Ready to Communicate Sent at power
On
Example-1010FF01550101AB
4.4 Host command - (66)
4.4.1 Sub code (
10) Start
Enable Process
Example-1010FF026601108A(CR)(LF)
4.4.2 Sub code (11) Temp Stop
Hold Process
Example-1010FF026601118B(CR)(LF)
4.5 Host Command- (04)
4.5.1 Sub Code (21) Job number (1-
99)
4.5.2 Sub Code (22) Bottom Trim
(0.1inch – max) (X 1000 no
decimal point) 0.100in=0064
4.5.3 Sub Code (23) Trimmed Book
Height (5.875-12.000in)
(16F3-2EE0)
4.5.4 Sub Code (24) Trimmed Book
Width (4.000-9.000in) (0FA0251C)
4.5.5 Sub Code (25) Book Thickness
(0.100-
2.000)(0064-07D0)
4.5.6 Sub Code (26) PreTrimmed
Book Height (7.000-
12.500)(1B58-30D4)
Example1010FF0204172101032202006423022AF8
24022328250201F4260230D445(CR)(LF)