MC_GearInDyn

MC_GearInDyn 1:

The function block MC_GearIn activates a linear master-slave coupling (gear coupling). The gear ratio can be modified in every PLC cycle. The block is therefore suitable for velocity controlled master slave couplings. The acceleration parameter limits the slaves acceleration in case of  high gear ratio changes.

Note:

The coupling can be activated only in standstill. Moving axes can be coupled using the optional Flying Saw functionality (MC_GearInPos, MC_GearInVelo).

VAR_INPUT

VAR_INPUT
    Execute      : BOOL;
    GearRatio    : LREAL;
    Acceleration : LREAL;
    Deceleration : LREAL;
    Jerk         : LREAL;
END_VAR

Execute : The command is executed with rising edge. The GearRatio is accepted in every PLC cycle while Execute is TRUE. The command finishes its execution after a falling edge.

GearRatio : Gearing factor. The gear ratio may be changed in every PLC cycle.

Acceleration : Acceleration. The acceleration value limits the slaves acceleration in case of high gear ratio changes. The maximum acceleration will be reached when the master is moving at its maximum velocity. The slave acceleration may be lower if the master is moving at slower speed.

Deceleration : Deceleration. (not used)

Jerk : Jerk. (not used)

VAR_OUTPUT

VAR_OUTPUT
    InGear         : BOOL;
    Busy           : BOOL;
    CommandAborted : BOOL;
    Error          : BOOL;
    ErrorID        : UDINT;
END_VAR

InGear : Becomes TRUE, if the coupling was successful.

Busy : Becomes TRUE, as soon as the block is active. Busy becomes TRUE with a rising edge at Execute and becomes FALSE again after the block finished or aborted its operation. A rising edge at Execute will then be accepted.

CommandAborted : Becomes TRUE, if the slave is decoupled while Execute is TRUE.

Error: Becomes TRUE, as soon as an error occurs.

ErrorID : Supplies the error number when the Error output is set

VAR_IN_OUT

VAR_IN_OUT
    Master : NCTOPLC_AXLESTRUCT;
    Slave  : NCTOPLC_AXLESTRUCT;
END_VAR

Master : Axis structure of the master.

Slave : Axis structure of the slave.

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v2.8 B748 or higher

TwinCAT v2.9 B1000 or higher

PC (i386)

TcMC.Lib