MC_FlyingGear_BkPlcMc

MC_FlyingGear_BkPlcMc 1:

The function block takes over the control of a flying gear coupling.

MC_FlyingGear_BkPlcMc 2: Inputs

VAR_INPUT
    Enable:                 BOOL;
    Ratio:                  LREAL;
    MasterSyncPosition:     LREAL;
    SlaveSyncPosition:      LREAL;
    SlaveDesyncPosition:    LREAL;
    SlaveStopPosition:      LREAL;
    DefaultSlaveNegative:   BOOL;
END_VAR

Name

Type

Description

Enable

BOOL

This signal allows the function block to become active as soon as the master's position passes the MasterSyncPosition in the designated direction.

Ratio

LREAL

This parameter specifies the gear ratio between master and slave for the fully coupled case.

MasterSyncPosition

LREAL

This parameter indicates the position in the designated direction of the master at which the coupling should have been fully established.

SlaveSyncPosition

LREAL

This parameter indicates the position in the designated direction of the slave at which the coupling should have been fully established.

SlaveDesyncPosition

LREAL

This parameter indicates the position in the designated direction of the slave at which the release of the coupling should start.

SlaveStopPosition

LREAL

This parameter indicates the position in the designated direction of the slave at which the release of the coupling should have been completed.

DefaultSlaveNegative

BOOL

In some cases, the function block cannot determine the intended work direction from the transferred parameters. Additional information is then required from the application.

MC_FlyingGear_BkPlcMc 3: Inputs/outputs

VAR_IN_OUT
    Master:                 AXIS_REF_BkPlcMc;
    Slave:                  AXIS_REF_BkPlcMc;
END_VAR

Name

Type

Description

Master

AXIS_REF_BkPlcMc

Here, the address of a variable of type AxisRef_BkPlcMc should be transferred.

Slave

AXIS_REF_BkPlcMc

Here, the address of a variable of type AxisRef_BkPlcMc should be transferred.

MC_FlyingGear_BkPlcMc 4: Outputs

VAR_OUTPUT
    StartSync:              BOOL;
    InSync:                 BOOL;
    Busy:                   BOOL;
    Active:                 BOOL;
    Error:                  BOOL;
    ErrorId:                BOOL;
END_VAR

Name

Type

Description

StartSync

BOOL

This signal is TRUE if the master is within the section for the establishment of the coupling.

InSync

BOOL

This signal is TRUE if the coupling is fully active.

Busy

BOOL

This signal goes TRUE if Enable is TRUE, master and slave are ready and not in an error state and the transferred parameters are suitable.

Active

BOOL

This signal goes TRUE as soon as the master passes the MasterSyncPosition in the designated direction. It goes FALSE when the SlaveStopPosition is reached in the opposite direction of the slave.

Error

BOOL

This signal goes TRUE if there are unsuitable parameters on a rising edge at Enable or if the master or slave is in an error state on a TRUE at Enable.

ErrorId

BOOL

A numerically encoded indication of an error cause.

Behavior of the function block

The function block establishes a coupling between a master and a slave axis that is established and released on the fly. The parameterization and enable can vary the behavior in wide areas. In combination with positioning commands, a variety of motion sequences can be realized. Just a few samples are shown here.

Notice The scopes were created using the sample S106_FlyingGear. The number of the sample corresponds to the selected nSequence.

During commissioning

When measuring the position of the master, the zero point should be shifted so that the actual position represents comprehensible information about the situation in the machine.

For the slave, the zero shift should be chosen in such a way that the actual position, taking into account the dimensions of the material, tools and other installations, matches that of the master, if the remaining gap has just become 0. To avoid elastic deformation, no force should have been built up.

Sample #1

Here, master and slave move in the same direction. Both return to their starting position.

MC_FlyingGear_BkPlcMc 5:

Preparation:

Sample #2

Here, the master and slave move in opposite directions. Both return to their starting position.

MC_FlyingGear_BkPlcMc 6:

Sample #3

Here, master and slave move in the same direction. However, the slave only returns to its starting position by means of an MC_MoveAbsolut_BkPlcMc().

MC_FlyingGear_BkPlcMc 7: