MC_GearIn

The MC_GearIn FB commands gear coupling with a gear ratio. The gear ratio defines the speed ratio between the master and slave axes. The synchronization to the velocity is jerk-limited. ‘Jerk’ is set via input at the FB.

The slave axis can be coupled either to master setpoints or to actual master values. The selection is made in the ‘Mode’ input parameter.

For test purposes, automatic phase compensation has also been implemented. This function is also activated via the ‘Mode’ parameter. After speed synchronization (actual value or setpoint coupling), automatic phase compensation between the master and slave takes place based on the two axes' actual positions. Now, a phase offset unequal to ‘0’ cannot be set, i.e. for sensible synchronization the master and slave coordinate systems must have the same origin. Alternatively, the PLC programmer must explicitly establish position synchronicity by calling up MC_MoveSuperImposed.

If possible, automatic phase compensation should be used only for testing, but not for operation on a system. However, the behavior of the respective axis mode combination must be exactly observed.

The following behavior during automatic phasing results for the various axis modes of the master and slave:

Block diagram

MC_GearIn 1:

Parameters of the FB

VAR_IN_OUT

 

Master

AXIS_REF

Axis reference to the master axis.

 

Slave

AXIS_REF

Axis reference to the slave axis

VAR_INPUT

 

Execute

BOOL

Start the gearing process at the rising edge.

 

RatioNumerator

DINT

Gear ratio Numerator.

 

RatioDenominator

DINT

Gear ratio Denominator.

 

Acceleration

LREAL

Acceleration for gearing in (always positive).

Range [1.0, 2147483647.0]
Default unit [1mm/s2 or 1°/s2]

 

Deceleration

LREAL

Deceleration for gearing in (always positive).

Range [1.0, 2147483647.0]
Default unit [1mm/s2 or 1°/s2]

 

Jerk

LREAL

Jerk for gearing in (always positive).

Range [1.0, 2147483647.0]
Default unit [1m/s3 or 1000°/s3]

 

Mode

UDINT

Possible values are:see ‘Extracted nested table 1’

0:

(16#0)

Type of coupling between master axis and slave:

Coupling based on command
values.

Automatic phase compensation: off.

128:

(16#80)

Type of coupling between master axis and slave:

Coupling based on actual values.

256:

(16#100)

Automatic phase compensation: on.

Only for testing purposes!

VAR_OUTPUT

 

InGear

BOOL

Commanded gearing completed.

 

Error

BOOL

Indicates if an error has occurred.

 

ErrorID

WORD

Error identification.

 

CommandAborted

BOOL

Command is aborted by another command.

Behavior of the FB

Each SAI axis can be operated as a slave axis. The following standard axis parameters must be set in a slave axis for both actual value and setpoint coupling:

In the case of actual value coupling, the following parameters must also be set in the slave axis:

Filtering of the master actual values

Dead time compensation for constant speed

When automatic phasing is commanded (actual value or setpoint coupling), the following axis parameters must also be set in the slave: