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
Axis
Reference to the axis.
Input
Execute
BOOL
Rising edge: starts the execution of the function block.
Increments
UDINT
16#10000
The increments per
MotorTurns1
turns of the motor. Units: [inc].MotorTurns1
UDINT
1
The number of motor turns the input
Increments
is based on.MotorTurns2
UDINT
1
The motor turns that correspond to
GearOutput1
turns of the gear output.GearOutput1
UDINT
1
The number of gear output turns the input
MotorTurns2
is based on.GearOutput2
UDINT
1
Gear output turns that correspond to
TechnicalUnits
units.TechnicalUnits
UDINT
360
The units that correspond to
GearOutput2
turns of the gear output. In technical units [u].InvertDirection
BOOL
Whether the direction of the axis is inverted or not.
ModuloPeriod
LREAL
Modulo period (only for modulo axes) in technical units [u].
AxisType
The axis type.
Output
Done
BOOL
TRUE
: The gearing ratio / axis type / modulo period has been changed.Busy
BOOL
TRUE
: Execution of function block has not been finished yet.Error
BOOL
TRUE
: An error has occurred within the function block.ErrorID
SMC_ERROR
Error identification