1558
16 ETHERNET INSTRUCTIONS
16.3 Fixed Buffer Communications Instructions
■Receive data
*1 This setting range is applicable when the network type is "Q-compatible Ethernet".
• These instructions read the receive data (fixed buffer communications area) of the connection specified by (s) 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 BUFRCVS instruction is used in interrupt programs and processing is completed in a single scan.
When the BUFRCVS instruction reads receive data from the same connection, it cannot be used in
combination with the BUFRCV instruction.
Operand: (d)
Device Item Description Setting range Set by
+0 Receive data length The length of the data read from the fixed buffer
receive data area is stored.
(The data length is represented in words or bytes
according to the procedure of fixed buffer
communications.)
With procedure (binary):
Number of words
1 to 5113
(1 to 1017)
*1
System
With procedure (ASCII):
Number of words
1 to 2556
(1 to 508)
*1
Without procedure (binary):
Number of bytes
1 to 10238
(1 to 2046)
*1
+1 to + Receive data The data read from the fixed buffer receive data areas is stored sequentially in
ascending order of addresses.
System
[Reading receive data from the sending station to the own station]
No.: Connection No.
Error code
(SD0)
Description
C000H to CFFFH MELSEC iQ-R Ethernet User's Manual (Application)
BUFRCVS
(d)
·
·
·
·
·
No.1
No.16
No.n
No.1
No.16
No.n
BUFSND
CPU module CPU module
[Own station] [Sending station]
Ethernet moduleEthernet module
Receive data length
Receive data
Fixed buffer data area Fixed buffer data area
0 END
Sequence scan
BUFRCVS instruction
Execution of the instruction
Interrupt program
Storing receive data
Receiving data