EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R02CPU - When Open by Program Is Set

Mitsubishi Electric MELSEC iQ-R02CPU
416 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
382
APPX
Appendix 5 TCP/IP Communications, UDP/IP Communications
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
*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.
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.
Ò
Ó
Ö
ÔÕ
ACK
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)
Parameter
communications
completed
1 scan
1 scan
FINACKSYN
SYN + ACK FIN + ACK
'Open request signal
(connection No.1)'
(Un\G1900008.0)
Power-on
*1
Abnormally
ended
Abnormally
ended

Table of Contents

Related product manuals