Page 2 of 4

Re: print where

Posted: Wed Dec 21, 2016 11:44 pm
by DanL
I think it's corrupted again Auggie does not like me very much I give it ago on my machine computer

Re: print where

Posted: Thu Dec 22, 2016 12:17 am
by ArtF
Is this XP Dan? We've discover XP doesnt like the librarian, Ive made soem fixes for it, theyll be in the next version as
well..


Art

Re: print where

Posted: Thu Dec 22, 2016 12:54 am
by DanL
Na win10, just playing to learn I did a M10 what is just.

global MCode11 = function()
{
  //debug();
  Engine.RapidTo(x,y,10);
  Engine.StopProgram();
}; 

it does what is meant to do plus I added other stuff to it and it works as well.

but in M6 I have this

global MCode6 = function()
{
  debug();
  print("A M6 was just executed.");
  print("Change now to Tool " " " + tool + " " "requested");
  sleep(10);
  Engine.RapidTo(x,y,10);
  Engine.StopProgram();
}; 


it does everything in it other than the Engine.RapidTo(x,y,10); and debug it does not matter where it is it just does not do those lines.

Having just this it's fine and does what I need.

global MCode6 = function()
{
  print("A M6 was just executed.");
  print("Change now to Tool " " " + tool + " " "requested");
  Engine.StopProgram();
}; 

Re: print where

Posted: Thu Dec 22, 2016 2:19 am
by ArtF
Dan:

I think youll find MCode6 isnt being called, its calling ToolChange( tool )..which has the same messages..

M3,M5,M4, M6 are all special and call special macros, SpindleOn SpindleOff, ToolChange..etc..

Any nonstandard MCode or unrecognised MCode will call a script named MCodeX .. so modify ToolChange and it will work.. after the next release anyway. Thx for the tests..

I just fixed G28 as well for next release. It will call CallHome(x,y,z,a ) with values of how far the user wants each axis to go .. so if your zeroed 10 inches from Xhome and enter G28X2 , youll get CallHome( -8,0,0,0 ); You can use the distance
information any way youd like. Standard would be to first move to the X position, then home.. as I recall..

Art

Re: print where

Posted: Thu Dec 22, 2016 3:43 am
by DanL
Cool, it's not doing a lot with M6 debug is doing nothing so yer she broke, for fun I can change M6 to M11 in the fusion post or whatever M is free.

It's fun when stuff works going over your vids is helping.

I have to add a dwel to the fusion post before and after a tool change it moves too fast, pucker factor 1000%.

Re: print where

Posted: Fri Dec 23, 2016 1:15 am
by ArtF
Dan:

New version was just uploaded, but not yet announced till I do a video. G28 is fixed in this version as well as several other fixes in other areas..

Art

Re: print where

Posted: Fri Dec 23, 2016 2:34 am
by DanL
Thanks Art I will test now.

Re: print where

Posted: Fri Dec 23, 2016 3:31 am
by DanL
Right one problem down a new one, this one is going to be Hard.

A M6 call from fusion 360, Auggie blows through it. A M6 from Vcarve pro all good. M6 in the MDI all good

I added the Z10 to the tool change call before the stop motion it works.

global DoToolChange = function( tool )
{
    //debug();
    print("Change now to Tool " + tool + "requested");
    Engine.RapidTo(x,y,10);
    Engine.StopProgram();
};


And G28 Z0 nothing happens.

Running G28 Z0 in the MDI with the scripting window open and running.
it comes up with thread ID 103, status broken. it comes up with onrun(); in the scripting window

All done on the non machine control computer.

Going to try the machine control computer now

Re: print where

Posted: Fri Dec 23, 2016 5:25 am
by DanL
Well that did not go well at all, the vectric code worked other than G28.

Then I ran into communication problems ethernet just stop working all together. restarts no help, cycling the power to the 57cnc did not help.

Switched to the usb and it was just as bad.

all the above was in Auggie.

When I brought up the pokeys application the ethernet was no response at all, the usb was fine. this is all on the latest update, 2 versions back it was running fine.

one step forward, 3 back.

Re: print where

Posted: Fri Dec 23, 2016 2:14 pm
by ArtF
DanL:

  Wow, hard to say what that one is. When the ethernet fails to respond there must be something screwy..
Id try a complete reset of it via pokeys , a firmware and full reload and see if the ethernet comes back, if not
yell to Pokeys, they are really good at support. Once its working again, hopefully it all starts going properly.

Art