Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: bornaabzar on April 13, 2013, 12:16:45 AM

Title: witch line is the software during the runing?
Post by: bornaabzar on April 13, 2013, 12:16:45 AM
Hi
At the first thank you for your software and for support.
i use your mach3 for contrloing my flame cut cnc machin.but i have 2 quastion:
1-is it the way that i underastant line is running the G0,G1,G2 or G3? )it s important for contrloing the electronic check valve.)
2-when  i use the revers run most of the time have error and the machine goes wrong way, more time when i use G2 and G3. i want know it is the software bug? and in the new version have still this bug or no.
Title: Re: witch line is the software during the runing?
Post by: bornaabzar on April 15, 2013, 09:35:46 AM
helo
i need help please.
any one is here?
Title: Re: witch line is the software during the runing?
Post by: Tweakie.CNC on April 15, 2013, 10:13:57 AM
Hi Bornaabzar,

Could you attach a typical GCode file that causes problems please.

(Reply / Additional Options to attach the code)

Tweakie.
Title: Re: witch line is the software during the runing?
Post by: bornaabzar on April 16, 2013, 05:46:15 AM
Hi TWEAKIE
Thank you for your answering.
My Gcode is:
G54 G90 G21 G17 M05
M151 P1000.000
M152 P0
M153 P0
M154 P0
M155 P0
M156 P0
F1000.000 S1000.000
G0 X272.815 Y3.604
M03
G1 X39.176 Y3.604
G1 X40.035 Y15.407
M05
G0 X40.037 Y15.439
M03
G2 X6.748 Y178.043 I25.287 j89.887
G1 X-11.946 Y201.250
G2 X189.740 Y84.635 I77.671 j-98.384
G1 X272.815 Y84.635
G1 X272.815 Y3.604
F1000.000 S1000.000
M05
G0 X46.866 Y124.681
M03
G3 X46.866 Y124.681 I-13.468 j4.489
F1000.000 S1000.000
M05
G0 X61.944 Y169.161
M03
G3 X61.944 Y169.161 I-13.468 j4.489
F1000.000 S1000.000
M05
G0 X118.486 Y160.868
M03
G3 X118.486 Y160.868 I-13.468 j4.489
F1000.000 S1000.000
M05
G0 X107.289 Y104.049
M03
G3 X107.289 Y104.049 I-13.468 j4.489
F1000.000 S1000.000
M05
G0 X43.580 Y81.228
M03
G3 X43.580 Y81.228 I-13.468 j4.489
F1000.000 S1000.000
M05
G0 X94.927 Y57.457
M03
G3 X94.927 Y57.457 I-13.468 j4.489
M05
M02

 and for my first question i use this software for flame cut machine. i want control my flame cut check valve and i need to control on and off the flame. i use on and off spindle function but when i push the start cycle  my flame goes on but i don't want this. i just want when my machine ready for G1 or G2 or G3 it s turn on the flame.
thank you
Bornaabzar
Title: Re: witch line is the software during the runing?
Post by: Tweakie.CNC on April 16, 2013, 06:49:10 AM
Hi Bornaabzar,

I think I understand your problem.

Although your GCode runs fine here and the M03 / M05 commands operate correctly - they will, however, not operate correctly during reverse run.
(I have only tried your GCode with version R3.043.066 and perhaps earlier versions of Mach3 may behave differently).

Do you have your machine configured correctly so that M03 turns on the flame and M05 turns it off ?

Tweakie.
Title: Re: witch line is the software during the runing?
Post by: stirling on April 16, 2013, 07:38:23 AM
Reverse run was fixed some time after 43.22. ('twas yours truly that asked B to fix it).

Prior to that on arcs it worked once first time but thereafter it wandered off and did a mirror image of the arc. That said AFAIK it didn't and still doesn't fire macros but I'm not sure it makes sense to do so.

Cheers

Ian
Title: Re: witch line is the software during the runing?
Post by: bornaabzar on April 16, 2013, 07:50:42 AM
Hi Tweakie
Yes. i use correctly M03 and M05.
in revers run we can turn off the valve by VC scrip program, but after that when i  use cycle start, because i don't know the command line is G0 or G1, i can't have idea for On or OFF valve . because if it was G0 the  valve must be off and Otherwise be on.
thank you 
Title: Re: witch line is the software during the runing?
Post by: bornaabzar on April 16, 2013, 08:50:48 AM
Thank you IAN
do you mean, in the revers run By G02 and G03 code the machin dont move on main line ? because i have this problem.
thank you
Title: Re: witch line is the software during the runing?
Post by: stirling on April 16, 2013, 09:43:31 AM
What version of Mach3 are you using?

Ian
Title: Re: witch line is the software during the runing?
Post by: bornaabzar on April 17, 2013, 03:51:08 AM
Dear Ian
i use version 3.043.034.for my machine.
Title: Re: witch line is the software during the runing?
Post by: stirling on April 17, 2013, 04:09:35 AM
OK you need to update to a later version. I just checked when Brian did the reverse run fix and it was December last year. I don't know which version he first rolled it out in though.

I understand there are issues with the latest lockdown so you might want to go here (ftp://machsupport.com/Mach/) and download 43.62 which I think is ok - maybe Hood will step in if I'm wrong.

Ian
Title: Re: witch line is the software during the runing?
Post by: bornaabzar on April 18, 2013, 04:50:40 AM
Dear IAN
thank you for your supporting. and what about my other problem. for the on and off valve? in my flame cut machine and have problem for on and off the valve during the cycle start and revers run . i use M03 for turning on and M05 for turning off the flame fut in the start and end off the command line. it doesn't work in the revers run.and i cant control it.
thank you 
Title: Re: witch line is the software during the runing?
Post by: Tweakie.CNC on April 18, 2013, 05:49:42 AM
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.
Title: Re: witch line is the software during the runing?
Post by: stirling on April 18, 2013, 07:47:17 AM
I guess we need to ask the question: What is reverse run actually for? Maybe I'm missing something but in plasma at least we have the issue where the fire can go out for various reasons (none of them good) and therefore we want to back up a little and re-start from where we left off. For that we can use "run from here" or "reverse run". But that's it as far as I can see - why would we want to actually CUT backwards? (apart from anything else the "kerf to the left rule" would be violated).

So I guess the question bornaabzar is: WHY do you want to cut backwards?

Ian

Title: Re: witch line is the software during the runing?
Post by: BR549 on April 18, 2013, 11:43:30 AM
The idea of reverse cut is so WHEN the cutting hicups and you loose cut you can stop and backup to the restart point and continue the process. Used with an MPG in shuttlemode you can simply turn the MPG and it will backup thru the code.

BUT it was never really finished to work as OTHER controllers do it.  Normally the mpg would control direction forward/  reverse BUT in MAch3 you have to jump through HOOPS to use it . AND at some point it may LOOSE control(;-)

Just a thought(;-) TP

Title: Re: witch line is the software during the runing?
Post by: bornaabzar on April 21, 2013, 09:39:23 AM
Dears
At first I don't want in the revers run cut backward and  yes you are write i want back little again and re start where we left off. but i want automatically turn on and off the flame.
we wrote some program by vb scribe and solve some parts of the problem. but because there is not way for Diagnosis the G0 in the vb scrip we can't find the way in the program.
please Guidance me for Diagnosis the G0 ( in the vb scribe or maybe some turn on LED when we are in the G0.)
I just want control automatic turn on or off the flame in the forward and back ward. (automatically in the  G0 command turn off and in the G1 command Turn on)
Title: Re: witch line is the software during the runing?
Post by: BR549 on April 21, 2013, 10:20:34 AM
I take it you want the flame to turn on and off by sensing whether mach is in G1/G2 mode or G0 mode.

Mach3 was never designed to be used that way . It follows standard Gcode convention that uses M3/M5 to turn ON/OFF the torch. How would you set pierce dwell that way in the gcode ??

Just a thought, (;-) TP
Title: Re: witch line is the software during the runing?
Post by: bornaabzar on April 22, 2013, 09:57:08 AM
Dear TP
thank you. we use for the pierce Dwell G04. but i want know in Vb scribe is any way that we Diagnosis the current line is G0 or G01/G02/G03?
Title: Re: witch line is the software during the runing?
Post by: bornaabzar on April 22, 2013, 09:58:37 AM
http://www.bornaabzar.com/en/
Title: Re: witch line is the software during the runing?
Post by: BR549 on April 22, 2013, 12:09:47 PM
NOT that I am aware of. Even if you could the Gcode runs at kernal speed where as the Macro only runs at 10 times per sec. Nothing will stay in sync.

(;-) TP