Search found 191 matches

by Moray
Tue Dec 17, 2019 9:57 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10626

Re: G-codes/offsets/tools with .Net

Thanks for that Tom.

I've managed to get a basic jog working for now, so I'll extend that to the other axis, then look at improving things later.
by Moray
Mon Dec 16, 2019 11:53 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10626

Re: G-codes/offsets/tools with .Net

I suspected kinematics/geo correction might be the case.

I'm assuming using the basic Jog() call, ignores any kinematics/geo correction?
by Moray
Mon Dec 16, 2019 9:34 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10626

Re: G-codes/offsets/tools with .Net

Thanks for that. I currently have a basic but working tool system, which I'll revisit later. Anyway, my next challenge. Jogging. I've looked at how KMotionCNC handles it, and it's a bit beyond my understanding of C++! I see each jog button initialises it's own CMotionButton, but my understanding sto...
by Moray
Mon Dec 16, 2019 12:29 am
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10626

Re: G-codes/offsets/tools with .Net

And I've just realised I don't need to generate a dedicated tool file.

However, if I use SetTool/GetTool functions, how do you delete a tool from the interpreter?
by Moray
Sun Dec 15, 2019 6:41 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10626

Re: G-codes/offsets/tools with .Net

Thanks for clarifying that Tom.
TomKerekes wrote:
Sun Dec 15, 2019 5:15 pm
It would probably be better to issue a warning.
I just realised I meant to add that I was testing in KMotionCNC, and it doesn't issue any kind of warning when you use duplicate tool IDs.
by Moray
Sat Dec 14, 2019 10:26 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10626

Re: G-codes/offsets/tools with .Net

I'm just looking for a little bit clarification on the interpreter and the tool file. I have my program successfully outputting the tool table in the required format, however does it need sorted? I see KMCNC sorts it, and the notes in driver.cpp mention the table is indexed by slot, but nothing ment...
by Moray
Fri Dec 13, 2019 9:16 pm
Forum: Miscellaneous
Topic: Deciding on boards for a knee mill retrofit
Replies: 4
Views: 539

Re: Deciding on boards for a knee mill retrofit

TomKerekes wrote:
Fri Dec 13, 2019 8:25 pm
Hi Moray,
500uS times 5000 gives 2.5 seconds, or 150RPM
I think that actually works out to 24RPM. But anyways less than 2.5 seconds seems reasonable to me.
I'm glad there is somebody around to catch my glaringly obvious mis-calculations! :?
by Moray
Fri Dec 13, 2019 8:09 pm
Forum: C Programs
Topic: Intermittently no execution
Replies: 3
Views: 548

Re: Intermittently no execution

For future reference, if you're unsure if a thread is running, look at the thread buttons down the right hand side of the C Program screen in KMotion, as their background will turn green if they have an active thread running.
by Moray
Fri Dec 13, 2019 8:07 pm
Forum: Miscellaneous
Topic: Deciding on boards for a knee mill retrofit
Replies: 4
Views: 539

Re: Deciding on boards for a knee mill retrofit

Mmm. Time for some maths. My favoured servos are 2500 line, or 10'000 counts. IIRC an index pulse lasts for 2 counts, so I can assume it lasts for 1/5000 of a rotation. Now I'd need it to last for a minimum of 360uS, but I'll round up to 500uS to give a bit margin of error. 500uS times 5000 gives 2....
by Moray
Fri Dec 13, 2019 6:34 pm
Forum: C Programs
Topic: Intermittently no execution
Replies: 3
Views: 548

Re: Intermittently no execution

You say you're not sure why the program stops executing, and it had been halted. Do you mean something in the code halted the execution, or did you manually halt the execution? If you issue a halt command to the KFlop, it will halt all threads (or if running KMotionCNC, thread 1 should remain active...