On Monday 25 April 2016 06:41:58 andy pugh wrote: > On 25 April 2016 at 03:38, Gene Heskett <[email protected]> wrote: > > it appears that the cameras offsets from the camera > > view to the spindles centerpoint are to be contained in the #5211(X) > > and #5212(Y) variables, > > Those are actually the G92 offsets: > http://linuxcnc.org/docs/2.7/html/gcode/overview.html#gcode:parameters > > If I was configuring such a system I think I would make the camera > T999 and put the offsets in the tool table.
Is our tool table that big now, or is that just an arbitrary, unlikely to be otherwise hit, number? I already have a T99 entry in the middle of the list: T99 P99 X-1.2645 Y-0.0485 Z1.1 D0.0001 ;test of camview-emc, added 20131128 that was imported from the toy mill that I had a camera on until an errant jig bolt wiped it off the side of the head where it had it mounted. Then at about lcnc-2.5 (IIRC), the whole camview thing quit working due to a newly missing library. So until now, I've been w/o a camera. _camon.ngc: (With comments not in the file) ============== o<_camon> sub (save current coordinate) g92 x0 y0 z0 g92.2 #<_CamOfsX> = #5211 #<_CamOfsY> = #5212 ( clear any offsets including above vars ) g92.1 (introduce CAM offset from tool table data) g43 h99 (calculate offset as don't know how to read it directly) ( clear any offsets, but vars not saved until lcnc exit) g92 x0 y0 z0 ( clear any offsets in effect w/o clearing the #5211 +8 section) g92.2 #<_CamOfsX> = [#<_CamOfsX> - #5211] #<_CamOfsY> = [#<_CamOfsY> - #5212] g92.1 (PRINT, CAMoffset is X=#<_CamOfsX>, Y=#<_CamOfsY>) (move cam for offset) g91 g0 x#<_CamOfsX> y #<_CamOfsY> g90 (move for CAM offset - old way with fixed offset) (g43 h99 g91 g0 x 1.75 y 63.531) (g90) o<_camon> endsub M2 ================ The machine moves, but immediately reverts back to where it was when it gets to the T99 offsets. The machine is faster than the camera, so I never see it stop at the above locations on screen. I also think those locations would be wrong as this camera is mounted on the bottom of my spindle locks mount ring, whereas it was mounted on the right side of the toys mills head. Both T99 entries would have a quite small y offset, but the sign and value for x would change a bit. I could get in the ballpark just by changing the x sign in the T99 entry. So I'm still missing something in my understanding. Why does the machine immediately revert to where it started from? Thanks Andy. 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> ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
