MCV_SetDriveMode

Different operating modes can be set with the MCV_SetDriveMode FB. For the available drive modes see the table below.

Block diagram

MCV_SetDriveMode 1:

Parameters of the FB

 

VAR_IN_OUT

 

Axis

AXIS_REF

Axis reference.

VAR_INPUT

 

Execute

BOOL

Change drive mode at rising edge.

 

DriveMode

INT

Drive mode to be set (see above).

VAR_OUTPUT

 

ActiveDriveMode

BOOL

The FB MCV_SetDriveMode is active.

 

ActualDriveMode

INT

Currently supported drive modes:

(0)

position control

(1)

speed control

(2)

torque control

(3)

position control with torque pilot control

 

Error

BOOL

Indicates if an error has occurred.

 

ErrorID

WORD

Error identification.

Behavior of the FB