I am making progress transitioning from Mach3 to the UCCNC application using the UC300-5LPT. Built a couple of boards to galvanically (opti-isolate) the UC300-5LPT board from my switch pendant, home/limit swtiches and the VFD. The step and direction are isolated by the Gecko 203V stepper drivers. Hope to try it out on the Iron later this week.
Presently working on the manual Tool Change and the pendant macros. I have them working fairly well but still need to work out some kinks.
The most pressing problem is with the Tool Change macro. The simple macro turns the spindle off, saves the current X and Y coordinates, raises the Z to the home position and posts a MessageBox to the operator indicating " Change tool to TXX, touch off and set the Z to zero, Cycle Start to Continue. The initial problem was the MessageBox loosing focus and going behind the application pain when you tried to jog. Got this fixed so remained the top window. Thought I had it fixed but a G-Code test with three tool changes failed on change 2 and 3 where the MessageBox again went behind the applicaiton. I am an extremely novice at C# so I could use some help. I searched a lot, tried a lot of things but I just can't get the dam MessageBox to stay as the top window for subsequent Tool changes. The ares of interest is line 48 to 54 in the attached M6 macro file.
The second isssue is how to call one macro from another. It's supposed to be possible but I can't get it to work.
Here is a photo of my two interface boards, the left board attached to the pendant via the ribbon and 25pinD cable, the white 4 pin connectors attach to the Gecko 203V stepper drivers. The right board interfaces the limit switches, through the ribbon and terminal paddle board. The board also has a 6 pin connector to attach the VFD and provides a PWM to 0-10V converter with CCW and CW outputs.
I really want to thank Balazs for all his help getting me this far, the response has been great.
Attachment 308108
Craig