Single axis motion control, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 942

Advertising
background image

L-force | PLC Designer

Device Editors

940

DMS 4.1 EN 03/2011 TD29

Single Axis Motion Control
(See the corresponding sample project PLCopenSingle.pro)
This example shows how a drive can be controlled via modules matching the PLCopen
standards:
In the device tree a virtual drive has been inserted below SoftMotion General Drive
Pool
:

Abb. 517 Device Tree, Drive inserted

By a double-click on the new device Drive the following configuration dialog will open:

Abb. 518 SoftMotion Drive: Basic, Dialog in offline mode

In the Task Configuration set up the call of program MOTION_PRG, which will create a
movement on the given axis.
See in the following how to create this program:
Add a program named MOTION_PRG, implementation language ST, and declare the
following variables:

PROGRAM MOTION_PRG
VAR
iStatus: INT;
Power: MC_Power;
MoveAbsolute: MC_MoveAbsolute;
p:REAL:=100;
END_VAR

Advertising