It's been awhile since there were any updates here. Alloy said he needs his mill so I figured I better get the software under control, we pretty much finished up the wiring months ago. And it would be nice to have a big chunk of floor space back, I need the room to work on my CNC surface grinder.
I still found a couple of wiring errors,
even though we actually had the wheels turning under Mach3 control. So I spent the last week getting it up and running. I gave Mach3 one more chance to ''talk'' to the tool changer on my terms Well that wasn't going to happen, so I just wrote a new CNC controller program to run the machine. There is an advantage to using custom software, I can make it work like Alloy wants it, rather than being locked into something.
My current software will only run on WinXP because of the old Galil comm drivers that will only work on XP, and the machine computer had Win8.1 on it. Has Win10 now, and now my new software works with the new Galil comm drivers on 64 bit systems. The good news is that I'm almost getting competent writing code in VB.net It's so different from VB6 that it is pretty much like learning a new programming language. Has a lot more features and shortcuts than VB6, but trying to learn all of it is a struggle for an old guy.
I used to be able to keep an entire 60,000 line program in my head, not so much anymore.
Not sure how many lines of code are in this program, but at least 10,000, and the Galil program is currently 858 lines.
I had the machine air cutting pretty quickly, a couple of (18 hour) days after I started. In fairness, I already had some of the software modules written because I was planning to change my machines over to more modern control software. Over the last few days I have cut piles of air chips, but they are really easy to clean up.
I finished up the basic functionality this evening with the completion of the spindle speed control. This mill has a veri-drive and I think the spindle speed change was originally driven by a small induction gearmotor. The mill did not come with that hardware. It now has a NEMA 34 stepper on it. It took me two days to get the speed control software working correctly, it was rather a PITA.
The speed adjustment has to work both in manual and under full computer control, as well as being able to override the set speed on the fly with a pot on the panel. It would have been a lot easier to just adjust the VFD in software. Someday the veri-drive will fail and we can change it over. Getting ready to do that on my mill, I'll get to that in a couple of weeks. There are also Feed and Rapid override pots on the panel. You can adjust the feed on the fly also as a % of the assigned speed, 1 to 200%
Now I need to ''run'' a bunch of different parts to make sure the G-code translator is going to behave. I'll try to post a movie of it actually cutting something and making tool changes.
More later.......
.
.