225
CHAPTER 15 DEDICATED INSTRUCTIONS
15
15.10 Z.BUFRCVS
(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]
• 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. ( Page 131, Section 12.5.1)
● 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).
Receive data length
Receive data
:
:
Receive data
(D1)
No.1
No.n
:
:
No.16
Fixed buffer data area
E71
BUFRCVS
CPU module
END processScan
Interrupt program
Executed
BUFRCVS instruction
Program
Receiving data
Storing
the receive data
Execute the BUFRCVS
instruction.
Enable the interrupt
program.