X axis G28 point is moving .75 after each program has completed
Our machine has started to offset .75 the x axis every time a program finishes. Parts are to size and nothing weird going on during program. It seems to move just the x over to the right by .75 inches everytime a program finishes. Is there a macro or gcode that could have been activated unknowingly that could be causing just the x to move .75 every time to the right after a program completes?
Here is what we have tested and know to be true:
There are no changes from post processor output of same file from last month and today.
Ref All home and G28 as many times as you want and it will be exactly in the same spot.
Move all axis around machine then g28 and it will be in the exact same spot
Calibration for steps per inch have been redone and checked. It will move exactly how much you tell it to in the calibration set up.
If you run a program and run the same program again it will be offset .75 every program run that is processed. Only way to reset is to ref all home g28 then zero axis out.
Parts are to size and no oblong circles.
Y axis is not included in the offset movement.
New drives and encoders were installed without a difference.
Different gearhead was installed with the same outcome.
Rack and pinion have no issues.
1 Attachment(s)
Re: X axis G28 point is moving .75 after each program has completed
davy182
Check your settings, Go to Config Motor Home/Softlimits & see what you have set in the G28 Box, apart for this post the end part of your program this may not be correct also
Re: X axis G28 point is moving .75 after each program has completed
that part of the setting is correct and hasn't changed.
1 Attachment(s)
Re: X axis G28 point is moving .75 after each program has completed
here are the gcodes that are active
g15 g80 g17 g40 g20 g90 g94 g54 g49 g99 g64 g97
here is a better view of what it is doing
Re: X axis G28 point is moving .75 after each program has completed
Quote:
Originally Posted by
davy182
here are the gcodes that are active
g15 g80 g17 g40 g20 g90 g94 g54 g49 g99 g64 g97
here is a better view of what it is doing
That does not tell us anything at all, post the program, Just cut & paste it, on the Config in the above photo, is the G28 boxes blank or do you have numbers in it,
Re: X axis G28 point is moving .75 after each program has completed
( pen )
( File created: Monday, October 13, 2014 - 02:15 PM)
( for Mach2/3 from Vectric )
( Material Size)
( X= 48.000, Y= 96.000, Z= 0.250)
()
(Toolpaths used in this file:)
(pen1)
(Tools used in this file: )
(6 = Pen Tracing {0.05 inches})
N100G00G20G17G90G40G49G80
N110G70G91.1
N120T6M06
N130 (Tool: Pen Tracing {0.05 inches})
N140G00G43Z0.9500H6
N150S18000M03
N160(Toolpath:- pen1)
N170()
N180G94
N190X0.0000Y0.0000F175.0
N200G00X0.1138Y0.1138Z0.4500
N210G1X0.1138Y0.1138Z0.2000F30.0
N220G1X34.3638Y0.1138Z0.2000F175.0
N230G1X34.3638Y33.3638Z0.2000
N240G1X0.1138Y33.3638Z0.2000
N250G1X0.1138Y0.1138Z0.2000
N260G00X0.1138Y0.1138Z0.4500
N270G00X0.4888Y8.8325Z0.4500
N280G1X0.4888Y8.8325Z0.2000F30.0
N290G3X0.3950Y8.7388I0.0000J-0.0938F175.0
N300G3X0.4888Y8.6450I0.0938J0.0000
N310G3X0.5825Y8.7388I0.0000J0.0938
N320G3X0.4888Y8.8325I-0.0937J0.0000
N330G00X0.4888Y8.8325Z0.4500
N340G00X0.5825Y24.7388Z0.4500
N350G1X0.5825Y24.7388Z0.2000F30.0
N360G3X0.4888Y24.8325I-0.0937J0.0000F175.0
N370G3X0.3950Y24.7388I0.0000J-0.0938
N380G3X0.4888Y24.6450I0.0938J0.0000
N390G3X0.5825Y24.7388I0.0000J0.0938
N400G00X0.5825Y24.7388Z0.4500
N410G00X0.1138Y33.5783Z0.4500
N420G1X0.1138Y33.5783Z0.2000F30.0
N430G1X43.3638Y33.5783Z0.2000F175.0
N440G1X43.3638Y59.8283Z0.2000
N450G1X0.1138Y59.8283Z0.2000
N460G1X0.1138Y33.5783Z0.2000
N470G00X0.1138Y33.5783Z0.4500
N480G00X5.8325Y33.9533Z0.4500
N490G1X5.8325Y33.9533Z0.2000F30.0
N500G3X5.7387Y34.0471I-0.0938J0.0000F175.0
N510G3X5.6450Y33.9533I0.0000J-0.0938
N520G3X5.7387Y33.8596I0.0938J0.0000
N530G3X5.8325Y33.9533I0.0000J0.0938
N540G00X5.8325Y33.9533Z0.4500
N550G00X21.8325Y33.9533Z0.4500
N560G1X21.8325Y33.9533Z0.2000F30.0
N570G3X21.7388Y34.0471I-0.0938J0.0000F175.0
N580G3X21.6450Y33.9533I0.0000J-0.0938
N590G3X21.7388Y33.8596I0.0938J0.0000
N600G3X21.8325Y33.9533I0.0000J0.0938
N610G00X21.8325Y33.9533Z0.4500
N620G00X22.6208Y45.4569Z0.4500
N630G1X22.6208Y45.4569Z0.2000F30.0
N640G1X20.6208Y45.4569Z0.2000F175.0
N650G1X21.5808Y45.4569Z0.2000
N660G1X21.5808Y46.7929Z0.2000
N670G1X20.6208Y46.7929Z0.2000
N680G1X22.6208Y46.7929Z0.2000
N690G00X22.6208Y46.7929Z0.4500
N700G00X20.8208Y47.2329Z0.4500
N710G1X20.8208Y47.2329Z0.2000F30.0
N720G1X20.6208Y47.6889Z0.2000F175.0
N730G1X22.6208Y47.6889Z0.2000
N740G00X22.6208Y47.6889Z0.4500
N750G00X21.6450Y59.4533Z0.4500
N760G1X21.6450Y59.4533Z0.2000F30.0
N770G3X21.7388Y59.3596I0.0938J0.0000F175.0
N780G3X21.8325Y59.4533I0.0000J0.0938
N790G3X21.7388Y59.5471I-0.0938J0.0000
N800G3X21.6450Y59.4533I0.0000J-0.0938
N810G00X21.6450Y59.4533Z0.4500
N820G00X5.7387Y59.3596Z0.4500
N830G1X5.7387Y59.3596Z0.2000F30.0
N840G3X5.8325Y59.4533I0.0000J0.0938F175.0
N850G3X5.7387Y59.5471I-0.0938J0.0000
N860G3X5.6450Y59.4533I0.0000J-0.0938
N870G3X5.7387Y59.3596I0.0938J0.0000
N880G00X5.7387Y59.3596Z0.4500
N890G00X37.6450Y59.4533Z0.4500
N900G1X37.6450Y59.4533Z0.2000F30.0
N910G3X37.7388Y59.3596I0.0938J0.0000F175.0
N920G3X37.8325Y59.4533I0.0000J0.0938
N930G3X37.7388Y59.5471I-0.0938J0.0000
N940G3X37.6450Y59.4533I0.0000J-0.0938
N950G00X37.6450Y59.4533Z0.4500
N960G00X43.9533Y53.2365Z0.4500
N970G1X43.9533Y53.2365Z0.2000F30.0
N980G3X44.0471Y53.3303I0.0000J0.0938F175.0
N990G3X43.9533Y53.4240I-0.0938J0.0000
N1000G3X43.8596Y53.3303I0.0000J-0.0938
N1010G3X43.9533Y53.2365I0.0938J0.0000
N1020G00X43.9533Y53.2365Z0.4500
N1030G00X44.2096Y45.4952Z0.4500
N1040G1X44.2096Y45.4952Z0.2000F30.0
N1050G1X44.0096Y45.9512Z0.2000F175.0
N1060G1X46.0096Y45.9512Z0.2000
N1070G00X46.0096Y45.9512Z0.4500
N1080G00X46.0096Y43.4952Z0.4500
N1090G1X46.0096Y43.4952Z0.2000F30.0
N1100G1X44.0096Y44.2472Z0.2000F175.0
N1110G1X44.0096Y44.3032Z0.2000
N1120G1X45.5056Y44.8632Z0.2000
N1130G1X45.5056Y43.6952Z0.2000
N1140G1X45.5056Y44.8632Z0.2000
N1150G1X46.0096Y45.0552Z0.2000
N1160G00X46.0096Y45.0552Z0.4500
N1170G00X43.9533Y37.2365Z0.4500
N1180G1X43.9533Y37.2365Z0.2000F30.0
N1190G3X44.0471Y37.3303I0.0000J0.0938F175.0
N1200G3X43.9533Y37.4240I-0.0938J0.0000
N1210G3X43.8596Y37.3303I0.0000J-0.0938
N1220G3X43.9533Y37.2365I0.0938J0.0000
N1230G00X43.9533Y37.2365Z0.4500
N1240G00X43.5783Y30.3303Z0.4500
N1250G1X43.5783Y30.3303Z0.2000F30.0
N1260G1X46.4533Y30.3303Z0.2000F175.0
N1270G1X46.4533Y60.3303Z0.2000
N1280G1X43.5783Y60.3303Z0.2000
N1290G1X43.5783Y30.3303Z0.2000
N1300G00X43.5783Y30.3303Z0.4500
N1310G00X44.7201Y30.1138Z0.4500
N1320G1X44.7201Y30.1138Z0.2000F30.0
N1330G1X44.7201Y0.1138Z0.2000F175.0
N1340G1X47.5951Y0.1138Z0.2000
N1350G1X47.5951Y30.1138Z0.2000
N1360G1X44.7201Y30.1138Z0.2000
N1370G00X44.7201Y30.1138Z0.4500
N1380G00X45.0951Y23.0200Z0.4500
N1390G1X45.0951Y23.0200Z0.2000F30.0
N1400G3X45.1888Y23.1138I0.0000J0.0938F175.0
N1410G3X45.0951Y23.2075I-0.0938J0.0000
N1420G3X45.0013Y23.1138I0.0000J-0.0938
N1430G3X45.0951Y23.0200I0.0938J0.0000
N1440G00X45.0951Y23.0200Z0.4500
N1450G00X39.6413Y18.1138Z0.4500
N1460G1X39.6413Y18.1138Z0.2000F30.0
N1470G1X39.6413Y0.1138Z0.2000F175.0
N1480G1X44.5163Y0.1138Z0.2000
N1490G1X44.5163Y18.1138Z0.2000
N1500G1X39.6413Y18.1138Z0.2000
N1510G00X39.6413Y18.1138Z0.4500
N1520G00X40.0163Y15.0200Z0.4500
N1530G1X40.0163Y15.0200Z0.2000F30.0
N1540G3X40.1101Y15.1138I0.0000J0.0938F175.0
N1550G3X40.0163Y15.2075I-0.0938J0.0000
N1560G3X39.9226Y15.1138I0.0000J-0.0938
N1570G3X40.0163Y15.0200I0.0938J0.0000
N1580G00X40.0163Y15.0200Z0.4500
N1590G00X34.9376Y15.2075Z0.4500
N1600G1X34.9376Y15.2075Z0.2000F30.0
N1610G3X34.8438Y15.1138I0.0000J-0.0938F175.0
N1620G3X34.9376Y15.0200I0.0938J0.0000
N1630G3X35.0313Y15.1138I0.0000J0.0938
N1640G3X34.9376Y15.2075I-0.0938J0.0000
N1650G00X34.9376Y15.2075Z0.4500
N1660G00X34.5626Y18.1138Z0.4500
N1670G1X34.5626Y18.1138Z0.2000F30.0
N1680G1X34.5626Y0.1138Z0.2000F175.0
N1690G1X39.4376Y0.1138Z0.2000
N1700G1X39.4376Y18.1138Z0.2000
N1710G1X34.5626Y18.1138Z0.2000
N1720G00X34.5626Y18.1138Z0.4500
N1730G00X33.9888Y24.6450Z0.4500
N1740G1X33.9888Y24.6450Z0.2000F30.0
N1750G3X34.0825Y24.7388I0.0000J0.0938F175.0
N1760G3X33.9888Y24.8325I-0.0938J0.0000
N1770G3X33.8950Y24.7388I0.0000J-0.0938
N1780G3X33.9888Y24.6450I0.0938J0.0000
N1790G00X33.9888Y24.6450Z0.4500
N1800G00X37.7388Y33.8596Z0.4500
N1810G1X37.7388Y33.8596Z0.2000F30.0
N1820G3X37.8325Y33.9533I0.0000J0.0938F175.0
N1830G3X37.7388Y34.0471I-0.0938J0.0000
N1840G3X37.6450Y33.9533I0.0000J-0.0938
N1850G3X37.7388Y33.8596I0.0938J0.0000
N1860G00X37.7388Y33.8596Z0.4500
N1870G00X45.3514Y15.2786Z0.4500
N1880G1X45.3514Y15.2786Z0.2000F30.0
N1890G1X45.1514Y15.7346Z0.2000F175.0
N1900G1X47.1514Y15.7346Z0.2000
N1910G00X47.1514Y15.7346Z0.4500
N1920G00X47.1514Y13.2786Z0.4500
N1930G1X47.1514Y13.2786Z0.2000F30.0
N1940G1X45.1514Y14.0306Z0.2000F175.0
N1950G1X45.1514Y14.0866Z0.2000
N1960G1X46.6474Y14.6466Z0.2000
N1970G1X46.6474Y13.4786Z0.2000
N1980G1X46.6474Y14.6466Z0.2000
N1990G1X47.1514Y14.8386Z0.2000
N2000G00X47.1514Y14.8386Z0.4500
N2010G00X41.5428Y9.9607Z0.4500
N2020G1X41.5428Y9.9607Z0.2000F30.0
N2030G1X41.3428Y10.4167Z0.2000F175.0
N2040G1X43.3428Y10.4167Z0.2000
N2050G00X43.3428Y10.4167Z0.4500
N2060G00X43.3428Y8.1847Z0.4500
N2070G1X43.3428Y8.1847Z0.2000F30.0
N2080G1X41.3428Y8.1847Z0.2000F175.0
N2090G1X42.3028Y8.1847Z0.2000
N2100G1X42.3028Y9.5208Z0.2000
N2110G1X41.3428Y9.5208Z0.2000
N2120G1X43.3428Y9.5208Z0.2000
N2130G00X43.3428Y9.5208Z0.4500
N2140G00X45.0013Y7.1137Z0.4500
N2150G1X45.0013Y7.1137Z0.2000F30.0
N2160G3X45.0951Y7.0200I0.0938J0.0000F175.0
N2170G3X45.1888Y7.1137I0.0000J0.0938
N2180G3X45.0951Y7.2075I-0.0938J0.0000
N2190G3X45.0013Y7.1137I0.0000J-0.0938
N2200G00X45.0013Y7.1137Z0.4500
N2210G00X40.0163Y3.2075Z0.4500
N2220G1X40.0163Y3.2075Z0.2000F30.0
N2230G3X39.9226Y3.1137I0.0000J-0.0938F175.0
N2240G3X40.0163Y3.0200I0.0938J0.0000
N2250G3X40.1101Y3.1137I0.0000J0.0938
N2260G3X40.0163Y3.2075I-0.0938J0.0000
N2270G00X40.0163Y3.2075Z0.4500
N2280G00X34.9376Y3.2075Z0.4500
N2290G1X34.9376Y3.2075Z0.2000F30.0
N2300G3X34.8438Y3.1137I0.0000J-0.0938F175.0
N2310G3X34.9376Y3.0200I0.0938J0.0000
N2320G3X35.0313Y3.1137I0.0000J0.0938
N2330G3X34.9376Y3.2075I-0.0938J0.0000
N2340G00X34.9376Y3.2075Z0.4500
N2350G00X33.8950Y8.7388Z0.4500
N2360G1X33.8950Y8.7388Z0.2000F30.0
N2370G3X33.9888Y8.6450I0.0938J0.0000F175.0
N2380G3X34.0825Y8.7388I0.0000J0.0938
N2390G3X33.9888Y8.8325I-0.0938J0.0000
N2400G3X33.8950Y8.7388I0.0000J-0.0938
N2410G00X33.8950Y8.7388Z0.4500
N2420G00X36.4640Y9.9607Z0.4500
N2430G1X36.4640Y9.9607Z0.2000F30.0
N2440G1X36.2640Y10.4167Z0.2000F175.0
N2450G1X38.2640Y10.4167Z0.2000
N2460G00X38.2640Y10.4167Z0.4500
N2470G00X38.2640Y8.1847Z0.4500
N2480G1X38.2640Y8.1847Z0.2000F30.0
N2490G1X36.2640Y8.1847Z0.2000F175.0
N2500G1X37.2240Y8.1847Z0.2000
N2510G1X37.2240Y9.5208Z0.2000
N2520G1X36.2640Y9.5208Z0.2000
N2530G1X38.2640Y9.5208Z0.2000
N2540G00X38.2640Y9.5208Z0.4500
N2550G00X17.9771Y17.1445Z0.4500
N2560G1X17.9771Y17.1445Z0.2000F30.0
N2570G1X18.4331Y17.3445Z0.2000F175.0
N2580G1X18.4331Y15.3445Z0.2000
N2590G00X18.4331Y15.3445Z0.4500
N2600G00X15.9771Y15.3445Z0.4500
N2610G1X15.9771Y15.3445Z0.2000F30.0
N2620G1X16.7291Y17.3445Z0.2000F175.0
N2630G1X16.7851Y17.3445Z0.2000
N2640G1X17.3451Y15.8485Z0.2000
N2650G1X16.1771Y15.8485Z0.2000
N2660G1X17.3451Y15.8485Z0.2000
N2670G1X17.5371Y15.3445Z0.2000
N2680G00X17.5371Y15.3445Z0.4500
N2690G00Z0.9500
N2700G00X0.0000Y0.0000
N2710M09
N2720M30
%
1 Attachment(s)
Re: X axis G28 point is moving .75 after each program has completed
here is the screen shot. A new computer was tried with fresh install of mach3 and nothing different.
Re: X axis G28 point is moving .75 after each program has completed
Quote:
Originally Posted by
davy182
here is the screen shot. A new computer was tried with fresh install of mach3 and nothing different.
Your program is in incremental G91.1, you want to do you program using absolute G90, you also don't need a G94 & the G70 in the program
You also don't have a G54 for your work offset, so the control does not know were to return to work Zero
By using the G28 to reset your machine it will move to what your settings are, from machine Home & the numbers you have set in the G28 settings
Re: X axis G28 point is moving .75 after each program has completed
Re: X axis G28 point is moving .75 after each program has completed
I would at least try mactech54 recommendation, sometime the cad system you my be using does not include these codes in the parameters, but can be alterd, just take a better look at the manuals.
Re: X axis G28 point is moving .75 after each program has completed
Quote:
Originally Posted by
mactec54
Your program is in incremental G91.1, you want to do you program using absolute G90,
No, it's not.
N100G00G20G17G90G40G49G80 < This puts the machine in Absolute mode
N110G70G91.1 < This puts the machine in Incremental IJ mode
The program is in G90, and stays in G90 throughout.
We've had this discussion before. This is standard practice for Mach3, and is correct.
I don't see anything in the code to cause it to do what you're saying. It could be something in your M6 macro, or I'd guess it's mechanical and it's loosing steps somewhere.
At the end of the program, does the pen finish at the corner where it started?
If you set X and Y to zero before it starts, does it start there, or move .75 before it starts drawing?
Re: X axis G28 point is moving .75 after each program has completed
Quote:
Originally Posted by
ger21
No, it's not.
N100G00G20G17G90G40G49G80 < This puts the machine in Absolute mode
N110G70G91.1 < This puts the machine in Incremental IJ mode
The program is in G90, and stays in G90 throughout.
We've had this discussion before. This is standard practice for Mach3, and is correct.
I don't see anything in the code to cause it to do what you're saying. It could be something in your M6 macro, or I'd guess it's mechanical and it's loosing steps somewhere.
At the end of the program, does the pen finish at the corner where it started?
If you set X and Y to zero before it starts, does it start there, or move .75 before it starts drawing?
Nobody said there was anything in the code that would cause it to do what it was doing, his Program is in Incremental If you have a G91.1 after a G90 then your Program will be executed in Incremental
It was what he did to move his machine that made it move to where it was, He used a G28 to move the machine after the program had finished & this would move his machine to were ever he has the setting set in relation to the Machine Zero or work Zero, depending how he had his work set up
The top line of code is a safety line which cancels or activates those codes, In this case there is a G90 ( absolute ) which is only active until is see's the G91.1 ( Incremental )
N100G00G20G17G90G40G49G80
N110G70G91.1
N120T6M06
There is nowhere else in the Program that there is a G90 after this G91.1,so his Program would be run in Incremental
Re: X axis G28 point is moving .75 after each program has completed
Quote:
Nobody said there was anything in the code that would cause it to do what it was doing, his Program is in Incremental If you have a G91.1 after a G90 then your Program will be executed in Incremental
No, it won't. You're 100% wrong.
If you'd run the program in Mach3, you'd see that it stays in G90 (Absolute) through the entire program. It never changes to incremental, because G91.1 IS NOT INCREMENTAL!!
Stop trying to tell people it is, when it's not.
1 Attachment(s)
Re: X axis G28 point is moving .75 after each program has completed
Quote:
Originally Posted by
ger21
No, it won't. You're 100% wrong.
If you'd run the program in Mach3, you'd see that it stays in G90 (Absolute) through the entire program. It never changes to incremental, because G91.1 IS NOT INCREMENTAL!!
Stop trying to tell people it is, when it's not.
So the Mach3 instruction manual is wrong then
G90 & G91 are a Preparatory Function Plus they are Modal
Re: X axis G28 point is moving .75 after each program has completed
No, G91.1 is incremental IJ mode, and has nothing to do with G90, which puts Mach3 in absolute DISTANCE mode.
His code runs in absolute distance mode throughout (G90).
1 Attachment(s)
Re: X axis G28 point is moving .75 after each program has completed
Quote:
Originally Posted by
ger21
No, G91.1 is incremental IJ mode, and has nothing to do with G90, which puts Mach3 in absolute DISTANCE mode.
His code runs in absolute distance mode throughout (G90).
You are saying the G91.1 serves no purpose,other than to do the I & J in incremental,
So if you have your control Configured correctly, to normal industry standard, as it should be, the G91.1 would be redundant, as it serves no purpose, Most controls Default to Incremental for I & J just the same as you can configure it in Mach3
Re: X axis G28 point is moving .75 after each program has completed
What I'm saying is that you're giving out incorrect information:
Quote:
Your program is in incremental G91.1, you want to do you program using absolute G90,
You're now trying to change the subject.
Vectric adds a G91.1 to their code so they don't get hundreds of support calls because their IJ mode is set wrong. I guess they should send them to you so you can tell them their machine is configured incorrectly, which has nothing to do with the OP's problem.
Conversation over.
Re: X axis G28 point is moving .75 after each program has completed
ok here is the rundown and would be a good idea to write down in the books for a problem check, as it is out of my realm of expertise to explain:
The x motor had a frayed/most strands broken on the ground for the motor. It was on the cnc side of the wiring and not the motor side of the connector, hence when a different motor with gear-head was swapped it had the same issue. Once the ground was repaired poof problem solved. If anyone can explain how the motor only moved right and exactly .75 inches because of the ground issue I would like to know.