Parameterising the synchronization methods
Synchronization method
The synchronization method of each corresponding M function is defined in the table entitled P-CHAN-00041 (m_synch). The field index "MNr" corresponds to the number of the M function. The value specifies which synchronization method the M function possesses, i.e. when 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 has arrived from the PLC.
The corresponding table P-CHAN-00027 (h_synch) is used for H functions.
P-CHAN-00041 | Synchronisation method of the M function with the number MNr |
P-CHAN-00027 | Synchronisation method of the H function with the number HNr |
In NC program the synchronization method of each M/H function also can be changed by corresponding variables (V.G.M_FCT[MNr].SYNCH or V.G.H_FCT[HNr].SYNCH) [PROG]. |
Symbol | Value | Meaning |
---|---|---|
NO_SYNCH | 0x00000000 | No output of the M/H function to PLC |
MOS | 0x00000001 | Output of the M/H function to PLC without synchronization |
MVS_SVS | 0x00000002 | Output of the M/H function to PLC before the motion block, |
MVS_SNS | 0x00000004 | Output of the M/H function to PLC before the motion block, |
MNS_SNS | 0x00000008 | Output of the M/H function to PLC after the motion block, |
MNE_SNS | 0x00000020 | Output of the M/H function to PLC after an event (e.g. measurement interrupt), |
Synchronisation across blocks CAUTION: Is only allowed for M functions! | ||
MVS_SLM | 0x00004000 | Late synchronization, M function output at the start of the block. Synchronisation at the transition to the motion block with machining feed rate (G01/G02/G03) ('late' synchronization implicit, Sync. late movement) |
MVS_SLP | 0x00008000 | Late synchronization, M function output at the start of the block. Synchronisation in the case of the NC command #EXPL SYN ('late' synchronization explicit, Sync. late program) |
Synchronisation pre-output | ||
MEP_SVS | 0x01000000 | M/H function output to PLC with a specified distance, |
MET_SVS | 0x02000000 | M/H function output to PLC with a specified time, |
MOS_TS | 0x00040000 | CAUTION: Is only allowed for M functions! Output of the M function to the PLC before the motion block without synchronization, sample time offset as parameter for precise time-related output in PLC. |
M or H output Synchronisation | Before | After | After | Pre-output according to specified distance/time | None |
---|---|---|---|---|---|
Before motion | MVS_SVS |
|
| MEP_SVS, MEP_SVS |
|
After motion | MVS_SNS | MNS_SNS | MNE_SNS |
|
|
Implicit at next transition | MVS_SLM |
|
|
|
|
Programmed synchronization | MVS_SLP |
|
|
|
|
None | MOS |
|
|
| NO_SYNCH |
None | MOS_TS |
|
|
|
|
The reaction of the synchronization methods MVS_SVS, MVS_SNS and MNS_SNS is identical if M or H functions are programmed without motion in the block. |
Example
#****************************************
#Definition of M functions and synchronization methods
#======================================================
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 synchronization methods
#=====================================================
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
#