Page 1 of 1

View Jog Speed on an Axis

Posted: Thu Nov 18, 2021 6:27 pm
by PBandJacob
Hello, I've been looking through KMotionDef and I can't seem to find a value that represents the current jog speed on a channel? I want something like this:
printf(%f: Jog Speed\n", insert_channel_jog_speed_here);

Re: View Jog Speed on an Axis

Posted: Thu Nov 18, 2021 6:45 pm
by TomKerekes
Hi Jacob,

Its not clear what you mean. Current instantaneous jogging speed? Max Axis Velocity? Are you using KMotionCNC? Which Axis? It would be nice to know also what you are trying to do.

Re: View Jog Speed on an Axis

Posted: Thu Nov 18, 2021 7:24 pm
by PBandJacob
I'm using KMotionCNC. I want to monitor the speed of an axis after sending it a Jog command.
I.e. Jog(0, 1200);
Is there a location in memory where I can see that value "1200"?

Re: View Jog Speed on an Axis

Posted: Thu Nov 18, 2021 8:17 pm
by TomKerekes

Code: Select all

printf("%f: Jog Speed\n", ch0->last_vel);
See KMotionDef.h for available variable definitions.

Re: View Jog Speed on an Axis

Posted: Thu Nov 18, 2021 9:15 pm
by PBandJacob
Thank you