Search found 119 matches

by Moray
Tue Oct 22, 2019 10:51 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 2
Views: 13

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

Thanks for that info Tom. I'm well aware it could be quite a big undertaking, which is why I've been trying to understand how the key things interact, and try and workout a general overview of how I'd go about implementing them. I think I've been through all the examples now, and have already copied...
by Moray
Mon Oct 21, 2019 11:48 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 2
Views: 13

G-codes/offsets/tools with .Net

I'm currently looking as the feasibility of making a custom C#/WPF version of KMCNC, as for a couple of upcoming projects I'm looking to expand on the tool handling functionality within KMCNC. Anyway I'm trying to work out how G-codes, tools, and offsets (both tool, and work coordinate offsets) are ...
by Moray
Mon Oct 14, 2019 6:03 pm
Forum: Hardware Interface Issues
Topic: Leium 23 Servo Drivers
Replies: 1
Views: 42

Re: Leium 23 Servo Drivers

I doubt there's anybody who'll of used those exact drives/servos, however a quick look through the manual, and they should work just fine.
Analogue +/-10V, Step/Dir, CW/CCW, and Quadrature are all options that will work with KFlop (and Kanalog in the case of Analogue)
by Moray
Fri Sep 20, 2019 8:19 pm
Forum: User PC Applications and Libraries .Net
Topic: G code interpreter
Replies: 4
Views: 100

Re: G code interpreter

I actually spent a bit time a couple weeks ago going through the KMCNC source to try and understand how the key functionality worked together (i.e. how the main Controller is initialised and handled, and how the GCode Interpreter interacts with the Code Viewer and Controller), with a view to writing...
by Moray
Fri Sep 20, 2019 5:05 pm
Forum: User PC Applications and Libraries .Net
Topic: G code interpreter
Replies: 4
Views: 100

Re: G code interpreter

KMCNC is written in C++, and the source can be found in the PC VC Examples directory.
by Moray
Tue Aug 20, 2019 5:10 pm
Forum: Tuning Servos
Topic: spindle servo runs away over time/position
Replies: 19
Views: 410

Re: spindle servo runs away over time/position

do you have an encoder to recommend on the back of the servo? it is 6mm thru hole https://www.usdigital.com/products/encoders/incremental/rotary (I'm assuming your in the US?) Take your pick from any of the Optical encoders, although I'd probably suggest E5 to get differential output. (Quick edit -...
by Moray
Thu Aug 15, 2019 11:04 pm
Forum: Tuning Servos
Topic: spindle servo runs away over time/position
Replies: 19
Views: 410

Re: spindle servo runs away over time/position

Nothing major stands out. Max output could possibly be increased slightly to the max value of 2047. What speed is your spindle physically capable of? I'm wondering if the axis is disabling due to following error, as I'm assuming you've got nothing to handle is any axis disables, which then causes th...
by Moray
Thu Aug 15, 2019 9:56 am
Forum: Tuning Servos
Topic: spindle servo runs away over time/position
Replies: 19
Views: 410

Re: spindle servo runs away over time/position

Could describe your spindle setup (I.e. is it just a +/-10V control, or are there any on/direction relays involved?)?

Also, probably best if you can post the relevant C programs in this thread, so they're easier to reference.


But, it does sound like something in your C code needs a change.
by Moray
Wed Aug 14, 2019 9:29 am
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: G32 sync spindle to Z axis lathe
Replies: 42
Views: 924

Re: G32 sync spindle to Z axis lathe

I think your header is the problem, as the KMVAR is different.

In your old defines, KMVAR was simply defined as 1, whereas in Tom's example, KMVAR is defined as PC_COMM_CCS_S, which must also be defined elsewhere, otherwise the compiler should throw an error.
by Moray
Fri Aug 09, 2019 1:09 pm
Forum: Announcements
Topic: KMotionCNC default units on open
Replies: 2
Views: 293

Re: KMotionCNC default units on open

You need to either change the settings in the relevant settings file, or use a different settings file. If you open Tool Setup, then select the Tool/Setup Files tab, the Setup File selection is what controls the default units when KMCNC loads. You can either switch to a MM version of whatever setup ...