1556
16 ETHERNET INSTRUCTIONS
16.3 Fixed Buffer Communications Instructions
• These instructions read the receive data (fixed buffer communications area) of the connection specified by (s1) of the
module specified by (U). These instructions can be used only for the connections for which "fixed buffer communication
(with/without procedure)" is set as the communication means.
• The execution status and the completion status of the BUFRCV instruction can be checked with the completion device (d2)
and the completion status indication device (d2)+1.
• The following figure shows the operation at completion of the BUFRCV instruction.
• The BUFRCV instruction is executed on the rising edge (OFF to ON) of the socket/fixed buffer receive status signal
(Un\G1900016 to Un\G1900023).
When the BUFRCV instruction reads receive data from the same connection, it cannot be used in combination
with the BUFRCVS instruction (for use in interrupt programs).
[Reading receive data from the sending station to the own station]
No.: Connection No.
• Completion device (d2)
This device turns on during END processing of the scan where the BUFRCV instruction completes, and turns off during the next END processing.
• Completion status indication device (d2)+1
This device turns on or off depending on the completion status of the BUFRCV instruction.
When completed successfully: The device remains off.
When completed with an error: The device turns on during END processing of the scan where the BUFRCV instruction completes, and turns off during the next
END processing.
Error code
((s2)+1)
Description
C000H to CFFFH MELSEC iQ-R Ethernet User's Manual (Application)
BUFRCV
(d1)
·
·
·
·
·
No.1
No.16
No.n
No.1
No.16
No.n
BUFSND
CPU module
CPU module
[Own station] [Sending station]
Ethernet module
Ethernet module
Receive data length
Receive data
Fixed buffer data area Fixed buffer data area
END0 END0END0END0
OFF
OFF
OFF
OFF
ON
ON
Sequence scan
BUFRCV instruction
Completion device (d2)
Completion status
indication device (d2)+1
Completed with an error
Completed successfully
1 scan
Storing receive data
Receiving data
Execution of the instruction