Chapter6 Communication Mode
6 - 21
F
ree
P
ro
to
col
6.2.6
Send data
There are three types of data transmission: Sending only, Receive after sending, Send after receiving. The data
sending type is specified by TRNS 9 command.
Data sending
Upon execution of TRNS 9 command, the specified data are transmitted from EH-SIO. When data are transmitted
from EH-SIO, TRNS 9 command will be completed.
TRNS 9 command s parameter at time of data transmission
Data sending command from EH-SIO to external device is H0020
In addition, although the receiving data area, specified by s+B and s+D, is not used in this command. Please set
dummy parameters in s+B to s+D.
Figure 6.18 s parameter format (Free protocol / Data sending)
Data to transmit
Store the sending data before execution of the TRNS 9 command. Set the number of send data [bytes] into the
top of the sending data area. Data should become after the next word.
Figure 6.19 Sending data area format (Free protocol / Data sending)
Execute data sending
Please turn on command execution flag (t+0) after storing the parameter required for s parameter and send data
for the sending data area.
Return code
H0020 (Command)
s
s+7
s+8
s+9
s+B
s+D
System Area ( 6 words )
Set by user
Size of receiving data area
Top I/O address of
receiving data area
Command timeout time
Top I/O address of
sending data area
Dummy parameter
Number of send data (bytes)
1st byte
…
2nd byte
3rd byte
4th byte
(n-1)
th
byte
n
th
byte
Number of send data (bytes)
1st byte
[1] [2]
…
2nd byte
[3] [4]
Binary
ASCII conversion
3rd byte
[5] [6]
4th byte
[7] [8]
(m-1)
th
byte
[m-3] [m-2]
m
th
byte
[m-1] [m]
Transmits in order of 1, 2, 3, 4, …
n-1, n.
Transmits in order of [1], [2], [3], [4], …
[m-1], [m]
Data conversion: through type
and binary through type
1word
1 word
Содержание EH-150 Series
Страница 1: ...HITACHI PROGRAMMABLE CONTROLLER Serial Communication Module EH SIO APPLICATION MANUAL NJI 443F X ...
Страница 2: ......
Страница 10: ...M E M O ...
Страница 30: ...Chapter 4 Installation 4 10 M E M O ...
Страница 156: ...Chapter 7 System setup 7 12 M E M O ...
Страница 164: ...Chapter 8 Daily and Periodic Inspection 8 8 M E M O ...