Hitachi HIDIC EH-150 Applications Manual page 65

Programable controller; ethernet module(eh-eth)
Hide thumbs Also See for HIDIC EH-150:
Table of Contents

Advertisement

The conditions to close connection are ;
(1). EH-ETH receives a request to close from user program in own station during connection opened.
(2). EH-ETH 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-ETH requests to close to other station.
The time chart is shown below in Figure 7.2.2.2.
Register name
C2CSR.OPC2
CNCR.CLS2
: By user,
Figure 7.2.2.2 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-ETH 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-ETH receives a request to close from another station.
EH-ETH 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-ETH 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.2.2.3.
Register name
C3CSR.OPC3
Figure 7.2.2.3 Procedure to close connection (2)
(1). EH-ETH closes the requested connection. After closing it, EH-ETH sets 0 to C3CSR.OPC3
---------------------------------------------------------------------------------------------------------------------- Close connection
Chapter 7 Automatic Sending/Receiving function (ASR)
(1)
(2)
(3)
: By EH-ETH
Request to close from another station
: By EH-ETH
7-10

Advertisement

Table of Contents
loading

Table of Contents