Chapter 7 Automatic Sending/Receiving function (ASR)
EH-ETH2 is able to request to open connection to other stations by setting “Request to open bit” to high.
The procedure to open ASR connection 1 is shown as Figure 7.8.
Register name
C1CSR
.OPC1
(1)
(5)
(6)
CNCR
.OPN1
(2)
(3)
C1ESR
.OE1
(4)
EC1CR
.OEC1
: By user, : By EH-ETH2
Figure 7.8
Procedure to open connection
(1) Confirm ASR connection is not opened (
C1CSR
.OPC is 0) and the status is not open error (
C1CSR
.OPC is 0).
Then set 1 to
CNCR
.OPN1.
------------------------------------------------------------------------------------------------------------------------
Request to open
(2) EH-ETH2 receives the request and set 1 to
C1ESR
.OE1 because it is not ready to be opened.
-----------------------------------------------------------------------------------------------------------------------------
Open error
(3) Confirm the open error reply and set 0 to
CNCR
.OPN1 and 1 to E
C1CR
.OEC1
-------------------------------------------------------------------------
Cancellation of the request to open and clear error bit
(4) EH-ETH2 receives the request to clear and clear
C1ESR
.OE1 by setting 0.
--------------------------------------------------------------------------------------------------------------
Clear the open error bit
(5) Examine the error cause and remove. Then set 0 to
EC1CR
.OEC1 and set 1 to
CNCR
.OPN1 again after
confirmation of
C1CSR
.OPC=0 and
C1ESR
.OE1=0.
------------------------------------------------------------
Cancellation of the request to clear error bit, and request to open
(6) EH-ETH2 receives the request and open the ASR connection 1 and set 1 to
C1CSR
.OPC1
--------------------------------------------------------------------------------------------------------------------
Connection opened
(7) Confirm the connection opened (
C1CSR
.OPC=1) and cancel the request to open (
CNCR
.OPN1=0)
-------------------------------------------------------------------------------------------------
Cancellation of the request to open
7-7