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

Page 214

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

214

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

Path cams with SMC_XInterpolator

dVel: LREAL
This variable contains the current velocity that results if an object moves from the previous

space coordinate to Set_Position within the time set in Ipo_Time.
vecActTangent: SMC_VECTOR3D
This structure contains the direction of the path specified in the Set_Position. If Vel = 0,

Act_Tangent is also filled with zeros.
iLastSwitch: INT
This variable contains the number of the most recently passed switch. If several switches

are passed in one cycle, only the last one will be shown.
dwSwitches: DWORD
This DWORD contains the current switching state of all switches from 1 to 32. Bit 0 of the

DWORD represents auxiliary mark 1, bit 31 for auxiliary mark 32. In contrast to

iLastHelpMark, like this can be ensured that no auxiliary marks are left out.
dWayPos: LREAL
See the information about the dLastWAyPos input for a description.
When active, the XInterpolator looks for the position (on the stipulated path) that matches

the current X position and then outputs the corresponding point on the path in

piSetPosition. In order to enable this to take place smoothly, a clear path position must

always exist for an X position. The following path, for example, would be permissible:

Advertising