Synchronisation types of M functions (P-CHAN-00041)

P-CHAN-00041

Synchronisation types of M functions

Description

The synchronisation type of the corresponding M function is defined in the array ‘m_synch[i]’. The array index ‘i’ then defines the number of the M function. The value indicates the synchronisation type of the M function, i.e. when a check is made for presence of a PLC acknowledgement. A movement is not executed or stopped at block end at the latest if no acknowledgement is received from the PLC at the time for the check. The synchronisation type is defined as a string constant or a hexadecimal value.

Parameter

m_synch[i] where i = 0 ... 999 (maximum number of M functions, application-specific)

Data type

STRING or UNS32

Data range

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

Dimension

----

Default value

NOT_VALID (-1) or NO_SYNCH (0x0) for internal M functions (M0, M1, M2, M17, M29, M30, M3, M4, M19)

Remarks

M functions are consumption information and must be fetched (read) from the PLC. This also applies to M functions of the type MOS, MOS_TS, MEP_MOS and MET_MOS. Otherwise this results in a blocked interface to the HLI in the CNC and as a consequence to an unexpected processing stop.

 

Caution:

The following applies to synchronisation types with associated time and path-related pre-output (MET_SVS, MET_MOS, MEP_SVS, MEP_MOS):

If one of these synchronisation types is later changed into one which requires no pre-output value, P-CHAN-00070 (m_pre_outp[i]) must be assigned to 0. Otherwise a license error is generated in case of microwebs if this function is not licensed or not enabled (see P-STUP-00060).

Constant

Value

Meaning

NOT_VAILD

-1

No valid M function

NO_SYNCH

0x00000000

No output of M function to PLC

MOS

0x00000001

Output of M function to PLC without synchronisation. If the M function is programmed within a motion block, the output of the M function is executed before the movement. M function must be fetched from PLC!

MVS_SVS

0x00000002

Output of the M function to the PLC before the motion block,
synchronisation before the motion block

MVS_SNS

0x00000004

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

MNS_SNS

0x00000008

Output of the M function to the PLC after the motion block,
synchronisation after the motion block

MNE_SNS

0x00000020

Output of the M function to the PLC after a (measurement) event,
synchronisation after the motion block
(for edge bending option only)

MVS_SLM

0x00004000

Late synchronisation, output of M function to PLC within the block, synchronisation during transition to G01/G02/G03 (implicit synchronisation)

MVS_SLP

0x00008000

Late synchronisation, output of M function to PLC within the block, synchronisation by NC command #EXPL SYN (explicit synchronisation)

MOS_TS

0x00040000

Output of the M function to the PLC before motion block without synchronisation.,
CNC calculates sampling time offset for high-precision time output in the PLC.
M function must be fetched from PLC.

MEP_MOS

0x00100000

Pre-output of M function with specified path, without synchronisation.
M function must be fetched from PLC.

MET_MOS

0x00200000

Pre-output of M function with specified time, without synchronisation.
M function must be fetched from PLC.

BWD_SYNCH

0x00400000

Synchronisation of M function during backward motion with MVS_SVS

FWD_SYNCH

0x00800000

Synchronisation of M function during 'Simulated forward motion' based on the defined synchronisation type

MEP_SVS

0x01000000

Output of M function with specified path, synchronisation before next block

MET_SVS

0x02000000

Pre-output of M function with specified time, synchronisation 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 program run is completed. FAW_SYNCH can be set in addition to other synchronisation types. M functions with FAW_SYNCH may not be used with active tool radius compensation (WRK), polynomial contouring and HSC mode.