MC_GearIn
This function block couples a slave axis to a master axis without a coupling condition (direct coupling). The speed ratio between the slave axis and the master axis can be specified.

VAR_IN_OUT
Variable name | Data type | Description |
|---|---|---|
Master | AXIS_REF | Reference to a logical device See also AXIS_REF. |
Slave | AXIS_REF | Reference to a logical device See also AXIS_REF. |
VAR_INPUT
Variable name | Data type | Description |
|---|---|---|
Execute | BOOL | Start execution of the function block. |
RatioNumerator | DINT | Numerator ratio master-slave (default value: 1) |
RatioDenominator | DINT | Denominator ratio master-slave (default value: 1) |
BufferMode | Chronological sequence of the function block | |
RampInMode | Behavior during synchronization:
| |
RampInVelocity | LREAL | Speed for profile-based synchronization (RampInMode = eProfileBased) |
RampInAcceleration | LREAL | Acceleration for profile-based synchronization (RampInMode = eProfileBased) |
RampInDeceleration | LREAL | Deceleration for profile-based synchronization (RampInMode = eProfileBased) |
RampInJerk | LREAL | Jerk with profile-based synchronization (RampInMode = eProfileBased) |
CatchUp | BOOL | TRUE: Any offset that occurs during profile-based synchronization is compensated. FALSE: Any offset that occurs during profile-based synchronization is not compensated. |
VAR_OUTPUT
Variable name | Data type | Description |
|---|---|---|
InGear | BOOL | Slave axis is synchronous to the master axis |
Busy | BOOL | Function block is active |
Active | BOOL | Function block controls the axis |
CommandAborted | BOOL | The function block was canceled by another command |
Error | BOOL | An error has occurred in the function block |
ErrorID | WORD | Error number |
StartSync | BOOL | Slave axis synchronizes |



