Search found 231 matches

by Moray
Tue Dec 28, 2021 11:10 pm
Forum: C Programs
Topic: Soft Limit Overshooting
Replies: 5
Views: 62

Re: Soft Limit Overshooting

I'm just going to sit in the corner and pretend I never started this thread. Spent a bit time tonight testing things, and after much code testing, I found the the Y-axis is bouncing of the rear bellows before it reaches the negative limit switch, which then means it runs into the positive limit swit...
by Moray
Mon Dec 27, 2021 7:05 pm
Forum: C Programs
Topic: Soft Limit Overshooting
Replies: 5
Views: 62

Re: Soft Limit Overshooting

I should have mentioned this is a basic stepper driven machine, although now you mention it, I can wind the MPG faster than the axis can move, however the MPG code should limit movement to the axis soft limit. Could it be the MPG and Soft Limit code are somehow fighting against each other? I've atta...
by Moray
Sun Dec 26, 2021 11:51 pm
Forum: C Programs
Topic: Soft Limit Overshooting
Replies: 5
Views: 62

Soft Limit Overshooting

Since I've been using my little milling machine quite a bit lately, I'm working through the to do/finish list. One thing that's causing me problems, is soft limits. If I jog the Y-axis using the MPG (I'm using MPGServiceSmoothHardwareEncFiltered.c ), I can physically see that it overshoots the soft ...
by Moray
Mon Dec 13, 2021 8:19 pm
Forum: C Programs
Topic: Pausing program until spindle at speed?
Replies: 2
Views: 44

Re: Pausing program until spindle at speed?

Thanks Tom.

I'll get that added to the modified files for the lathe, and get the new owner to try it.
by Moray
Mon Dec 13, 2021 7:28 pm
Forum: C Programs
Topic: Pausing program until spindle at speed?
Replies: 2
Views: 44

Pausing program until spindle at speed?

I've recently sold my Cyclone lathe, but the new owner has asked is it possible to have code paused until the spindle is at speed. The lathe uses the SpindleJog example modified a bit, but is there an easy way to compare the existing speed to the set jogging speed? The spindle is quite slow to respo...
by Moray
Mon Jan 25, 2021 11:07 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 120
Views: 21246

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

That's the directory I have set in that .xml file I attached, but it can be set via the C Directory on the Config page - Annotation 2021-01-25 225704.png It is however currently using a bit of bodge in order to select the directory. The WPF OpenFileDialog doesn't directly support selecting a folder,...
by Moray
Sat Jan 23, 2021 10:13 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 120
Views: 21246

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

Here's a file with the GCode viewer bug hopefully squashed.
by Moray
Sat Jan 23, 2021 9:55 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 120
Views: 21246

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

And I've just remembered, make sure you load a GCode file, otherwise certain MDI functions may cause a crash. I re-worked my internal handling of MDIs, which introduced a problem whereby the GCode viewer can crash if there is no text lines. It's on my list of bugs to fix, along with validation of va...
by Moray
Sat Jan 23, 2021 9:51 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 120
Views: 21246

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

Tom, I've just realised emc_test.var is still hardcoded to C:\KMotion435f\KMotion\Data\emc_test.var And I'd forgotten about the need for 3DTools. I've actually just tried removing the reference to emc_test.var, and everything seems to load. Is not having a var file specified likely to cause any prob...
by Moray
Sat Jan 23, 2021 8:58 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 120
Views: 21246

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

Having got a bit bored with re-writing KMotionCNC C++ to C#, I've been working on a little idea I've wanted to implement for a while. Automatic C code generation. To configure channel settings, go to the Config tab, then the Channels tab, then click Config, which will open a new window. Config tab y...