Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: bartvano on July 18, 2018, 03:22:57 AM

Title: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: bartvano on July 18, 2018, 03:22:57 AM
Hi all,

I'm having some problems with my CNC machine.

I have attatched a picture of some engraving work.

You can see in the circles that sometimes there is a wierd space between some of the letters.
It seems to be always to the X- direction,  but the sapce is not always the same.   Looks like missing steps to me, but the strange thing about it is that the name he does next is in the place it should be, and with no spaces ....

the Gcode seems to be fine when i generate it in Aspire 8.5  and also when i load it into mach 4


Anny idea's on this ?

Thanks,
Bart
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: Tweakie.CNC on July 18, 2018, 04:44:00 AM
I have absolutely no idea what is causing this but what is really weird is the C and y transposed (in the centre circled example). Obviously, that could not be caused by 'missed steps' so something is going on with Mach4. Are you using the M62/M63 commands for switching your laser ?

Tweakie.
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: Tweakie.CNC on July 18, 2018, 04:59:35 AM
Looking again at your pic. in more detail I see you have more instances of transposed letters and I am inclined to suspect the Gcode.
If you attach your problem Gcode I will run it here and see if I can replicate the result.
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: bartvano on July 18, 2018, 05:06:24 AM
Hi,  thanks for you reply!

I used missing steps in my discription, because i don't know how else to call it ....

But like you say,  looks more like a software bug maybe ... I have checked the preview window in mach 4 and there everyting is like it should be.

No i have mapped a second motor to the Z axis, and use the direction pin to fire the laser...

I have attached the gcode file,  it is a lage file of 21Mb and it runs for about 3 hours....

Did a test in the air this morning (no engraving just the movements) and my origin is exactly the same in the end of this program.

will do an other test tis evening with the laser on...
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: Tweakie.CNC on July 18, 2018, 06:11:54 AM
I only ran a small portion of your Gcode and it is not good.

Your Gcode consists of too many short segment moves and missed letters (which are returned to later in the Gcode for completion of the word). If you did, for any reason, miss a step or two this could explain the transposed letters.

I think that if you improved your Gcode compilation you would not be having this problem.

You may also want to look at using the M62/M63 commands for switching the laser Output# rather than the Z axis direction pin. If it's any help to you my Vectric / Mach4 / Laser post processor is here; https://www.machsupport.com/forum/index.php/topic,36640.0.html

Tweakie.
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: bartvano on July 18, 2018, 06:56:13 AM
Thanksfor the fast usefull reply ;)

I ineed had a problem in this engraving with missed steps,  now it al makes sense ;)  thanks.

I have already seen this in the Gcode file (the missing letters), and other Gcode files with text in them,  why does aspire calculates it in this way, or is it the postprocessor ...?

I don't think i can do annything about this ....? (exept for the postprocessor...?)


I will look into you postprocessor   why is the M62 M63 an advantage ? 

thanks,
Bart


Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: Tweakie.CNC on July 18, 2018, 07:10:21 AM
Quote
I have already seen this in the Gcode file (the missing letters), and other Gcode files with text in them,  why does aspire calculates it in this way, or is it the postprocessor ...?

Who knows, the way in which Aspire creates it's toolpath is a mystery to me.

Quote
why is the M62 M63 an advantage ? 

Those commands have been specially created for laser use, taking effect at the instant of axis movement, and performing a better job with Mach4 than an axis direction pin.

Quote
I will look into you postprocessor

My post processor was just for inserting the M62/M63 commands it will not create a different toolpath or workflow.

Tweakie.
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: bartvano on July 18, 2018, 08:18:40 AM
Do you know how the setup mach4 to use these commands ...?
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: Tweakie.CNC on July 18, 2018, 08:39:37 AM
The 'P' defines the Output# so M62P1 would turn on Output#1 and M63P1 would turn off Output #1 but only at the instant of following axis (any axis) movement.

At the moment you have the Z axis direction pin set as your laser trigger, change your setup so that Output#1 is your laser trigger then the M62P1 / M63P1 commands will switch your laser.

Tweakie.
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: bartvano on July 22, 2018, 06:24:14 AM
I have tried this and mapped an output of my pokeys to output 1  but it just stays high.  can see this in de machine diag.


any sugestions..

i have added the G-code file
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: Tweakie.CNC on July 22, 2018, 06:42:58 AM
Your Gcode looks fine, which motion controller are you using ?

Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: bartvano on July 22, 2018, 07:26:27 AM
i'm using the pokeys 57 CNC

But the i also trie this in MDI
G00 X20
M62 P1
G00 X0
M63 P1


and the output stays high all the way tru....?
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: Tweakie.CNC on July 22, 2018, 08:14:24 AM
I do use a 57CNC for laser work but not with Mach4 so I do not know if the 57CNC actually supports the M62/M63 commands. May I suggest that you contact PoLabs to check this before proceeding;   http://support.polabs.com/

Tweakie.

Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: bartvano on July 22, 2018, 08:22:36 AM
i will check it,  but i don't think the gcode M62-63  has ennything to do with the pokeys 57cnc   it is in mach 4  ....?

mach 4 reads the M62-63  an just puts this to an output of the pokeys....
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: Tweakie.CNC on July 22, 2018, 11:07:30 AM
So it would seem but...
Because the M62/M63 commands only take effect at the instant of axis movement then the Output# would have to be controlled by the 57CNC plugin.

Tweakie.
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: bartvano on July 24, 2018, 02:33:55 AM
I got this from polabs

We are in contact with Mach4 team on how to solve this issue and implement real-time outputs control.



 So you were right
Title: Re: Mach4 engraving CNC laser machine missing steps and regaining them ...?
Post by: Tweakie.CNC on July 24, 2018, 03:12:50 AM
My apologies for suggesting the M62/M63 route - looks like you are back to using an axis direction pin for the time being.
However, I think PoLabs will be pretty quick to implement these commands into their plugin.

Tweakie.