Search found 191 matches

by Moray
Tue Apr 21, 2020 9:43 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10565

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

Hi Dan, at the moment I'm undecided whether I'm going to share the full code for this or not. I've got a few ideas I'd like to implement, which will be a lot of work, and I'm not sure I'd want to publish the code for no reward. I will certainly be uploading a complete exe so others can use the progr...
by Moray
Sun Mar 29, 2020 7:42 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10565

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

I've just realised what the problem is. The handler use inches, but I've had a bug in my single step code, where the first line gets skipped, so the G21 was ignored, I've not realised, and I've not been zoomed in close enough to see anything other than a green blob in my viewer. Plus I seem to have ...
by Moray
Sun Mar 29, 2020 6:39 pm
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Multiple MsgBoxNoWait
Replies: 4
Views: 240

Re: Multiple MsgBoxNoWait

I'll probably take the easy option, and just change it to a blocking message box, as nothing should be moving during this program.
by Moray
Sun Mar 29, 2020 6:27 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10565

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

I've hit an issue with the graphics :-/ If I single step through the code (I'm using Dynomotion.ngc), everything works as I expect. I step 20 times, the handler triggers 238 times, and if I step as far as the first 'o', it's been triggered over 10'000times. However, if I try running the code (either...
by Moray
Sat Mar 28, 2020 10:02 pm
Forum: C Programs
Topic: G Code Cycle repeat
Replies: 5
Views: 519

Re: G Code Cycle repeat

Use a sub-routine, and then configure one of the custom M-codes (I just used M110, but anything from M100-119) to activate an output bit. If you only want to have the horn sound for a set amount of time, configure another custom M-code to deactivate the output bit, and put a dwell (G4) command in be...
by Moray
Sat Mar 28, 2020 9:48 pm
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Multiple MsgBoxNoWait
Replies: 4
Views: 240

Re: Multiple MsgBoxNoWait

Thanks Tom, that's what I guessed. This is part of my tool changer initialisation code, so there are a few prompts to get information, then various messages if something specific fails, followed by a generic failed message, and it's mostly done with non-blocking message boxes and state machines wher...
by Moray
Sat Mar 28, 2020 6:58 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10565

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

I was going to try the inbuilt Viewport3D first. I did look at a few options, but there generally seems to be a lack of C# graphics libraries. Most graphic libraries appear to still be based around C/C++, with anything newer opting for Unity. If you search for C# graphics, all you'll get is pages of...
by Moray
Sat Mar 28, 2020 6:44 pm
Forum: KMotionCNC, G Code Files, Offsets, Post Process
Topic: Multiple MsgBoxNoWait
Replies: 4
Views: 240

Multiple MsgBoxNoWait

Tom, I'm just looking to have this confirmed, but if a C Program triggers more than one MsgBoxNoWait, would it result in only one of them being shown? The reason I ask, is I was using my mill last night, and had an issue initialising the Tool Changer with a generic failure message I'd coded. I event...
by Moray
Fri Mar 27, 2020 10:33 pm
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10565

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

Thanks for that Tom.

I think I maybe understand about 70-80% of what happens, and I'll hopefully understand a bit more once I start the code, and see what data is produced.

I'll very likely be back with more questions though!
by Moray
Fri Mar 27, 2020 12:42 am
Forum: User PC Applications and Libraries .Net
Topic: G-codes/offsets/tools with .Net
Replies: 82
Views: 10565

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

Hi Tom, Now I have my gcode text viewer mostly functional (still got a couple minor issues to fix), I'm looking at graphics. I see there are various callbacks, but I'm struggling to fully understand them. Are they called once at the end of the relevant move, or continually during the move? Also what...