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

Page 38

Advertising
background image

L-force | PLC Designer - SoftMotion

The SoftMotion drive interface

SM_DriveBasic.lib and automatic code generation

38

L

DMS 5.2 EN 03/2011 TD17

3.2.5.5

SMC_ControlAxisByPos
This block writes setpoint positions in a drive structure and monitors it with regard to step-

changes.

Inputs (VAR_INPUT)
iStatus: SMC_INT_STATUS
Status of the interpolation block. Is connected to the output of SMC_Interpolator with the

same name.
bEnable: BOOL
If this input is set to "1", the function block starts to control the axis. It remains active until

this input is reset to "0".
bAvoidGaps: BOOL
TRUE: Block monitors the position and speed. If the speed exceeds the limit value

fSWMaxVelocity (configured in the drive dialog under "Maximum values") saved in the

axis, the block sets the output bStopIpo,

moves the axis to this position using the parameters fGapVelocity, fGapAcceleration and

fGapDeceleration, and deletes the output bStopIpo again.
fSetPosition: LREAL
Set position of the axis. Typically an output of a transformation block.
fGapVelocity, fGapAcceleration, fGapDeceleration: LREAL
Motion parameters for bridging a step-change.

Outputs (VAR_OUTPUT)
bCommandAborted : BOOL (Default: FALSE)
If this is TRUE, the block was aborted by another.
bError : BOOL (Default: FALSE)
TRUE indicates that an error has occurred in the function block.
iErrorID : SMC_Error (INT )
Error number
bStopIpo : BOOL (Default: FALSE)
If TRUE is set the block has detected a speed or position step change and currently is

carrying out a positioning process to the new position. Therefore this output should be

connected to the EmergencyStop input of the SMC_Interpolator, so that the interpolator

waits until the axis is in the correct position.

Advertising