1. {REQ100} Data format/exam
Field
Parameter
Value
Data Type
String Length
Position
Description
1 CMD
{REQ100
String
7 Byte
1-7
Command code
2 Year
0001~9999
String
4 Byte
9-12
Year
3 Month
01~12
String
2 Byte
14-15
Month
4 Date
01~31
String
2 Byte
17-18
Date
5 Hour
00~23
String
2 Byte
20-21
Hour(24 hours)
6
Minute
00~59
String
2 Byte
23-24
Minute
7
Second
00~59
String
2 Byte
26-27
Second
8 Check Sum
0000~9999
String
4 Byte
29-32
9 Key Code
0000~9999
String
4 Byte
34-37
Key Code
10 unused
0
String
1 Byte
39
unused
11 unused
0
String
1 Byte
41
unused
12 Device ID
001~250
String
3 Byte
43-45
Device index number arranged in the same assembly line (or
13 Tool SN
20 Bytes
String
20 Byte
47-66
Screwdriver serial no.
14 Device SN
20 Bytes
String
20 Byte
68-87
Device serial no.
15
Device Operation Mode
0~3
String
1 Byte
89
Mode :
0 : ADV (Connection mode),
1 : STD (Standalone Mode),
2 : ALI (Alignment mode) ,
3 : SET(Setting mode)
16 Sequence Control Mode 0~1
String
1 Byte
91
0 : Sequence control mode
1 : Skip sequence mode
17 Job
01~50
String
2 Byte
93-94
Selected Job
18 Sequence
01~50
String
2 Byte
96-97
Selected Sequence
19 Select Tool
1
String
1 Byte
99
Selected Tool (Current activated screwdriver)
20 Program Unit
01~99
String
2 Byte
101-102 Selected Unit Program
21 Device Type
4
String
1 Byte
104
Device type (4:TCG)
22 Tool Connect
0~1
String
1 Byte
106
Screwdriver connection status (1: Connect, 0: Not connect)
23 Device Version
0.000~9.999
String
5 Byte
108-112 Device firmware version
24 Tool Version
0.00~9.99
String
4 Byte
114-117 Screwdriver firmware version
25 Tool Enable/Disable Statu0~1
String
1 Byte
119
Screwdriver status (0: Disable, 1: Enable)
26 Tool Stop Status
0~9,A~L
String
1 Byte
121
Tool Stop Status (0: None , 1:NS, 2:AS, 3:E3, 4:E4, 5:E5, 7:E7, 8:E8, 9:E9,
A:EPC, B:ESC, C:ES, D:Er, E:C1, F:C2, G:C4, H:C5, I:EOC, J:BS, K:Confirm,
27
Screw count
00~99/00~99
String
5 Byte
123-127 The numbers of remaining screws / Total screws
28
Instruction number
1~255
String
3Byte
129-131
Instruction number
29 Tail
}
String
1 Byte
133
Tail
ASCII code LF
ASCII code CR
{REQ100,... }Total:133 Byte,29 Field
Remark
2. {REQ101} Barcode format/e
Field
Parameter
Value
Data Type
String Length
Position
Description
1 CMD
{REQ101
String
7 Byte
1-7
Command code
2 Year
0001~9999
String
4 Byte
9-12
Year
3 Month
01~12
String
2 Byte
14-15
Month
4 Date
01~31
String
2 Byte
17-18
Date
5 Hour
00~23
String
2 Byte
20-21
Hour(24 hours)
6
Minute
00~59
String
2 Byte
23-24
Minute
7
Second
00~59
String
2 Byte
26-27
Second
8 Check Sum
0000-9999
String
4 Byte
29-32
9 Key Code
0000-9999
String
4 Byte
34-37
Key Code
10 Barcode
1~54 Byte
String
54 Byte
39-92
Barcode data
11 Tool SN
20 Bytes
String
20 Byte
94-113
Screwdriver serial no.
12 Device SN
20 Bytes
String
20 Byte
115-134 Device serial no.
13
Instruction number
1~255
String
3 Byte
136-138
Instruction number
14 Tail
}
String
1 Byte
140
Tail
15
ASCII code LF
16
ASCII code CR
{REQ101, ..... }Total: 140 Byte,14 Field
Remark
3. {DATA100} Data format/exa
Field
Parameter
Value
Data Type
String Length
Position
Description
1 CMD
{DATA100
String
8 Byte
1-8
Command code
2 Year
0001~9999
String
4 Byte
10-13
Year
3 Month
01~12
String
2 Byte
15-16
Month
4 Date
01~31
String
2 Byte
18-19
Date
5 Hour
00~23
String
2 Byte
21-22
Hour(24 hours)
6
Minute
00~59
String
2 Byte
24-25
Minute
7
Second
00~59
String
2 Byte
27-28
Second
8 Check Sum
0000-9999
String
4 Byte
30-33
9 Key Code
0000-9999
String
4 Byte
35-38
Key Code
10 Device Type
4
String
1 Byte
40
Device type (4:TCG)
11 Device ID
001~250
String
3 Byte
42-44
Device index number arranged in the same assembly line (or
workstation)
12 Tool SN
20 Bytes
String
20 Byte
46-65
Screwdriver serial no.
Less than 20 Bytes ,fill the underline"_".
13 Device SN
20 Bytes
String
20 Byte
67-86
Device serial no.
Less than 20 Bytes ,fill the underline"_".
14 Device Count
0000000001~9999999999
String
10 Byte
88-97
Device accumulated shutoff count after poweron
15 Job
01~50
String
2 Byte
99-100
Selected Job
16 Sequence
01~50
String
2 Byte
102-103 Selected Sequence
17 Program unit
01~99
String
2 Byte
105-106 Selected Unit Program
18 Program Name
1~6 Bytes
String
6 Byte
108-113
Setup program name, it can choose number、
capitals and lower case letters、number for program name.
19 Select Tool
01~09
String
2 Byte
115-116 Selected Tool (Current activated screwdriver)
20 Torque
Please refer tothe specification of
screwdrivers
String
9 Byte
118-126 Shutoff troque(example:0000.0000)
21 Torque unit
0~3
String
1 Byte
128
Torque unit(0: kgf.cm, 1: N.m, 2: lbf.in, 3: kgf.m)
22 Fastening time
0000.0000~0009.9990
String
9 Byte
130-138 Fastening time(ms)
23 Fastening thread
0000.0000~9999.9999
String
9 Byte
140-148 Fastening thread
Item 1 to 14 are separated by "," (ASCII 0x2c)
{DATA100,2019,11,26,16,24,48,2144,7582,4,003,TMP0005_____________,TCG-TEST____________,0000000001,01,01,01,******,01,0000.0000,0,0000.4720,0003.0000,99/99,1,1NG-F,0,}
2.Command {REQ101} : Send from Device to Host (Send barcode data to host immediately after barcode scaned a data)
Kilews KL-TCG Basic Data Output Protocol Description
(Ver1.0_20210701_01)
There are three basic data output formats send from device (TCG) to external system (DAS/AMS/Other System) via the buildin RS232 port on the device :
1.Command {REQ100} : 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)
3.Command {DATA100} : 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 {DATA100} to {REQ100} after read {CMD100} from external system
{REQ100,2019,11,26,13,39,57,2165,7603,0,0,003,TMP0005,TCG-TEST,1,1,10,10,1,10,4,1,1.008,1.09,1,0,99/99,100,}
Item 1 to 29 are separated by "," (ASCII 0x2c)
3.Command {DATA101} : Send from Device to Host (Send the data to the host immediately when the screwdriver is running)
4.Command {CMD100} : Send from Host to Device (Host respond system time to device )
{REQ101,2019,11,26,15,56,48,2175,7613,OPID0000001,TMP0005,TCG-TEST,100,}
2.The character position in the string does not contain a comma