From: Donald V. L. <do...@sb...> - 2004-09-25 22:39:58
|
Hi Abdul, Yes, Paul mentioned I should update. My ignorance of how all the code is updated, and other wiring things I needed to get done have delayed my doing this, Along with the fun-with-PID stuff, which I found very interesting, so I spent time on that. Thanks. 73, Don... -----Original Message----- From: emc...@li... [mailto:emc...@li...] On Behalf Of Abdul R Rafiq Sent: Saturday, September 25, 2004 5:14 PM To: emc...@li... Subject: Re: [Emc-users] motion control cards Don, I had noticed similar behavior. the original code for vitalEncoderReadAll in vital.c was wrongly reading the counters as unsigned. Paul fixed it few months ago. make sure you are compiling the correct version of vital.c. following is the updated code. int vitalEncoderReadAll(int max, double * counts) { int t; signed long int temp; if( ( max > VITAL_MAX_AXIS ) || ( max < 0 )) return -1; for ( t = 0; t < max; t++ ) { /* Need to cast to a signed int before casting it as a double as pMotenc has been declared as a pointer to unsigned ints */ temp = (signed long int) (readl( pMotenc + ((t/4)*8) + (t%4) )); counts[t] = (double) temp; } return 0; } vsitest is a standalone user-mode test program that do not use vital.c. thank you Abdul Rafiq Vital Systems Inc. http://www.vitalsystem.com/motion/ ----- Original Message ----- From: "Donald V. Lemke" <do...@sb...> To: <emc...@li...> Sent: Friday, September 24, 2004 3:35 PM Subject: RE: [Emc-users] motion control cards > > Hi Dave, > > I am using a motenc-100 with rc46. Having issues with the > displayed data getting disconnected from the encoder. In one failure > mode, it appears ok, but turning axis screw results in no update, > while triggering a move results in no axis movement, but the axis > idication increments (as if it was a stepper drive). Call this the > fault-to-freqmod failure. In the other failure mode, the counter just > goes ramping off into infinity. Both failure modes are triggered by > similar rapid axis movements. > > In either case, using the vsitest program after the fault has > started, indicates a proper encoder counter value, stable and reactive > only to the axis motion. > > With a PID setting that results in a good control, the problem > appears to never happen. But, I have only been debugging for about a > week in spare time. > > Still, what is going to happen when the axis has variable > loading which changes the dynamics, and a poor control situation > occurs? Hmmm. Think there is a bug. > > 73, Don... > > > -----Original Message----- > From: emc...@li... > [mailto:emc...@li...] On Behalf Of dave > Sent: Thursday, September 23, 2004 8:37 PM > To: emc...@li... > Subject: [Emc-users] motion control cards > > > Hi, > > Anyone using a stg1 or stg2 card under rc46? > > Ditto for vital systems motenc-100? > > Dave Engvall > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement > on who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Emc-users mailing list > Emc...@li... > https://lists.sourceforge.net/lists/listinfo/emc-users > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement > on who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Emc-users mailing list > Emc...@li... > https://lists.sourceforge.net/lists/listinfo/emc-users > > ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Emc-users mailing list Emc...@li... https://lists.sourceforge.net/lists/listinfo/emc-users |