Communication manual TOHO ELECTRONICS INC.
DWG.No. 4B-6829-A
- 12 -
4.6.2.
Sample Communication for Writing
Example:
Request message: To change “Channel 3 Input Type” to “Pt100 (13)” and write it
into this product.
(Upper computer)
For the above request,
Response message: Return the message to tell that the request message has been received.
(This product)
※
Read the data separately to check if the data is written correctly.
Write Request Message (to be sent by the upper computer)
S
T
X
0 1
A
C
K
B
C
C
E
T
X
S
T
X
0 1 W
B
C
C
I N P
E
T
X
0 0 0
1 3
①
②
③
|
④
|
⑦ ⑧
|
|
⑥
|
|
①
②
⑦ ⑧
⑨
0
3
⑤
Code
symbol and Data
ASCII code
※
2
① Start Code
STX
02H
② Address
01
30H, 31H
③
Contents of Request
W
57H
④ First Identifier
※
1
INP
49H, 4EH, 50H
④ Second Identifier
※
1
03
30H, 33H
⑤ Numerical Data
00013
30H, 30H, 30H, 31H, 33H
⑥ End Code
ETX
03H
⑦ BCC Data
Request
Response
31H
06H
⑧ Acknowledgment Code
ACK
06H
※
1: See “
” for the detail about identifiers.
※
2: See “
” for the detail about ASCII codes.