5 drive control with the aid of the cnc editor, 1 direct creation of the outqueue, Drive control with the aid of the cnc editor – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 275: Direct creation of the outqueue, L-force | plc designer - softmotion

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

275

L-force | PLC Designer - SoftMotion

SoftMotion programming examples

Drive control with the aid of the CNC editor

13.5

Drive control with the aid of the CNC editor

The basic structure of a possible "PLC Designer" IEC program that can implement paths

designed in the CNC editor is described below.
As described in the chapter "

CNC editor

"

( 62)

, there are two options for compiling and

using a CNC program. The first example shows the direct creation of an OutQueue, the

second involves the use of variables to decode the program online. The third example

shows how a path preprocessing POU can also be used online.

13.5.1

Direct creation of the OutQueue

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

1. Creating the CNC program in the CNC editor:

– As described in 0, create a sample program that runs between x out of [0,100] and y

out of [0,100]. Also define velocities and accelerations for the path and set two path

switch points on the path.

Select "Create OutQueue on compile" as the compilation mode.

2. Drive Interface, PLC configuration:

– Define a drive structure with two linear drives; the maximum velocity, etc. must also

be set.

Advertising