Hi guys.
Need help, I want to display the spindle speed in KMotionCNC
But could not find an example of how to do it.
The sensor is connected to digital pin of 36
Hi guys.
Need help, I want to display the spindle speed in KMotionCNC
But could not find an example of how to do it.
The sensor is connected to digital pin of 36
Hi Shishio Makoto,
We normally prefer to have a quadrature sensor. But see this Thread:
http://www.cnczone.com/forums/dynomo...ml#post1549406
Regards
TK
http://dynomotion.com
Hi Tom,
I read it, but I could not understand.
I want to make counting pulses from pin 36, and the output value in KMotionCNC.
For example, the output value instead of the fourth coordinate axis.
Hi Shishio Makoto,
What parts don't you understand?
The first step would be to change:
#define SPINDLE_PULSE_BIT 46
to
#define SPINDLE_PULSE_BIT 36
Then run the program in a Thread in KFLOP to test (ie Thread #3)
Then check on the KMotion.exe Axis Screen to see if the Position is incrementing properly 1000 counts/ spindle rev.
Then configure KMotionCNC | Tool Setup | Trajectory Planner | Spindle Type=1, Axis=5, Counts/rev=1000
HTH
Regards
TK
http://dynomotion.com
Thank you, Tom.
Works, but the revolutions unstable.
The spindle rotates 500 revolutions.
Hi Shishio Makoto,
What do you mean by:
You were testing at 500RPM? Hmmm that would only be ~8 pulses/sec. We would have to monitor for a long time to get an accurate reading. Certainly not the 0.1 second default. Try changing the Update Time Setting in KMotionCNC to 10 seconds.The spindle rotates 500 revolutions.
With such a slow pulse rate we may need to change the program to measure the time per revolution rather than simple counting pulses over a period.
Regards
TK
http://dynomotion.com
Everything is working. Put it on the sensor Schmitt trigger, now the value is stable.
Thank you very much.