Chapter 7 Automatic Sending/Receiving function (ASR)
(b)
CMCR
.CMn = 1 (“Close mode control” is enabled. “n” is ASR connection number)
Even if EH-ETH2 receives a request to close from other station, EH-ETH2 does not close the connection unless a
user program is executed for closing the connection.
The time chart to close connection 4 is shown in Figure 7.12.
Register name
C4CSR
.OPC4
(1)
(2)
(4)
C4CSR
.CRO4
(3)
CNCR
.CLS4
Request from another station
: By user, : By EH-ETH2
Figure 7.12
Procedure to close connection (3)
(1) When EH-ETH2 receives a request to close connection 4 from another station, “Close requested bit” goes high.
(
C4CSR
.CRO4 is 1)
--------------------------------------------------------------------------------
Receiving a request to close from another station
(2) Confirm the connection opened (
C4CSR
.OPC4 is 1) and the request received (
C4CSR
.CRO4 is 1), and then set 1
to
CNCR
.CLS4.
----------------------------------------------------------------------------------------------------------------------
Request to close
(3) When EH-ETH2 receives a request to close from user program, EH-ETH2 closes the connection 4 and clear
C4CSR
.OPC4.
------------------------------------------------------------------------
Clear “Request to close bit” and close the connection.
(4) Confirm the connection closed (
C4CSR
.OPC4 is 0) and cancel the request to close (
CNCR
.CLS4 is 0)
-----------------------------------------------------------------------------------------------------
Cancellation of request to close
7-14