Example 2b: Programming an axis-specific M function in DIN syntax

Compatibility mode

After the introduction of axis-specific M and H functions, a compatibility mode became necessary to make it possible to use existing CNC programs for axis-specific output as well without changing the syntax.

Via the channel parameters

P-CHAN-00039 (m_default_outp_ax_name[MNr]) or

P-CHAN-00025 (h_default_outp_ax_name[HNr])

axis-specific output of an M or H function can be defined as the default. A channel-specific output then no longer takes place.

Parameters

P-CHAN-00039

Designation of the axis to which the M function with the number MNr is output

P-CHAN-00025

Designation of the axis to which the H function with the number HNr is output

Initialization in the channel parameter list

m_synch[25] 0x0002

m_default_outp_ax_name[25] X

Programming example

Example 2b: Programming an axis-specific M function in DIN syntax 1: