Creating a "PI" receive directory

  1. To create the receive directory, create a static variable PI.
  2. Select the data type ECCDFCPLC_IN for the variable PI.

[1]

Variable PI

[2]

Data types

  1. You can then read the process input data with the instruction DRPD_DAT consistently and copy them to the PI receive directory.
  2. [1]

    Instruction DPRD_DAT

    [2]

    Source code

A number of sections of the source code are explained below:

#DPRD_RET_VAL: Return value of the instruction DPRD_DAT.

LADDR: Hardware code of the fieldbus controller where the data will be received, which is allocated by the input #HW_Identifier_Input.

RECORD: Target area for the read useful data, in this case the variable PI.