reading Pokeys pins
Re: reading Pokeys pins
Gary:
Do you get an error if you use FreeSetAxisType(..)?
In the pokeys softwares config for its engine, did the 3-axis checkbox get checked.That would switch
it to a 3 axis controller with no freeaxis.
Did this happen in testing or immediately after one of my updates? Shouldnt be too hard
to track this down, though I may have to add a couple log mesages to trace whats happening.
Mine seem to run fine as soon as I press Tool#1 button.
Thx
Art
Do you get an error if you use FreeSetAxisType(..)?
In the pokeys softwares config for its engine, did the 3-axis checkbox get checked.That would switch
it to a 3 axis controller with no freeaxis.
Did this happen in testing or immediately after one of my updates? Shouldnt be too hard
to track this down, though I may have to add a couple log mesages to trace whats happening.
Mine seem to run fine as soon as I press Tool#1 button.
Thx
Art
Re: reading Pokeys pins
Art
That was it somehow pokeys config was changed, auggies was good, so fixed the pokeys config and now the free axis is working..
I'm thinking mach4 must have changed things in the pokeys config..
Sorry for not checking that..
Is there a way to have the free axis wait for motionstill the block("MotionStill") doesn't seem to wait for the free axis to stop
so the free axis is moving and the next script line is to move x y z and it starts and finishes before the free axis 6 and 7 finish moving..
I am not clear on what you meant to only use the ok cancel buttons in the dialog, you don't want me to call a function with a button I created in the dialog ?.
Thanks gary
That was it somehow pokeys config was changed, auggies was good, so fixed the pokeys config and now the free axis is working..
I'm thinking mach4 must have changed things in the pokeys config..
Sorry for not checking that..
Is there a way to have the free axis wait for motionstill the block("MotionStill") doesn't seem to wait for the free axis to stop
so the free axis is moving and the next script line is to move x y z and it starts and finishes before the free axis 6 and 7 finish moving..
I am not clear on what you meant to only use the ok cancel buttons in the dialog, you don't want me to call a function with a button I created in the dialog ?.
Thanks gary
Re: reading Pokeys pins
Hi Gary:
>>That was it somehow pokeys config was changed, auggies was good, so fixed the pokeys config and now >>the free axis is working..I'm thinking mach4 must have changed things in the pokeys config..
It probably was. Mach uses the Pokeys with a different paradigm, it contains the config inside mach and programs the Pokeys to match. Auggie expects the Pokeys to be configured and doesn't store its
information for the most part. It does keep some and will reprogram a bit, but mostly leaves the pokeys
as it is, which allows it to use any Pokeys without regard to type as long as it has a motion engine (internal or external). Some of the configuration changed after Auggie was written so there is a bit of a problem if
your switching between programs, but if you get used to what changed, its usually only 1 or two settings. If you get a warning that your pokeys isnt the same as Auggies config, it may be safer to select "Use Auggies data" and then check the pokeys config if anything doesn't seem to work. If you change the PoKeys config using their software, make sure you "Send to PoKeys" to keep it saved on the device. I dont switch anymore,
my 2 machines in house are runnign Auggie, and I run Mach3 in my workshop, so I dont run into this, but
when I did share between Auggie and Mach4, I got used to what changed and coudl quickly refix for Auggie by running Pokeys and changing one or two settings.
>>Sorry for not checking that..
lol, no problem. Its all very complex really and you've dug in very well I think. Almost all of your troubles
were in the end my fault as the functions for them were never tested in the context of general cnc , but mostly only on lasers. Ive used Auggie hundreds of hours on Lasers so I knows its operation is basically
sound and does great motion, but as your probably one of the first to get this deep into general CNC
youll probably hit more things as you go. Ill fix them as I can find them, but always keep in mind
Auggie was meant to be a simple controller, not as complex as Mach3. (Though to be honest its damn near that complex as myself and YaNvrNo went a little nuts while we tested and developed it. For a free
controller its fairly powerfull for Laser use. ). I typically run these days at 25000 mm/min which is pretty
fast for what its doing. I never planned on offsets , which really complicate a planner and which CAM does
better in my view, nor did I allow for G43, though to be honest it is there, just mostly untested.
>>Is there a way to have the free axis wait for motionstill the block("MotionStill") doesn't seem to wait for the free axis to stop so the free axis is moving and the next script line is to move x y z and it starts and finishes before the free axis 6 and 7 finish moving.
Yes, use "FreeStill" to block on, you can block on either or both. If you command a freeaxis move and want to wait for it, just block on "FreeStill" instead of "MotionStill". The 4 "free" axis are simply a duplicate of the
first axis planner with a few changes such as being able to configure any of them to be constant frequency
outputs. This can lead to some confusion due to the amount of variation possible in the configuration of
these. You can double these up by the way, it should be legal to execute a
Block("MotionStill");
Block("FreeStill);
in a script, or you can make a global script , name it WaitForAllToStop() and put those two calls in it.
>>I am not clear on what you meant to only use the ok cancel buttons in the dialog, you don't want me to call a function with a button I created in the dialog ?.
No, I was only referring to the fact your error dialog , once opened, added another OK and cancel each time it opened, so I ended up with 10 OK's and 10 Cancel buttons on the dialog at once. This is repaired and only 1 OK and Cancel will ever appear at once. Ignore this if its never happened to you, its just something I noticed while testing your scripts.
So, at this point add your Block("FreeStill") after your rack calls and such and it will wait till their done
to continue.
Looks like your getting close anyway. Im not able to test exactly as you do as Im not configured exactly
as you but I can usually synthesize an error if you can explain it to me sufficiently.
Thx
Art
>>That was it somehow pokeys config was changed, auggies was good, so fixed the pokeys config and now >>the free axis is working..I'm thinking mach4 must have changed things in the pokeys config..
It probably was. Mach uses the Pokeys with a different paradigm, it contains the config inside mach and programs the Pokeys to match. Auggie expects the Pokeys to be configured and doesn't store its
information for the most part. It does keep some and will reprogram a bit, but mostly leaves the pokeys
as it is, which allows it to use any Pokeys without regard to type as long as it has a motion engine (internal or external). Some of the configuration changed after Auggie was written so there is a bit of a problem if
your switching between programs, but if you get used to what changed, its usually only 1 or two settings. If you get a warning that your pokeys isnt the same as Auggies config, it may be safer to select "Use Auggies data" and then check the pokeys config if anything doesn't seem to work. If you change the PoKeys config using their software, make sure you "Send to PoKeys" to keep it saved on the device. I dont switch anymore,
my 2 machines in house are runnign Auggie, and I run Mach3 in my workshop, so I dont run into this, but
when I did share between Auggie and Mach4, I got used to what changed and coudl quickly refix for Auggie by running Pokeys and changing one or two settings.
>>Sorry for not checking that..
lol, no problem. Its all very complex really and you've dug in very well I think. Almost all of your troubles
were in the end my fault as the functions for them were never tested in the context of general cnc , but mostly only on lasers. Ive used Auggie hundreds of hours on Lasers so I knows its operation is basically
sound and does great motion, but as your probably one of the first to get this deep into general CNC
youll probably hit more things as you go. Ill fix them as I can find them, but always keep in mind
Auggie was meant to be a simple controller, not as complex as Mach3. (Though to be honest its damn near that complex as myself and YaNvrNo went a little nuts while we tested and developed it. For a free
controller its fairly powerfull for Laser use. ). I typically run these days at 25000 mm/min which is pretty
fast for what its doing. I never planned on offsets , which really complicate a planner and which CAM does
better in my view, nor did I allow for G43, though to be honest it is there, just mostly untested.
>>Is there a way to have the free axis wait for motionstill the block("MotionStill") doesn't seem to wait for the free axis to stop so the free axis is moving and the next script line is to move x y z and it starts and finishes before the free axis 6 and 7 finish moving.
Yes, use "FreeStill" to block on, you can block on either or both. If you command a freeaxis move and want to wait for it, just block on "FreeStill" instead of "MotionStill". The 4 "free" axis are simply a duplicate of the
first axis planner with a few changes such as being able to configure any of them to be constant frequency
outputs. This can lead to some confusion due to the amount of variation possible in the configuration of
these. You can double these up by the way, it should be legal to execute a
Block("MotionStill");
Block("FreeStill);
in a script, or you can make a global script , name it WaitForAllToStop() and put those two calls in it.
>>I am not clear on what you meant to only use the ok cancel buttons in the dialog, you don't want me to call a function with a button I created in the dialog ?.
No, I was only referring to the fact your error dialog , once opened, added another OK and cancel each time it opened, so I ended up with 10 OK's and 10 Cancel buttons on the dialog at once. This is repaired and only 1 OK and Cancel will ever appear at once. Ignore this if its never happened to you, its just something I noticed while testing your scripts.
So, at this point add your Block("FreeStill") after your rack calls and such and it will wait till their done
to continue.
Looks like your getting close anyway. Im not able to test exactly as you do as Im not configured exactly
as you but I can usually synthesize an error if you can explain it to me sufficiently.
Thx
Art
Re: reading Pokeys pins
Gary:
By the way, Id recommend instead of using your tool panel the way you do, just instead use the main screen
and edit the 4 axis panel to add your toolpanel as one of its subpanels. That way it wont have to shrink the
screen to open up and just selecting the tab that will show up will get you immediate access to the toolchanger buttons without the screen having to reconfigure.
The scheme your using is instead similar to my Diags panel which also annoys by shrinking the screen
when it opens. Ive since learned its better and easier to simply add new panels as subpanels to
panels already on the screen. Auggies editor is better than Scream4, but still has its annoyances.
Just an FYI.
Art
By the way, Id recommend instead of using your tool panel the way you do, just instead use the main screen
and edit the 4 axis panel to add your toolpanel as one of its subpanels. That way it wont have to shrink the
screen to open up and just selecting the tab that will show up will get you immediate access to the toolchanger buttons without the screen having to reconfigure.
The scheme your using is instead similar to my Diags panel which also annoys by shrinking the screen
when it opens. Ive since learned its better and easier to simply add new panels as subpanels to
panels already on the screen. Auggies editor is better than Scream4, but still has its annoyances.
Just an FYI.
Art
Re: reading Pokeys pins
Art
FreeStill worked perfect, so looks like I can go on from here, with the tool change, and probing..
the main reason I was using my own display for tools and probe was the free axis display was small to read.. at least for me
and since I sent you my panels I have added the 8 axis dro's to the probe and tool panels and also 8 zero buttons, but I will add them to the free axis panel and see how it looks, for me bigger is better, as my eyes get older..
I did have that problem with ok and cancel with the error dialog I think I mentioned it awhile back.. will check it out.
So next thing that may have to be ironed out would be the T M6 I will do some more testing and see what is causing me the most problems...
Did some testing on the m6, also don't see any buttons created with the error dialog should I turn off the ok cancel and just use the
x to close out the window..?
As for the m6 it seems good on the first m6 call my dialog pops up and then I close it out and hit run the gcode runs fine till the second T M6
at this point seems like auggie's continue dialog takes over, and mine never pops up again then when I hit continue some dro's move but the g code never
moves past this m6 line seems just to loop there and the continue box pops up again with same result stuck on the second m6 call..
Thanks Gary
FreeStill worked perfect, so looks like I can go on from here, with the tool change, and probing..
the main reason I was using my own display for tools and probe was the free axis display was small to read.. at least for me
and since I sent you my panels I have added the 8 axis dro's to the probe and tool panels and also 8 zero buttons, but I will add them to the free axis panel and see how it looks, for me bigger is better, as my eyes get older..
I did have that problem with ok and cancel with the error dialog I think I mentioned it awhile back.. will check it out.
So next thing that may have to be ironed out would be the T M6 I will do some more testing and see what is causing me the most problems...
Did some testing on the m6, also don't see any buttons created with the error dialog should I turn off the ok cancel and just use the
x to close out the window..?
As for the m6 it seems good on the first m6 call my dialog pops up and then I close it out and hit run the gcode runs fine till the second T M6
at this point seems like auggie's continue dialog takes over, and mine never pops up again then when I hit continue some dro's move but the g code never
moves past this m6 line seems just to loop there and the continue box pops up again with same result stuck on the second m6 call..
Thanks Gary
Last edited by gburk on Fri May 10, 2019 3:07 am, edited 1 time in total.
Re: reading Pokeys pins
>>also don't see any buttons created with the error dialog should I turn off the ok cancel and just use the
x to close out the window..?
No, just6 use as normal. I was getting multipel copies of OK and cancel, but it all seems OK
now here, do you still get too many OK buttons?
>>aAs for the m6 it seems good on the first m6 call my dialog pops up and then I close it out and hit run the gcode runs fine till the second T M6
at this point seems like auggie's continue dialog takes over, and mine never pops up again then when I hit continue some dro's move but the g code never
moves past this m6 line seems just to loop there and the continue box pops up again with same result stuck on the second m6 call..
Thx, Ill run some tests. Glad to hear things are running better.
Art
x to close out the window..?
No, just6 use as normal. I was getting multipel copies of OK and cancel, but it all seems OK
now here, do you still get too many OK buttons?
>>aAs for the m6 it seems good on the first m6 call my dialog pops up and then I close it out and hit run the gcode runs fine till the second T M6
at this point seems like auggie's continue dialog takes over, and mine never pops up again then when I hit continue some dro's move but the g code never
moves past this m6 line seems just to loop there and the continue box pops up again with same result stuck on the second m6 call..
Thx, Ill run some tests. Glad to hear things are running better.
Art
Re: reading Pokeys pins
Gary:
Version 3.6d is online for you.
It should fix the warning dialog coming up after a toolchange.
There is an error in your scripts though. In the SetSpindleState you have
a switch statement where you do a if( lookup("SpindleOn") SpindleOn();
Same for off.
These are not functions, SpindleOn and SpindleOff are
global variables to indicate if the spindle is on or off. You dont need to
tell Auggie , it already knows the spindle is on or off, in your script
all you need to do is set the Pokeys relay or turn on a frequency or whatever
effect you wish from the fact that its on. Thats true of all script calls,
if they are system calls like M3,M5,M7 etc.. the system will set
the internal states itself, you need only turn on whatever relay
you wish for that state or set conditions as appropriate hardware
wise for your system for that call.
Removing those switch statements allows the scripts to run without
error as the script failure was causing a system stop.
Let me know how it goes. :)
Art
Version 3.6d is online for you.
It should fix the warning dialog coming up after a toolchange.
There is an error in your scripts though. In the SetSpindleState you have
a switch statement where you do a if( lookup("SpindleOn") SpindleOn();
Same for off.
These are not functions, SpindleOn and SpindleOff are
global variables to indicate if the spindle is on or off. You dont need to
tell Auggie , it already knows the spindle is on or off, in your script
all you need to do is set the Pokeys relay or turn on a frequency or whatever
effect you wish from the fact that its on. Thats true of all script calls,
if they are system calls like M3,M5,M7 etc.. the system will set
the internal states itself, you need only turn on whatever relay
you wish for that state or set conditions as appropriate hardware
wise for your system for that call.
Removing those switch statements allows the scripts to run without
error as the script failure was causing a system stop.
Let me know how it goes. :)
Art
Re: reading Pokeys pins
>> No, just6 use as normal. I was getting multipel copies of OK and cancel, but it all seems OK
now here, do you still get too many OK buttons?
No i'm not, I think it was when using DoModeLess now the error dialog uses DoModal seems to fix the button problem.
will check the spindle functions, that's the problem with jumping around to much before getting one function working correct> OCD < ???
looked at the spindle functions and I had them turned off so should not have had any effect, I will make the mods and turn back on later..
will check the new auggie compile out.
Ok here is what I am finding, load the g code run it hit the first T M6 call my dialog runs I change tool and hit the X and not probe don't have it connected right now.
and it runs to the next T M6 but now my dialog doesn't pop up anymore and nor does auggies, but the g code will continue to the next T M6 so we are no longer stuck in the loop at the second T M6.
But my dialog will not pop up anymore after the first time, I even hit estop rewinder and hit run and no pop up at the first T M6 call now.
The M6 Still stops the g code and waits for the run to pressed. i'm sure its running my function I see the messages being displayed just not the dialog..
Thanks gary
now here, do you still get too many OK buttons?
No i'm not, I think it was when using DoModeLess now the error dialog uses DoModal seems to fix the button problem.
will check the spindle functions, that's the problem with jumping around to much before getting one function working correct> OCD < ???
looked at the spindle functions and I had them turned off so should not have had any effect, I will make the mods and turn back on later..
will check the new auggie compile out.
Ok here is what I am finding, load the g code run it hit the first T M6 call my dialog runs I change tool and hit the X and not probe don't have it connected right now.
and it runs to the next T M6 but now my dialog doesn't pop up anymore and nor does auggies, but the g code will continue to the next T M6 so we are no longer stuck in the loop at the second T M6.
But my dialog will not pop up anymore after the first time, I even hit estop rewinder and hit run and no pop up at the first T M6 call now.
The M6 Still stops the g code and waits for the run to pressed. i'm sure its running my function I see the messages being displayed just not the dialog..
Thanks gary
Last edited by gburk on Fri May 10, 2019 11:56 am, edited 1 time in total.
Re: reading Pokeys pins
Art
Seeing there is no peck drilling yet... do you think this code is usable ?
Still in rough form and testing but just a thought...
// G888 P.25 H1 R.2
// G888 = Peck drilling Call with G888 H = Depth to drill R = retract hight P = Peck distance
global GCode888 = function()
{
print("Peck Drilling");
for( pecking = 0; pecking <= ParmsH[0]; pecking+=ParmsPRI[0])
{
if (pecking + ParmsPRI[0] > ParmsH[0])
{
pecking = ParmsH[0];
}
print("Peck Drilling Z "+ParmsXYZ[2]+ " R "+ParmsPRI[1]+" Pecking = "+pecking);
Engine.GCode("G90 G01 Z-"+pecking);
block("MotionStill");
Engine.GCode("G90 G01 Z"+ParmsPRI[1]);
block("MotionStill");
lastpos = pecking;
sleep(2);
};
yield();
print("Finished pecking to the depth of "+lastpos);
Engine.StopProgram();
};
Thanks gary
Seeing there is no peck drilling yet... do you think this code is usable ?
Still in rough form and testing but just a thought...
// G888 P.25 H1 R.2
// G888 = Peck drilling Call with G888 H = Depth to drill R = retract hight P = Peck distance
global GCode888 = function()
{
print("Peck Drilling");
for( pecking = 0; pecking <= ParmsH[0]; pecking+=ParmsPRI[0])
{
if (pecking + ParmsPRI[0] > ParmsH[0])
{
pecking = ParmsH[0];
}
print("Peck Drilling Z "+ParmsXYZ[2]+ " R "+ParmsPRI[1]+" Pecking = "+pecking);
Engine.GCode("G90 G01 Z-"+pecking);
block("MotionStill");
Engine.GCode("G90 G01 Z"+ParmsPRI[1]);
block("MotionStill");
lastpos = pecking;
sleep(2);
};
yield();
print("Finished pecking to the depth of "+lastpos);
Engine.StopProgram();
};
Thanks gary
Re: reading Pokeys pins
Hi Gary:
A 2 second sleep may be a bit much, but code looks good at a quick perusal.
Im analysing the dialog to see why it wont reopen, it may be better to keep the dialog
local inside a single global function. That way ach call opens a new one and the old one
will be autodeleted after use.
Ill let you know what I find.
Art
A 2 second sleep may be a bit much, but code looks good at a quick perusal.
Im analysing the dialog to see why it wont reopen, it may be better to keep the dialog
local inside a single global function. That way ach call opens a new one and the old one
will be autodeleted after use.
Ill let you know what I find.
Art
Re: reading Pokeys pins
Art
Will give the local dialog, a try made a few mods to peck
I modified cambam post to use the G888 it seems to work but its putting the same G888 line twice in the g code file so i'll have to figure that one out.
Also the continue dialog is still popping up random at some m6 calls not 100% sure but that seems to mess things up sends the axis's back to 0 the right back to where they were before the continue dialog then it loops there can't run past the m6 line if I single step it will run each line and the continue dialog doesn't pop up.
Tried removing the global from my dialog but didn't change anything..
Think i'm getting ahead of myself again but I assuming auggie will not execute the G888 ?
It works fine In the MDI window, is there a way to have auggie read the script G888 while running the G Code file?
//G888 P.25 H1 R.2 I10
// M888 = Peck drilling Call with G888 H = Depth to drill R = retract hight P = Peck distance I Feed Rate
global GCode888 = function()
{
NegValue = ParmsH[0];
NegValue = ToInt(NegValue);
if (NegValue < 0)
{
NegValue= math.abs(NegValue);
print("ParmsH "+NegValue);
ParmsH[0] = NegValue;
}
else if( NegValue == 0 )
{
return;
};
//ok pos value lets do so pecking
print("Peck Drilling ");
for( pecking = 0; pecking <= ParmsH[0]; pecking+=ParmsPRI[0])
{
if (pecking + ParmsPRI[0] > ParmsH[0])
{
pecking = ParmsH[0];
}
print(" Pecking Z = "+pecking);
Engine.GCode("G90 G01 Z-"+pecking+" F"+ParmsPRI[2]);
block("MotionStill");
Engine.GCode("G90 G01 Z"+ParmsPRI[1]+" F"+ParmsPRI[2]);
block("MotionStill");
lastpos = pecking;
sleep(2);
};
yield();
print("Finished pecking to the depth of "+lastpos);
Engine.StopProgram();
};
Thanks gary
Will give the local dialog, a try made a few mods to peck
I modified cambam post to use the G888 it seems to work but its putting the same G888 line twice in the g code file so i'll have to figure that one out.
Also the continue dialog is still popping up random at some m6 calls not 100% sure but that seems to mess things up sends the axis's back to 0 the right back to where they were before the continue dialog then it loops there can't run past the m6 line if I single step it will run each line and the continue dialog doesn't pop up.
Tried removing the global from my dialog but didn't change anything..
Think i'm getting ahead of myself again but I assuming auggie will not execute the G888 ?
It works fine In the MDI window, is there a way to have auggie read the script G888 while running the G Code file?
//G888 P.25 H1 R.2 I10
// M888 = Peck drilling Call with G888 H = Depth to drill R = retract hight P = Peck distance I Feed Rate
global GCode888 = function()
{
NegValue = ParmsH[0];
NegValue = ToInt(NegValue);
if (NegValue < 0)
{
NegValue= math.abs(NegValue);
print("ParmsH "+NegValue);
ParmsH[0] = NegValue;
}
else if( NegValue == 0 )
{
return;
};
//ok pos value lets do so pecking
print("Peck Drilling ");
for( pecking = 0; pecking <= ParmsH[0]; pecking+=ParmsPRI[0])
{
if (pecking + ParmsPRI[0] > ParmsH[0])
{
pecking = ParmsH[0];
}
print(" Pecking Z = "+pecking);
Engine.GCode("G90 G01 Z-"+pecking+" F"+ParmsPRI[2]);
block("MotionStill");
Engine.GCode("G90 G01 Z"+ParmsPRI[1]+" F"+ParmsPRI[2]);
block("MotionStill");
lastpos = pecking;
sleep(2);
};
yield();
print("Finished pecking to the depth of "+lastpos);
Engine.StopProgram();
};
Thanks gary
Last edited by gburk on Sun May 12, 2019 1:45 pm, edited 1 time in total.
Re: reading Pokeys pins
Gary:
The continue dialog Ill add a switch to stop if one wishes to turn it off. I use it to start a file in the middle
or other location. Its purpose is to move safely to the previous lines end so a program can continue. This works
well as I never offset due to a tool change. Your offsets seem to affect it so Ill add a switch to turn it off
as a config item.
If you create a Gcode script GCode888 it should be called if the Gcode has an G888 in it. Your log, if debug log is
turned on should show the Gcode being called, and should show the parameters as they currently stand due to the call.
Does it show anything?
(Im still checking the dialog cause.)
Art
The continue dialog Ill add a switch to stop if one wishes to turn it off. I use it to start a file in the middle
or other location. Its purpose is to move safely to the previous lines end so a program can continue. This works
well as I never offset due to a tool change. Your offsets seem to affect it so Ill add a switch to turn it off
as a config item.
If you create a Gcode script GCode888 it should be called if the Gcode has an G888 in it. Your log, if debug log is
turned on should show the Gcode being called, and should show the parameters as they currently stand due to the call.
Does it show anything?
(Im still checking the dialog cause.)
Art
Re: reading Pokeys pins
Gary:
As an example, if I add a G666 to my Gcode file here, you can see it being executed on the toolpath screen and the data
its receiving. Try it and let me know if you get that text data showing 666 works..
Art
As an example, if I add a G666 to my Gcode file here, you can see it being executed on the toolpath screen and the data
its receiving. Try it and let me know if you get that text data showing 666 works..
Art
Re: reading Pokeys pins
Gary:
Auggie is updated to test version 3.6e for you to test.
I made some fairly drastic changes so there may be unexpected
results. I did get your dialogs working on every toolchange, but
it was just the script I changed for that.
The problem was the global nature I think of the dialogs. I changed
the one dialog to this for example..
global ToolWait = function()
{
WaitDialog = Dialog();
WaitDialog.SetRect( 25, 20 );
WaitDialog.SetTitle( "Maunal Tool Change " );
WaitDialog.NextPosition( 5,5,80,50 );
WaitDialog.AddStaticText( " Manual Tool Change now Jog to a safe X Y Z Position");
WaitDialog.NextPosition( 5,15,80,50 );
WaitDialog.AddStaticText( " After new Tool is Inserted PRESS Touch OFF Z");
WaitDialog.NextPosition( 40,50,60,70 );
WaitDialog.SystemButtonsOnOff(true);
WaitDialog.AddButton("Touch OFF Z","MyToolChange");
WaitDialog.DoModeless("none");
};
As the dialog isnt global it has an easier time dealing with it
at deletion time. Dialogs arent really very reusable in Monkey Script.
Try this new version, it seems to track better. Im sure there still exists
bugs and such, but lets see what this one does.
Art
Auggie is updated to test version 3.6e for you to test.
I made some fairly drastic changes so there may be unexpected
results. I did get your dialogs working on every toolchange, but
it was just the script I changed for that.
The problem was the global nature I think of the dialogs. I changed
the one dialog to this for example..
global ToolWait = function()
{
WaitDialog = Dialog();
WaitDialog.SetRect( 25, 20 );
WaitDialog.SetTitle( "Maunal Tool Change " );
WaitDialog.NextPosition( 5,5,80,50 );
WaitDialog.AddStaticText( " Manual Tool Change now Jog to a safe X Y Z Position");
WaitDialog.NextPosition( 5,15,80,50 );
WaitDialog.AddStaticText( " After new Tool is Inserted PRESS Touch OFF Z");
WaitDialog.NextPosition( 40,50,60,70 );
WaitDialog.SystemButtonsOnOff(true);
WaitDialog.AddButton("Touch OFF Z","MyToolChange");
WaitDialog.DoModeless("none");
};
As the dialog isnt global it has an easier time dealing with it
at deletion time. Dialogs arent really very reusable in Monkey Script.
Try this new version, it seems to track better. Im sure there still exists
bugs and such, but lets see what this one does.
Art
Re: reading Pokeys pins
Gary:
I found I had another weirdness in my scripts in that a G666 would stop the program. While I do make one
press run after a toolchange, other scripts shouldn't require it. So version 3.6f is online which corrects this and
a few other small memory issues. I fond it now seems to operate as I expected it should. It will pause after
a toolchange, but other Gcode commands you may add will not stop unless you call
for a programstop in the script itself.
Good luck testing. Be cautious as I have rejiggered a fair bit. At this point your testfile runs your dialog
on every toolchange, and waits for run to be pressed afterwards. The continue dialog, should it appear,
has a cancel and continue button added so you can basically ignore it by pressing that when it appears.
I left it in because it IS handy if one wants to start a file in the middle.
Let me know your experiences.
Art
I found I had another weirdness in my scripts in that a G666 would stop the program. While I do make one
press run after a toolchange, other scripts shouldn't require it. So version 3.6f is online which corrects this and
a few other small memory issues. I fond it now seems to operate as I expected it should. It will pause after
a toolchange, but other Gcode commands you may add will not stop unless you call
for a programstop in the script itself.
Good luck testing. Be cautious as I have rejiggered a fair bit. At this point your testfile runs your dialog
on every toolchange, and waits for run to be pressed afterwards. The continue dialog, should it appear,
has a cancel and continue button added so you can basically ignore it by pressing that when it appears.
I left it in because it IS handy if one wants to start a file in the middle.
Let me know your experiences.
Art
Who is online
Users browsing this forum: No registered users and 0 guests