Send Data - Hitachi EH-150 Series Applications Manual

Table of Contents

Advertisement

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.
s
s+7
s+8
s+9
s+B
s+D
 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.
Data conversion: through type
and binary through type
Number of send data (bytes)
1st byte
3rd byte
(n-1)
Transmits in order of 1, 2, 3, 4, ...
n-1, n.
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
System Area ( 6 words )
H0020 (Command)
Command timeout time
Top I/O address of
sending data area
Top I/O address of
receiving data area
Size of receiving data area
Figure 6.18 s parameter format (Free protocol / Data sending)
2nd byte
4th byte
...
byte
n
byte
th
th
1 word
6 - 21
Chapter6 Communication Mode
Set by user
Dummy parameter
Binary  ASCII conversion
Number of send data (bytes)
1st byte
2nd byte
[1]
[2]
[3]
[4]
3rd byte
4th byte
[5]
[6]
[7]
[8]
...
(m-1)
byte
m
byte
th
th
[m-3] [m-2]
[m-1] [m]
1word
Transmits in order of [1], [2], [3], [4], ...
[m-1], [m]

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ehv seriesHx series

Table of Contents