Mitsubishi Melsec-L Series User Manual page 176

Ethernet interface module
Hide thumbs Also See for Melsec-L Series:
Table of Contents

Advertisement

(3) Functions
• This instruction reads the receive data (for fixed buffer communications) of the connection specified by (S1)
for the module specified by Un.
[Operation while the BUFRCVS instruction is being executed]
Program
BUFRCVS instruction
• The Z.BUFRCVS instruction is executed in an interrupt program, and the process is completed within one
scan.
● To read receive data using an interrupt program, configure both the interrupt settings and interrupt pointer setting
parameters of the programming tool. (
● When receive data is read from the same connection, the BUFRCV instruction (for the main program) cannot be used
together.
(4) Errors
If a dedicated instruction ends with an error, Diagnostic errors (SM0) turns on, and the error code is stored in
SD0.
(5) Program example
The following shows a sample program that reads the receive data from the fixed buffer of connection number 2
(when the I/O signals of the E71 are X/Y00 to X/Y1F).
174
CPU module
(D1)
Receive data length
Receive data
:
:
Receive data
Receiving data
E71
Fixed buffer data area
No.1
BUFRCVS
No.n
No.16
Scan
Interrupt program
Executed
Storing
the receive data
Page 98, Section 10.5.1)
:
:
END process
Enable the interrupt
program.
Execute the BUFRCVS
instruction.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lj71e71-100

Table of Contents