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

Programming Example

PLC spindle with output of M functions via the channel range

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
Example 2b: PLC spindle with output of M functions via the channel range 1:
PLC spindle with output of M functions via the channel range