4 control mode blocks, 1 smc_setcontrollermode, Control mode blocks – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 32

L-force | PLC Designer - SoftMotion
The SoftMotion drive interface
SM_DriveBasic.lib and automatic code generation
32
L
DMS 5.2 EN 03/2011 TD17
Outputs (VAR_OUTPUT)
bDone : BOOL
TRUE as soon as the action has been carried out.
bError : BOOL
TRUE if an error occurred.
nErrorID: SMC_ERROR
Describes the error.
3.2.4
Control mode blocks
3.2.4.1
SMC_SetControllerMode
By means of this POU a change-over to another control mode can be effected if this is
supported by the drive.
Inputs/outputs (VAR_IN_OUT)
Axis : AXIS_REF (VAR_IN_OUT)
Drive the control mode of which is to be changed.
Inputs (VAR_INPUT)
bExecute: BOOL
The program organisation unit is activated with a rising edge.
nControllerMode: SMC_CONTROLLER_MODE
Desired control mode: SMC_torque (torque) SMC_velocity (speed), SMC_position
(position), SMC_current (current)
Outputs (VAR_OUTPUT)
bDone : BOOL (VAR_OUTPUT)
TRUE as soon as the action has been carried out.
bError : BOOL (VAR_OUTPUT)
TRUE if an error occurred.
nErrorID : SMC_Error (VAR_OUTPUT)
Describes the error.