Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: cemal on April 24, 2010, 04:13:13 AM

Title: Spindle delay
Post by: cemal on April 24, 2010, 04:13:13 AM
I produced a pneumatic  dot peen marking machine and been able to run it with mach3 but still has a few time problems.
In the G codes i use al lot of M3 and M5 codes, and those codes double the prosess time, even if i change the spindle delay time to 0 still mach3 waits for some ms
after those M3-5 codes.  Is there any way to dispose this unnecessary delay
Thanks.
Title: Re: Spindle delay
Post by: Hood on April 24, 2010, 05:21:29 AM
If you are using a single output you can use M11 and M10 instead.
For example to turn on the output you have M11P1 and to turn it off you would have M10P1
The P number is the output you are using, so in the above example it would be OutPut 1

Also the output will not switch until a move is made, so for example in the code below the output would not turn on until the G1 move in line 4 started and it would not turn off until the G0 move in line 6 started.
G0X0Y0Z2
G1Z-2F100
M11P1
G1X10Y10
M10P1
G0Z2


Hood
Title: Re: Spindle delay
Post by: cemal on April 24, 2010, 09:37:27 AM
Thank you for the response it was very usefull, however while M11p1 code is turning on the spindle M10p1 doesn't turn it off,
 but i used the m5 code which is faster then m3 and the prosess time come to normal.
Cemal
Title: Re: Spindle delay
Post by: Hood on April 24, 2010, 09:55:53 AM
Works perfect here, you sure you remembered to have a move after the M10P1?
In fact you dont actually have to move the axis, just have  G0/G1/G2 etc command, for example the following moves the Z to -2 on the last move but as it is already there it doesnt move but that is enough to switch off the output.
G0X0Y0Z2
G1Z-2F100
M11P1
G1X10Y10
M10P1
G0Z-2
m30
%

Hood