SMC3_ReinitDrive (FB)

FUNCTION_BLOCK SMC3_ReinitDrive

This function block reinitializes a drive/axis. That means that the start-up phase is executed again.

Note

Do not call the function block until the axis has reached communication state SMC_COMSTATE_BASE_COM_INITIALIZATION or higher. See also: SMC_CheckAxisCommunication.

The input bVirtual determines whether the axis should be put into virtual mode. In virtual mode, an axis is replaced by a simulation, just like a virtual drive device. This has no influence on the field bus devices, which will work as usual but without receiving messages from or sending messages. This input corresponds to the “Virtual mode” check box in the SoftMotion device editor. For drive devices, note that SMC3_ReinitDrive does not start the associated field bus automatically.

InOut:

Scope

Name

Type

Inout

Axis

AXIS_REF_SM3

Input

bExecute

BOOL

bVirtual

BOOL

Output

bDone

BOOL

bBusy

BOOL

bError

BOOL

nErrorID

SMC_ERROR