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

Compatibility mode

Axis-specific M and H functions require a compatibility mode. This permits the axis-specific output in existing CNC programs without changing the syntax:

The channel parameters

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

P-CHAN-00025 (h_default_outp_ax_name[HNr])

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

Parameter

P-CHAN-00039

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

P-CHAN-00025

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

Programing Example

prg_example

Axis-specific M function in DIN syntax

The M function M25 assigned in the block by configuring the X axis is output via the axis-specific range of the HLI.

Initialisation in the channel parameter list:

m_synch[25]

0x0002

m_default_outp_ax_name[25]

X

Programming an axis-spec. M function in DIN syntax
Programming an axis-spec. M function in DIN syntax