Skip to main content

Receive Data

Instruction Parameters

Supported PLC Series

XPnA/1RXPnBXPnEXPnFCP3A/B/P/U
CP4A~D/U
CPnECPnFBPPLC-S

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.

Examples