EasyManua.ls Logo

Mitsubishi Electric MELSEC-L Series - Page 155

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...
153
CHAPTER 12 COMMUNICATIONS USING A FIXED BUFFER
12
12.9 Example of Communications Using a Fixed Buffer
12.9.3 Program
(b) Receiving side (LCPU-2 side)
The following is a program on the receiving side (LCPU-2 side).
Secure sufficient device areas according to the maximum length of data sent from the send source to prevent the device
areas used for other purposes from being overwritten by the receive data.
To receive data at shorter intervals than the scan time of the CPU module, add the normally closed contact for the
completion device (M500) of the BUFRCV instruction to the execution conditions of the BUFRCV instruction as shown in
the above program. When there is no normally closed contact for the completion device (M500), the receive direction
(M5001) of the BUFRCV instruction is not turned off and on and the BUFRCV instruction may not be executed.
Process upon completion
Process upon abnormal end
<<Fixed buffer No.1 receive program>>

Table of Contents

Other manuals for Mitsubishi Electric MELSEC-L Series

Related product manuals