16 structures of sm_cnc.lib, 1 smc_posinfo, Structures of sm_cnc.lib – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 202: Smc_posinfo, L-force | plc designer - softmotion

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

202

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

Structures of SM_CNC.lib

7.16

Structures of SM_CNC.lib

The following section describes a selection of SM_CNC.lib structures, which are used by the

SM_CNC.lib program organisation units for saving positions, path segments (path objects)

and vectors: SMC_POSINFO, SMC_GEOINFO, SMC_VECTOR3D, SMC_VECTOR6D.

Furthermore, the SMC_OUTQUEUE structure helps you to manage GEOINFO objects in a

list of a defined size.

7.16.1

SMC_POSINFO

The SMC_POSINFO structure contained in SMC_CNC.lib stores the coordinates and

position of the additional axes for a particular position point.

Variables dX, dY and dZ contain the position in the coordinate system, dA1 to dA6 the

position of the additional axes. The user can store further information that is not relevant

to SoftMotion program organisation units in iFrame_Nr. dA, dB and dC are not currently

used.
wAuxData describes bit by bit which of the position axes are to be calculated by

SMC_Interpolator. wAuxData will be initialised with 111

bin

, i.e. the X, Y and Z axis will be

interpolated. If the first bit is set, the dX position will be calculated, bit 7 causes dA2 to be

processed, for example.
In the same way, wSProfile describes whether the additional axes (all of them apart from

the X and Y axis) are to be interpolated linearly (FALSE) or sigmoidally (TRUE) by the

interpolator. Bit 2 represents the Z axis, bit 6 P, bit 7 Q, bit 8 U, bit 9 V, and bit 10 W.

TYPE SMC_POSINFO:
STRUCT
iFrame_Nr:INT;
wAuxData:WORD;
wSProfile:WORD;
dX:LREAL;
dY:LREAL;
dZ:LREAL;
A:LREAL;
B:LREAL;
dC:LREAL;
dA1:LREAL;
dA2:LREAL;
dA3:LREAL;
dA4:LREAL;
dA5:LREAL;
dA6:LREAL;
END_STRUCT
END_TYPE

Advertising