View Jog Speed on an Axis

Moderators: TomKerekes, dynomotion

Post Reply
PBandJacob
Posts: 4
Joined: Thu Sep 02, 2021 6:02 pm

View Jog Speed on an Axis

Post by PBandJacob » Thu Nov 18, 2021 6:27 pm

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);

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

Re: View Jog Speed on an Axis

Post by TomKerekes » Thu Nov 18, 2021 6:45 pm

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

Tom Kerekes
Dynomotion, Inc.

PBandJacob
Posts: 4
Joined: Thu Sep 02, 2021 6:02 pm

Re: View Jog Speed on an Axis

Post by PBandJacob » Thu Nov 18, 2021 7:24 pm

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

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

Re: View Jog Speed on an Axis

Post by TomKerekes » Thu Nov 18, 2021 8:17 pm

Code: Select all

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

Tom Kerekes
Dynomotion, Inc.

PBandJacob
Posts: 4
Joined: Thu Sep 02, 2021 6:02 pm

Re: View Jog Speed on an Axis

Post by PBandJacob » Thu Nov 18, 2021 9:15 pm

Thank you

Post Reply