Specifications

App - 68
Appendix 5.5 BUFRCV Instruction
This instruction reads data received from an external device through the fixed buffer
communication.
This instruction is used in the main program.
Applicable device
Internal device
(System, user)
MELSECNET/H,
MELSECNET/10
Direct J
\
Constant
Setting
data
Bit Word
File
register
Bit Word
Special module
U
\G
Index
register
Zn
K,H $
Others
(S1)
(S2)
(D1)
(D2)
(D2)
"Un"ZP.BUFRCV
[Executing condition]
BUFRCV
(D1)(S2)(S1)
[Instruction code]
Command
Setting data
Setting
data
Description Set by (*1) Data type
"Un"
Start input/output signal of the Ethernet module
(00 to FE: Two higher digits of the 3-digit input/output signal)
Binary 16 bits
(S1) Connection number (1 to 16)
User
Binary 16 bits
(S2) Head number of the devices that designate control data Binary 16 bits
(D1) Head number of the device that stores receive data Binary 16 bits
(D2)
Head number of the host station bit device that turns on for one scan upon
completion of instruction.
(D2) + 1 also turns on if the instruction execution ends abnormally.
System
Bit
The file registers for each of the local device and the program cannot be used as devices to be
used in the setting data.
Control data
Device Item Setting data Setting range Set by (*1)
(S2)+0 System area
(S2)+1 Complete status
Stores the status at completion.
0000
H : Normal completion
Other than 0000
H : Abnormal completion (error code) (*2)
System
Receive data
Device Item Setting data
Setting
range
Set by (*1)
Stores the data length of the data read from the fixed buffer data area in word units.
(The data length is the number of words or bytes by following the fixed buffer
communication.)
With procedure (for communication using binary codes) : Number of words 1 to 1017
With procedure (for communication using ASCII codes) : Number of words 1 to 508
(D1)+0
Receive data
length
No procedure (for communication using binary codes) : Number of bytes 1 to 2046
System
(D1)+1
to
(D2)+n
Receive data
Stores the data read from the fixed buffer sequentially in ascending order. System
*1 The "Set by" column indicates the following:
User : Data set by the user before executing a dedicated instruction.
System : The PLC CPU stores the execution results of a dedicated instruction.
*2 For details on the error codes at abnormal completion, refer to Q Corresponding Ethernet Interface Module User's Manual (Basic).