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

Page 213

Advertising
background image

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

Path cams with SMC_XInterpolator

213

L

DMS 5.2 EN 03/2011 TD17

dXOffset: LREAL
Offset to the position of the X axis
X_Axis: AXIS_REF
X axis, position of the workpiece

Outputs (VAR_OUT)
bDone : BOOL
This variable is set to TRUE as soon as the input data from DataIn has been fully processed.

Thereafter the program organisation unit will not execute any more actions until a reset

has been performed. If the bExecute input is FALSE, bDone will also be reset to FALSE.
bError : BOOL
This value will be set to TRUE if an error occurs.
wErrorID: SMC_ ERROR (INT)
If applicable, this enum output will describe an error that occurred during interpolation.

Following an error, processing will be stopped until a reset is performed.
piSetPosition: SMC_POSINFO
Set_Position contains the set position calculated in accordance with the specifications

made. Set_Position is an SMC_POSINFO structure and not only contains the Cartesian

coordinates of the path position point to be approached, but also the position of the

additional axes.
iStatus: SMC_INT_STATUS (INT)
This enum variable shows the current state of the program organisation unit. Possible

states:

bWorking: BOOL
This output assumes the value TRUE once list processing has begun and before it has been

completed (IPO_ACCEL, IPO_CONSTANT, IPO_DECEL or IPO_WAIT). Otherwise Working is

FALSE.
iActObjectSourceNo: INT
The SourceLine_Nr value of the GEOINFO object in the DataIn queue that is currently being

traversed can be found here. If SMC_Interpolator is not (or no longer) working (Working =

FALSE), -1 appears here.

State

Value

Information

IPO_UNKNOWN

0

Internal state. State may not occur after a complete

SMC_Interpolator pass.

IPO_ACCEL

2

Program organisation unit is currently accelerating.

IPO_CONSTANT

3

Program organisation unit is currently moving at a constant velocity.

IPO_DECEL

4

Program organisation unit is currently decelerating.

IPO_FINISHED

5

Processing of the GEOINFO list is finished. Any other GEOINFO

objects that arrive in DataIn subsequently will not be processed.

Advertising