EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R04ENCPU - Send Procedure; Procedure Exists

Mitsubishi Electric MELSEC iQ-R04ENCPU
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...
1 FUNCTIONS
1.5 Communications Using the Fixed Buffer
71
1
Send procedure
The following figure shows the processing when sending data from the RJ71EN71 or the RnENCPU (network part) to the
external device.
Procedure exists
The following figure shows the send processing for the fixed buffer No.1 area corresponding to the connection No.1.
*1 Adjust the monitor timer value with the parameters. ( Page 260 Timer Settings for Data Communication)
The details of the open setting are enabled at the rising edge of the RJ71EN71 and the RnENCPU (network
part) open completion signal.
Send the next data (command) after the data exchange has been completed for the previous data
(command) send.
When sending or receiving data to multiple external devices, the data can be sent sequentially. However, to
avoid communication trouble, it is recommended to switch the external device and send/receive the data.
When using a connection opened with UDP/IP, the setting value in the communication address setting area
can be changed before sending or receiving to switch the external device.
Normal completion of the initial processing is checked. ('Initial status' (Un\G1900024.0): On)
A connection is established between the external device and the RJ71EN71 or the RnENCPU (network part), and normal completion of the connection No.1
open processings is checked. ( Page 378 TCP/IP Communications, UDP/IP Communications)
The BUFSND instruction is executed. (Sends data)
The data length amount of send data in the fixed buffer No.1 area is sent to the external device.
When the external device receives the data form the RJ71EN71 or the RnENCPU (network part), returns a response to the RJ71EN71 or the RnENCPU
(network part).
When a response is received from the external device, the RJ71EN71 or the RnENCPU (network part) finishes data send. If the response is not returned
within the response monitor timer value, a data send error occurs.
*1
If the data send completes abnormally, execute the BUFSND instruction again and start
the send processing.
×
Ò
Ó
Ô
ÕÖ
Initial processing Open processing Sending data
'Initial status' (Un\G1900024.0)
'Open completion signal
(connection No.1)'
(Un\G1900000.0)
BUFSND instruction
BUFSND instruction completion
device
BUFSND instruction completion
device +1
Receiving a response
Response
Sending data ACK
(TCP only)
ACK
(TCP only)
1 scan

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R04ENCPU

Related product manuals