The leader in industrial automation and control solutions

Instruction Parameters

Supported PLC Series

PLC-AESPLC-FBPLC-ES

Supported Data Registers

MXYKLFTCSZRQD@DConstant
Slot
D
Size
Result

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1
CarryF11.2

Number of Steps

Steps
5

Operands

OperandDescription
SlotThe first operand.
Entries are only constants.
This is the slot number of the communication module and port.
DThe second operand.
Entries are only WORD data registers.
This is where the data received is stored.
SizeThe third operand.
Entries are data registers or constants.
This defines the length of the data received in bytes.

The value range is 1 byte ~ 500 bytes (250 WORDs).
ResultThe fourth operand.
Entries are only WORD data registers.
This is where the result of the receiving transmission is stored.

Assignment Example

The following example shows how to assign values to Slot.

Slot

Base NumberCommunication PortSlot Number
H0A1B
Hexadecimal2 Digits in Hexadecimal1 Digit in Hexadecimal1 Digit in Hexadecimal

Communication Ports

There are multiple communication ports dependent on the communication module.

  • Use 0 for channel 1.
  • Use 1 for channel 2.

Base/Slot (CM1)

Base NumberCommunication PortSlotExample
Local BaseChannel 1Slot Number 5H0005 or 5
1st ExpansionChannel 1Slot Number 3H0103
10th ExpansionChannel 1Slot Number 7H0A07
14th ExpansionChannel 2Slot Number 12H0D1C
16th ExpansionChannel 2Slot Number 10H101A

Module/Slot (CM3)

ModuleCommunication PortSlotExample
CPUChannel 1Slot 0H0000 or 0
1st ExpansionChannel 1Slot 1H0001 or 1
5th ExpansionChannel 1Slot 5H0005 or 5
10th ExpansionChannel 2Slot 10H001A
15th ExpansionChannel 2Slot 15H001F

Result Format Execution

Bit NumberDescription
Bit 0Transmission Completed: ON (1 Scan)
Transmission Failed: ON (Always)
Bit 1Transmission Failed: ON (Always)
Bit 2 ~ 7OFF
(Not Used)
Bit 8 ~ 15Error Code
(0 = No error)

Notice

Error Flag (F11.0) Notice

The error flag, F11.0, will be ON for one scan when the address of the data register assigned by @D exceeds the range of the data register, D. The range of the data register, D, is dependent on the CPU type. F11.0 turns ON if the value of the data register assigned to Size exceeds its range.

Execution Condition

It is required that the RCV instruction be used with a pulse contact as an execution condition, or use the RCVP instruction to prevent data reception error.

Ladder Diagram Examples

RCV

The RCV instruction receives Size bytes of a frame from a communication module, Slot, and saves the data in an assigned data register, D. The result o

The RCV instruction receives Size bytes of a frame from a communication module, Slot, and saves the data in an assigned data register, D. The result of the received transmission is saved in an assigned data register, Result.

When the contact, M5.0, is powered ON (1), 20 bytes of the frame from the communication module at slot H0001 are received and saved in the data regist

When the contact, M5.0, is powered ON (1), 20 bytes of the frame from the communication module at slot H0001 are received and saved in the data register, D0. The result of the received transmission is saved in the data register, L00.

Ladder Diagram Example for MapleLogic RCV/RCVP instruction.

Memory Monitor

The above example shows the binary result if there was no error.

The above example shows the binary result if there was no error.

The above example shows the binary result if there was an error.

The above example shows the binary result if there was an error.

RCVP

The RCVP one-shot instruction receives Size bytes of a frame from a communication module, Slot, and saves the data in an assigned data register, D. Th

The RCVP one-shot instruction receives Size bytes of a frame from a communication module, Slot, and saves the data in an assigned data register, D. The result of the received transmission is saved in an assigned data register, Result. Every time this instruction executes, it energizes the output only once.

When the contact, M6.0, is powered ON (1), 50 bytes of the frame from the communication module at slot H0001 are received and saved in the data regist

When the contact, M6.0, is powered ON (1), 50 bytes of the frame from the communication module at slot H0001 are received and saved in the data register, D2. The result of the received transmission is saved in the data register, L30.

Ladder Diagram Example for MapleLogic RCV/RCVP instruction.

Memory Monitor

The above example shows the binary result if there was no error.

The above example shows the binary result if there was no error.

The above example shows the binary result if there was an error.

The above example shows the binary result if there was an error.