Hitachi EH-150 Applications Manual page 69

Ethernet module 2 eh-eth2
Hide thumbs Also See for EH-150:
Table of Contents

Advertisement

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
CNCR .CLS2
: By user,
Figure 7.10
(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
Figure 7.11
(1) EH-ETH2 closes the requested connection. After closing it, EH-ETH2 sets 0 to C3CSR .OPC3
---------------------------------------------------------------------------------------------------------------------- Close connection
Chapter 7 Automatic Sending/Receiving function (ASR)
(1)
(2)
(3)
: By EH-ETH2
Procedure to close connection (1)
Request to close from another station
: By EH-ETH2
Procedure to close connection (2)
7-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents