222
• Completion of the BUFRCV instruction can be checked with Completion device (D2)+0 and (D2)+1.
[Operation while the BUFRCV instruction is being executed]
• The ZP.BUFRCV instruction is executed on the rising edge (OFF ON) of the read command (bit for a
connection with the connected device set in Fixed buffer reception status signal (address: 5005
H
)).
● Do not perform a receive process using I/O signals and using the dedicated instruction together for the same connection.
Doing so will result in malfunction.
● When receive data is read from the same connection, the BUFRCVS instruction (for an interrupt program) cannot be
used together.
(5) Errors
If a dedicated instruction ends with an error, Completion device (D2)+1 turns on, and the error code is stored in
Completion status (S2)+1.
Item Description
Completion device (D2)+0:
Turns on at the END process of the scan where the BUFRCV instruction is completed and
turns off at the next END process.
Completion device (D2)+1:
Turns on and off depending on the completion status of the BUFRCV instruction.
• Normal completion: Stays off and does not change.
• Abnormal end: Turns on at the END process of the scan where the BUFRCV instruction
is completed and turns off at the next END process.
Scan Scan
END
process
END
process
Scan
END
process
Receiving data
Executed
Program
BUFRCV instruction
Completion device
Completion device + 1
Abnormally ended
Storing the receive data