Communication manual TOHO ELECTRONICS INC.
DWG.No. 4B-6829-A
- 11 -
4.6.
Sample TOHO Communications
4.6.1.
Sample Communication for Reading
Example:
Request message: Request this productin which address is set as “10,” to read “Channel 1 Measuring Temperature.”
(If format = Type 1)
(Upper computer)
For the above request,
Response message: Returns the data of “Channel 1 Measuring Temperature” (00100).
(This product)
Read Request Message (to be sent by the upper computer)
S
T
X
1 0 R P V 1
S
T
X
1 0
A
C
K
B
C
C
P V 1
E
T
X
0 0 1 0 0
①
②
③
|
④
|
①
②
⑨
|
④
|
⑦ ⑧
|
|
⑥
|
|
B
C
C
E
T
X
⑦ ⑧
0 1
⑤
0 1
⑤
Code
symbol and Data
ASCII code
※
2
① Start Code
STX
02H
② Address
10
31H, 30H
③ Contents of Request
R
52H
④ First Identifier
※
1
PV1
50H, 56H, 31H
⑤ Second Identifier
※
1
01
30H, 31H
⑥ Numerical Data
00100
30H, 30H, 31H, 30H, 30H
⑦ End Code
ETX
03H
⑧ BCC Data
Request
Response
64H
01H
⑨ Acknowledgment Code
ACK
06H
※
1: See “
” for the detail about identifiers.
※
2: See “
” for the detail about ASCII codes.