SMC_ChangeAxisScalingRotary (FB)ΒΆ
FUNCTION_BLOCK SMC_ChangeAxisScalingRotary
This function block changes the increments per motor turn, gearing ratio, technical units, direction, axis type, and modulo value of a rotary axis.
The drive must not be enabled with MC_Power, otherwise error
SMC_CGR_DRIVE_POWERED is returned.
An automatic reinitialization of the drive is done in order to guarantee that all variables are initialized in a correct way.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
AxisReference to the axis.
Input
ExecuteBOOLRising edge: starts the execution of the function block.
IncrementsUDINT16#10000
The increments per
MotorTurns1turns of the motor. Units: [inc].MotorTurns1UDINT1
The number of motor turns the input
Incrementsis based on.MotorTurns2UDINT1
The motor turns that correspond to
GearOutput1turns of the gear output.GearOutput1UDINT1
The number of gear output turns the input
MotorTurns2is based on.GearOutput2UDINT1
Gear output turns that correspond to
TechnicalUnitsunits.TechnicalUnitsUDINT360
The units that correspond to
GearOutput2turns of the gear output. In technical units [u].InvertDirectionBOOLWhether the direction of the axis is inverted or not.
ModuloPeriodLREALModulo period (only for modulo axes) in technical units [u].
AxisTypeThe axis type.
Output
DoneBOOLTRUE: The gearing ratio / axis type / modulo period has been changed.BusyBOOLTRUE: Execution of function block has not been finished yet.ErrorBOOLTRUE: An error has occurred within the function block.ErrorIDSMC_ERRORError identification