reading Pokeys pins
Re: reading Pokeys pins
Gary:
>>The only problem with buttons is auggie only giving them all the same name all 16 are ToolChang e_BUT_0
Did you set the ID numbers to numbers 1 - 16, the _0 shoudl be _1 , _2 etc is the id numbers are set...
Art
>>The only problem with buttons is auggie only giving them all the same name all 16 are ToolChang e_BUT_0
Did you set the ID numbers to numbers 1 - 16, the _0 shoudl be _1 , _2 etc is the id numbers are set...
Art
Re: reading Pokeys pins
No I removed the id numbers and added the id names, that works I can call the button function with the id name and all have a different name..
but still have to run the script first before I hit a button almost seems if you don't run it in the script edit first the Engine.code isn't run it will show all the print statements in that script but no motor movement..
I am finding more g code errors seems to mostly be this type of code
on different lines.. also looks like its being displayed incorrectly on the screen slots and holes in wrong places..
would you like a copy of the complete g code file?.. to look at
Error--44, N2205 G2 Y-1.0185 I0.0000 J-0.0895
also here is the code I am getting buffer underrun
//Engine.FreeSetAxisType( 6, 0 );
//Engine.FreeSetAxisType( 7, 0 );
//Engine.FreeFeed( null, RackMovein, RackRotate, null);
//block("MotionStill");
can I use 8 dro's and run all 8 motors from the main dro's and home? or do I have to rub from freeaxis I only see home and zero 1-4?.
Thanks gary
but still have to run the script first before I hit a button almost seems if you don't run it in the script edit first the Engine.code isn't run it will show all the print statements in that script but no motor movement..
I am finding more g code errors seems to mostly be this type of code
on different lines.. also looks like its being displayed incorrectly on the screen slots and holes in wrong places..
would you like a copy of the complete g code file?.. to look at
Error--44, N2205 G2 Y-1.0185 I0.0000 J-0.0895
also here is the code I am getting buffer underrun
//Engine.FreeSetAxisType( 6, 0 );
//Engine.FreeSetAxisType( 7, 0 );
//Engine.FreeFeed( null, RackMovein, RackRotate, null);
//block("MotionStill");
can I use 8 dro's and run all 8 motors from the main dro's and home? or do I have to rub from freeaxis I only see home and zero 1-4?.
Thanks gary
Last edited by gburk on Tue Apr 09, 2019 11:48 am, edited 1 time in total.
Re: reading Pokeys pins
Gary:
>>it will show all the print statement s in that script but no motor movement. .
Have you jogged and such before pressing the button? By that I mean do we know all motor motions are
working prior to the button being pressed? Im just trying to figure out why no motion is occuring, its
as if there is some condition stopping it from running the motions if the print statements are happening.
Error 44 is "Radius different from start and end in Arc" , this almost always means a mismatch
in incremental vs absolute arc settings. Does the code have a G90.1 in it for abs or G91.1 for incremental
in it? You may need to add it to your postprocessor depending on your arc generation. Post
your Gcode file and Ill check what errors I get.. or add G90.1 to the file and see if it, or G91.1 fixes those
G2/G3 errors.
>>also here is the code I am getting buffer underrun
//Engine.FreeSetAxisType( 6, 0 );
//Engine.FreeSetAxisType( 7, 0 );
//Engine.FreeFeed( null, RackMovei n, RackRotat e, null);
//block("MotionSti ll");
This one is my fault. I recently sped up Auggies engine by
slowing threads when the trajectory buffers were empty. I neglected
to look at the FreeTrajectories as well, so any free motion fails at the moment. I fixed
this as I found the reason and my system runs the above commands
fine. I will recompile a release for you tomorrow that fixes the free axis
planner. You can use FreeSetWorkPos(..) to set a zero on any free axis.
You can drive all 8 motors if you wish, BUT, the two planners,
one for axis 0-4 and the other for axis 5-8 are separate planners. They act
independantly so one has no idea what the other is doing. They are fine for
tool changers or conveyors and such but you cannot do synced motion
between the two. I think home will work with free axis if they are properly
set up to use home switches.
Art
>>it will show all the print statement s in that script but no motor movement. .
Have you jogged and such before pressing the button? By that I mean do we know all motor motions are
working prior to the button being pressed? Im just trying to figure out why no motion is occuring, its
as if there is some condition stopping it from running the motions if the print statements are happening.
Error 44 is "Radius different from start and end in Arc" , this almost always means a mismatch
in incremental vs absolute arc settings. Does the code have a G90.1 in it for abs or G91.1 for incremental
in it? You may need to add it to your postprocessor depending on your arc generation. Post
your Gcode file and Ill check what errors I get.. or add G90.1 to the file and see if it, or G91.1 fixes those
G2/G3 errors.
>>also here is the code I am getting buffer underrun
//Engine.FreeSetAxisType( 6, 0 );
//Engine.FreeSetAxisType( 7, 0 );
//Engine.FreeFeed( null, RackMovei n, RackRotat e, null);
//block("MotionSti ll");
This one is my fault. I recently sped up Auggies engine by
slowing threads when the trajectory buffers were empty. I neglected
to look at the FreeTrajectories as well, so any free motion fails at the moment. I fixed
this as I found the reason and my system runs the above commands
fine. I will recompile a release for you tomorrow that fixes the free axis
planner. You can use FreeSetWorkPos(..) to set a zero on any free axis.
You can drive all 8 motors if you wish, BUT, the two planners,
one for axis 0-4 and the other for axis 5-8 are separate planners. They act
independantly so one has no idea what the other is doing. They are fine for
tool changers or conveyors and such but you cannot do synced motion
between the two. I think home will work with free axis if they are properly
set up to use home switches.
Art
Re: reading Pokeys pins
Art
Ok I only want to use the freeaxis's for hopefully later on if we can figure out how to set motor 5 for spindle, I plan on using 6 and 7 for the auto tool changer positions.
I did get it to move on motor 6 and 7 but like I said I have buffer underrun error's, and doesn't move to the correct entered distances..
and if I rapid the x y z and free rapid 6 and 7 they all move and after all axis's reach there final distance, then I will do a rapid to return to start position only with x y z but the 6 and 7 also move back with the x y z it seems like a random distance.. hopefully that's part of the problems you said should be fixed...
also I if I print out zeroing axis numbers when I zero Y it shows axis number 4 and when I zero A it show axis number 8, X and Z seem to be the correct numbers being sent to your script updating onzero ..
didn't get it hooked up to my mill today forgot I hadn't wired the estop switch yet, but got that working today, and auggie reads it, so if thing go array I can kill it now.
Thanks gary
Ok I only want to use the freeaxis's for hopefully later on if we can figure out how to set motor 5 for spindle, I plan on using 6 and 7 for the auto tool changer positions.
I did get it to move on motor 6 and 7 but like I said I have buffer underrun error's, and doesn't move to the correct entered distances..
and if I rapid the x y z and free rapid 6 and 7 they all move and after all axis's reach there final distance, then I will do a rapid to return to start position only with x y z but the 6 and 7 also move back with the x y z it seems like a random distance.. hopefully that's part of the problems you said should be fixed...
also I if I print out zeroing axis numbers when I zero Y it shows axis number 4 and when I zero A it show axis number 8, X and Z seem to be the correct numbers being sent to your script updating onzero ..
didn't get it hooked up to my mill today forgot I hadn't wired the estop switch yet, but got that working today, and auggie reads it, so if thing go array I can kill it now.
Thanks gary
Re: reading Pokeys pins
Gary:
You can mix the freeaxis, so using motor 8 for spindle as a frequency output
should be fine. Im sure we'll run into one bug or another along the way but
that part shouldnt be too bad.
SetFreeAxisPos() shoud be the one that can set their axis to zero. Ill run a test when I build the
release later today.
Art
You can mix the freeaxis, so using motor 8 for spindle as a frequency output
should be fine. Im sure we'll run into one bug or another along the way but
that part shouldnt be too bad.
SetFreeAxisPos() shoud be the one that can set their axis to zero. Ill run a test when I build the
release later today.
Art
Re: reading Pokeys pins
Art here a copy of the gcode hopefully I inserted it right..
Yes I already have the setfreeaxispos figured out it works
The probe I used inside was N/O the touch probe on the mill is N/C same with estop
also I think I had to change GlobalSet ("ProbeInvertet",0); to 1 and then had to inverted the probe in the planer.
But all homing worked fine...
Then problem with probing was I have to run script many times in the script edit first,
and I did check to see if the motors would jog they did jog ok but still had to run the script before,
now to the real strange stuff when I hit the probe button and it decided to run function ran good
but that was a hit and miss sometimes wouldn't run even after running in the script edit run.
But if it did run it would start the probe and stop when the probe was hit, and retract correctly
Like I said the only difference from inside the house is the inverting of the probe and estop...
Thanks gary
Yes I already have the setfreeaxispos figured out it works
Code: Select all
N5 (File Name = lathemountmotor on Wednesday, January 23, 2008)
N10 (Default Mill Post)
N15 G91.1
N20 M5 M9
N25 M6 T1(TOOL Change 3/16 endmill)
N30 G43 H1
N35 G0 Z0.1000
N40 M3 S2200
N45 X0.6290 Y0.9290
N50 G1 Z-0.0100 F5.00
N55 X1.2100 F9.00
N60 G0 Z0.1000
N65 X0.6290
N70 G1 Z-0.0200 F5.00
N75 X1.2100 F9.00
N80 G0 Z0.1000
N85 X0.6290
N90 G1 Z-0.0300 F5.00
N95 X1.2100 F9.00
N100 G0 Z0.1000
N105 X0.6290
N110 G1 Z-0.0400 F5.00
N115 X1.2100 F9.00
N120 G0 Z0.1000
N125 X0.6290
N130 G1 Z-0.0500 F5.00
N135 X1.2100 F9.00
N140 G0 Z0.1000
N145 X0.6290
N150 G1 Z-0.0600 F5.00
N155 X1.2100 F9.00
N160 G0 Z0.1000
N165 X0.6290
N170 G1 Z-0.0700 F5.00
N175 X1.2100 F9.00
N180 G0 Z0.1000
N185 X0.6290
N190 G1 Z-0.0800 F5.00
N195 X1.2100 F9.00
N200 G0 Z0.1000
N205 X0.6290
N210 G1 Z-0.0900 F5.00
N215 X1.2100 F9.00
N220 G0 Z0.1000
N225 X0.6290
N230 G1 Z-0.1000 F5.00
N235 X1.2100 F9.00
N240 G0 Z0.1000
N245 X0.6290
N250 G1 Z-0.1100 F5.00
N255 X1.2100 F9.00
N260 G0 Z0.1000
N265 X0.6290
N270 G1 Z-0.1200 F5.00
N275 X1.2100 F9.00
N280 G0 Z0.1000
N285 X0.6290
N290 G1 Z-0.1300 F5.00
N295 X1.2100 F9.00
N300 G0 Z0.1000
N305 X0.6290
N310 G1 Z-0.1400 F5.00
N315 X1.2100 F9.00
N320 G0 Z0.1000
N325 X0.6290
N330 G1 Z-0.1500 F5.00
N335 X1.2100 F9.00
N340 G0 Z0.1000
N345 X0.6290
N350 G1 Z-0.1600 F5.00
N355 X1.2100 F9.00
N360 G0 Z0.1000
N365 X0.6290
N370 G1 Z-0.1700 F5.00
N375 X1.2100 F9.00
N380 G0 Z0.1000
N385 X0.6290
N390 G1 Z-0.1800 F5.00
N395 X1.2100 F9.00
N400 G0 Z0.1000
N405 X0.6290
N410 G1 Z-0.1900 F5.00
N415 X1.2100 F9.00
N420 G0 Z0.1000
N425 X0.6290
N430 G1 Z-0.2000 F5.00
N435 X1.2100 F9.00
N440 G0 Z0.1000
N445 Y-0.9290
N450 G1 Z-0.0100 F5.00
N455 X0.6290 F9.00
N460 X1.2100
N465 G0 Z0.1000
N470 G1 Z-0.0200 F5.00
N475 X0.6290 F9.00
N480 X1.2100
N485 G0 Z0.1000
N490 G1 Z-0.0300 F5.00
N495 X0.6290 F9.00
N500 X1.2100
N505 G0 Z0.1000
N510 G1 Z-0.0400 F5.00
N515 X0.6290 F9.00
N520 X1.2100
N525 G0 Z0.1000
N530 G1 Z-0.0500 F5.00
N535 X0.6290 F9.00
N540 X1.2100
N545 G0 Z0.1000
N550 G1 Z-0.0600 F5.00
N555 X0.6290 F9.00
N560 X1.2100
N565 G0 Z0.1000
N570 G1 Z-0.0700 F5.00
N575 X0.6290 F9.00
N580 X1.2100
N585 G0 Z0.1000
N590 G1 Z-0.0800 F5.00
N595 X0.6290 F9.00
N600 X1.2100
N605 G0 Z0.1000
N610 G1 Z-0.0900 F5.00
N615 X0.6290 F9.00
N620 X1.2100
N625 G0 Z0.1000
N630 G1 Z-0.1000 F5.00
N635 X0.6290 F9.00
N640 X1.2100
N645 G0 Z0.1000
N650 G1 Z-0.1100 F5.00
N655 X0.6290 F9.00
N660 X1.2100
N665 G0 Z0.1000
N670 G1 Z-0.1200 F5.00
N675 X0.6290 F9.00
N680 X1.2100
N685 G0 Z0.1000
N690 G1 Z-0.1300 F5.00
N695 X0.6290 F9.00
N700 X1.2100
N705 G0 Z0.1000
N710 G1 Z-0.1400 F5.00
N715 X0.6290 F9.00
N720 X1.2100
N725 G0 Z0.1000
N730 G1 Z-0.1500 F5.00
N735 X0.6290 F9.00
N740 X1.2100
N745 G0 Z0.1000
N750 G1 Z-0.1600 F5.00
N755 X0.6290 F9.00
N760 X1.2100
N765 G0 Z0.1000
N770 G1 Z-0.1700 F5.00
N775 X0.6290 F9.00
N780 X1.2100
N785 G0 Z0.1000
N790 G1 Z-0.1800 F5.00
N795 X0.6290 F9.00
N800 X1.2100
N805 G0 Z0.1000
N810 G1 Z-0.1900 F5.00
N815 X0.6290 F9.00
N820 X1.2100
N825 G0 Z0.1000
N830 G1 Z-0.2000 F5.00
N835 X0.6290 F9.00
N840 X1.2100
N845 G0 Z0.1000
N850 X-1.2100
N855 G1 Z-0.0100 F5.00
N860 X-0.6290 F9.00
N865 X-1.2100
N870 G0 Z0.1000
N875 G1 Z-0.0200 F5.00
N880 X-0.6290 F9.00
N885 X-1.2100
N890 G0 Z0.1000
N895 G1 Z-0.0300 F5.00
N900 X-0.6290 F9.00
N905 X-1.2100
N910 G0 Z0.1000
N915 G1 Z-0.0400 F5.00
N920 X-0.6290 F9.00
N925 X-1.2100
N930 G0 Z0.1000
N935 G1 Z-0.0500 F5.00
N940 X-0.6290 F9.00
N945 X-1.2100
N950 G0 Z0.1000
N955 G1 Z-0.0600 F5.00
N960 X-0.6290 F9.00
N965 X-1.2100
N970 G0 Z0.1000
N975 G1 Z-0.0700 F5.00
N980 X-0.6290 F9.00
N985 X-1.2100
N990 G0 Z0.1000
N995 G1 Z-0.0800 F5.00
N1000 X-0.6290 F9.00
N1005 X-1.2100
N1010 G0 Z0.1000
N1015 G1 Z-0.0900 F5.00
N1020 X-0.6290 F9.00
N1025 X-1.2100
N1030 G0 Z0.1000
N1035 G1 Z-0.1000 F5.00
N1040 X-0.6290 F9.00
N1045 X-1.2100
N1050 G0 Z0.1000
N1055 G1 Z-0.1100 F5.00
N1060 X-0.6290 F9.00
N1065 X-1.2100
N1070 G0 Z0.1000
N1075 G1 Z-0.1200 F5.00
N1080 X-0.6290 F9.00
N1085 X-1.2100
N1090 G0 Z0.1000
N1095 G1 Z-0.1300 F5.00
N1100 X-0.6290 F9.00
N1105 X-1.2100
N1110 G0 Z0.1000
N1115 G1 Z-0.1400 F5.00
N1120 X-0.6290 F9.00
N1125 X-1.2100
N1130 G0 Z0.1000
N1135 G1 Z-0.1500 F5.00
N1140 X-0.6290 F9.00
N1145 X-1.2100
N1150 G0 Z0.1000
N1155 G1 Z-0.1600 F5.00
N1160 X-0.6290 F9.00
N1165 X-1.2100
N1170 G0 Z0.1000
N1175 G1 Z-0.1700 F5.00
N1180 X-0.6290 F9.00
N1185 X-1.2100
N1190 G0 Z0.1000
N1195 G1 Z-0.1800 F5.00
N1200 X-0.6290 F9.00
N1205 X-1.2100
N1210 G0 Z0.1000
N1215 G1 Z-0.1900 F5.00
N1220 X-0.6290 F9.00
N1225 X-1.2100
N1230 G0 Z0.1000
N1235 G1 Z-0.2000 F5.00
N1240 X-0.6290 F9.00
N1245 X-1.2100
N1250 G0 Z0.1000
N1255 Y0.9290
N1260 G1 Z-0.0100 F5.00
N1265 X-0.6290 F9.00
N1270 X-1.2100
N1275 G0 Z0.1000
N1280 G1 Z-0.0200 F5.00
N1285 X-0.6290 F9.00
N1290 X-1.2100
N1295 G0 Z0.1000
N1300 G1 Z-0.0300 F5.00
N1305 X-0.6290 F9.00
N1310 X-1.2100
N1315 G0 Z0.1000
N1320 G1 Z-0.0400 F5.00
N1325 X-0.6290 F9.00
N1330 X-1.2100
N1335 G0 Z0.1000
N1340 G1 Z-0.0500 F5.00
N1345 X-0.6290 F9.00
N1350 X-1.2100
N1355 G0 Z0.1000
N1360 G1 Z-0.0600 F5.00
N1365 X-0.6290 F9.00
N1370 X-1.2100
N1375 G0 Z0.1000
N1380 G1 Z-0.0700 F5.00
N1385 X-0.6290 F9.00
N1390 X-1.2100
N1395 G0 Z0.1000
N1400 G1 Z-0.0800 F5.00
N1405 X-0.6290 F9.00
N1410 X-1.2100
N1415 G0 Z0.1000
N1420 G1 Z-0.0900 F5.00
N1425 X-0.6290 F9.00
N1430 X-1.2100
N1435 G0 Z0.1000
N1440 G1 Z-0.1000 F5.00
N1445 X-0.6290 F9.00
N1450 X-1.2100
N1455 G0 Z0.1000
N1460 G1 Z-0.1100 F5.00
N1465 X-0.6290 F9.00
N1470 X-1.2100
N1475 G0 Z0.1000
N1480 G1 Z-0.1200 F5.00
N1485 X-0.6290 F9.00
N1490 X-1.2100
N1495 G0 Z0.1000
N1500 G1 Z-0.1300 F5.00
N1505 X-0.6290 F9.00
N1510 X-1.2100
N1515 G0 Z0.1000
N1520 G1 Z-0.1400 F5.00
N1525 X-0.6290 F9.00
N1530 X-1.2100
N1535 G0 Z0.1000
N1540 G1 Z-0.1500 F5.00
N1545 X-0.6290 F9.00
N1550 X-1.2100
N1555 G0 Z0.1000
N1560 G1 Z-0.1600 F5.00
N1565 X-0.6290 F9.00
N1570 X-1.2100
N1575 G0 Z0.1000
N1580 G1 Z-0.1700 F5.00
N1585 X-0.6290 F9.00
N1590 X-1.2100
N1595 G0 Z0.1000
N1600 G1 Z-0.1800 F5.00
N1605 X-0.6290 F9.00
N1610 X-1.2100
N1615 G0 Z0.1000
N1620 G1 Z-0.1900 F5.00
N1625 X-0.6290 F9.00
N1630 X-1.2100
N1635 G0 Z0.1000
N1640 G1 Z-0.2000 F5.00
N1645 X-0.6290 F9.00
N1650 X-1.2100
N1655 M5 M9
N1660 M6 T2(TOOL Change 3/16 endmill)
N1665 G43 H2
N1670 G0 Z0.1000
N1675 M3
N1680 X-0.9108 Y1.0185
N1685 G1 Z-0.0100 F5.00
N1690 X-0.6440 F9.00
N1695 G2 Y0.8395 I0.0000 J-0.0895
N1700 G1 X-1.2340
N1705 G2 Y1.0185 I0.0000 J0.0895
N1710 G1 X-0.9108
N1715 G0 Z0.1000
N1720 G1 Z-0.0200 F5.00
N1725 X-0.6440 F9.00
N1730 G2 Y0.8395 I0.0000 J-0.0895
N1735 G1 X-1.2340
N1740 G2 Y1.0185 I0.0000 J0.0895
N1745 G1 X-0.9108
N1750 G0 Z0.1000
N1755 G1 Z-0.0300 F5.00
N1760 X-0.6440 F9.00
N1765 G2 Y0.8395 I0.0000 J-0.0895
N1770 G1 X-1.2340
N1775 G2 Y1.0185 I0.0000 J0.0895
N1780 G1 X-0.9108
N1785 G0 Z0.1000
N1790 G1 Z-0.0400 F5.00
N1795 X-0.6440 F9.00
N1800 G2 Y0.8395 I0.0000 J-0.0895
N1805 G1 X-1.2340
N1810 G2 Y1.0185 I0.0000 J0.0895
N1815 G1 X-0.9108
N1820 G0 Z0.1000
N1825 G1 Z-0.0500 F5.00
N1830 X-0.6440 F9.00
N1835 G2 Y0.8395 I0.0000 J-0.0895
N1840 G1 X-1.2340
N1845 G2 Y1.0185 I0.0000 J0.0895
N1850 G1 X-0.9108
N1855 G0 Z0.1000
N1860 X-1.0714 Y-1.0185
N1865 G1 Z-0.0100 F5.00
N1870 X-1.2140 F9.00
N1875 G2 X-1.2140 Y-0.8395 I-0.0000 J0.0895
N1880 G1 X-0.6240
N1885 G2 Y-1.0185 I0.0000 J-0.0895
N1890 G1 X-1.0714
N1895 G0 Z0.1000
N1900 G1 Z-0.0200 F5.00
N1905 X-1.2140 F9.00
N1910 G2 X-1.2140 Y-0.8395 I-0.0000 J0.0895
N1915 G1 X-0.6240
N1920 G2 Y-1.0185 I0.0000 J-0.0895
N1925 G1 X-1.0714
N1930 G0 Z0.1000
N1935 G1 Z-0.0300 F5.00
N1940 X-1.2140 F9.00
N1945 G2 X-1.2140 Y-0.8395 I-0.0000 J0.0895
N1950 G1 X-0.6240
N1955 G2 Y-1.0185 I0.0000 J-0.0895
N1960 G1 X-1.0714
N1965 G0 Z0.1000
N1970 G1 Z-0.0400 F5.00
N1975 X-1.2140 F9.00
N1980 G2 X-1.2140 Y-0.8395 I-0.0000 J0.0895
N1985 G1 X-0.6240
N1990 G2 Y-1.0185 I0.0000 J-0.0895
N1995 G1 X-1.0714
N2000 G0 Z0.1000
N2005 G1 Z-0.0500 F5.00
N2010 X-1.2140 F9.00
N2015 G2 X-1.2140 Y-0.8395 I-0.0000 J0.0895
N2020 G1 X-0.6240
N2025 G2 Y-1.0185 I0.0000 J-0.0895
N2030 G1 X-1.0714
N2035 G0 Z0.1000
N2040 X0.7865
N2045 G1 Z-0.0100 F5.00
N2050 X0.6441 F9.00
N2055 G2 Y-0.8395 I0.0000 J0.0895
N2060 G1 X1.2340
N2065 G2 Y-1.0185 I0.0000 J-0.0895
N2070 G1 X0.7865
N2075 G0 Z0.1000
N2080 G1 Z-0.0200 F5.00
N2085 X0.6441 F9.00
N2090 G2 Y-0.8395 I0.0000 J0.0895
N2095 G1 X1.2340
N2100 G2 Y-1.0185 I0.0000 J-0.0895
N2105 G1 X0.7865
N2110 G0 Z0.1000
N2115 G1 Z-0.0300 F5.00
N2120 X0.6441 F9.00
N2125 G2 Y-0.8395 I0.0000 J0.0895
N2130 G1 X1.2340
N2135 G2 Y-1.0185 I0.0000 J-0.0895
N2140 G1 X0.7865
N2145 G0 Z0.1000
N2150 G1 Z-0.0400 F5.00
N2155 X0.6441 F9.00
N2160 G2 Y-0.8395 I0.0000 J0.0895
N2165 G1 X1.2340
N2170 G2 Y-1.0185 I0.0000 J-0.0895
N2175 G1 X0.7865
N2180 G0 Z0.1000
N2185 G1 Z-0.0500 F5.00
N2190 X0.6441 F9.00
N2195 G2 Y-0.8395 I0.0000 J0.0895
N2200 G1 X1.2340
N2205 G2 Y-1.0185 I0.0000 J-0.0895
N2210 G1 X0.7865
N2215 G0 Z0.1000
N2220 X1.0715 Y1.0185
N2225 G1 Z-0.0100 F5.00
N2230 X1.2140 F9.00
N2235 G2 Y0.8395 I0.0000 J-0.0895
N2240 G1 X0.6241
N2245 G2 Y1.0185 I0.0000 J0.0895
N2250 G1 X1.0715
N2255 G0 Z0.1000
N2260 G1 Z-0.0200 F5.00
N2265 X1.2140 F9.00
N2270 G2 Y0.8395 I0.0000 J-0.0895
N2275 G1 X0.6241
N2280 G2 Y1.0185 I0.0000 J0.0895
N2285 G1 X1.0715
N2290 G0 Z0.1000
N2295 G1 Z-0.0300 F5.00
N2300 X1.2140 F9.00
N2305 G2 Y0.8395 I0.0000 J-0.0895
N2310 G1 X0.6241
N2315 G2 Y1.0185 I0.0000 J0.0895
N2320 G1 X1.0715
N2325 G0 Z0.1000
N2330 G1 Z-0.0400 F5.00
N2335 X1.2140 F9.00
N2340 G2 Y0.8395 I0.0000 J-0.0895
N2345 G1 X0.6241
N2350 G2 Y1.0185 I0.0000 J0.0895
N2355 G1 X1.0715
N2360 G0 Z0.1000
N2365 G1 Z-0.0500 F5.00
N2370 X1.2140 F9.00
N2375 G2 Y0.8395 I0.0000 J-0.0895
N2380 G1 X0.6241
N2385 G2 Y1.0185 I0.0000 J0.0895
N2390 G1 X1.0715
N2395 G0 Z0.1000
N2400 X-0.8790 Y-0.0000
N2405 G1 Z-0.0100 F5.00
N2410 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2415 G1 X0.5001
N2420 G2 Y-0.3790 I0.0000 J-0.3790
N2425 G1 X-0.4999
N2430 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2435 G0 Z0.1000
N2440 G1 Z-0.0200 F5.00
N2445 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2450 G1 X0.5001
N2455 G2 Y-0.3790 I0.0000 J-0.3790
N2460 G1 X-0.4999
N2465 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2470 G0 Z0.1000
N2475 G1 Z-0.0300 F5.00
N2480 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2485 G1 X0.5001
N2490 G2 Y-0.3790 I0.0000 J-0.3790
N2495 G1 X-0.4999
N2500 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2505 G0 Z0.1000
N2510 G1 Z-0.0400 F5.00
N2515 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2520 G1 X0.5001
N2525 G2 Y-0.3790 I0.0000 J-0.3790
N2530 G1 X-0.4999
N2535 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2540 G0 Z0.1000
N2545 G1 Z-0.0500 F5.00
N2550 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2555 G1 X0.5001
N2560 G2 Y-0.3790 I0.0000 J-0.3790
N2565 G1 X-0.4999
N2570 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2575 G0 Z0.1000
N2580 G1 Z-0.0600 F5.00
N2585 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2590 G1 X0.5001
N2595 G2 Y-0.3790 I0.0000 J-0.3790
N2600 G1 X-0.4999
N2605 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2610 G0 Z0.1000
N2615 G1 Z-0.0700 F5.00
N2620 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2625 G1 X0.5001
N2630 G2 Y-0.3790 I0.0000 J-0.3790
N2635 G1 X-0.4999
N2640 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2645 G0 Z0.1000
N2650 G1 Z-0.0800 F5.00
N2655 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2660 G1 X0.5001
N2665 G2 Y-0.3790 I0.0000 J-0.3790
N2670 G1 X-0.4999
N2675 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2680 G0 Z0.1000
N2685 G1 Z-0.0900 F5.00
N2690 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2695 G1 X0.5001
N2700 G2 Y-0.3790 I0.0000 J-0.3790
N2705 G1 X-0.4999
N2710 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2715 G0 Z0.1000
N2720 G1 Z-0.1000 F5.00
N2725 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2730 G1 X0.5001
N2735 G2 Y-0.3790 I0.0000 J-0.3790
N2740 G1 X-0.4999
N2745 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2750 G0 Z0.1000
N2755 G1 Z-0.1100 F5.00
N2760 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2765 G1 X0.5001
N2770 G2 Y-0.3790 I0.0000 J-0.3790
N2775 G1 X-0.4999
N2780 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2785 G0 Z0.1000
N2790 G1 Z-0.1200 F5.00
N2795 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2800 G1 X0.5001
N2805 G2 Y-0.3790 I0.0000 J-0.3790
N2810 G1 X-0.4999
N2815 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2820 G0 Z0.1000
N2825 G1 Z-0.1300 F5.00
N2830 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2835 G1 X0.5001
N2840 G2 Y-0.3790 I0.0000 J-0.3790
N2845 G1 X-0.4999
N2850 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2855 G0 Z0.1000
N2860 G1 Z-0.1400 F5.00
N2865 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2870 G1 X0.5001
N2875 G2 Y-0.3790 I0.0000 J-0.3790
N2880 G1 X-0.4999
N2885 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2890 G0 Z0.1000
N2895 G1 Z-0.1500 F5.00
N2900 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2905 G1 X0.5001
N2910 G2 Y-0.3790 I0.0000 J-0.3790
N2915 G1 X-0.4999
N2920 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2925 G0 Z0.1000
N2930 G1 Z-0.1600 F5.00
N2935 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2940 G1 X0.5001
N2945 G2 Y-0.3790 I0.0000 J-0.3790
N2950 G1 X-0.4999
N2955 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2960 G0 Z0.1000
N2965 G1 Z-0.1700 F5.00
N2970 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N2975 G1 X0.5001
N2980 G2 Y-0.3790 I0.0000 J-0.3790
N2985 G1 X-0.4999
N2990 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N2995 G0 Z0.1000
N3000 G1 Z-0.1800 F5.00
N3005 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N3010 G1 X0.5001
N3015 G2 Y-0.3790 I0.0000 J-0.3790
N3020 G1 X-0.4999
N3025 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N3030 G0 Z0.1000
N3035 G1 Z-0.1900 F5.00
N3040 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N3045 G1 X0.5001
N3050 G2 Y-0.3790 I0.0000 J-0.3790
N3055 G1 X-0.4999
N3060 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N3065 G0 Z0.1000
N3070 G1 Z-0.2000 F5.00
N3075 G2 X-0.4999 Y0.3790 I0.3790 J0.0000 F9.00
N3080 G1 X0.5001
N3085 G2 Y-0.3790 I0.0000 J-0.3790
N3090 G1 X-0.4999
N3095 G2 X-0.8790 Y-0.0000 I-0.0001 J0.3790
N3100 G0 Z0.1000
N3105 M5
N3110 M30
also I think I had to change GlobalSet ("ProbeInvertet",0); to 1 and then had to inverted the probe in the planer.
But all homing worked fine...
Then problem with probing was I have to run script many times in the script edit first,
and I did check to see if the motors would jog they did jog ok but still had to run the script before,
now to the real strange stuff when I hit the probe button and it decided to run function ran good
but that was a hit and miss sometimes wouldn't run even after running in the script edit run.
But if it did run it would start the probe and stop when the probe was hit, and retract correctly
Like I said the only difference from inside the house is the inverting of the probe and estop...
Thanks gary
Last edited by gburk on Wed Apr 10, 2019 12:29 pm, edited 1 time in total.
Re: reading Pokeys pins
Gary :
New version is online that fixes the FreeAxis, and also fixes the Gcode errors. Your GCode is
incremental IJK, so you ned G91.1 at the front. You should also remove the G43H1 from the code,
Auggie doesnt handle the G43 at this point and you may get strange results.
The errors were because your postprocessor puts out lines like N1678 X2 F60 , where mine would
put out N1678 G1 X2 F60 .. Either is legal, but a bug stopped your version from running properly.
So an error was generated after any such line. It is now fixed and your test file loads fine.
Im still not sure why the scripts and such are acting weird. On the right side of the screen is a
Pokeys state number displayed in a single 2 digit DRO. When you press EStop youll see the
Pokeys change state .. can you tell me what the number is while your estopped and then while jogging
in normal operation. That state number may show why the scripts are failing to move. I believe it
normally shows 0 in estop and 3 in normal run condition. Also, there is a diags button on the screen
that shrinks the main screen and displays any hold conditions that are pending.. anything strange on that
screen? Does the queue depth on that screen show that commands have been queued up for motion
but are holding for some reason? Take a snapshot of it if it looks different when the script doesnt run
than when it does.
Art
New version is online that fixes the FreeAxis, and also fixes the Gcode errors. Your GCode is
incremental IJK, so you ned G91.1 at the front. You should also remove the G43H1 from the code,
Auggie doesnt handle the G43 at this point and you may get strange results.
The errors were because your postprocessor puts out lines like N1678 X2 F60 , where mine would
put out N1678 G1 X2 F60 .. Either is legal, but a bug stopped your version from running properly.
So an error was generated after any such line. It is now fixed and your test file loads fine.
Im still not sure why the scripts and such are acting weird. On the right side of the screen is a
Pokeys state number displayed in a single 2 digit DRO. When you press EStop youll see the
Pokeys change state .. can you tell me what the number is while your estopped and then while jogging
in normal operation. That state number may show why the scripts are failing to move. I believe it
normally shows 0 in estop and 3 in normal run condition. Also, there is a diags button on the screen
that shrinks the main screen and displays any hold conditions that are pending.. anything strange on that
screen? Does the queue depth on that screen show that commands have been queued up for motion
but are holding for some reason? Take a snapshot of it if it looks different when the script doesnt run
than when it does.
Art
Re: reading Pokeys pins
Art
The FreeRapid seems to work the dros move ok may stop just a tad short 4 would stop at 3.995 or 998
I don't see a command to read the dro GetFreePos ony SetFreePos?
Is it better to use GlobalGet("Axis3CurPos"); for the current pos or use Engine.GetAxisPos( 3 )
The G code works no errors at least in the one you edited I will check some others, I never edited the postprocessor always worked in
mach3 4 so didn't bother I used cambam mostly and the mach3 post, also have used sheetcam and lazycam… and not changed there post either.
( Made using CamBam - http://www.cambam.co.uk )
( firepocket21 8/31/2016 4:22:20 PM )
( T0 : 0.375 )
( T4 : 0.25 )
G20 G90 G91.1 G64 G40
G0 Z0.125
( T0 : 0.375 )
T0 M6
( Profile1 )
G61 G17
Error--44, G2 X1.547 Y-0.1575 I-0.0305 J0.0
G2 X-0.695 Y0.0595 I0.0125 J0.0
What would cause the first G2 line to error
but not the second they are both the same except for the directions and distance?
Had to run the pokeys config invert pin 19 probe.
And use the GlobalSet("ProbeInvert",0); set to 1 for probing down Z not sure if that was your original plan or it maybe doesn't how you set it ?
If I hit EStop I get the value 3 on and 0 off
when I press the Z probe button I still get all the info from the probing function printed to screen but no motor movement and no dro change either
in the diags Queue I get 0 as the value nothing changes..
Now if I run the script first the motors move and the dro's move and the only change now in the diags is that the Queue now = 1 and also the hold for all still LED flashes..
these are the only changes I see..
Thanks Gary
The FreeRapid seems to work the dros move ok may stop just a tad short 4 would stop at 3.995 or 998
I don't see a command to read the dro GetFreePos ony SetFreePos?
Is it better to use GlobalGet("Axis3CurPos"); for the current pos or use Engine.GetAxisPos( 3 )
The G code works no errors at least in the one you edited I will check some others, I never edited the postprocessor always worked in
mach3 4 so didn't bother I used cambam mostly and the mach3 post, also have used sheetcam and lazycam… and not changed there post either.
( Made using CamBam - http://www.cambam.co.uk )
( firepocket21 8/31/2016 4:22:20 PM )
( T0 : 0.375 )
( T4 : 0.25 )
G20 G90 G91.1 G64 G40
G0 Z0.125
( T0 : 0.375 )
T0 M6
( Profile1 )
G61 G17
Error--44, G2 X1.547 Y-0.1575 I-0.0305 J0.0
G2 X-0.695 Y0.0595 I0.0125 J0.0
What would cause the first G2 line to error
but not the second they are both the same except for the directions and distance?
Had to run the pokeys config invert pin 19 probe.
And use the GlobalSet("ProbeInvert",0); set to 1 for probing down Z not sure if that was your original plan or it maybe doesn't how you set it ?
If I hit EStop I get the value 3 on and 0 off
when I press the Z probe button I still get all the info from the probing function printed to screen but no motor movement and no dro change either
in the diags Queue I get 0 as the value nothing changes..
Now if I run the script first the motors move and the dro's move and the only change now in the diags is that the Queue now = 1 and also the hold for all still LED flashes..
these are the only changes I see..
Thanks Gary
Last edited by gburk on Thu Apr 11, 2019 1:14 pm, edited 1 time in total.
Re: reading Pokeys pins
Hi Gary:
Ill run a check on that code and see.
>>Had to run the pokeys config invert pin 19 probe.
>>And use the GlobalSet("ProbeInvert",0); set to 1 for probing down Z not sure if that was your original plan or >>it maybe doesn't how you set it ?
Auggie assumes the probe is normally open. If it sees a state of 1 it figures thats a hit. If the probe is normally closed, then the setup for ProbeInvert should be set to true in the config/planner.
GlobalSet("ProbeInvert",0) sets the probe to the config settings, GlobalSet("ProbeInvert",1) sets the probe to the opposite of config settings. So if it seems backwards to you, just set ProbeInvert to true in the config, then you wont have to set the global inversion which is only meant for probeing off really..
I still cant think of why your motion doesn't occur by button. It may be the gcode is in G80 mode.. Try a g1x0
in the single line mdi to see if the button then works.. Ill run some tests as well, but I cant see duplicate that one yet..
Art
Ill run a check on that code and see.
>>Had to run the pokeys config invert pin 19 probe.
>>And use the GlobalSet("ProbeInvert",0); set to 1 for probing down Z not sure if that was your original plan or >>it maybe doesn't how you set it ?
Auggie assumes the probe is normally open. If it sees a state of 1 it figures thats a hit. If the probe is normally closed, then the setup for ProbeInvert should be set to true in the config/planner.
GlobalSet("ProbeInvert",0) sets the probe to the config settings, GlobalSet("ProbeInvert",1) sets the probe to the opposite of config settings. So if it seems backwards to you, just set ProbeInvert to true in the config, then you wont have to set the global inversion which is only meant for probeing off really..
I still cant think of why your motion doesn't occur by button. It may be the gcode is in G80 mode.. Try a g1x0
in the single line mdi to see if the button then works.. Ill run some tests as well, but I cant see duplicate that one yet..
Art
Re: reading Pokeys pins
Gary:
>>this code..
( Made using CamBam - http://www.cambam.co.uk )
( firepocke t21 8/31/2016 4:22:20 PM )
( T0 : 0.375 )
( T4 : 0.25 )
G20 G90 G91.1 G64 G40
G0 Z0.125
( T0 : 0.375 )
T0 M6
( Profile1 )
G61 G17
Error--44, G2 X1.547 Y-0.1575 I-0.0305 J0.0
G2 X-0.695 Y0.0595 I0.0125 J0.0
This code doesnt have a starting point. There is no G0 or G1 prior to the G2's, so Im assuming
the start position is 0,0. In which case the g2 is not an incremental arc. The line fails with
an error -44 ( arc radius to start != arc radius to end.). Im not sure whats causing that to fail..
is it a snippet of other code? Its an unusual start..
Art
>>this code..
( Made using CamBam - http://www.cambam.co.uk )
( firepocke t21 8/31/2016 4:22:20 PM )
( T0 : 0.375 )
( T4 : 0.25 )
G20 G90 G91.1 G64 G40
G0 Z0.125
( T0 : 0.375 )
T0 M6
( Profile1 )
G61 G17
Error--44, G2 X1.547 Y-0.1575 I-0.0305 J0.0
G2 X-0.695 Y0.0595 I0.0125 J0.0
This code doesnt have a starting point. There is no G0 or G1 prior to the G2's, so Im assuming
the start position is 0,0. In which case the g2 is not an incremental arc. The line fails with
an error -44 ( arc radius to start != arc radius to end.). Im not sure whats causing that to fail..
is it a snippet of other code? Its an unusual start..
Art
Re: reading Pokeys pins
ok art
I just took a similar dxf file and ran it though sheetcam it had
quite a few lines that didn't start with g0 or g1 only x-1 y1 or started with Z1
and auggie seemed to read it fine...
I fist gcode file I showed you I don't remember what I created it with its date was 2008. I did use D2nc for a few cam files I may have used that..
the cambam one was i just created also...
i'll keep messing with it I don't see anywhere in the post to change the lines with no g0 or d1 to be created..
I tried the dialog again I think for some reason its not closing or being killed after I have run though the 2 dialogs and closed them with a ok or cancel button
I can't rewind the m6 call, tried stop and rewind but on go I have to hit estop first then I can rewind and run the m6 line again...
let me know if you find anything on the running the scripts first.. if you need any other info let me know also..
Thanks gary
I just took a similar dxf file and ran it though sheetcam it had
quite a few lines that didn't start with g0 or g1 only x-1 y1 or started with Z1
and auggie seemed to read it fine...
I fist gcode file I showed you I don't remember what I created it with its date was 2008. I did use D2nc for a few cam files I may have used that..
the cambam one was i just created also...
i'll keep messing with it I don't see anywhere in the post to change the lines with no g0 or d1 to be created..
I tried the dialog again I think for some reason its not closing or being killed after I have run though the 2 dialogs and closed them with a ok or cancel button
I can't rewind the m6 call, tried stop and rewind but on go I have to hit estop first then I can rewind and run the m6 line again...
let me know if you find anything on the running the scripts first.. if you need any other info let me know also..
Thanks gary
Last edited by gburk on Fri Apr 12, 2019 7:12 am, edited 1 time in total.
Re: reading Pokeys pins
Thanks Gary:
Ill run some tests. You dont normally need a g1 before an arc, but all arcs have a starting
position , so unless the start position is 0,0,z you need one. The arc in that particular
file does have a start specified, and 0,0,z doesnt make sense in that arc. The reason the
second one didnt error out, is that the prior position was set as the end of the first illegal
arc, so the next arc is fine. Only the original arc fails due to wrong start position.
Ill keep looking for why the scripts may do that.. and Ill take a look at the dialog, sorry
but I hadnt yet looked into that one..
Art
Ill run some tests. You dont normally need a g1 before an arc, but all arcs have a starting
position , so unless the start position is 0,0,z you need one. The arc in that particular
file does have a start specified, and 0,0,z doesnt make sense in that arc. The reason the
second one didnt error out, is that the prior position was set as the end of the first illegal
arc, so the next arc is fine. Only the original arc fails due to wrong start position.
Ill keep looking for why the scripts may do that.. and Ill take a look at the dialog, sorry
but I hadnt yet looked into that one..
Art
Re: reading Pokeys pins
Hi Gary :
Looked at your dialog code.. comments below after >>'s
// Library Toolwait
// Created Thursday, April 04, 2019
// Author Gary -- Do not edit above this line
// Enter Global vars below this line.
// the librarian no matter where they are, but its easier
// to find and edit them in one spot.
//The 6 lines previous to a function will appear as
//comments to help users to understan d the parameter s
//required for use by each function, so try to
//always add as clear a set of instructi ons in these
//lines as an aid to fellow traveller s.
//
global WaitDialog = Dialog();
global ToolWait = function()
{
if ( WaitDialog != null )
{
if ( WaitDialog.IsOpen() )
{
return;
};
};
WaitDialog.SetRect ( 25, 20 );
WaitDialog.SetTitl e( "Manual 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.SystemB uttonsOnO ff(false);
WaitDialog.AddButt on("Touch OFF Z","MyToolCha nge");
WaitDialog.DoModeless("none");
};
>> OK, end of function ToolWait..
global ProbeErrorDialog = Dialog();
global MyToolChange = function()
{
Touch_OFF = ZTouchOFF();
yield();
print("Touchoff4 "+Touch_OFF);
if (Touch_OFF == -1 || Touch_OFF == -2 || Touch_OFF == -3 )
{
if ( ProbeErrorDialog != null )
{
if ( ProbeErrorDialog.IsOpen() )
{
return;
};
};
global ProbeErrorDialog = Dialog();
ProbeErrorDialog.SetRect( 15, 10 );
ProbeErrorDialog.SetTitle( "Probe Error " );
ProbeErrorDialog.N extPositi on( 5,5,80,50 );
if (Touch_OFF == -2)
{
ProbeErrorDialog.AddStaticT ext( "Error Probe not HIT Try jogging closer to Part");
}
else if (Touch_OFF == -3)
{
ProbeErrorDialog.AddStaticText( "Error Probe");
}
else if (Touch_OFF == -1)
{
ProbeErro rDialog.A ddStaticT ext( "Error Probe not known");
};
ProbeErrorDialog.DoModal("none");
return;
}
return;
};
>>It all looks good. But its hard to say why it doesnt return. Id do a couple things..
>>First, Id try a DoModeless on the error dialog, it may be doing a modal from within a modeless
>> that is killing you. The yield probably isnt necessary, Id make it a Block("MotionStill") instead,
>>it should be more reliable to the situational wait in this case. At what point does it lose it?
>>Does it ever open the error dialog?
Art
Looked at your dialog code.. comments below after >>'s
// Library Toolwait
// Created Thursday, April 04, 2019
// Author Gary -- Do not edit above this line
// Enter Global vars below this line.
// the librarian no matter where they are, but its easier
// to find and edit them in one spot.
//The 6 lines previous to a function will appear as
//comments to help users to understan d the parameter s
//required for use by each function, so try to
//always add as clear a set of instructi ons in these
//lines as an aid to fellow traveller s.
//
global WaitDialog = Dialog();
global ToolWait = function()
{
if ( WaitDialog != null )
{
if ( WaitDialog.IsOpen() )
{
return;
};
};
WaitDialog.SetRect ( 25, 20 );
WaitDialog.SetTitl e( "Manual 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.SystemB uttonsOnO ff(false);
WaitDialog.AddButt on("Touch OFF Z","MyToolCha nge");
WaitDialog.DoModeless("none");
};
>> OK, end of function ToolWait..
global ProbeErrorDialog = Dialog();
global MyToolChange = function()
{
Touch_OFF = ZTouchOFF();
yield();
print("Touchoff4 "+Touch_OFF);
if (Touch_OFF == -1 || Touch_OFF == -2 || Touch_OFF == -3 )
{
if ( ProbeErrorDialog != null )
{
if ( ProbeErrorDialog.IsOpen() )
{
return;
};
};
global ProbeErrorDialog = Dialog();
ProbeErrorDialog.SetRect( 15, 10 );
ProbeErrorDialog.SetTitle( "Probe Error " );
ProbeErrorDialog.N extPositi on( 5,5,80,50 );
if (Touch_OFF == -2)
{
ProbeErrorDialog.AddStaticT ext( "Error Probe not HIT Try jogging closer to Part");
}
else if (Touch_OFF == -3)
{
ProbeErrorDialog.AddStaticText( "Error Probe");
}
else if (Touch_OFF == -1)
{
ProbeErro rDialog.A ddStaticT ext( "Error Probe not known");
};
ProbeErrorDialog.DoModal("none");
return;
}
return;
};
>>It all looks good. But its hard to say why it doesnt return. Id do a couple things..
>>First, Id try a DoModeless on the error dialog, it may be doing a modal from within a modeless
>> that is killing you. The yield probably isnt necessary, Id make it a Block("MotionStill") instead,
>>it should be more reliable to the situational wait in this case. At what point does it lose it?
>>Does it ever open the error dialog?
Art
Re: reading Pokeys pins
Art
Yes the error dialog does run
>>First, Id try a DoModeles s on the error dialog, it may be doing a modal from within a modeless
Tried DoModel when first dialog run and I hit Ztouch off button I let it run till z max down distance so it errors out
Now the error dialog is displayed I hit ok, and don't close the original dialog and hit touch off z it runs to end and errors out
this time the error dialog doesn't display, and same problem I have to estop to rewind the m6 t3 call..
if I use DoModal I get the exact same results except when I run the Ztouch off button for the second time when it errors out I
get the error dialog now, but it displays 2 ok buttons and 2 cancel buttons weird! still have to hit estop to rewind..
>> that is killing you. The yield probably isnt necessary, Id make it a Block("MotionSti ll") instead,
Ok
>>it should be more reliable to the situation al wait in this case. At what point does it lose it?
Ok, can't tell where its loosing it most of the time it runs to end and all dialogs look closed at least not being displayed on the screen just no rewind till estop.
no errors messages from auggie..
>>Does it ever open the error dialog?
Yep stated above :o
Thanks gary
Yes the error dialog does run
>>First, Id try a DoModeles s on the error dialog, it may be doing a modal from within a modeless
Tried DoModel when first dialog run and I hit Ztouch off button I let it run till z max down distance so it errors out
Now the error dialog is displayed I hit ok, and don't close the original dialog and hit touch off z it runs to end and errors out
this time the error dialog doesn't display, and same problem I have to estop to rewind the m6 t3 call..
if I use DoModal I get the exact same results except when I run the Ztouch off button for the second time when it errors out I
get the error dialog now, but it displays 2 ok buttons and 2 cancel buttons weird! still have to hit estop to rewind..
>> that is killing you. The yield probably isnt necessary, Id make it a Block("MotionSti ll") instead,
Ok
>>it should be more reliable to the situation al wait in this case. At what point does it lose it?
Ok, can't tell where its loosing it most of the time it runs to end and all dialogs look closed at least not being displayed on the screen just no rewind till estop.
no errors messages from auggie..
>>Does it ever open the error dialog?
Yep stated above :o
Thanks gary
Re: reading Pokeys pins
Gary:
The dialog problem may have do with scope. A dialog really should
be deleted after use. But a global isnt, and I suspect a modeless isnt
either. Normally, in script the variables are deleted when the script
ends or during a clean up cycle when it finds its too full of unused
variables. Im not sure what happens with modeless or as in the following code..
global ProbeErrorDialog = Dialog(); //so a global definition of a ProbeError dialog,
//this will stay in scope andnever go away till
//scripts are reset.
//Id get rid of this line
global MyToolChange = function()
{
Touch_OFF = ZTouchOFF();
yield();
print("Touchoff4 "+Touch_OFF);
if (Touch_OFF == -1 || Touch_OFF == -2 || Touch_OFF == -3 )
{
if ( ProbeErro rDialog != null )
{
if ( ProbeErro rDialog.I sOpen() )
{
return;
};
};
global ProbeErrorDialog = Dialog(); //another definiton of the same, may have
// bad effects , perhaps this shouldnt be
//global.
ProbeErro rDialog.S etRect( 15, 10 );
ProbeErro rDialog.S etTitle( "Probe Error " );
ProbeErro rDialog.N extPositi on( 5,5,80,50 );
if (Touch_OFF == -2)
{
ProbeErro rDialog.A ddStaticT ext( "Error Prob
.....
ProbeErrorDialog.DoModal("none");
return;
} //if not global the error dialog should now be closed and deleted so it can
be made again..
With ProbeErrorDialog being non global, it should be deleted when the script ends. So Id call it ( the errorDialog ) as modal and then it will return to the calling script, and finally be deleted at end of script.... or so the theory goes..
I dont think Id make the error dialog global as its fully made and init'd in the call to it.
Modeless calling is likely what is causing the strangness, I will look in the
code to see how the destruction works, but generally global's are never deleted.
Using Dialogs in Windows has similar effects at times depending on when you create them, and how you deleted them.
Art
Art
The dialog problem may have do with scope. A dialog really should
be deleted after use. But a global isnt, and I suspect a modeless isnt
either. Normally, in script the variables are deleted when the script
ends or during a clean up cycle when it finds its too full of unused
variables. Im not sure what happens with modeless or as in the following code..
global ProbeErrorDialog = Dialog(); //so a global definition of a ProbeError dialog,
//this will stay in scope andnever go away till
//scripts are reset.
//Id get rid of this line
global MyToolChange = function()
{
Touch_OFF = ZTouchOFF();
yield();
print("Touchoff4 "+Touch_OFF);
if (Touch_OFF == -1 || Touch_OFF == -2 || Touch_OFF == -3 )
{
if ( ProbeErro rDialog != null )
{
if ( ProbeErro rDialog.I sOpen() )
{
return;
};
};
global ProbeErrorDialog = Dialog(); //another definiton of the same, may have
// bad effects , perhaps this shouldnt be
//global.
ProbeErro rDialog.S etRect( 15, 10 );
ProbeErro rDialog.S etTitle( "Probe Error " );
ProbeErro rDialog.N extPositi on( 5,5,80,50 );
if (Touch_OFF == -2)
{
ProbeErro rDialog.A ddStaticT ext( "Error Prob
.....
ProbeErrorDialog.DoModal("none");
return;
} //if not global the error dialog should now be closed and deleted so it can
be made again..
With ProbeErrorDialog being non global, it should be deleted when the script ends. So Id call it ( the errorDialog ) as modal and then it will return to the calling script, and finally be deleted at end of script.... or so the theory goes..
I dont think Id make the error dialog global as its fully made and init'd in the call to it.
Modeless calling is likely what is causing the strangness, I will look in the
code to see how the destruction works, but generally global's are never deleted.
Using Dialogs in Windows has similar effects at times depending on when you create them, and how you deleted them.
Art
Art
Who is online
Users browsing this forum: No registered users and 2 guests