print where

Discussions and file drops for Auggie
DanL
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

print where

Post by DanL »

global MCode6 = function()
{
  print("A M6 was just executed.");
 
};

Hi art starting to work on a M6 script when I run the code above where does the print print.
Amazon [Bot]
Full Member
Full Member
Posts: 185
Joined: Tue Jan 06, 2026 4:56 pm

Re: print where

Post by Amazon [Bot] »

should see it on both the screen and in the log file

global MCode6 = function( tool )
{
    print("A M6 was just executed.");
    print("Change now to Tool " + tool + "requested");
    Engine.StopProgram();
};
You do not have the required permissions to view the files attached to this post.
DanL
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

Re: print where

Post by DanL »

I must be doing something wrong.

If I have what you posted in the script window on screen it does not print, If I have it in the scripter window nothing in the G code library nothing.

I will watch arts vids again see if I can find where I am going wrong
DanL
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

Re: print where

Post by DanL »

Auggie is not working properly running it in sim, I will have to try it on the computer with a pokeys attached
Amazon [Bot]
Full Member
Full Member
Posts: 185
Joined: Tue Jan 06, 2026 4:56 pm

Re: print where

Post by Amazon [Bot] »

the image above was from the Single MDI tab

this image is from the MultiLine MDI tab shows me calling it twice in the SIM mode

make sure you have the yellow highlighted line on the start line and use the run button
You do not have the required permissions to view the files attached to this post.
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: print where

Post by ArtF »

Dan:

We did find an error in the M6 today, it wasnt remembering the tool properly. When interpreted, the M6 calls the macro "ToolChange( tool )" but you'll need an updated version which I haven't put out yet for the fix. Ill be updating within a few days.

Thx
Art
DanL
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

Re: print where

Post by DanL »

Art the version of gearotic on my inside laptop was corrupted, most things in Auggie where not working and gearotic was doing strange shit.

I had to strip gearotic and Auggie from the computer, I tried a overwrite first and thing were still bonkers so had to run a cleaning program, onces it was all cleaned out I did a reinstall and now it is fine.

That will explain why some bits are not working the code Ya-Nvr_No posted works fine sort of (it's safe to use).

It was close too what I was trying to use, What is a good sign that I was close to a correct code I just had a bit more info there.

Is there a code call for moving a axis to its home position I tried to find it yesterday. (engine.rapidto (x,y,10) works for moveing Z above the work zero) I would rather have the Z goto machine Z zero.
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: print where

Post by ArtF »

Hi Dan:

Many of the commands I roughed in even though I didnt need them for laser. In theory a G28Z0 should work,
but Id test it carefully. Let me know if it doesnt and Ill investigate a solution. Many commands are like that , unused, so untested or fixed up. My laser runs well under Auggie, but I don't use many codes other than standard calls for motion..and homing.

Art
DanL
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

Re: print where

Post by DanL »

G28 does not work
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: print where

Post by ArtF »

Dan:

Just checked, A g28X0 will call a macro CallHome( x,y,z,a ); Youll have to modify that macro ( or add it) to
make it then command a G1 or G0..or whatever type of homing sequence you'd like. This allows you to specify
a Z to home first if required...or any special considerations you may want. A G28 or G30 will do the same thing.

  I believe the x,y,z, a, coordinates are the offset distance to home in current coordinates . So you may want to
also massage them to stop .1" before ..or as you like.  Again, all untested by me, but Ive traced the call and it all
seems to work.

Art

Post Reply