Instruction Parameters
Supported PLC Series
| PLC-AES | PLC-FB | PLC-ES |
|---|---|---|
| ✓ | ✓ | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Slot | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
| D | ✓ | ✓ | ✓ | ✓ | ✓ | – | ✓ | ✓ | – | ✓ | – | ✓ | ✓ | ✓ | – |
| Size | ✓ | ✓ | ✓ | ✓ | ✓ | – | ✓ | ✓ | – | ✓ | – | ✓ | ✓ | ✓ | ✓ |
| Result | ✓ | ✓ | ✓ | ✓ | ✓ | – | ✓ | ✓ | – | ✓ | – | ✓ | ✓ | ✓ | – |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | ✓ |
| Zero | F11.1 | – |
| Carry | F11.2 | – |
Number of Steps
| Steps |
|---|
| 5 |
Operands
| Operand | Description |
|---|---|
| Slot | The first operand. Entries are only constants. This is the slot number of the communication module and port. |
| D | The second operand. Entries are only WORD data registers. This is where the data received is stored. |
| Size | The 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). |
| Result | The 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 Number | Communication Port | Slot Number | |
|---|---|---|---|
| H | 0A | 1 | B |
| Hexadecimal | 2 Digits in Hexadecimal | 1 Digit in Hexadecimal | 1 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 Number | Communication Port | Slot | Example |
|---|---|---|---|
| Local Base | Channel 1 | Slot Number 5 | H0005 or 5 |
| 1st Expansion | Channel 1 | Slot Number 3 | H0103 |
| 10th Expansion | Channel 1 | Slot Number 7 | H0A07 |
| 14th Expansion | Channel 2 | Slot Number 12 | H0D1C |
| 16th Expansion | Channel 2 | Slot Number 10 | H101A |
Module/Slot (CM3)
| Module | Communication Port | Slot | Example |
|---|---|---|---|
| CPU | Channel 1 | Slot 0 | H0000 or 0 |
| 1st Expansion | Channel 1 | Slot 1 | H0001 or 1 |
| 5th Expansion | Channel 1 | Slot 5 | H0005 or 5 |
| 10th Expansion | Channel 2 | Slot 10 | H001A |
| 15th Expansion | Channel 2 | Slot 15 | H001F |
Result Format Execution
| Bit Number | Description |
|---|---|
| Bit 0 | Transmission Completed: ON (1 Scan) Transmission Failed: ON (Always) |
| Bit 1 | Transmission Failed: ON (Always) |
| Bit 2 ~ 7 | OFF (Not Used) |
| Bit 8 ~ 15 | Error 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 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 register, D0. The result of the received transmission is saved in the data register, L00.

Memory Monitor

The above example shows the binary result if there was no 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. 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 register, D2. The result of the received transmission is saved in the data register, L30.

Memory Monitor

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

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