beautypg.com

Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 270

background image

L-force | PLC Designer - SoftMotion

SoftMotion programming examples

Single-axis motion control in CFC with visualisation template

270

L

DMS 5.2 EN 03/2011 TD17

13.2

Single-axis motion control in CFC with visualisation template

Tip!
See also the example project PLCopenSingle2.pro provided with SoftMotion.

As the following example shows, you can use any IEC language for programming, not just

ST.
This example is designed to help you to understand the start and interrupt mechanism of

the function POUs used in the example. The various start modes for the MC_MoveAbsolute

program organisation unit for rotary drives can be tested.
Create a PLC configuration and task configuration as in the previous example, but this time

for a rotary drive with period 360. The "Ipo" program is written in CFC and only contains

three calls of instances of the MC_Power (required to activate the axis), MC_MoveAbsolute

and MC_MoveVelocity program organisation units:

We recommend that the POU inputs are initialised, so that you do not have to keep on

entering the values every time you start this test application.