12
PLC API
In many plants workpieces undergo machining operations while being transported. For this purpose it is
necessary to synchronise the position and the speed of tool and workpiece, so that the tool can then be
applied as if to a stationary workpiece. One example of such an application is a saw that during the transport
process cuts through the material that is being transported (flying saw). In order to implement this kind of
application, TwinCAT provides the flying saw.
The TwinCAT PLC library TcMC2_FlyingSaw.lib, available as an additional product, provides easy
management of the flying saw. An example program using the flying saw [} 44] makes use of this library.
Zur einfachen Handhabung der Fliegenden Säge dient die TwinCAT PLC Library TcMC2_FlyingSaw.lib, die
als zusätzliches Produkt erhältlich ist. Ein Beispielprogramm zum Thema Fliegende Säge [} 44] verwendet
diese Bibliothek.
The following PLC function blocks are available for operation of the Universal Flying Saw.
Function
Synchronisation to velocity
Synchronisation to position
Read the characteristic values
Uncouple the slave
12.1
TcMC2_FlyingSaw
12.1.1
MC_GearInVelo
Execute BOOL
RatioNumerator LREAL
RatioDenominator UINT
SyncMode ST_SyncMode
Velocity LREAL
Acceleration LREAL
Deceleration LREAL
Jerk LREAL
BufferMode MC_BufferMode
Options ST_GearInVeloOptions
↔
Master Reference To AXIS_REF
↔
Slave Reference To AXIS_REF
The function block MC_GearInVelo activates a linear master-slave coupling (gear coupling). If the master
axis is already moving, the slave axis synchronizes to the master velocity. The block accepts a fixed gear
ratio in numerator/denominator format.
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;
SyncMode : ST_SyncMode;
Velocity : LREAL;
Acceleration : LREAL;
TS5055
Block
MC_GearInVelo [} 33]
MC_GearInPos [} 36]
MC_ReadFlyingSawCharacteristics [} 39]
MC_GearOut [} 40]
MC_GearInVelo
BOOL CommandAborted
Version: 1.3
BOOL StartSync
BOOL InSync
BOOL Busy
BOOL Active
BOOL Error
UDINT ErrorID
PLC API
33