
5
Startup
TIA sample project
Manual – ECDriveS
®
29
Creating a "PO" send directory
1. To create the send directory, create a static variable
PO
.
2. Select the data type
ECCDFCPLC_OUT
for the variable
PO
.
3. Select the instruction
DPWR_DAT
.
[3]
[1]
[2]
25673749899
[1]
Variable
PO
[2]
Data type
ECCDFCPLC_OUT
[3]
Instruction
DPWR_DAT
Assigning control commands
You can assign the control commands via the PO structure.
Example of jog mode:
The right drive is enabled with the command
RightMDRControl.Run_MDR
.
You can select the direction of rotation with the command
RightMDRCon-
trol.MDR_Direction
:
•
#PO.RightMDRControl.Run_MDR:= true;
•
#PO.RightMDRControl.MDR_Direction:= false;
You can set the setpoint speed, acceleration, and deceleration with numerical values:
•
#PO.RightMDRSpeed:= xxx;
•
#PO.RightMDRAccel:= xxx;
•
#PO.RightMDRDeccel:= xxx;
Processing actual values
You can retrieve the actual values from the PI structure.
With the help of the structure of the command
PI.LeftMDRDiagnostic
, you can
evaluate the error bits of the left drive:
•
#PI.LeftMDRDiagnostic.Overheat;
•
#PI.LeftMDRDiagnostic.MaxTorque;
25938274/EN – 01/2019
Содержание ECDriveS
Страница 2: ...SEW EURODRIVE Driving the world...
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......