With 32 bit counters, in most cases, you don't have to worry about roll over at all..
Dealing with roll over issues can be tricky.. Dave On 2/19/2011 5:35 AM, Roland Jollivet wrote: > Hi all > > I'm trying to figure something out; > > With a servo type system using quadrature feedback, I see that "*the EMC ini > file uses two variables, FERROR and MIN_FERROR to define acceptable > following error for each axis. Think of MIN_FERROR as the following error > allowed at very low velocity and FERROR as the distance allowed during rapid > moves*." > > Now I know that each system has it's own intrinsic resolution, and that > machines move at different speeds, and that the CPU and read-update speed > has an effect, but considering that each encoder is read a number of times a > second; > > Surely there is no need to have a 32 bit counter? A 16 bit counter should > suffice? With a machine having 1u encoder resolution, the max count before > roll-over would correspond to a FERROR of around 32000 counts, or 32mm > > Considering a pretty fast G0 traverse of say 40m/min, then 32mm is traversed > in 48ms, plenty of time to get an update. > > So what I'm wondering is why do the Mesa cards use 32 bit counters for the > encoders? > > Would a 16bit counter not suffice? It just seems that there is a lot of time > spent reading redundant numbers from encoders, and that things could be > simplified with 16 bits. > > Regards > Roland > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > > ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users