Receive Data
Instruction Parameters
Supported PLC Series
| XPnA/1R | XPnB | XPnE | XPnF | CP3A/B/P/U CP4A~D/U | CPnE | CPnF | BP | PLC-S |
|---|---|---|---|---|---|---|---|---|
| ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
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
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.