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.
double check my numbers and follow error
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: double check my numbers and follow error
correct.invDistPerCycle is 0.000375
correctservo is now 14 tooth and the spindle 26 tooth. 0.53846153846 ratio
No, I get:count/rev in kmotioncnc 14814.8148148
and A axis count/deg 41.1522633722
2000 x 4 x 26 / 14 = 14857.142857142857
/ 360 = 41.269841269841269
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: double check my numbers and follow error
thanks
i put that in and S1000 (MDI) but get 798 actual rpm?
i put that in and S1000 (MDI) but get 798 actual rpm?
Re: double check my numbers and follow error
#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?
#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?
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: double check my numbers and follow error
what? where?i put that in
Yesso now it is 14857.142857142857 for the FACTOR?
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: double check my numbers and follow error
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
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