SMC3_ReinitDrive (FB)¶
FUNCTION_BLOCK SMC3_ReinitDrive
This function block reinits a drive/axis.
That means that the start-up phase is run through again and the application can not
control the drive until the function block sets bDone = TRUE
.
Note
Do not call the function block until it has reached the communication state SMC_COMSTATE_BASE_COM_INITIALIZATION or higher. See also: SMC_CheckAxisCommunication.
Input bVirtual
determines whether a axis really exists or if it is simulated.
If the input bVirtual
is set TRUE
, the axis is set into virtual mode.
Then it will be replaced by a simulation similar to 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 to the real device. This corresponds to the settings done in SoftMotion Device Editor.
In case of connected drive devices, regard that SMC3_ReinitDrive doesn’t start the associated field bus automatically.
Actually the function block could be executed after an reboot of the fieldbus or has to be used to activate the settings
made with SMC_ChangeGearingRatio.
- InOut:
Scope
Name
Type
Inout
Axis
Input
bExecute
BOOL
bVirtual
BOOL
Output
bDone
BOOL
bBusy
BOOL
bError
BOOL
nErrorID
SMC_ERROR