double check my numbers and follow error

Moderators: TomKerekes, dynomotion

Post Reply
turbothis
Posts: 309
Joined: Fri Mar 15, 2019 4:07 pm
Location: southern oregon

double check my numbers and follow error

Post by turbothis » Wed Sep 04, 2019 11:04 pm

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:

User avatar
TomKerekes
Posts: 2529
Joined: Mon Dec 04, 2017 1:49 am

Re: double check my numbers and follow error

Post by TomKerekes » Wed Sep 04, 2019 11:16 pm

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
Regards,

Tom Kerekes
Dynomotion, Inc.

turbothis
Posts: 309
Joined: Fri Mar 15, 2019 4:07 pm
Location: southern oregon

Re: double check my numbers and follow error

Post by turbothis » Wed Sep 04, 2019 11:23 pm

thanks

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

turbothis
Posts: 309
Joined: Fri Mar 15, 2019 4:07 pm
Location: southern oregon

Re: double check my numbers and follow error

Post by turbothis » Wed Sep 04, 2019 11:27 pm

#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?

User avatar
TomKerekes
Posts: 2529
Joined: Mon Dec 04, 2017 1:49 am

Re: double check my numbers and follow error

Post by TomKerekes » Wed Sep 04, 2019 11:34 pm

i put that in
what? where?
so now it is 14857.142857142857 for the FACTOR?
Yes
Regards,

Tom Kerekes
Dynomotion, Inc.

turbothis
Posts: 309
Joined: Fri Mar 15, 2019 4:07 pm
Location: southern oregon

Re: double check my numbers and follow error

Post by turbothis » Wed Sep 04, 2019 11:41 pm

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 :?

Post Reply