Creating a "PI" receive directory
- To create the receive directory, create a static variable
PI. - Select the data type
ECCDFCPLC_INfor the variablePI.
[1] | Variable |
[2] | Data types |
- You can then read the process input data with the instruction
DRPD_DATconsistently and copy them to thePIreceive directory.
[1] | Instruction |
[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.