Page 1 of 1

Spindle Override Slider

Posted: Fri Jan 30, 2026 5:44 pm
by Chevvron
Tom,
A couple of queries I hope you can help me with please.

I need a slider to control the glue dispense time as the lue viscosity varies depending on the factory temperature.
The glue secures the placed inserts in the mould to stop them moving when the mould is filled with concrete.
I was hoping to read the spindle override slider and scale to the c program I have written to control the Loctite glue dispenser.

Where can I find a function /:example please?

Sometimes during the probing cycle offsets need to be changed and the individual datums probed again.by halting the G code and running from a specific lin
I have been using the set next statement function but the messages and options are confusing for operators who only want to run from a specific line.
I have made sure in the G code that the machine, axes, fuxture offsets are all correct at the message prompt.
I think modifying the windows associated with the set next statement function would involve compiling KM CNC ?

Is there an easier / alternative way to run G code from z specific line ?

Thanks for your excellent support as always.
Tim

Re: Spindle Override Slider

Posted: Sat Jan 31, 2026 12:19 am
by TomKerekes
Hi Tim,
I need a slider to control the glue dispense time as the lue viscosity varies depending on the factory temperature.
The glue secures the placed inserts in the mould to stop them moving when the mould is filled with concrete.
I was hoping to read the spindle override slider and scale to the c program I have written to control the Loctite glue dispenser.
We don't currently have a command to read the SSO value only set it. But you can read the contents of the SSO Edit Control.

To do so set the Var of the Edit Control to a unique persist Variable such as 170 like this.

SSO.png

Then you can read it from KFLOP like this:

Code: Select all

#include "KMotionDef.h"

#define TMP 10 // which spare persist to use to transfer data
#include "KflopToKMotionCNCFunctions.c"


int main()
{
	char s[80];
	double SSO;
	// Read String from a KMotionCNC Edit Control
	// Persist Var identifies the Control and contents specifies 
	// where the string data should be placed in the 
	// Gather Buffer as an offset in words
	if (GetEditControl(s, 170, 1000))
	{
		printf("Error Reading Edit Control Var=170\n");
	}
	else
	{
		printf("String=%s\n",s);
		sscanf(s,"%lf",&SSO);
		printf("Value=%f\n",SSO);
	}
	
}

Sometimes during the probing cycle offsets need to be changed and the individual datums probed again.by halting the G code and running from a specific lin
I have been using the set next statement function but the messages and options are confusing for operators who only want to run from a specific line.
I have made sure in the G code that the machine, axes, fuxture offsets are all correct at the message prompt.
I'm not sure I understand what you mean. But if you set a line which defines G0 mode and all Axis positions in that line such as:

G0X4Y4Z0

Then there shouldn't be any messages. Would that work?

I think modifying the windows associated with the set next statement function would involve compiling KM CNC ?
yes