Greetings all; Got a puzzle because with the 5i25, I have no base-thread.
But w/o a sample at base-thread speeds, its not going to be possible to measure the software encoder because at servo-thread speeds, several A pulses could go by between servo-thread samples. So it looks as if I'll have to set hm2_5i25.0.counter-mode true, at least long enough to obtain these answers. I intend to hook this new encoder to the former A & B input circuitry, replaceing the shop made opto/slot encoders signals, but to maintain some sanity, a new encoder scale factor must be determined in order for the position output to reflect not the motor position, but the spindle, which will continue to get the old opto/slot's index or Z. This scaled position and velocity will then be fed to motion, near & similar places. Which I read as being reset to start a new cycle when Z goes true. So, is hm2_5i25.encoder.0.position.out still valid if counter-mode is set true? Then I might be able to use a comp to drive a mux2 as a sample-hold, holding the highest count by grabbing a new sample if its greater than the one currently stored in the mux2. That highest count after the spindle has been idling along at less than 100 rpms for 10 seconds or so then becomes the scale after a *4 for that gear. It will require a manual gear change to detect the 2 gear ratio's. And those 2 results then get committed to the ini file as SPINDLE_L_SCALE and SPINDLE_H_SCALE and used in the hal file. Then all this gingerbread gets commented out. Are there any gotcha's in scaling the values fed to motion as long as no synchronized moves are in progress at the time? 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> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
