Search found 221 matches

by Moray
Tue Jan 12, 2021 9:46 pm
Forum: C Programs
Topic: C- AXIS infinte rotation with 0-360degree range
Replies: 7
Views: 48

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: 113
Views: 17634

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

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: 113
Views: 17634

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: 113
Views: 17634

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...
by Moray
Tue Jan 05, 2021 9:52 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 113
Views: 17634

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

Tom, a couple hopefully simple questions for you, in my attempt to replicate all the PC_COMM functionality. What is the equivalent of tool_table_index (D number) in dotNet? This is my code so far for PC_COMM_GET_MISC_SETTINGS, with the original KMotionCNC code commented out. case PC_COMM_GET_MISC_SE...
by Moray
Sun Jan 03, 2021 10:18 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 113
Views: 17634

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

Thanks Tom. Why didn't I think of that far simpler method of transferring values? Anyway, Input Boxes now work, and I've just ticked PC_COMM_MDI off the list, which I think means most of the more complicated PC_COMM commands have now been ticked off the list. At least the ones I need to implement - ...
by Moray
Sat Jan 02, 2021 11:45 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 113
Views: 17634

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

I've just been trying this some more, and even if I hard code a value into Persist102, I still get zero, unless I hardcode a big value, such as FFFFFFFF, where I then get a NaN value.

I've even tried using SetPersistDec102, but it still the same.

What am I missing?
by Moray
Sat Jan 02, 2021 8:12 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 113
Views: 17634

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

Tom, I'm nearly there with input boxes, but I can't seem to transfer the value back to the KFlop. This is my test KFlop code- #include "KMotionDef.h" #define TMP 10 // which spare persist to use to transfer data #include "KFLOPToKMotionCNCFunctions.c" float inputResult; void main() { //DoPCFloat(PC_...
by Moray
Sat Jan 02, 2021 6:18 pm
Forum: Bug Reports
Topic: InputBox previous value if invalid entry entered
Replies: 1
Views: 202

InputBox previous value if invalid entry entered

I was just doing some testing with a KFlop triggered InputBox, and have just realised if you enter an invalid value, although KMotionCNC pops up another message box saying you've entered an invalid value, it will return the previously valid inputbox value, and return a value of 0, telling the KFlop ...