How do i set my post to turn on extraction fan
How do i set my post to turn on extraction fan
Hi all.
I'm new to cnc so this might be a simple question but i have a cand cnc motion controller on my table and have my exhaust fan hooked up to my aux output. i would like to make it come on automatically when i start cutting. It already stops automatically at the end of the cut. I have no coding experience but i think i from what I've read i have to put M08 somwhere in my post processor but I can't find the exact instructions some help or advice would be great thanks
Oh and im using the stock cand cnc mp3000 parallel port post i don't have the exact name here but i can get it tonight that helps
I'm new to cnc so this might be a simple question but i have a cand cnc motion controller on my table and have my exhaust fan hooked up to my aux output. i would like to make it come on automatically when i start cutting. It already stops automatically at the end of the cut. I have no coding experience but i think i from what I've read i have to put M08 somwhere in my post processor but I can't find the exact instructions some help or advice would be great thanks
Oh and im using the stock cand cnc mp3000 parallel port post i don't have the exact name here but i can get it tonight that helps
- Les Newell
- Site Admin
- Posts: 3668
- Joined: Thu May 11, 2006 8:12 pm
What m-codes are used to turn your fan on and off?
You can add extra code using the 'Insert code' operations. Go to Operation->insert code. Enter the code to turn your fan on in the big box.
If you have any other operations defined, drag this one to the top of the list. Now repeat for the code to turn off the fan and make sure that one is at the bottom of the list.
You can add extra code using the 'Insert code' operations. Go to Operation->insert code. Enter the code to turn your fan on in the big box.
If you have any other operations defined, drag this one to the top of the list. Now repeat for the code to turn off the fan and make sure that one is at the bottom of the list.
Thanks Les i got it figured out now the problem was not my coding the windows problem where users can't edit program files with out administrative permissions so i had to go to the hard drive and edit it and save it using the same name so it would work. I only found this permissions problem when I read one of your other posts. I am using windows 10.
Thanks again
Thanks again
- Les Newell
- Site Admin
- Posts: 3668
- Joined: Thu May 11, 2006 8:12 pm
If you use SheetCam's built in post editor it works around the Windows permission issues. You end up with two versions of the post showing in the post list. Your modified version will show up with '(edited)' after the name to signify that it has been modified.
What errors did you get form the 'insert gcode ' function?
What errors did you get form the 'insert gcode ' function?
- Les Newell
- Site Admin
- Posts: 3668
- Joined: Thu May 11, 2006 8:12 pm
That warning is a bug in the post processor. Edit your post and look for this code:
Change it to:
Code: Select all
function OnNewOperation()
post.Text (" (Process: ", operationName, ")\n")
if (plungeRate <= 0) then
post.Warning("WARNING: Plunge rate is zero")
end
if (feedRate <= 0) then
post.Warning("WARNING: Feed rate is zero")
end
end
Code: Select all
function OnNewOperation()
post.Text (" (Process: ", operationName, ")\n")
end