Page 1 of 1

double check my numbers and follow error

Posted: Wed Sep 04, 2019 11:04 pm
by turbothis
ok so now i have a real nice 2000P/R encoder on the spindle servo
the servo is now 14 tooth and the spindle 26 tooth. 0.53846153846 ratio
so invDistPerCycle is 0.000375

count/rev in kmotioncnc 14814.8148148
and A axis count/deg 41.1522633722

my god my brain is exploding
might get a dam 28 tooth for the spindle. :roll:

Re: double check my numbers and follow error

Posted: Wed Sep 04, 2019 11:16 pm
by TomKerekes
invDistPerCycle is 0.000375
correct.
servo is now 14 tooth and the spindle 26 tooth. 0.53846153846 ratio
correct
count/rev in kmotioncnc 14814.8148148
and A axis count/deg 41.1522633722
No, I get:

2000 x 4 x 26 / 14 = 14857.142857142857
/ 360 = 41.269841269841269

Re: double check my numbers and follow error

Posted: Wed Sep 04, 2019 11:23 pm
by turbothis
thanks

i put that in and S1000 (MDI) but get 798 actual rpm?

Re: double check my numbers and follow error

Posted: Wed Sep 04, 2019 11:27 pm
by turbothis
#define SPINDLEAXIS 2 // Axis Channel to Jog to rotate Spindle
#define FACTOR (11832.8889/60.0) // to convert RPM to counts/sec (counts/rev / 60.0sec)
#define SPINDLECW_BIT 154
#define SPINDLECCW_BIT 155
#define SPEEDVAR 99 // global persistant variable to store latest speed
#define STATEVAR 98 // global persistant variable to store latest state (-1=CCW,0=off,1=CW)
#define KMVAR PC_COMM_CSS_S // variable KMotionCNC will pass speed parameter (113)
#define USE_POS_NEG_VOLTAGE 1 // 0 = output Magnitude, 1 = output positive and negative speed


so now it is 14857.142857142857 for the FACTOR?

Re: double check my numbers and follow error

Posted: Wed Sep 04, 2019 11:34 pm
by TomKerekes
i put that in
what? where?
so now it is 14857.142857142857 for the FACTOR?
Yes

Re: double check my numbers and follow error

Posted: Wed Sep 04, 2019 11:41 pm
by turbothis
i meant i put in the new numbers for counts per rpm and counts per degree
i also punched in the new number to the factor and all seems to be working now just fine
i hate my 75$ construction calculator just rounds things real easy and online calcs are kinda silly to use. that and a crazy long number..........AAAAAAAAAAAAAAAA :?