Mc_Gearinpos - Beckhoff TwinCAT 2 Manual

Table of Contents

Advertisement

PLC API
12.1.2

MC_GearInPos

Execute  BOOL
RatioNumerator  LREAL
RatioDenominator  UINT
MasterSyncPosition  LREAL
SlaveSyncPosition  LREAL
SyncMode  ST_SyncMode
MasterStartDistance  LREAL
Velocity  LREAL
Acceleration  LREAL
Deceleration  LREAL
Jerk  LREAL
BufferMode  MC_BufferMode
Options  ST_GearInPosOptions
Master  Reference To AXIS_REF
Slave  Reference To AXIS_REF
The function block MC_GearInPos synchronizes a slave axis precisely with a master axis (flying saw). The
synchronization velocity is achieved exactly at the synchronous position of the master and slave.
The master axis must already be moving, otherwise synchronization is not possible.
The slave axis can be uncoupled with the function block MC_GearOut. If the slave is decoupled while it is
moving, then it retains its velocity and can be halted using MC_Stop or MC_Halt.
Inputs
VAR_INPUT
    Execute            : BOOL;
    RatioNumerator     : LREAL;
    RatioDenominator   : UINT;
    MasterSyncPosition : LREAL;
    SlaveSyncPosition  : LREAL;
    SyncMode           : ST_SyncMode;
    MasterStartDistance: LREAL;
    Velocity           : LREAL;
    Acceleration       : LREAL;
    Deceleration       : LREAL;
    Jerk               : LREAL;
    BufferMode         : MC_BufferMode;
    Options            : ST_GearInPosOptions;
END_VAR
Execute
RatioNumerator
RatioDenominator
MasterSyncPosition
SlaveSyncPosition
SyncMode
MasterStartDistance
Velocity
36
MC_GearInPos
BOOL  CommandAborted
The command is executed with a rising edge at Execute input.
Gear ratio numerator.
Alternatively, the gear ratio can be specified as a floating point
value, if the denominator is 1.
Gear ratio denominator
The master's synchronous position
The slave's synchronous position
In the data structure SyncMode [} 41] boundary conditions for the
synchronization process are specified via individual flags.
Currently not implemented
Maximum slave velocity in the synchronization phase. If a velocity is
not specified, the maximum velocity of the axis from the System
Manager data is used.
The velocity given here is only checked if this checking is
activated through the SyncMode [} 41] variable.
Version: 1.3
BOOL  StartSync
BOOL  InSync
BOOL  Busy
BOOL  Active
BOOL  Error
UDINT  ErrorID
TS5055

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Beckhoff TwinCAT 2

This manual is also suitable for:

Twincat ncTs5055

Table of Contents