Chapter 11 Motion Control Instructions
11-161
11.4 Multi-axis Instructions
MC_GearIn
FB/FC Explanation Applicable model
FB
MC_GearIn is used for establishing the electronic gear relationship
between two axes.
Input Parameters
Parameter name Function Data type
Validation timing
Master
Specify the number of the
master axis which is to be
controlled by the instruction
USINT
of Section 2.2.
(The variable value
When Execute
changes from
FALSE to TRUE
Slave
Specify the number of the
slave axis which is to be
controlled by the instruction
USINT
of Section 2.2.
(The variable value
When Execute
changes from
FALSE to TRUE
Execute
The instruction is executed
when Execute changes from
BOOL
TRUE or FALSE
(FALSE)
-
ContinuousUpdate Reserved - - -
RatioNumerator Gear ratio Numerator LREAL
and negative
number
(The variable value
When Execute
changes from
FALSE to TRUE
RatioDenominator Gear ratio Denominator LREAL
(The variable value
changes from
MasterValueSource
0: Command position of
the master axis which
the slave axis follows
1: Actual position of the
master axis which the
slave axis follows
MC_Sourc
e
0:mcSetValue
1:mcActualValue
(0)
When Execute
changes from
FALSE to TRUE
Acceleration
acceleration.
2
LREAL
(The variable value
changes from
Deceleration Specify the target LREAL Positive number
When Execute
MC_GearIn
Master InGear
MC_GearIn_instance
Slave
Execute
Busy
Active
ContinuousUpdate
Error
ErrorID
CommandAborted
RatioNumerator
RatioDenominator
Acceleration
Deceleration
Jerk
BufferMode
MasterValueSource