Quantcast
Channel: CNCzone.com- Largest Forums for CNC Professional and Hobbyist alike!
Viewing all articles
Browse latest Browse all 72891

Tree 325 Retrofit - More questions

$
0
0
Hi!
I've spent the last few weeks doing some of the wiring for my Tree 325 retrofit.
I've attached a photo of the enclosure I built, as well as the user interface panel, and the electrical system drawing.

Now, I'm on to the programming part of this project.

I've written the code for configuring the 3 axis's, and put it in an initialization file. I also made the spindle control program. It's kind of wierd, the hardware was originally configured to send a "spindle reverse" all the time, and to spin the spindle CW it would apply 0 to -10V, and reverse would be 0 to +10v. I re-wrote the program to do this.

I've got a list of functionality I need, and I'm not sure how to program it.

First, the manual pulse generator. I've seen the MPG example code. I've modified it to reference the bits that my MPG pulse generator and resolution/axis switches are connected to. Now, where do I put this code?

I also need to made code to control the spindle draw bar. I have a momentary switch set - flick it one way, it unclamps (NO), the other way clamps (NC)
I want to be able to change the tool anytime that the control is on - except when it is in a cycle or when it's moving, or in E-stop. I can write the code no problem, except I don't know how to tell the program if Mach3 is in a cycle, or if the axis's are moving. I also don't know where to put this code.

For the feed rate override and spindle rate override - I have analog input signals running to Kanalog. How I pass them to Mach3, and use them to set the FRO/SSO? I was planning to remove the buttons from Mach3 so there wasn't a conflict issue. I also have an analog input reporting the spindle speed, and a binary I/O from the VFD that closes when the spindle has reached the target speed. Any way that Mach3 can be set to report the spindle speed based on the analog input?

I guess really the biggest thing I'm not sure about is where to put the code to handle these inputs...

Attached Thumbnails
Click image for larger version

Name:	IMAG0273.jpg‎
Views:	N/A
Size:	83.8 KB
ID:	171151   Click image for larger version

Name:	IMAG0277.jpg‎
Views:	N/A
Size:	80.2 KB
ID:	171152  
Attached Files
File Type: pdf SchematicsNOINDEXPULSEv3.PDF‎ (98.9 KB)

Viewing all articles
Browse latest Browse all 72891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>