
5
Startup
TIA sample project
Manual – ECDriveS
®
28
5.4.2
Implementing the sample project
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]
[2]
25672455947
[1]
Variable
PI
[2]
Data types
3. You can then read the process input data with the instruction
DRPD_DAT
consist-
ently and copy them to the
PI
receive directory.
[1]
[2]
25673743115
[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
.
25938274/EN – 01/2019
Summary of Contents for ECDriveS
Page 2: ...SEW EURODRIVE Driving the world...
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......