1. {REQ0} Data format/example
Field Parameter Value Data Type String Length Position Description
1 Header+CMD {REQ0 String 5 Byte 1-5 Header+Command code
2 Sequence ID 01 ~ 20 String 2 Byte 7-8 CTDS = 1 - 8, MCTDS = 1 - 20
3 Job ID 00~ 20 String 2 Byte 10-11 CTDS = 1, MCTDS = 1-20,Default=0
4 Device ID 001 ~ 255 String 3 Byte 13-15
Device index number arranged in the same assembly line (or workstation)
(CTDS:1-255 , MCTDS5:1-99)
5 Tool SN 20 Byte String 20 Byte 17-36
Screwdriver serial no.
Less than 20 B
tes ,fill the underline"_".
6 Device SN 20 Byte String 20 Byte 38-57
Device serial no.
Less than 20 B
tes ,fill the underline"_".
7 Device Operation Mode 0~3 String 1 Byte 59
Mo
e :
0 : ADV (Connection mode),
1 : STD (Standalone Mode),
2 : ALI (Alignment mode) ,
3 : SET
Settin
mode
8 Sequence Control Mode 0~1 String 1 Byte 61
0 : Sequence control mode
1 : Ski
se
uence mode
9 Setting Status 0~1 String 1 Byte 63 Setting status (Received command executed status) 0 : fales, 1 : success
10 Select Tool 01~09String2 Byte 65-66 Selected Tool (Current activated screwdriver)
11 Program Unit 01~99 String 2 Byte 68-69 Selected Unit Program
12 Device Type 0~3 String 1 Byte 71 Device type (0: 1.7x CTDS,1: 2.0 CTDS, 2: MCTDS, 3: WSCBSN)
13 Tool Connect & Keylock 0000000000(10 Byte) String 10 Byte 73-82
Screwdriver connection status and Keylock state (1: Connect, 0: Not connect)
(Byte 1-9 indicate screwdriver connected or disconnected to controller from
ri
ht to left order, b
te 10th is ke
lock state
14 Device Version 0.000~9.999 String 5 Byte 84-88 Device firmware version
15 Tool Version 0.00~9.99 String 4 Byte 90-93 Screwdriver firmware version
16 Tool Enable/Disable Status 0~1 String 1 Byte 95 Screwdriver status (0: Disable, 1: Enable)
17 Tool Stop Status 0~9,A~J String 1 Byte 97
oo
top
tatus
:
one ,
:
,
:
,
:
,
:
,
:
,
:
,
:
,
:
,
:
,
B:ESC, C:ES, D:Er, E:C1, F:C2, G:C4, H:C5 I:ESD J:EA)
EA has an abnormal communication in CTDS 1.7X version.
The appearance of EA in MCTDS5 means bad RS485 communication.
C3 appears for AS so it will send 2.
B
nl
r
n
h
M
TD
18 Device extend function 0~1 String 1 Byte 99 Device extend function code (0: None, 1:Clear Batch)
19 Screw count 000~250/001~250 String 7 Byte 101-107 Remaining screws/Total screws
20 Year 0001~9999 String 4 Byte 109-112 Year
21 Month 01~12 String 2 Byte 114-115 Month
22 Date 01~31 String 2 Byte 117-118 Date
23 Hour 00~23 String 2 Byte 120-121 Hour(24 hours)
24 Minute 00~59 String 2 Byte 123-124 Minute
25 Second 00~59 String 2 Byte 126-127 Second
26 Check Sum 0000~9999 String 4 Byte 129-132
27 Key Code 0000~9999} String 5 Byte 134-138 Key Code+Tail
28 ASCII code LF
29 ASCII code CR
{REQ0,... }Total:138 Byte,27 Field
Remark
2. {REQ1} Barcode format/example
Field Parameter Value Data Type String Length Position Description
1 Header+CMD {REQ1 String 5 Byte 1-5 Header+Command code
2 Barcode 1~30 Byte String 30 Byte 7-36 Barcode data
3 Year 0001~9999 String 4 Byte 38-41 Year
4 Month 01~12 String 2 Byte 43-44 Month
5 Date 01~31 String 2 Byte 46-47 Date
6 Hour 00~23 String 2 Byte 49-50 Hour(24 hours)
7 Minute 00~59 String 2 Byte 52-53 Minute
8 Second 00~59 String 2 Byte 55-56 Second
9 Check Sum 0000-9999 String 4 Byte 58-61
10 Key Code 0000-9999} String 5 Byte 63-67 Key Code+Tail
11 ASCII code LF
12 ASCII code CR
{REQ1, ..... }Total: 67Byte,10 Field
Remark
3. {DATA0} Data format/example
Field Parameter Value Data Type String Length Position Description
1 Header+CMD {DATA0 String 6 Byte 1-6 Header+Command code
2 Device Type 0~3 String 1 Byte 8 Devic type (0: 1.7x CTDS 1: 2.0 CTDS 2: MCTDS 3: WSCBSN)
3 Device ID 001~255 String 3 Byte 10-12
Device index(Exclusive in the same AMS system)
(CTDS:1-255 , MCTDS5:1-99)
4 Tool SN 20 Byte String 20 Byte 14-33
Screwdriver serial no.
Less than 20 B
tes ,fill the underline"_".
5 Device SN 20 Byte String 20 Byte 35-54
Devicer serial no.
Less than 20 B
tes ,fill the underline"_".
6 Device Count 0000000001~9999999999 String 10 Byte 56-65 Device accumulated shutoff count after poweron
7 Program unit 01~99 String 2 Byte 67-68 Selected Program unit
8 Select Tool 01~09String2 Byte 70-71 Selected Tool (Activated screwdriver)
9 Torque 0000.0000~0550.0000 String 9 Byte 73-81 Shutoff troque
10 Torque unit kgf.cm, N.m, lbf.in, kgf.m String 6 Byte 83-88
Troque unit
Less than 6 B
tes ,fill the bottom line"_".
11 Fastening time 0000.0000~0009.9990 String 9 Byte 90-98 Fastening time(ms)
12 Fastening thread 0000.0000~0999.9000 String 9 Byte 100-108 Fastening thread
13 Screw count 000~250/001~250 String 7 Byte 110-116 Remaining screws/Total screws
14 INC/DEC INC,DEC String 3 Byte 118-120 Batch Mode:Increase , Decrease
15 Status OK,NGT,NGQ,NGC,OKALL,REV String 5 Byte 122-126
as
en
ng s
a
us
OK:Each time when the fastening is complete.
NGT: stop time is earlier than L/later than H.
NGQ: stop torque is less than L/more than H.
NGC: stop number of turns is less than L/more than H.
OKALL:Each time when a batch is complete.
REV:Reverse
Less than 5 Bytes ,fill the underline
""
Item 1 to 27 are separated by "," (ASCII 0x2c)
2.Command {REQ1} : Send from Device to Host (Send barcode data to host immediately after barcode scaned a data)
Kilews KL-CTDS-2.0&KL-MCTDS5 Basic Data Output Protocol Description
(Ver1.0_20210302_01)
There are three basic data output formats send from device (CTDS/MCTDS) to external system (DAS/AMS/Other System) via the buildin RS232 port on the device :
1.Command {REQ0} : Send from Device to Host (Send device status to host per second after device startup ready)
COMPORT Setting:Baud rate : 115200/9600(CTDS 1.7X), Data bit : 8 , Stop bit : 1, Parity bit :NON
Serial communication Mode -ASCII (American Standard Code for Information Interchange)
4.Command {CMD0} : Send from Host to Device (Host respond system time to device )
2.The character position in the string does not contain a comma
3.Command {DATA0} : Send from Device to Host (Send last shutoff data to host immediately and repeat per second after screwdriver shutoff )
ps : 1.Device will change output data from {DATA0} to {REQ0} after read {CMD} from external system
{REQ0,01,00,001,5555566666__________,01__________________,1,1,1,01,01,1,0000000001,2.123,2.15,1,0,0,001/005,2018,08,02,13,23,02,2066,7504}
Item 1 to 10 are separated by "," (ASCII 0x2c)
{DATA0,1,001,2344________________,1y__________________,0000000002,01,01,0002.4800,kgf.cm,0000.2100,0002.4000,003/005,INC,OK___,1,0,0,0002.4800,00339,2019,02,22,11,51,51,2156,7594}
{REQ1,6910066016096,2018,08,02,16,33,33,2110,7548}