L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 204

Advertising
background image

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

Structures of SM_CNC.lib

204

L

DMS 5.2 EN 03/2011 TD17

iMoveType: MOVTYP (INT)
The MOVTYP enum type contains the following permissible values and describes the object

type:

piStartPos: SMC_POSINFO
SMC_POSINFO structure that describes the exact start position (will be ignored if

Move_Type = INITPOS).
piDestPos: SMC_POSINFO
SMC_POSINFO structure that contains the exact end position.
dP1, ..., dP8: LREAL
These variables store further information describing the path, depending on the

Move_Type:

LIN

1

Straight motion (G01)

CLW

2

Clockwise circle (G02)

CCLW

3

Counterclockwise circle (G03)

SPLINE

5

Spline, parabola (G05, G06)

ELLCLW

8

Clockwise ellipse (G08)

ELLCCLW

9

Counterclockwise ellipse (G09)

LINPOS

100

Straight positioning (G00)

INITPOS

110

Blind positioning (start point not yet known; will be continuously

added to by SMC_Interpolator)

MCOMMAND

120

Additional option, M option

LIN

LINPOS

Not relevant, as all information is already contained in Start_Pos and Dest_Pos.

CLW

CCLW

P1: X coordinate of the circle centre

P2: Y coordinate of the circle centre

P3: Circle radius

SPLINE

Spline parameter

ELLCLW

ELLCCLW

P1: X coordinate of the circle centre

P2: Y coordinate of the circle centre

P3: X component of the main axis 1 vector

P4: Y component of the main axis 1 vector

P5: Length of the main axis

P6: Length of the sub-axis

P7: Direction of the main axis (in degrees)

P8: Ratio P6/P5

INITPOS

Not relevant

Advertising