Hitachi EH-150 Series Applications Manual page 66

Table of Contents

Advertisement

Chapter6 Communication Mode
 Send after receiving
When TRNS 9 command is executed, EH-SIO will wait for data from an external device. If EH-SIO receives a data,
EH-SIO send the specified data. (Time between receive can be configured.) When data transmission is complete,
CPU module will read the data which EH-SIO received. CPU module get the data that EH-SIO received, TRNS 9
command will be completed.
 s parameter
Command for send after receiving is Hxx22.
Upper byte of command word (s+7) is interval time between receiving and sending.
For example: for command H1022
« Note »
 When this command is executed, EH-SIO will clear the receiving buffer, even if previous data remained.
 Received data become a receiving packet according to the message composition registered in the initial setting.
If EH-SIO detects an unusual factor in the received data, transmission will not be performed, and the abnormal
contents will be returned to CPU module as a return code.
Data to transmit
Please refer to command H0020 (sending only).
Execution command
Please store the parameter required for the s parameter, set the number of send data bytes and the transmission
data for the sending data area, and turn on the command execution flag (t+0).
The end of receiving after data transmission
When EH-SIO sends data properly, completion flag (t+1) will be ON, and H0022 will be set to return code area.
If the transmission of data is failed, error flag (t+2) turns on, and error code is stored in the upper byte of return
code area.
Send data
Receive data
Return code
s
System area ( 6 words )
s+7
Hxx22 (Command)
s+8
Command timeout time
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.21 s parameter format (Free protocol / Send after receiving)
160 ms (s+7 : H1022 )
User setting word
6 - 24

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ehv seriesHx series

Table of Contents