Page 1 of 4

print where

Posted: Tue Dec 20, 2016 10:42 pm
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.

Re: print where

Posted: Wed Dec 21, 2016 12:53 am
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();
};

Re: print where

Posted: Wed Dec 21, 2016 2:42 am
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

Re: print where

Posted: Wed Dec 21, 2016 3:24 am
by DanL
Auggie is not working properly running it in sim, I will have to try it on the computer with a pokeys attached

Re: print where

Posted: Wed Dec 21, 2016 12:32 pm
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

Re: print where

Posted: Wed Dec 21, 2016 8:22 pm
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

Re: print where

Posted: Wed Dec 21, 2016 9:10 pm
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.

Re: print where

Posted: Wed Dec 21, 2016 10:20 pm
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

Re: print where

Posted: Wed Dec 21, 2016 10:41 pm
by DanL
G28 does not work

Re: print where

Posted: Wed Dec 21, 2016 11:00 pm
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