Example 2b: PLC spindle with output of M functions via the channel range
Programing Example

PLC spindle with output of M functions via the channel range
A PLC spindle can also be supplied with M functions via the channel-specific range of the HLI. In this case, the channel parameter P-CHAN-00069 (plc_control) must be assigned the value 1.
The PLC_INFO need not be set for the output of M functions. In this case, the spindle is not configured as a CNC axis.
Initialisation in the channel parameter list
spindel[0].plc_control 1
spindel[0].m4_synch 0x00000004 MVS_SNS
spindel[0].m5_synch 0x00000004 MVS_SNS
spindel[0].m19_synch 0x00000004 MVS_SNS
