SML_ChangeAxisConfig (FB)ΒΆ
FUNCTION_BLOCK SML_ChangeAxisConfig
Modifies the axis configuration. The gearing ratio, the movement type and the modulo period of the drive may be modified.
After a change of the configuration, the axis is automatically restarted with SML_ReinitDrive in order to guarantee that all variables are initialized in a correct way.
Note
The axis must be in state PowerOff to change the configuration.
- InOut:
Scope
Name
Type
Comment
Inout
AxisReference to the axis
Input
bExecuteBOOLRising edge: The action is started
dwRatioTechUnitsDenomDWORDConversion factor from [inc] to [u], denominator
iRatioTechUnitsNumDINTConversion factor from [inc] to [u], numerator
fModuloPeriodULREALThe modulo period in [u]
iMovementTypeThe new movement type of the axis
Output
bDoneBOOLThe reinitialization is finished
bBusyBOOLThe FB is not finished and new output values are to be expected
bErrorBOOLAn error has occured
eErrorError number