# Synchronisation type for M05 (P-CHAN-00049)

P-CHAN-00049 | Synchronisation type for M05
Description | When the M05 function is used, the synchronisation type must be defined for the spindles used. The synchronisation type is defined as a string constant or a hexadecimal value.
Parameter | spindel[i].m5_synch
Data type | STRING
Data range | See Spindle-specific synchronisation types
Dimension | ----
Default value | NO_SYNCH
Remarks | Parameterisation example: For a (position-controlled) spindle 'S1', the spindle-specific M function M05 is assigned the synchronisation type MVS_SVS. The PLC is also informed. spindel[0].bezeichnung S1 spindle[0].log_achs_no 6 spindel[0].s_synch MOS 0x00000001

spindel[0].m3_synch PLC_INFO | MVS_SVS 0x00020002

spindle[0].m4_synch PLC_INFO | MVS_SNS 0x00020004

spindel[0].m5_synch PLC_INFO | MVS_SVS 0x00020002

spindle[0].m19_synch MNS_SNS 0x00000008

Note: Programming a UNS32 variable is permissible for downward compatibility reasons.

Example: spindel[0].m5_synch 0x00020002