Receive Data - Hitachi EH-150 Series Applications Manual

Table of Contents

Advertisement

Chapter6 Communication Mode
6.2.5

Receive data

Received data is divided into packets according to the message composition registered in initial setting, and is
stored in a receiving buffer. The number of effective receiving packets is displayed on an input register (for port 1:
WXus2, and for port 2: WXus3).
CPU module reads one packet from the receiving buffer of EH-SIO by executing TRNS 9 command (data receive
command). Only one packet can be read by one command execution. The packets are read in the order in which
they were stored in the receiving buffer. In addition, when an error occurs at the time of data receiving, error
information is counted as one packet.
 s parameter
Data receiving command from CPU module to EH-SIO is H0010
In addition, although the sending data area, specified by s+9 and s+A, is not used in this command. Please set
dummy parameters in s+9 to s+A.
 Execution of data read
Please turn on command execution flag (t+0) after storing the parameter required for s parameter.
 End of data read
(1) Receiving data are read
When receiving data are read properly, completion flag (t+1) goes on, and H0010 is set to return code area. The
read data are stored according to s parameter s+B and s+D. (The number of data [bytes] is stored at the top of the
receiving data area.)
When read data exceed the receiving area size, surplus data part is ignored.
Return code
s
System area ( 6 words )
H0010 (Command)
s+7
Command timeout time
s+8
Top I/O address of
s+9
sending data area
Top I/O address of
s+B
receiving data area
Size of receiving data area
s+D
Figure 6.15 s parameter format (Free protocol / Data receiving)
Number of read data (bytes)
1st byte
2nd byte
3rd byte
4th byte
...
(n-1)
byte
n
th
Figure 6.16 Receiving data area format (Free protocol)
Set by user
Dummy parameter
byte
th
H00 at the time of
odd-byte reception.
6 - 16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ehv seriesHx series

Table of Contents