Skip to main content

Receive Data (User Frame)

Instruction Parameters

Supported PLC Series

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

Supported Data Registers

MXYKLFTCSZRQD@DConstant
PID--
F_Name-----
Result------

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1-
CarryF11.2-

Number of Steps

Steps
4

Operands

OperandDescription
PIDThe first operand.
Entries are WORD data registers or constants.
This is the Program ID for the communication configuration program.
F_NameThe second operand.
Entries are WORD data registers or constants.
This is the index and frame to receive data from.
ResultThe third 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 F_Name.

F_Name

IndexFrame Number
Bits 8 ~ 15Bits 0 ~ 7

Indexing 1
  • The index number is the corresponding IP address in the communication program.
    • H00
    • H01
    • H02
    • H03

Indexing 2
  • The fame number is the corresponding number in the data block section of the communication program.
    • H##00
    • H##01
    • H##02

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.

Instruction Behavior

The RECV and RECVP instructions behave as follows:

  • It is required that the RECV instruction be used with a pulse contact as an execution condition, or use the RECVP instruction to prevent data reception error.
  • It is required to have an existing communication configuration program in the project.
    • If not, the instructions will not execute.

Examples