flatcam

Open full view…

Setting the origin?

jibeji
Thu, 15 Jan 2015 18:13:13 GMT

I have another question: is it possible to manually set the origin? Thanks.

admiral-dk
Thu, 15 Jan 2015 18:28:27 GMT

The origin in your file or ? There is an offset function at the bottom of "Selected" if you need to correct / adjust for misalignment between two or more of your files after you imported them into FlatCam - is that what you're looking for or ?

jibeji
Thu, 15 Jan 2015 18:31:54 GMT

Sorry I was not clear. I meant the origin (x0y0) of the CNC.

admiral-dk
Thu, 15 Jan 2015 18:44:32 GMT

Let me see if I understand you right - you want to be able to compensate for not placing the PCB at origin ? I haven't got a clue what program you use to run your CNC, but most of those I can imagine, has way to ZERO any axis, so only you need to move the mill to where you want the ORIGIN to be and zero the axises. If you have a very good zero function on your mill (most aren't good enough), you can select the CNC Job Object file in FlatCam and goto "Selected" and in the bottom there is again an Offset function - enter the offset you need and then use the "Export G-Code" function - now you have a new ORIGIN. Hope this helps.

admiral-dk
Thu, 15 Jan 2015 19:54:46 GMT

UPS - just discovered that using the OFFSET function on the "CNC Job Object file" moves the screenplot but not the G-Codes created - haven't got a clue why :-(

jpcaram
Fri, 16 Jan 2015 18:07:46 GMT

Oh, that's interesting! That might be a bug worth reporting in the issue tracker. But you can OFFSET your Gerber, Excellon or Geometry and when you create your G-Code (CNC Job) from them the result will certainly be offset. Thanks, JP

jpcaram
Fri, 16 Jan 2015 18:17:47 GMT

Created the issue: https://bitbucket.org/jpcgt/flatcam/issue/98/offset-to-cnc-job-only-offsets-the-plot But remember that it has a workaround, even though there IS a bug. JP

jibeji
Sat, 17 Jan 2015 10:58:45 GMT

Thanks for the tip. However, defining the zero postion by clicking on a pad will be more helpful, as CopperCAM does. Calculating it is painful...

jpcaram
Sun, 18 Jan 2015 23:21:21 GMT

Why would you have to do any calculations? I don't think I'm understanding what you are trying to do.

jibeji
Mon, 19 Jan 2015 12:34:24 GMT

Hi JP, The word "calculation" was not well chosen. I want to automatically drill some PCBs which are already engraved. After Excellon import, I get that : [Sans titre](//muut.com/u/flatcam/s1/:flatcam:WXtM:sanstitre.png.jpg) The idea is to: - set the origin of the G-code to pad 9 for example - manually place the spindle on top of pad 9 - launch the CNC process So that eveything will be drilled at the right position. To do that with FlatCAM, I have to find the position of pad 9 (which is 147.9115 x 59.1855) then set these values as an offset (-147.9115,-59.1855). It works, but it's more difficult than setting the origin by clicking on a pad like that: [Sans titre 2](//muut.com/u/flatcam/s1/:flatcam:UZv4:sanstitre2.png.jpg)

jpcaram
Mon, 19 Jan 2015 16:08:39 GMT

In summary, the feature would be to get the coordinates of the pad/hole by clicking on it (Then you would just have to paste it into the offset box). It would be easy to do. In general I would like to add some “inspection features”, but that takes time. For the time being, you can zoom-in to the hole/pad that you want as origin, click on the “approximate” center (this will copy the coordinates to the clipboard) and then paste it into the Offset vector box. Finally change the sign of both numbers. I know, not very clean. But the feature you want will certainly become available some time (hopefully soon). JP

jibeji
Mon, 19 Jan 2015 16:42:46 GMT

Not very clean but it does the job. Thanks JP.

admiral-dk
Tue, 20 Jan 2015 17:57:01 GMT

I use the Box function to do the mirror alignment - it's a lot better than trying manually, but even if the top and bottom layer fits each other and the drill file perfectly before I use the Mirror Tool, I get a bottom layer that is shifted between 10 and 50 mill in the Y direction. I'm using Y as Mirror Axis. I just tried to use the offset function on the mirrored ".pho-iso file and like the offset function on the mirrored .pho-iso-cnc file it does not move the generated G-Code. (Argh, using the underscore character turns on italic - NO GOOD - so I had to use - above instead ). So how do I correct the error ? Off cause better if I didn't have any problem, and therefor don't have to make a PCB with errors just to measure how much I need to correct the G-Code. Best wishes Per

jpcaram
Tue, 20 Jan 2015 18:40:26 GMT

Per, I don't think this question was referring to mirroring, just shifting the origin to a hole/pad. Anyway, the problem you are having is this: https://bitbucket.org/jpcgt/flatcam/issue/98/offset-to-cnc-job-only-offsets-the-plot The solution is to move the geometry before you create the CNCJob object. JP