Hi Wolfram,
Welcome to the forum.
4) I want to start the spindel when push start button even there are no M3 or S… codes and stop it after program
I have not tried this but you could perhaps give it a try.
Using a Mach3 screen designer change the Cycle Start button from OEM to Execute VB Script.
Then within Mach3 insert into the Cycle Start button…
DoSpinCW()
DoOEMButton(1000)
That should turn on the spindle (as M3) then perform the Cycle Start.
To stop the spindle at program end then in Config. / General Config , check the ‘Turn off all outputs’ box in ‘Pgm End or M30 or Rewind’ box.
Tweakie.