EasyManua.ls Logo

Mitsubishi Electric MELSEC-L Series - Page 129

Mitsubishi Electric MELSEC-L Series
382 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...
127
CHAPTER 12 COMMUNICATIONS USING A FIXED BUFFER
12
12.4 Data Receiving Procedure
12.4.1 Data receiving using the main program (BUFRCV instruction)
(2) No procedure
The following is the receive process performed in the fixed buffer number 1 area for the connection number 1.
The items configured in the open setting become enabled when Open completion signal of an E71 is started up.
When the buffer memory area that stores Fixed buffer reception status signal is turned off and on, execute the BUFRCV
instruction.
When abnormal data is received, Fixed buffer reception status signal does not turn on. In addition, data is not stored in
the fixed buffer number 1 area.
Confirm the normal completion of the initial process. (Initial normal completion signal (X19): ON)
Establish a connection between the E71 and the connected device and confirm the normal completion of the
open process of the connection number 1.
Receive data from the connected device.
Fixed buffer reception status signal (address: 5005
H
(b0)): ON
Execute the BUFRCV instruction to read the receive data length and receive data from the fixed buffer
number 1.
Fixed buffer reception status signal (address: 5005
H
(b0)): OFF
End the receive process. If the data receive process is abnormally ended, execute the BUFRCV instruction
again to repeat the receive process.
1
2
4
3
5
Initial normal completion
signal X19
BUFRCV instruction
BUFRCV instruction
completion device
BUFRCV instruction
completion device + 1
Initial process Open process
1 scan
Receiving data
Open completion signal
(address: 5000
H [b0])
Fixed buffer reception status signal
(Address: 5005H [b0])
ACK
(TCP only)
Receiving data
1
2
3
4
5

Table of Contents

Other manuals for Mitsubishi Electric MELSEC-L Series

Related product manuals