Hello Guest it is April 19, 2024, 08:19:00 PM

Author Topic: how to avoid T/M commands execution delay  (Read 11844 times)

0 Members and 1 Guest are viewing this topic.

Offline nik

*
  •  69 69
    • View Profile
how to avoid T/M commands execution delay
« on: March 08, 2013, 08:22:08 AM »
hello everyone
currently Im trying to optimize very short lathe G code
total time 40 seconds then a bar puller is used to continue again and repeated many times
in that G code I have several times tool change and several times coolant on/off
I noticed that tool change and M8/M9 commands delay slightly but when many times used cause significant delay
I think currently I loose about 5-6 seconds total,  which is 10-15% time waste, how to avoid that delay?
thanks
Re: how to avoid T/M commands execution delay
« Reply #1 on: March 08, 2013, 08:50:58 AM »
Hi nik,
look if you have set a delay in Config > Ports and Pins > Spindle Seup > Fllood Mist Control
If that is set to 0 i have no delay here.
The delay regarding the toolchange depends on your Setup ( toolchange macro )

Alex




Offline nik

*
  •  69 69
    • View Profile
Re: how to avoid T/M commands execution delay
« Reply #2 on: March 08, 2013, 09:02:47 AM »
hi
it is already zero there but still have a delay probably 0.3-0.4 seconds or so
I forgot to mention - the spindle is step/dir control if that make any difference
any other ideas?
thanks
« Last Edit: March 08, 2013, 09:09:10 AM by nik »
Re: how to avoid T/M commands execution delay
« Reply #3 on: March 08, 2013, 10:44:29 AM »
Hi,
can you attach your G code.

Alex

Offline nik

*
  •  69 69
    • View Profile
Re: how to avoid T/M commands execution delay
« Reply #4 on: March 08, 2013, 11:05:53 AM »
it is on another PC
but here is something similar to show the problem

M3 S3000
G0 Z20
T0606  ;on that line I can notice a little pause
X10
Z-5
M8       ; pause again
G1 X9 F500
Z-20
X8
Z15
M9      ; pause again
G0 X10
Z20



Re: how to avoid T/M commands execution delay
« Reply #5 on: March 08, 2013, 11:50:09 AM »
ok, need more input.
Attach your xml and M06start Macro please.

Alex

Offline nik

*
  •  69 69
    • View Profile
Re: how to avoid T/M commands execution delay
« Reply #6 on: March 08, 2013, 12:29:18 PM »
here are both files attached
renamed because original name unable to upload
I didnt made any changes to any files
original mach3 R3.043.022 as downloaded
newer versions do not work on that motherboard so I stick to this one

PC is pentium 4 1.7 ghz 512 ram asus motherboard
windows XP installed with all optimizations to run mach3
« Last Edit: March 08, 2013, 12:34:04 PM by nik »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: how to avoid T/M commands execution delay
« Reply #7 on: March 08, 2013, 12:42:45 PM »
In later versions of mach3 a Run delay crept in concerning Mcodes.

Just a thought, (;-) TP

Offline nik

*
  •  69 69
    • View Profile
Re: how to avoid T/M commands execution delay
« Reply #8 on: March 08, 2013, 12:49:13 PM »
where is set that delay? can I change it somehow?
Re: how to avoid T/M commands execution delay
« Reply #9 on: March 08, 2013, 02:20:57 PM »
nik,
No M8 / M9 delay here in ver. .062 so far i can see.
The toolchange Macro you posted has no toolchange content.

Alex