Parameterising the synchronisation methods

Synchronisation mode

The synchronisation mode of each corresponding M function is defined in the table entitled P-CHAN-00041 (m_synch).

The field index "MNr" corresponds to the M function number. The value specifies the synchronisation mode of the M function, i.e. when an output to the PLC and a check for the presence of the PLC acknowledgement take place.

A motion is not executed or is stopped at the latest towards the end of the block if no acknowledgement is received from the PLC.

The corresponding table P-CHAN-00027 (h_synch) is used for H functions.

Parameter

P-CHAN-00041

Synchronisation method of the M function with the number MNr.XX, e.g. M03

P-CHAN-00027

Synchronisation method of the H function with the number HNr.XX

Notice

notice

The synchronisation mode of each M/H function can also be changed in the NC program by corresponding variables [PROG]:

V.G.M_FCT[MNr].SYNCH or

V.G.H_FCT[HNr].SYNCH

Synchronisation methods

Symbol

Value

Meaning

NO_SYNCH

0x00000000

No output of the M/H function to the PLC

MOS

0x00000001

Output of M/H function to PLC without synchronisation

MVS_SVS

0x00000002

Output of M/H function to PLC before motion block,
synchronisation before motion block

MVS_SNS

0x00000004

Output of M/H function to PLC before motion block,
synchronisation after motion block

MNS_SNS

0x00000008

Output of M/H function to PLC after motion block,
synchronisation after motion block

MNE_SNS

0x00000020

Output of M/H function to PLC after measurement event and removal of distance to go, synchronisation after motion block (for edge banding option only)

BWD_SYNCH

0x00400000

Synchronisation of M function during backward motion with MVS_SVS

FWD_SYNCH

0x00800000

Synchronisation of M function during 'Simulated forward motion' with corresponding synchronisation mode

FAW_SYNCH

0x10000000

Decoder stop (Flush and Wait): Output of M function to PLC and stop of program decoding at block end until program run is completed. FAW_SYNCH can be set in addition to other synchronisation types. M functions with FAW_SYNCH may not be used when tool radius compensation (TRC), polynomial contouring and HSC mode are active.

Cross-block synchronisation (CAUTION: only allowed for M functions.)

MVS_SLM

0x00004000

Late synchronisation, M function output at block start. Synchronisation at transition to motion block with machining feed rate (G01/G02/G03) ('late' synchronisation implicit, Sync. late movement)

MVS_SLP

0x00008000

Late synchronisation, M function output at block start. Synchronisation with NC command #EXPL SYN ('late' synchronisation explicit, Sync. late program)

Synchronisation output brought forward

MEP_SVS

0x01000000

M function output to PLC with specified distance,
synchronisation before next block

MET_SVS

0x02000000

M/H function output to PLC with specified distance,
synchronisation before next block

MOS_TS

0x00040000

CAUTION: Only allowed for M functions.

Output of M function to PLC before motion block without synchronisation, time offset as parameter for high-precision time output in PLC (see detailed description of MOS_TS in Section "Pre-output of M functions")

MEP_MOS

0x00100000

Output of M function with specified path, without synchronisation. M function must be fetched from PLC!

MET_MOS

0x00200000

Output of M function with specified time, without synchronisation. M function must be fetched from PLC!

M or H output

Synchronisation

Before
NC BLOCK

After
NC block

After
event

Brought forward according to specified distance/time

none

Before motion

MVS_SVS

 

 

MEP_SVS MET_SVS

 

After motion

MVS_SNS

MNS_SNS

MNE_SNS

 

 

Implicit at next transition to G01/G02/G03

MVS_SLM

 

 

 

 

Programmed synchronisation

MVS_SLP

 

 

 

 

none

MOS

MOS_TS

 

 

MEP_MOS

MET_MOS

NO_SYNCH

Notice

notice

The reaction of the synchronisation modes MVS_SVS, MVS_SNS and MNS_SNS is identical if M or H functions are programmed without a motion in the block.

Programing Example

prg_example

Defining M/H functions and parameterising the synchronisation methods

# ********************************************************

# Definition of M functions and synchronisation types

# ========================================================

m_synch[0]                         0x00000002     MVS_SVS

m_synch[1]                         0x00000001     MOS

m_synch[2]                         0x00000002     MVS_SVS

m_synch[8]                         0x00000008     MNS_SNS

m_synch[9]                         0x00000000     NO_SYNCH

#

# *******************************************************

# Definition of H functions and synchronisation types

# =======================================================

h_synch[0]                         0x00000001     MOS

h_synch[1]                         0x00000002     MVS_SVS

h_synch[2]                         0x00000004     MVS_SNS

h_synch[3]                         0x00000008     MNS_SNS

h_synch[4]                         0x00000002     MVS_SVS

#