| selection |
| |
0812H | Decimal point position selection | 0: No decimal place 1: decimal place. (Except for the thermocouple B,S,R type, | |
all other thermocouple type are valid.) | |||
|
| ||
0813H | AT setting | OFF: 0 (default), ON : 1 | |
0814H | Control RUN/STOP setting | 0: STOP, 1: RUN (default) | |
|
|
| |
0815H | STOP setting for PID program | 0: RUN (default), 1: STOP | |
| control |
| |
0816H | Temporarily STOP for PID program | 0: RUN (default), 1: Temporarily STOP | |
| control |
|
2.Communication Transmission Format: Command Code: 02: read bits, 05: write bit, 03: read words, 06: write 1 word
ASCII Mode
Read Command |
| Read Command Response | Write Command |
| |||||
|
|
|
|
|
|
|
|
| |
STX | ’: ’ | ’: ’ | STX | ’: ’ | ’: ’ | STX | ’: ’ | ’: ’ | |
ADR 1 | ‘0’ | ‘0’ | ADR 1 | ‘0’ | ‘0’ | ADR 1 | ‘0’ | ‘0’ | |
ADR 0 | ‘1’ | ‘1’ | ADR 0 | ‘1’ | ‘1’ | ADR 0 | ‘1’ | ‘1’ | |
CMD 1 | ‘0’ | ‘0’ | CMD 1 | ‘0’ | ‘0’ | CMD 1 | ‘0’ | ‘0’ | |
CMD 0 | ‘3’ | ‘2’ | CMD 0 | ‘3’ | ‘2’ | CMD 0 | ‘6’ | ‘5’ | |
| ‘1’ | ‘0’ | Number of data | ‘0’ | ‘0’ |
| ‘1’ | ‘0’ | |
Starting data | ‘0’ | ‘8’ | (count by byte) | ‘4’ | ‘2’ | Starting data | ‘0’ | ‘8’ | |
|
|
|
|
|
| ||||
address |
|
|
|
| address |
|
| ||
‘0’ | ‘1’ | Start address | ‘0’ | ‘1’ | ‘0’ | ‘1’ | |||
|
| ||||||||
| ‘0’ | ‘0’ | data | ‘1’ | ‘7’ |
| ‘1’ | ‘0’ | |
| 1000H/081xH |
| |||||||
| ‘0’ | ‘0’ | ‘F’ | ‘0’ |
| ‘0’ | ‘F’ | ||
|
|
| |||||||
Number of data | ‘0’ | ‘0’ |
| ‘4’ | ‘1’ | Data content | ‘3’ | ‘F’ | |
(word/Bit) | ‘0’ | ‘0’ |
| ‘0’ |
| ‘E’ | ‘0’ | ||
|
|
| |||||||
| ‘2’ | ‘9’ | Address data | ‘0’ |
|
| ‘8’ | ‘0’ | |
LRC 1 | ‘E’ | ‘D’ | 1001H | ‘0’ |
| LRC1 | ‘F’ | ‘E’ | |
LRC 0 | ‘A’ | ‘C’ |
| ‘0’ |
| LRC 0 | ‘D’ | ‘3’ | |
END 1 | CR | CR | LRC 1 | ‘0’ | ‘E’ | END 1 | CR | CR | |
END 0 | LF | LF | LRC 0 | ‘3’ | ‘3’ | END 0 | LF | LF | |
|
|
| END 1 | CR | CR |
|
|
| |
|
|
| END 0 | LF | LF |
|
|
|
Write Command Response
STX | ’: ’ | ’: ’ | |
ADR 1 | ‘0’ | ‘0’ | |
ADR 0 | ‘1’ | ‘1’ | |
CMD 1 | ‘0’ | ‘0’ | |
CMD 0 | ‘6’ | ‘5’ | |
| ‘1’ | ‘0’ | |
Starting data | ‘0’ | ‘8’ | |
|
| ||
address |
|
| |
‘0’ | ‘1’ | ||
| |||
| ‘1’ | ‘0’ | |
| ‘0’ | ‘F’ | |
Data content | ‘3’ | ‘F’ | |
‘E’ | ‘0’ | ||
| |||
| ‘8’ | ‘0’ | |
LRC1 | ‘F’ | ‘E’ | |
LRC 0 | ‘D’ | ‘3’ | |
END 1 | CR | CR | |
END 0 | LF | LF | |
|
|
| |
|
|
|
LRC checksum:
LRC check is the added sum from “Address” to “Data content”. For example, 01H + 03H + 10+ 00H + 00H + 02H = 16H, then take the
complementary of 2, EAH.
RTU Mode
Read Command |
| Read Command Response | Write Command |
| Write Command Response |
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
ADR | 01H | 01H | ADR | 01H | 01H | ADR | 01H | 01H | ADR | 01H | 01H |
|
CMD | 03H | 02H | CMD | 03H | 02H | CMD | 06H | 05H | CMD | 06H | 05H |
|
Starting data | 10H | 08H | Number of data | 04H | 02H | Starting data | 10H | 08H | Starting data | 10H | 08H |
|
address | 00H | 10H | (count by byte) | address | 01H | 10H | address | 01H | 10H |
| ||
|
|
| ||||||||||
Number of data | 00H | 00H | Start address | 01H | 17H | Data content | 03H | FFH | Data content | 03H | FFH |
|
02H | 09H | data | F4H | 01H | 20H | 00H | 20H | 00H |
| |||
(word/Bit) |
| |||||||||||
1000H/081xH |
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
| |
CRC 1 | C0H | BBH | Address | 03H |
| CRC 1 | DDH | 8FH | CRC 1 | DDH | 8FH |
|
CRC 0 | CBH | A9H | data1001H | 20H |
| CRC 0 | E2H | 9FH | CRC 0 | E2H | 9FH |
|
|
|
| CRC 1 | BBH | 77H |
|
|
|
|
|
|
|
|
|
| CRC 0 | 15H | 88H |
|
|
|
|
|
|
|
CRC (Cyclical Redundancy Check) is obtained by the following steps.
1.Load in a
2.Do an exclusive OR operation of the first byte of the data and low byte of CRC register, and place the operation result back to the CRC register.
3.Right shift the bits in the CRC register and fill the high bits with “0”. Check the removed lowest bit.
4.If the removed lowest bit is “0”, repeat step 3. Otherwise, do an exclusive OR operation of the CRC register and the value A001H and place the operation result back to the CRC register.
5.Repeat step 3 and 4 until the 8 bits (1 byte) are all right shifted.
6.Repeat step 2 and 5 and calcualte all the bits to obtain CRC check.
Please be aware of the high/low byte transmission order in the CRC register.
20