Hi Bornaabzar,
You are perhaps trying to use Mach3 in a way for which it has not been designed.
Thinking about the M03 / M05 commands in your GCode - if they were to work, as is, during reverse run it would not be logical.
For example…
(Turn ON – Cut – Turn OFF) when in reverse run would be (Turn OFF – Cut – Turn ON).
I think this has been discussed before, in another thread, but if it was possible to reverse the active state of the spindle Output# pin only during a reverse run and also allow the M03 / M05 commands to execute during the reverse run then it could work logically correct.
Perhaps others will know if this is possible to achieve.
Tweakie.