Hello Guest it is March 19, 2024, 02:33:39 AM

Author Topic: Help please! Work is way outside of table.  (Read 2803 times)

0 Members and 1 Guest are viewing this topic.

Re: Help please! Work is way outside of table.
« Reply #10 on: December 14, 2018, 09:18:24 PM »
Hi,

Quote
I’ve tried setting mach3 native units to mm before posting the g code already.

DO NOT FIDDLE WITH NATIVE UNITS. Mach3 has native units, you can choose either mm or inches. Those will be the units that you tune the motors,
define soft limits  and so on. Once they are set DO NOT CHANGE THEM. They are set for the life of the machine. If you have fiddled with them you
may have to go back and redo you tuning and so on to ensure that all your settings are consistent with your chosen native units.

When I first started with Mach I made the same mistake.

If you have Gcode composed of mm movements code G21, inch movements code G20.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Help please! Work is way outside of table.
« Reply #11 on: December 14, 2018, 09:20:51 PM »
Thank you for the warning Craig. I watched the tutorial videos on here explaining that very same thing, but I’m really at my wits end here and wanted to try everything.
Do you know if mastercam 2018 has compatibility issues with mach3?
« Last Edit: December 14, 2018, 09:22:56 PM by jrga01 »
Re: Help please! Work is way outside of table.
« Reply #12 on: December 14, 2018, 10:10:35 PM »
Hi,
Mastercam and Mach3 are different to each other and at no time do they interact.

Mastercam is essentially a CAM program to which has been added a CAD drafting/drawing module. Thus you can draw your part and then have
the CAM part of the program generate the required toolpaths. The raw toolpaths are modified/massaged to be compatible with your machine
and control software, the massaging is called the 'post', short for post processor.

There is a Mastercam post for Mach3 (and Mach4), but it is nearly identical to a 3 axis Fanuc post. I have used the Mach3 post AND the Fanuc post
and not really found any difference between them.

The bottom line here is that its not any incompatability between Mach and Mastercam but that you are using two programs and you are not really
familiar with either of them. Its a steep learning curve, get used to it....CNC is steep learning curve.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Help please! Work is way outside of table.
« Reply #13 on: December 14, 2018, 10:21:35 PM »
Thank you craig,
I double checked my cam and the gnomon is at 000.
I'm looking at my code and one of the first lines is G92 X250. Y-250. Z250. I changed these values to 000... But i would like to know how to actually solve this problem rather than work around it... Here is a bit of the code
Code: [Select]
N100 G21
N110 G0 G17 G40 G49 G80 G90
/ N120 G91 G28 Z0.
/ N130 G28 X0. Y0.
/ N140 G92 X250. Y250. Z250.
N150 T5 M6
N160 G0 G90 X-.179 Y21.054 A0. S3500 M3
N170 G43 H5 Z50.
N180 Z27.799
N190 G1 Z27.299 F7.2
N200 X-.189 Y21.057 Z27.099
N210 X-.217 Y21.065 Z26.902
N220 X-.265 Y21.079 Z26.709
N230 X-.33 Y21.098 Z26.522
N240 X-.413 Y21.122 Z26.342
N250 X-.513 Y21.151 Z26.172
N260 X-.629 Y21.185 Z26.013
N270 X-.759 Y21.223 Z25.867
N280 X-.902 Y21.265 Z25.735
N290 X-1.058 Y21.31 Z25.619
N300 X-1.223 Y21.358 Z25.519
N310 X-1.398 Y21.409 Z25.437
N320 X-1.579 Y21.462 Z25.373
N330 X-1.766 Y21.517 Z25.329

« Last Edit: December 14, 2018, 10:23:09 PM by jrga01 »
Re: Help please! Work is way outside of table.
« Reply #14 on: December 14, 2018, 10:30:24 PM »
Hi,
yes the gnomon is always at 0,0,0 but that means your part toolpath starts at x=250, y=250 and z=250 ie outside your boundaries.

You need to (in Mastercam) highlight the whole of the tooplath, stock and so on and translate it relative so the first corner of the part
is not 250,250,250 but 0,0,0.

This is a CAM issue, not Mach3 at all. You have drawn your part too far away from the WCS origin. Shift your drawing to be close if not
coincident with the WCS origin.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Help please! Work is way outside of table.
« Reply #15 on: December 14, 2018, 10:44:19 PM »
I drew my part in solidworks, on the origin in that program and exported it to mastercam... Maybe thats why it is so far away from my WCS. I've been reading you can simply create another WCS and define its origin at your stocks corner, ive tried this and it isnt working though
Re: Help please! Work is way outside of table.
« Reply #16 on: December 14, 2018, 11:16:09 PM »
Hi,
Mastercam has a reputation for being hard to learn, I certainly had trouble with translating the toolpath relative to the WCS origin when
I encountered the exact same problem you are having.

Regrettably I no longer have access to Mastercam, despite its somewhat thorny user interface I liked its completeness. Shame I would have to take out another
mortgage to buy a copy for myself. I'm sorry I can't recall how I did it......I do remember setting the XYZ translation distances manually to ensure my preferred
touch off feature landed on 0,0,0. I recall definitely translating my part TO the WCS, not trying to make a new WCS. I had great difficulty trying to do that
as well and found translating my work relative to the existing WCS much easier.

It does seem strange that the Gcode should call a move to 250,250,250 when it would appear your part or even your stock does not extend that far.
Is it possible that some point, maybe a drafting mark or center point of a radius has been inadvertently overlooked and retained in the MasterCam
drawing?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Help please! Work is way outside of table.
« Reply #17 on: December 14, 2018, 11:20:37 PM »
Nothing i do seems to change that g92 setting of 250,250,250. I even just now tried drawing a simple rectangle, adding an optirough toolpath and posted the gcode. STILL g92 250,250,250. I drew the rectangle with its left bottom corner on the origin.
Re: Help please! Work is way outside of table.
« Reply #18 on: December 14, 2018, 11:58:03 PM »
Hi,
that's starting to sound like either Mastercam or the post is adding a specific point to the tooplath.

May I suggest looking at the machine definition in Mastercam. If memory serves you can specify axis travels. I'm wondering
if the 250,250,250 is not Mastercam producing a line of Gcode that goes to the machine extents, despite the actual extents
being somewhat less than 250,250,250.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Help please! Work is way outside of table.
« Reply #19 on: December 15, 2018, 06:37:34 PM »
SOLVED:
If anyone else is having this problem. There is a g92 000 code mastercam is producing OVERWRITING any work offsets in mach 3. Delete that line and u should be good to go