On Friday 01 August 2014 16:35:18 andy pugh did opine And Gene did reply: > On 1 August 2014 21:18, Gene Heskett <[email protected]> wrote: > > G10 L20 P3 Xdifferent Ysame consistently throws me an error as if > > Ysame was first multiplied by 2 or was cumulative to the P2 setting. > > Are you failing to account for the board-flip effectively mirroring the > offset? > > TBH I am sure you are over-thinking this. > > Can you describe what you want to achieve without mentioning any > G-words (ie, just in plain english) > > I have the feeling that you want to set up G54 and G55 such that after > setting the machining origin in G54 you can flip the board and the > origin will automatically be correct in G55. I don't think that is > possible unless you happen to flip the board about an axis that lies > exactly on the G53 origin. (and, if you do that, then G54 will be just > as correct on the reverse side)
Not really. I want to maintain a refeence in the g54 map that is X0.0000 Y0.0000 to the center of a brass pipe set into the pallet near the lower left corner of the pallet. Measuring that offset to the center of the pipe and applying it to G55 puts X0.0000 Y0.0000 at the exact left front corner of the board. But since I need more board space on that end of the board, I made the board about .625" longer (exact value is in the code) and have added that to the X offset of the G55 map which then places the carved pattern at the right end of the board, leaving me room to glue some 15 turn pots to the board for use as LED britness setters in the opto's. Pcb2gcode, regardless of the mirroring checkbox in its config screen, appears not to switch the sign of the movement, so the code it emits for the bottom of the board need a global replacement of a the X's with X- to actually mirror it about a flip on the Y axis. The idea of the hole drilled at X0Y.1 in the G55 map should leave that hole at X0.0000 Y0.1000 when the board is flipped and the map changed to G56. My point being that applying a Y correction to G55 works, the exact same value sent to G56 is off, sometimes as much as half an inch. Almost random even. Look at my code, which first finds the exact center of the reference tubing, and then applies the tubings offset to G55 so X0Y0 is the exact left front corner of the board. But applying that same Y value to G56 mapping is a total failure. If its wrong I'd like to learn what I did wrong, but after the lengthy fight I've had with 2.6.0, I am ready to downgrade. This code, in an earlier version of LCNC worked well enough back in Feb 2013 that I could drill the component lead holes only 40 thou deep in 1/16" think pcb materiel, and every hole drilled from the other side resulted in a complete hole with no visible offsets or ridges in the holes, meeting perfectly in the center of the boards thickness. I'd say thats pretty good for an old farm kid. Why can't I do it again with 2.6.0? Thanks Andy. I think I'll go see if there is anything to put in a nose bag as its about dinner time on this side of the pond. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
