Search found 226 matches

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: 20549

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: 20549

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: 20549

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: 20549

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: 20549

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...
by Moray
Tue Jan 12, 2021 9:46 pm
Forum: C Programs
Topic: C- AXIS infinte rotation with 0-360degree range
Replies: 7
Views: 638

Re: C- AXIS infinte rotation with 0-360degree range

OK, was out in the workshop and checked this.
The industrial controller is set-up to work using the Modulo method.

The most the lathe C-axis ever does is move to two different positions drilling a hole at each location, so I've never actually tried spindle positioning beyond 0 and 180deg :/
by Moray
Tue Jan 12, 2021 9:42 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 120
Views: 20549

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

That would do it 8-) And I've even managed to add the required code, and build a new DLL :D Tool i:0 slot:1 id:1 len:2 dia:0.1 xoff:0 yoff:0 Tool i:1 slot:2 id:2 len:0 dia:2 xoff:0 yoff:0 Tool i:2 slot:3 id:3 len:2 dia:3 xoff:0 yoff:0 Tool i:3 slot:3 id:4 len:0.4 dia:4 xoff:0 yoff:0 Tool i:4 slot:3 ...
by Moray
Tue Jan 12, 2021 8:00 pm
Forum: C Programs
Topic: C- AXIS infinte rotation with 0-360degree range
Replies: 7
Views: 638

Re: C- AXIS infinte rotation with 0-360degree range

Tom, I think this is how the DRO works for when the lathe I bought is in C-axis mode.
I'll have to go and try some MDIs to see what happens with regards to absolute moves.
by Moray
Tue Jan 12, 2021 7:56 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 120
Views: 20549

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

Tom, I'm not sure whether I've just discovered a bug, or if I'm doing something wrong, but I've got a problem with tool diameters. This is my code for loading values into the tooltable- foreach(Tool t in CF.Tools) { ComboBox_Tools.Items.Add(new ComboBoxItem { Content = t.ToolID.ToString() + "-" + t....
by Moray
Thu Jan 07, 2021 9:44 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 120
Views: 20549

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

Thanks for that Tom. I'm now trying to understand how all the tool IDs will work, and I'm remembering some of the 'quirks' I came across when implementing my tool table. Current/SelectedToolSlot returns the tool table index (not the tool slot value), and I probably want to use CurrentToolSlot, not S...