@HAMMENG
Could you not just use a Manual NC "Pass Through" to generate the M0 as and when required for a specific operation ??