Synchronization type of M-functions (P-CHAN-00041)

In the array "m_synch[i]", the synchronization type of the corresponding M-function is defined. Here, the field index "i" defines the number of the M-function. The value states the synchronization type of the M-function, this means the time for the check of the existence of a PLC-acknowledgement. A motion is not executed or stopped at block end, if at the time for the check from PLC no acknowledgement is received.

Variable name

Type

Permitted range

Dimension

m_synch[i]

SYNCHRO_ART

NO_SYNCH, MOS, MVS_SVS, MVS_SNS, MNS_SNS, MNE_SNS, MVS_SLM, MVS_SLP, MOS_TS, MEP_SVS, MET_SVS, BWD_SYNCH, FWD_SYNCH, FAW_SYNCH

----

i

UNS16

0 ... [M_FKT_ANZ-1]

----

Value M_FKT_ANZ

Significance

application-dependent

Maximum number of M-functions

Constant

Value

Significance

NO_SYNCH

0x00000000

No output of M-function to PLC.

MOS

0x00000001

Output of M-function to PLC without synchronization.If the M-function is programmed within a motion block, the output of the M-function is executed before the motion.

MVS_SVS

0x00000002

Output of M-function to PLC before motion block,
Synchronization before motion block

MVS_SNS

0x00000004

Output of M-function to PLC before motion block,
Synchronization after motion block

MNS_SNS

0x00000008

Output of M-function to PLC after motion block,
Synchronization after motion block

MNE_SNS

0x00000020

Output of M-function to PLC after (measurement-)signal,
Synchronization after motion block (only for option edge banding)

MVS_SLM

0x00004000

Late synchronization, Output of M-function to PLC within the block, Synchronization during transition to G01/G02/G03 (Implicit synchronization)

MVS_SLP

0x00008000

Late synchronization, Output of M-function to PLC within the block, Synchronization by NC-command #EXPL SYN (Explicit synchronization)

MOS_TS

0x00040000

Output of M function to PLC before motion block without synchronization, sample time offset as parameter for precise time-related output in PLC.

BWD_SYNCH

0x00400000

Synchronization of M-function during backward on path as MVS_SVS

FWD_SYNCH

0x00800000

Synchronization of M-function during "Simulated forward on path" based on the defined synchronization type

MEP_SVS

0x01000000

Output of M-function before specified path, synchronization before next block

MET_SVS

0x02000000

Output of M-function before specified time, synchronization before next block

FAW_SYNCH

0x10000000

Stop of decoding (Flush and Wait): Output of M-function to PLC and stop of program decoding at block end until all NC blocks in NC-channel were executed. FAW_SYNCH can be set in addition to other synchronization types. M-functions with FAW_SYNCH may not be used during active tool radius correction (WRK), polynomial contouring and HSC-mode.