Slavko Kocjancic wrote: > Jon Elson pravi: > >> The problem with the homing report is the destruction of data. When the >> home position is found, the machine position count is set to zero (or >> whatever the HOME_OFFSET value is). So, the old home position is >> destroyed by that operation. >> >> >> > > Just that. Before writing that HOME_OFFSET just read previous value and > show difference. But doesn't work! The destruction of data is done > earlyer too! That's is done to screw_comp file come at right position! > Yes, you have to have a HAL component that records the axis position every servo cycle, and can then report the last value it saw before the home operation completed and altered the value. I know how to do this on a servo system that homes to the encoder index pulse, as there is a hal signal that goes true when it starts the search for index and goes false when it finds the index and resets the encoder count to zero. The last value recorded when the ENCODER_INDEX signal was true is what you want. I don't know how this function works with the stepgen module.
Jon ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
