Multi Loop Controller
14
Byte size
1 2 3 1 1
Description STX Address WHO CR LFA
⑸ WHO Command
- Can see product info. with WHO Command
<Transmission frame>
Reception frame
Byte size
1 2 3 1 2 1 - 1 1
Description STX Address WHO
,
OK
,
Name & Version CR LF
⑹ Reply at error
- When receiving Command, this product transmits reception frame proper to corresponding frame
However, if there is an error in reception Command, following NG Frame is transmitted.
<Transmission frame>
Byte size
1 2 3 1 2 2 1 1
Description STX Address Command
,
NG NG Code CR LF
- Details of NG Code are as follows
NG Code Name Details
0x01 Command Not used Command
0x02 Register Not used Register
0x03 Number
Number of communications and number of
Data do not match
0x04 Data Data is out of Hex (0x0 ~ 0xF)
0x08 Delim Terminating string (CR, LF) error
0x10 SUM Inconsistent SUM value
0x18 Over range Value exceeding provided address scope
0x00 Misc Others
- : Byte size changes depending on model name and version
3.1.2 PC-LINK with SUM protocal
- Protocol that CHECK SUM is added to PC-LINK Protocol
<Frame structure>
STX Address Command Data SUM CR LF
STX 01 ~ 99 Refer to each Command
Check
SUM
0x0D
0x0A
•
Check Sum is value generated by adding every 1 Byte of string ASCII code until SUM
• Convert generated value into 2 characters of Hexadecimal number
ex) STX 0 1 WH 0 4 F CR LF
Check Sum=4F, Check Sum = “0”(0x30) + “1”(0x31)+”W”(0x57+”H”(0x48)+”O”(0x4F)
=0x30 + 0x31 + 0x57 + 0x48 + 0x4F= 0x14F
As Check Sum is 1byte character, it becomes 0x4F, and then this changes to ASCII Code “4F.”