FUNCTION_BLOCK SMC_ChangeGearingRatio
With help of this function block the gearing ratio and the type of the drive may be modified.
After execution, the axis must be restarted by SMC3_ReinitDrive, in order to guarantee that all variables are initialized in a correct way.
InOut:
Scope |
Name |
Type |
Comment |
Inout |
Axis |
Axis |
|
Input |
bExecute |
BOOL |
Rising edge: Starts the execution of the function block. |
dwRatioTechUnitsDenom |
DWORD |
Denominator of the conversion factor to convert drive increments into technical units. |
|
iRatioTechUnitsNum |
DINT |
Numerator of the conversion factor to convert drive increments into technical units. |
|
fPositionPeriod |
LREAL |
Position period, modulo value (only for modulo axes) |
|
iMovementType |
0: Modulo axis, 1: Finite axis |
||
Output |
bDone |
BOOL |
TRUE: Homing is done. |
bBusy |
BOOL |
TRUE: Execution of function block has not been finished yet. |
|
bError |
BOOL |
TRUE: Error has occurred within the function block. |
|
nErrorID |
SMC_ERROR |
Error identification |