Chapter 11 Motion Control Instructions
11-151
DMC_ChangeMechanismGearRatio
FB/FC Explanation
FB
DMC_ChangeMechanismGearRatio is used for modifying axis parameter
values.
DVP15MC11T-
DMC_ChangeMechanismGearRatio
Axis
DMC_ChangeMechanismGearRatio
_
instance
Execute
Done
Busy
Error
ErrorID
InputRotation
OutputRotation
UnitsPerRotation
AxisType
Modulo
Input Parameters
Parameter name
Function Data type
Validation timing
Axis
Specify the number of the axis
which is to be controlled.
USINT
of Section 2.2.
(The variable
When Execute
changes from
FALSE to TRUE.
Execute
The instruction is executed
when Execute changes from
BOOL
TRUE or FALSE
(FALSE)
-
InputRotation
This parameter and
OutputRotation decide the
mechanical gear ratio.
LREAL
Positive integer
(The variable
value must be set)
When Execute
changes from
FALSE to TRUE.
OutputRotation
InputRotation and this
parameter and decide the
mechanical gear ratio.
LREAL
Positive integer
(The variable
value must be set)
When Execute
changes from
FALSE to TRUE.
UnitsPerRotation
The number of units which the
terminal actuator moves while
output end of the gear box
rotates for a circle. (Unit:
LREAL
Positive number
(The variable
value must be set)
When Execute
changes from
FALSE to TRUE.
AxisType
Axis type
0: rotary axis
1: linear axis
USINT
0, 1
(0)
When Execute
changes from
FALSE to TRUE.
Modulo
The cycle used for equally
dividing the actual position of
the terminal actuator.
LREAL
Positive number
(The variable
value must be set)
When Execute
changes from
FALSE to TRUE.
Output Parameters
Function Data type Valid range
Done TRUE when the instruction execution is completed. BOOL TRUE/FALSE
Busy TRUE when the instruction is being executed. BOOL TRUE / FALSE
Error
TRUE when there is an error in the execution of the
instruction.
BOOL TRUE / FALSE