background image

Calculating the synchronisation phase

TS5055

23

Version: 1.3

7

Calculating the synchronisation phase

An attempt is made when calculating the synchronisation phase to find an optimum solution while observing
the boundary conditions specified by the user. If it is not possible to observe the specified boundary
conditions, the coupling is declined and an appropriate error message is issued.

Optimizations

As can be seen in the flow chart below, the individual bit masks partly influence the internal optimization
steps of the profile calculation, since an optimum is searched for depending on predefined rules (see

Parameterizable boundary conditions [

}

 18]

). Essentially, a 5th order polynomial or a combination of a 5th

order polynomial with a 1st order polynomial is used. A 5th order polynomial is generally not free from
overshoot, but the accelerations are more moderate than when combining a 5th order polynomial with a 1st
order polynomial. The combination of the 1st and 5th order polynomials is calculated in such a way that it is
always free from overshoot. However, higher accelerations and decelerations occur with it. If, for example,
the actual velocity matches the synchronous velocity, but a certain position difference must be compensated.
Then the optimum velocity is calculated internally as a function of the maximum acceleration. Result is a 5th
power polynomial a 1st order polynomial with the calculated velocity and a 5th power polynomial. At least
one of the two 5th power polynomials exploits the maximum acceleration. To avoid extreme jerk values, the
jerk check should be switched on.    

The optimizations shown can only be carried out if both the master and slave axes are free of accel-
eration at the time of coupling. For accelerated axes, a 5th order polynomial is used for synchro-
nization, which is checked for compliance with the specified boundary conditions, but cannot be op-
timized.

NOTE

If the master axis is an encoder axis (an "external encoder system"), something which as a rule is never
mathematically free from acceleration, particular care must be taken to filter the actual acceleration. Alter-
natively the determination of the actual acceleration can be deselected in the encoder, i.e. set to zero. The
NC also has an internal algorithm for this combination (master encoder axis with the Universal Flying Saw
as a slave). This algorithm sets master accelerations whose magnitudes are less than (2.0 • scaling factor /
cycle time

2

) to zero at the coupling time.

Optimisation step 1:

Aim: "Velocity profile free from undershoot or overshoot"

An attempt is first made to calculate a profile that synchronises the velocity without overshoot or undershoot
(a combination of a first order polynomial and a 5th order polynomial or vice versa: in abbreviated form,
polypolynomial5 or polypolynomial1). If the acceleration check is active at this stage, and
if one or more of these limit values (acc, dec) is exceeded, then another profile, which in general is not free
from overshoot (polynomial5) is calculated. If one of the active limit values (acc, dec) is still exceeded with
his profile, then the synchronisation command is finally declined with an error code.

Optimisation step 2:

Aim: "Limitation to maximum permitted velocity"

If the first optimization step is not possible, the second optimization step checks whether the maximum
permitted velocity for the slave axis is exceeded by a general standard profile (polynomial5). If this is the
case, an attempt is made to generate a profile in which the maximum profile velocity is precisely the
maximum velocity permitted to the slave axis (machine data) (polypolypolynomial5). It
should be noted that this optimization attempt usually results in larger values of acceleration or deceleration.
If the acceleration check is active at this stage, and if one or more of these limit values is exceeded, then this
second optimization step is rejected, and finally a profile, which is not in general free from overshoot
(polynomial5), is calculated. If one of the active limit values (acc, dec) is still exceeded with his profile, then
the synchronization command is finally declined with an error code.

Содержание TS5055

Страница 1: ...Manual EN TS5055 TwinCAT 2 NC Flying Saw 2022 11 22 Version 1 3...

Страница 2: ......

Страница 3: ...tic values 21 7 Calculating the synchronisation phase 23 8 Reversal of the master axis movement reverse motion stop 25 9 Diagonal saw 29 10 Interfaces 30 11 Operation from the System Manager 32 12 PLC...

Страница 4: ...Table of contents TS5055 4 Version 1 3...

Страница 5: ...ve already been supplied may be made on the basis of the data diagrams and descriptions in this documentation Trademarks Beckhoff TwinCAT TwinCAT BSD TC BSD EtherCAT EtherCAT G EtherCAT G10 EtherCAT P...

Страница 6: ...familiar with the applicable national standards Description of symbols In this documentation the following symbols are used with an accompanying safety instruction or note The safety instructions mus...

Страница 7: ...The latter should be connected to the corporate network or the Internet only if appropriate protective measures have been set up In addition the recommendations from Beckhoff regarding appropriate pr...

Страница 8: ...aster See diagram The Universal Flying Saw basically provides two different synchronization methods In the case of synchronization to velocity the slave is synchronized to the master as quickly as pos...

Страница 9: ...Synchronisation to position 15 the slave axis is synchronised to the master at the specified synchronisation position using the specified dynamic parameters This means that the slave axis reaches the...

Страница 10: ...future movement is not known at the time of coupling An acceleration of the master that might occur in the future will also affect the slave dynamics as a result of the coupling Such acceleration by t...

Страница 11: ...value profile for the synchronization is calculated This calculated set value profile for the slave is then specified for phase 2 of the slave axis At the end of phase 2 the slave axis precisely achie...

Страница 12: ...to velocity TS5055 12 Version 1 3 Example 2 As example 1 but with coupling factor 1 5 Start parameters fMasterVelo 500 fSlaveVelo 250 Coupling parameters fGearRatio 1 5 fSlaveAcc 2500 fSlaveDec 2500...

Страница 13: ...S5055 13 Version 1 3 Example 3 The start of the coupling in the acceleration phase of the future slave Start parameters fMasterVelo 500 fSlaveVelo 400 Coupling parameters fGearRatio 1 fSlaveAcc 2500 f...

Страница 14: ...tion to velocity TS5055 14 Version 1 3 PLC function blocks The function block MC_GearInVelo is used for the coupling To end the synchronous phase by uncoupling online change the function block MC_Gear...

Страница 15: ...ter sync position and when the slave is at the slave synchronisation position slave sync position The synchronous velocity corresponds to the master velocity multiplied by the chosen coupling factor I...

Страница 16: ...Version 1 3 Example 2 Start parameters fMasterVelo 500 fSlaveVelo 250 fMasterStartPos 500 fSlaveStartPos 500 Coupling parameters fGearRatio 1 5 fMasterSynchronPos 1000 fSlaveSynchronPos 500 fSlaveAcc...

Страница 17: ...055 17 Version 1 3 PLC function blocks The function block MC_GearInPos is used for coupling To end the synchronous phase i e for uncoupling online change of the slave into an independent master the fu...

Страница 18: ...is generated to synchronize the slave axis to the master axis GEARINSYNCMODE_TIMEBASED In this mode of the universal flying saw a time dependent motion profile is generated for synchronizing the slav...

Страница 19: ...lt When the slave has achieved the synchronous phase synchronous coupling of all the following master movements is maintained until the coupling is removed This also applies if the master changes dire...

Страница 20: ...1 When calculating the coupling the acceleration of the master is ignored i e set to zero This causes the use of internal optimizations At moderate acceleration this specification leads to tolerable f...

Страница 21: ...ibed in the table always refers to the start of the synchronisation phase while the end time refers to the end of the synchronisation phase not the end of the synchronous phase The focus here is alway...

Страница 22: ...Minimum slave dynamic moment NOT SUPPORTED YET no fMPosAtSPosMax Master position at the time of the maximum slave position no fSlavePosMax Maximum slave position yes fMPosAtSVeloMax Master position a...

Страница 23: ...thing which as a rule is never mathematically free from acceleration particular care must be taken to filter the actual acceleration Alter natively the determination of the actual acceleration can be...

Страница 24: ...order polynomial can be combined with a first order polynomial in order to maintain the parameterized boundary conditions The way in which the individual boundary conditions influence the selection of...

Страница 25: ...rview explains in detail the effect of the GEARINSYNC_OPMASK_ROLLBACKLOCK and GEARINSYNC_OPMASK_INSTANTSTOPONROLLBACK bits ROLL BACK LOCK INSTANT STOP ON ROLLBACK Synchro nous phase reached Descriptio...

Страница 26: ...tion 0 1 no Case 3 As in case 2 except that the velocity of the slave axis is reduced to zero within one tick after reaching the coupling position The velocity reduction in one tick can trigger the fo...

Страница 27: ...therefore prevented in that the slave velocity is continuously reduced as soon as the coupling position is reached 1 1 no Case 7 The behavior is identical to case 3 1 1 yes Case 8 The bit combination...

Страница 28: ...Reversal of the master axis movement reverse motion stop TS5055 28 Version 1 3 ROLL BACK LOCK INSTANT STOP ON ROLLBACK Synchro nous phase reached Description...

Страница 29: ...rsal Flying Saw This coupling factor must be calculated in such a way that in the synchronized phase the component of the velocity of the slave axis in the direction of the master axis is the same as...

Страница 30: ...ACTIVE other Master State Explanation see TwinCAT NC General documentation 11 Slave State The slave is in a preliminary movement phase PREPHASE 12 Slave State The slave is in the synchronization phase...

Страница 31: ...Interfaces TS5055 31 Version 1 3 ADS interface Documentation of the ADS interface...

Страница 32: ...Operation from the System Manager TS5055 32 Version 1 3 11 Operation from the System Manager For commissioning purposes the Universal Flying Saw can also be started directly from the System Manager...

Страница 33: ...niversal Flying Saw Function Block Synchronisation to velocity MC_GearInVelo 33 Synchronisation to position MC_GearInPos 36 Read the characteristic values MC_ReadFlyingSawCharacteristics 39 Uncouple t...

Страница 34: ...fied the maximum deceleration of the axis from the System Manager data is used The deceleration given here is only checked if this checking is activated through the SyncMode 41 variable Jerk Maximum s...

Страница 35: ...cution Error Becomes TRUE as soon as an error occurs ErrorID If the error output is set this parameter supplies the error number see Overview of NC errors TC2 Inputs outputs VAR_IN_OUT Master AXIS_REF...

Страница 36: ...e halted using MC_Stop or MC_Halt Inputs VAR_INPUT Execute BOOL RatioNumerator LREAL RatioDenominator UINT MasterSyncPosition LREAL SlaveSyncPosition LREAL SyncMode ST_SyncMode MasterStartDistance LRE...

Страница 37: ...can be specified as floating point number 0 25 under RatioNumerator The RatioNumerator may be negative Outputs VAR_OUTPUT StartSync BOOL InSync BOOL Busy BOOL Active BOOL CommandAborted BOOL Error BO...

Страница 38: ...055 38 Version 1 3 The axis data structure of type AXIS_REF addresses an axis unambiguously within the system Among other parameters it contains the current axis status including position velocity or...

Страница 39: ...available until the Universal Flying Saw starts Outputs VAR_OUTPUT Done BOOL Busy BOOL Error BOOL ErrorID UDINT END_VAR Done Is set to TRUE when the data record has been successfully read Busy The Bus...

Страница 40: ...tor type is set to 7 phases opti mized The behavior described here is the result of a project update from TwinCAT 2 10 to TwinCAT 2 11 Depending on the circumstances an update of existing applications...

Страница 41: ...OOL GearInSync_CheckMask_UndershootVelo BOOL GearInSync_CheckMask_OvershootVeloZero BOOL GearInSync_CheckMask_UndershootVeloZero BOOL operation masks GearInSync_OpMask_RollbackLock BOOL GearInSync_OpM...

Страница 42: ...imum acceleration minimum slave jerk and dynamic momentum fSlaveJerkMin LREAL 19 slave minimum jerk fSlaveDynMomMin LREAL 20 slave minimum dynamic momentum NOT SUPPORTED YET maximum slave position fMP...

Страница 43: ...PLC API TS5055 43 Version 1 3 Type definition for the characteristic parameters of a flying saw synchronization...

Страница 44: ...saw is synchronised with the master axis and travels synchronous with the transport system During this phase the tool axis is activated which deals with the actual processing The slave axis is then u...

Страница 45: ...a magnitude without arithmetic sign The synchronization positions with reference to the start positions at the time of coupling for the master must always be geometrically in the future and a must al...

Страница 46: ......

Страница 47: ...Beckhoff Automation GmbH Co KG H lshorstweg 20 33415 Verl Germany Phone 49 5246 9630 info beckhoff com www beckhoff com More Information www beckhoff com ts5055...

Отзывы: