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

Page 149

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

149

L-force | PLC Designer - SoftMotion

The SM_PLCopen.lib library

POUs for the synchronised motion control (multi-axis)

Inputs (VAR_IN)
Execute : BOOL (default: FALSE)
The program organisation unit starts the motion on a rising edge.
MasterOffset : LREAL (default: 0)
Additional offset to master position
SlaveOffset : LREAL (default: 0)
Additional offset to slave position
StartMode : MC_StartMode (absolute/relative/ramp_in/ramp_in_pos/ramp_in_neg)

(default: absolute)
Cam either refers to the actual position relatively (relative) or absolutely, without

(absolute) or with slow ramping on the shortest path (ramp_in), in the positive

(ramp_in_pos) or negative (ramp_in_neg) direction.
CAMTableID : MC_CAM_ID
Output of MC_CamTableSelect
Velocity, Acceleration, Deceleration: LREAL (default: 0)
Additional velocity, acceleration, deceleration for ramp_in mode
TappetHysteresis: LREAL (default: 0)
Width of the hysteresis band around the tappets

Outputs (VAR_OUT)
InSync : BOOL (default: FALSE)
TRUE indicates that the motion is on the cam.
CommandAborted : BOOL (default: FALSE)
The motion that had started was interrupted by another function block acting on the same

axis (exception: MoveSuperImposed).
Error : BOOL (default: FALSE)
TRUE indicates an error in the function block.
ErrorID : SMC_Error (INT )
Error number
EndOfProfile : BOOL
Indicates the end of a cam. With periodic cams this output will be pulsed.
Tappets : SMC_TappetData
Tappet output. The individual tappet positions will be finally evaluated by the

SMC_GetTappetValue program organisation unit.

Advertising