User manual

ACME Electronic Machinery Co., Ltd. ACME
2012/6/20
RS-232 Protocol (Data Format)
ACME MMC10-A Leather Measurement Module has RS232 function to interface
external devices.
The RS232 protocol can be seen in the figure below.
ACME MMC10-A Communication Protocol (Data Format)
1 2 3 4 5 6 7 8 9 10
Leading
Code
Returne
d
Value
Command
Code
Item
Number
Unit Deducted
Area
Reserve
Real
Area
Check
Sum
Ending
Code
“~”
ASCII
“0” or
“1”
ASCII
“10”
ASCII
XXXX
ASCII
(HEX)
XX
ASCII
XXXX
ASCII
(BCD)
X
ASCII
,XXXX
ASCII
(BCD)
XX
ASCII
(HEX)
0Ah+0Dh
Hexadecimal
(HEX)
1 Byte 1 Byte 2 Bytes 4 Bytes 2 Bytes 4 Bytes 1 Byte 5 Bytes 2 Bytes 2 Bytes
Leading CodeStart of encapsulation
Returned Value”0” Correct”1” Error
Command CodeCode “10” indicate to transmit the result of measured
Item Numberrepresent the sequence number of the measured
Unit00 FT
2
01 IN02 DM03 M
2
Deducted Area4 bytes deducted area (Use external key pad to deduct)
ReserveFuture use
Real AreaReal Area (5bytes”,” + 4bytes)the ”,” is a splitter
Check SumExclusive-OR Sum from Returned Code to Real AreaCan do not care
Ending CodeThe Ending Code is to represent the end of record
The measure machine output data using fixed baud rate (19200,8,N,1).
The ending code “CHR(10)+ CHR(13)” is not show on the PC Terminal.
~01000100005500,05602F 05.60 – 0.1 = 05.50 deducts 0.1
The above record can be split and reference Communication Protocol as follow:
EX: 1 2 3 4 5 6 7 8 9 10
~,0,10,0010,00,0550,0,,0560,2F,CHR(10)+ CHR(13)
~010000F0010901,111053 CHR(10)+ CHR(13) deducts 0.2
~010000E0008800,091050 deducts 0.3
~010000D0009300,09705D deducts 0.4