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
(name of the logical device)

See also AXIS_REF.

Slave

AXIS_REF

Reference to a logical device
(name of the 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

MC_BUFFER_MODE

Chronological sequence of the function block

RampInMode

E_RampInMode

Behavior during synchronization:

  • eDirect: Synchronization takes place without a transition profile. This can lead to jumps in the setpoint curve.
  • eProfileBased: Synchronization is based on a transition profile with the dynamic values RampInVelocity, RampInAcceleration, RampInDeceleration and RampInJerk. This achieves a continuous setpoint curve.

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