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
Spindle Override Slider
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2891
- Joined: Mon Dec 04, 2017 1:49 am
Re: Spindle Override Slider
Hi Tim,
To do so set the Var of the Edit Control to a unique persist Variable such as 170 like this.
Then you can read it from KFLOP like this:
G0X4Y4Z0
Then there shouldn't be any messages. Would that work?
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.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.
To do so set the Var of the Edit Control to a unique persist Variable such as 170 like this.
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);
}
}
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: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.
G0X4Y4Z0
Then there shouldn't be any messages. Would that work?
yesI think modifying the windows associated with the set next statement function would involve compiling KM CNC ?
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.