2 smc_followpositionvelocity – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 35

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

35

L-force | PLC Designer - SoftMotion

The SoftMotion drive interface

SM_DriveBasic.lib and automatic code generation

3.2.5.2

SMC_FollowPositionVelocity
This block writes position and speed setpoints to the axis and during this process does not

carry out any checks. The user has to ensure that the values match in a reasonable manner.

Inputs (VAR_INPUT)
bExecute: BOOL
By a rising edge the block starts to write the setpoints entered in fSetPosition to the axis

data structure. It remains active until it is interrupted by another block (e.g. MC_Stop).
fSetPosition: LREAL
Set position in technical units.
fSetVelocity: LREAL
Setpoint speed in technical units per second.

Outputs (VAR_OUTPUT)
bBusy : BOOL (Default: FALSE)
With TRUE the block indicates that it is active and that it writes setpoints to the axis.
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

Advertising