On Sunday 06 March 2016 14:54:17 Gene Heskett wrote: > Greetings; > > Specifically; what do I do to cause the machine to move from the > camera looking at an x mark on the work, so it moves the machine to be > at that X mark, and vice versa? > > Apparently there are some "to be user supplied constants" that modify > one of the co-ordinate maps to make this a consistent, repeatable > move. At least that is how I would do it, but I didn't invent this > particular wheel. :) > > I have a need to write some code which will excavate the top trim > board to sink very close to the whole thickness of one of these high > friction hinges when it is in the closed position, and it would > because a rather simple step and repeat to make a target mark on the > wood, bring in the camera offsets, find that mark, touch off to it and > move back by that offset, and hit "r" for run, once the code was > written to do the excavation work. > > I have looked at the camon.ngc and camoff.ngc, without the light > coming on. Probably my fault so I'll print both & study some more. I > would like to write the code once and run it 9 times or more. > > Cheers, Gene Heskett
It appears that tool table entry 99 is used to store these offsets. But when I make a mark with a tool, touch that off, them put the camera on that spot, and store that dro displayed value in #99 of the tool table, then run _camoff.ngc by clicking on its button, the machine move at max rapid from looking at the target with the camera, to someplace near those 0.000 0.0000 values, putting the machine back over the mark it made, but then it immediately runs back to where the camera is once again centered on the mark, hitting that point precisely. These subroutine calls (_camoff.ngc, _camon.ngc) make use of the values in #5211-12 for the XY info, but these values are 0.00000 until a G38.x has been run to initialise them with valid data. I am thinking it should be using the data for these calcs from the G53 section of that table, not the G38.x scratchpad. So, does anyone know of the method intended to be used to determine the offset between the camera and the tool? IOW, what the initial calibration does and in what order? Thanks. 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> ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users