An M code to turn the probe on is usually only if the probe has a centrifugal switch etc, not to activate the G31, if the G31 option on the control is active, then normally all that is required is to trip the skip input, if the G31 line does nothing, It could be two things.
1/ the G31 option is not present.
2/The other is if the probe logic is wrong and the probe is initiating a skip right off the bat. If it drops through to then next line then this is the problem.
Al.