When "Open By Program" Is Set - Mitsubishi Electric MELSEC iQ-RJ71EN71 User Manual

Ethernet
Hide thumbs Also See for MELSEC iQ-RJ71EN71:
Table of Contents

Advertisement

■When "Open by Program" is set

Before the open/close request is received from the external device, the Ethernet-equipped module must execute the OPEN/
CLOSE instruction and enter the open/close standby state. Data can be sent and received after the open processing
completes normally.
For OPEN/CLOSE instruction, refer to the following.
 MELSEC iQ-R Programming Manual (Module Dedicated Instructions)
Ex.
Open/close processing for connection No.1
Open status
Open enable status (closed)
(Active open acceptance
enabled)
Closed status
'Initial status'
(Un\G1900024.0)
OPEN instruction
OPEN instruction
completion device
OPEN instruction
completion device +1
CLOSE instruction
CLOSE instruction
completion device
CLOSE instruction
completion device +1
'Open completion signal
(connection No.1)'
(Un\G1900000.0)
'Open request signal
(connection No.1)'
(Un\G1900008.0)
 After the module parameters are set, checks that the initial processing for the Ethernet-equipped module has completed normally. ('Initial status'
(Un\G1900024.0): On)
 Start the open processing using the OPEN instruction. ('Open request signal (connection No.1)' (Un\G1900008.0): On)
 The Ethernet-equipped module executes the open processing when an open request (SYN) is received from the external device. When the open processing
ends normally, 'Open completion signal (connection No.1)' (Un\G1900000.0) turns on and data communication is enabled.
 The Ethernet-equipped module executes the close processing when the close request (FIN) is received from the external device. When the close
processing completes normally, the open completion signal turns off and data communication is disabled.
*1 The open request (SYN) received between the initial processing normal completion to the open request standby state is handled as an
error, and the Ethernet-equipped module sends a connection forced close (RST) (to the external device that sent the open request
(SYN)).
• Change the connection setting before executing the OPEN instruction.
• After the open processing is executed, the open request cannot be canceled until the open processing
completes. Execute the close processing (CLOSE instruction) after open completes.
APPX
382
Appendix 5 TCP/IP Communications, UDP/IP Communications
Parameter
communications
completed
Power-on
Ò
Ó
*1
1 scan
Abnormally
ended
SYN + ACK
Ô
SYN
ACK
Ö
Abnormally
ended
FIN + ACK
Õ
FIN
ACK
1 scan

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents