My laser engraver from 0 knowledge to 32.461% .... probably

Discussions and file drops for Auggie
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4586
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by ArtF »

Hi Bobby:

So you need to remove the function.. commenting it out wont work,
the parser doesnt see comments, it is just looking for function names.
Try breaking up the name while its in comments. Such as

//  function MyButtonControl()...

becomes
// func tion MyButtonControl(//)

That should do it.

Your problem is  typical, as you learn you try to overthink it.. but buttons and variables
are very simple in reality, add one and they tend to work automatically by their name.

  Good go though, you really seem to have figured it out, no small feat with Auggie..


Art


BobbyW
Old Timer
Posts: 117
Joined: Sun Sep 08, 2019 12:27 pm

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobbyW »

ArtF wrote:
  Good go though, you really seem to have figured it out, no small feat with Auggie..


Art
Hi Art
Yea , true it is simple " when you know" if you don't , not realy.
And you right , most of best solution are the simple one , people tend to
overthinking.
I finish the interface , work as expected , now become some test's.
Didn't see much difference in the results but for one thing i'm sure,
the control is way large and easy to find the sweet spot for material.
I post the schematic , is simple easy and working with no delay
as analog do. The interface was made on the knees " just for test"
but is working . And to be honest i dont think i will bother to made
the circuit board in the future.
I give up with NPN open collector transistor for function switch ,
seems inducing some bad ripple in the system.
I end with a very cheap MUX and is way better and remain more channels to "update".


Thanks
Bobby
Attachments
Cut mux.jpg
offset interface real.jpg
result offset interface.jpg
BobbyW
Old Timer
Posts: 117
Joined: Sun Sep 08, 2019 12:27 pm

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobbyW »

Hi everyone .
Time by time , getting experience . Never work before with
stuff like that .
Seems not only engraving give u a satisfaction.
It is a monastery from my town . Was made it long time ago
and my wife give me a chalenge .
I hope u like it
https://en.wikipedia.org/wiki/Curtea_de_Argeș_Cathedral

Thanks
Bobby
Attachments
47468c0d-cdee-49bd-8aaf-c881d4d26f30.jpg
077590ec-8196-4146-b490-0d37ad3919bd.jpg
224bcb61-9ad3-4ec4-bd2d-22fefeb42e13.jpg
7685c37a-65ed-459e-8a7c-bad10a322495.jpg
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4586
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by ArtF »

wow, awesome. Thats  a LOT of work ...

Art
BobbyW
Old Timer
Posts: 117
Joined: Sun Sep 08, 2019 12:27 pm

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobbyW »

ArtF wrote: wow, awesome. Thats  a LOT of work ...

Art
Thanks Art . It was . Was my wife desire  :D :D :D
Now i have a huge problem and i can't solve that . I just dont understand what happen
and that have connection with my old issue about laser power .
I made a extension for inkscape to burn and cut with different powers on different
type of polywood . I remove all unnecessary comments in GCODE as you advice was.
I remove even the path names and print comment on Auggie script , hopping
the system don't get spammed.
The problem appear when i made any shape with more than one power set.
The system will start engraving the paths with different powers and on last
path with engrave power, Auggie show the right power set but the PWM will go out on full
power . After last engrave path (of course with wrong power) the system will
run normaly.
Doesn't matter if i create 2 or 3 or 1000 pieces , if i keep same power in same code
is ok , if i change it , my laser jump in 100% power  :(
I dont know how to solve that and what is the problem .
I put below the file of GCODE and SVG with simple test
maybe someone will figure out what's going on, that make me crazy  ???

Note. I remember was some time , i didn't has that issue . After i change the PWM to 0.000625
Anyway i try different type of PWM thinking is my analog mux fault but after i put the osciloscope
i saw the PWm going out in full power.
Also i notice in Auggie the GCODE dont have the spaces as i created to be .

Thanks
Bobby
Attachments
Auggie view.jpg
Notepad view.jpg
test power.zip
(1.67 KiB) Downloaded 410 times
test power issue.zip
(1.63 KiB) Downloaded 398 times
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4586
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by ArtF »

This sounds like a rewind bug of some sort. As if the system is resetting due to hitting the end of the file, but the
job isnt yet done. Can you try adding a G04P10 at the end, this will force the system to complete everything
it is doing before actually running the G04 delay. The mode switch will stop it from  rewinding till done...

Im curious if that has an effect..

Art
BobbyW
Old Timer
Posts: 117
Joined: Sun Sep 08, 2019 12:27 pm

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobbyW »

ArtF wrote:
Im curious if that has an effect..

Art
Hi Art .
Well , you right as usual . Yes has effect , i try it with P10 , P1 and P0.1
I think P10 is 10 sec , so i need less possible of course .
Now i will try to implement in my extension at the end of each path and i will try more complex
"colors=power" to see how that work .
Let me some time to write that and i will comeback with answer with big test "at least 4 power levels in code"
Thanks for now .
Bobby
BobL
Global Moderator
Global Moderator
Posts: 466
Joined: Sun Sep 05, 2010 7:18 am

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobL »

Good job Bobby, looking forward to your summary, good luck.

Cheers
Bob
;)
Gearotic Motion
Bob
BobbyW
Old Timer
Posts: 117
Joined: Sun Sep 08, 2019 12:27 pm

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobbyW »

BobL wrote: Good job Bobby, looking forward to your summary, good luck.

Cheers
Bob
;)
Hi
Thanks to everyone for kind words.
I'm back to test , i was busy with my garden.
I was able to cut with different powers in same code , now adding
the delay on end path , solve that problem with high power pulses.
Now , on the last Auggie update i found some " small" issues .
One of them , after you engrave a photo , the M3 dont turn off all time .
Sometime does , sometime not .
The second is connected with "missing some segments with different power"
was solved as Art suggest with P delay. Also i remove the M3 command on
each starting path but if any error happen or Auggie stop disabling the
EStop, of course he will keep the coordonates but the M3 will be stopped
of course . To turn on the M3 and continue manual from the stop point
you need to switch to MDI and run M3 , but commin' back to code the point will disappear .
How that can be solved to be able to continue and turn on M3.
For now i put on the beginning on each path the M3 command
but how Art say , is like you spamming the system with unnecessary commands.
Thanks to everyone for support
Bobby
Attachments
M3 essential.jpg
BobL
Global Moderator
Global Moderator
Posts: 466
Joined: Sun Sep 05, 2010 7:18 am

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobL »

Bobby;

Thanks for the feedback, glad to know you were able to defeat the high power pulse with the G4 dwell delay command as per Art's suggestion. I'm personally not aware of any issues with the M3 (Spindle clockwise direction)command in Auggie, or with the M30 command(Program End), both lines appears to work fine for me, however I may not stop the code from running as often as you do? My understanding of the stop and pause buttons for GCode, is that these buttons only get used in times of troubles or an emergency situation. To have to manually reactivate the spindle or laser after a force stop or Estop, by running the M3 command from the MDI line, I just thought was normal procedure? I'm definitely no expert, but I do run Auggie with my laser, which always varies its output power to match the cut, and it also runs my 3 axis CNC mill too, both run flawlessly at this time. Again, possible I'm not aware of how some of you use these commands with your existing configuration, so all I can offer is to remind Art of your feedback when he returns in a few weeks.


Cheers
Bob
:)
Gearotic Motion
Bob
BobbyW
Old Timer
Posts: 117
Joined: Sun Sep 08, 2019 12:27 pm

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobbyW »

BobL wrote: I'm personally not aware of any issues with the M3 

Cheers
Bob
:)
Hi Bob . Well , i don't say is any issue with M3 ,but long time ago i made a extension for Inkscape to be able to
generate the GCODE in a single file with different powers and speeds by line color. As example for "poplar plywood "
need very low power and high speed for engrave a text and for "oak plywood" need a different power and speed. Also for cutting
so unless to manual adjust , i put all together in a single GCODE file. In same example i use RED for half cutting, BLUE for deep engrave
GREEN for light hatch fill engrave  and BLACK for cutting.
On that time i put on the start of each path M3 and M5 on the end. Art suggest to don't put that on each path because i will " spam "
the system. He has right and i remove the M5 and M3 during the job and i let it only on start the code and end.
The extension work great but if any error happen , or EStop get disable by random reason, can't start again the M3
in the middle of job . So i put back the M3 command on each path job begin.
Like that i will lose a small part of cut or engrave until the path job are done.
I'm sure exist a way to do full path rewind but i'm not expert in programming , is just for my hobby.
I attach below, i writed in 2 languages as usualy i do " bad habit  ;D"
As the final note :
Is the most nice forum i ever seen with amazing peoples here. And i seen a lot of forums and i can not count more than 5 in the same way.
As the first look can see Auggie is created with all the thoughts and ideas gathered in one place and put together in a beautiful context.
My experience with that type of machining start and increase here and is all for my hobby " ammore of art "
Thanks for everything .
I will wait Art to comeback if no any idea will cross my mind.

Bobby
Attachments
Inkscape ext2.jpg
Inkscape extension.jpg
BobbyW
Old Timer
Posts: 117
Joined: Sun Sep 08, 2019 12:27 pm

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobbyW »

Hi again.
Well that didn't take to long.
Looking on my post with M3 essential picture , i notice where was the error.
In the extension i duplicate in the mistake the " feed " before the "path"
with G1 and also in time of job with G01.
Actualy i looking on G4 comment "delay 100ms " and that was modified as 10ms  :D
I don't know if that make sense , but for sure is not necesary to double the feed in same path job.
The luck was when i made a screenshot , the yellow line was exactly on that point where was
doubled the "feed" and jumping in my eyes.
So i remove now and i will do some test's.  ::)

Thanks
Bobby
Attachments
Feed issue spam.jpg
BobL
Global Moderator
Global Moderator
Posts: 466
Joined: Sun Sep 05, 2010 7:18 am

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobL »

Hi Bobby;

Thanks for the reply, glad to see last issue resolved with typo error G01. In my experience, M3(Spindle Clockwise) and M5(Spindle Stop) have always worked well for me, however for my application it usually only gets called once. Anyhow, Good luck with your next tests, I'm sure Art will comment on this when he returns.

Cheers
Bob
:)
Gearotic Motion
Bob
BobbyW
Old Timer
Posts: 117
Joined: Sun Sep 08, 2019 12:27 pm

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by BobbyW »

Hi everyone
Some time ago i made a interface to switch between engrave and cut
with one button and also to calibrate the minimum laser power
to start a burn , like a laser offset.
All good , but i don't engrave day by day , is just for my knowlegde and do stuff for
some friends , but yesterday i engrave a small photo and of course to cut after
i switch to cut mode , i go to zero and from the last line"right corner" when the laser
return in rapid move i think G00 , was ok , and after i go " g1x10f7000 " to eliminate the
ramp 10mm i got the big line burn at full power. That's mean the M3 still on.
I look in program and i think the system got spammed because he don't hit the M5 .

Code: Select all

 M30 


 (  Augmented Machine Controller Program End) 

M5
M30 
Is how look at me .
Before this version was ok , that happen after Art update the BIG screen photo editor.
I mean that was a blessing for me , i just want to let you know Art what i found out .
That is what i use at the end of any program and work like a cham

Code: Select all

(Footer)
M5 (LOCK)
G00 X0 Y0 (Return to 0)
M2 (END)
M30 (rewind)
Thanks
Bobby
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4586
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: My laser engraver from 0 knowledge to 32.461% .... probably

Post by ArtF »

Hi Bobby:

Sorry for delays on my answers. I see you pretty much have it sorted out. One thing I might
mention is you may want to add a button ( or edit an unused one) and modify it to be a script
button with the M3 command in it. I think its like GCode("M3"); as the script command. It would
save going to the MDI each time if you do hit an Estop. I havent done that myself as I dont get too
many Estops and Im pretty used to swapping to Single line MDI, selecting the M3 line which is
always there and hitting execute. Only a couple clicks really.

I must find more time to laser, neither of mine have been turned on in months. :)

Art
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests