SAMWONTECH
1st Edition of TEMI2000_Series IM : Dec. 15. 2008 Page 7 / 58
5. Communication Command
5.1 The Frame Structure of standard protocol
The frame structure of protocol transmitting upper-level network system to TEMI2500
①
②
③
④
⑤
⑥
⑦
⑧
STX
Address
Command
,
Data
SUM
CR
LF
① Protocol Header
The beginning of communication command with STX (Start of Text), ASCII string with 0x02.
② Slave TEMI2500 Address
Slave unit address of TEMI2500.
③ Command
Function Command for communication. (Refer to 5.2 ~ 5.10).
④ Delimiter
Symbolize to separate Command and Data by Comma. (',')
⑤ Data
Formal text strings regulated by communication command rule.
⑥ Check Sum
-‘SUM' protocol is a more sophisticated one which includes Check Sum as an error check.
- Check Sum is calculated as following.
1) Add the ASCII code of characters from the character next to STX one by one up to the character prior to SUM
2) Represent the lowest one byte of the sum as a hexadecimal notation (2 characters).
⑦, ⑧ Protocol Tail
ASCII code to close communication command by indicating CR(0xOD) and LF(0xOA).