EasyManua.ls Logo

Hitachi EH-150 - Page 69

Hitachi EH-150
176 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7 Automatic Sending/Receiving function (ASR)
The conditions to close connection are ;
(1) EH-ETH2 receives a request to close from user program in own station during connection opened.
(2) EH-ETH2 receives a request to close from other stations during connection opened.
The following description is regarding the way to close connection from user program.
- In case EH-ETH2 requests to close to other station.
The time chart is shown below in Figure 7.10.
Register name
C2CSR.OPC2
(1) (2) (3)
CNCR.CLS2
: By user, : By EH-ETH2
Figure 7.10 Procedure to close connection (1)
(1) Confirm ASR connection 2 is opened (C2CSR.OPC2 is 0). Then set 1 to CNCR.CLS2.
----------------------------------------------------------------------------------------------------------------------
Request to close
(2) EH-ETH2 receives the request and close the connection 2 and then set 0 to C2CSR.OPC2.
----------------------------------------------------------------------------------------------------------------------
Close connection
(3) Confirm the connection closed (C2CSR.OPC2 is 0) and cancel the request to close (CNCR.CLS2=0).
-----------------------------------------------------------------------------------------------------
Cancellation of request to close
- In case EH-ETH2 receives a request to close from another station.
EH-ETH2 has two types of operation mode after receiving a request from another stations, which is called “Close
mode control”. This is switched by “Close mode control register bit (CMCR)”.
(a) CMCR.CMn = 0 (“Close mode control” is disabled. “n” is ASR connection number)
EH-ETH2 closes a requested connection from other station without any other conditions. This means user
programs for monitoring status or for closing connection are not required.
The time chart to close connection 3 is shown in
Figure 7.11.
Register name
C3CSR.OPC3
Re
q
uest to close from another station
: By EH-ETH2
Figure 7.11 Procedure to close connection (2)
(1) EH-ETH2 closes the requested connection. After closing it, EH-ETH2 sets 0 to C3CSR.OPC3
----------------------------------------------------------------------------------------------------------------------
Close connection
7-11

Table of Contents

Related product manuals