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
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, |
MVS_SNS | 0x00000004 | Output of M/H function to PLC before motion block, |
MNS_SNS | 0x00000008 | Output of M/H function to PLC 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, |
MET_SVS | 0x02000000 | M/H function output to PLC with specified distance, |
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 | After | After | 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
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
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
#
Additional information
- Examples of the synchronisation methods in combination with motions
- Example with MVS_SVS
- Example with MVS_SNS
- Example with MNS_SNS
- Example with MNE_SNS
- Example of MVS_SLM
- Example of MVS_SLP
- Response of 'late' synchronisation (MVS_SLM, MVS_SLP) at program end
- Example with synchronisation output brought forward MEP_SVS and MET_SVS
- Defining the lead distance or time lead
- Example with MEP_MOS and MET_MOS
- Example with MOS_TS