Sir, thank you so much. Works like a charm. Love the audio! TROUBLESHOOTING: For users who are using a USB to DB-25 pin converter and you don’t see the “LED’s” light up in the “Port 1 current state” section (at least they don’t for the ebay version of the dongle), follow along with everything else, but at the CONFIG -> PORTS AND PINS -> INPUT SIGNALS section the “Automated Setup of Inputs” button will not work. Instead enter the following information manually (NOTE: this is for a JP-382A controller board). Scroll down to “Probe” - Enable: CHECK, Port #: 1, Pin Number: 15, Active Low: CHECK, Emulated: X, HotKey: 0. Click OK and continue with video. You still won’t see the LED’s light up but it still worked for me.
Hi David, My old parallel port computer died and my only choice was to buy a newer one with Win 10 installed (what a dreadful system). I had to buy a genuine UC100 USB to parallel converter, but I eventually got it working. I was almost stopped dead in my tracks because I grounded the probe and no LED illuminated in the Diagnostics page. I have no idea what the board is, probably a Chinese knock off but the motor outputs are X axis 2,3 Y axis 4,5 Z axis 6,7 and A axis 8,9. Thank you for restoring my 'will to live'. I shall give your suggestion a try.
Pro Tip: Don't tighten your endlmill. Then when you realize space bar can't stop it, you save your cutter. :) Nice video. Works for me except I had to wire my touch plate the opposite of your diagram. I'm very happy, I'm going to spend the next 30 minutes homing my mill over and over.
I'm always a little cautious with scripts that never work etc.on UA-cam BUT yours worked first time and I love the humour. Also you make it clear and easy to understand. Keep up the good work and stay safe in these testing time. Thanks from the UK
The script that was given to me with my CCM (Cheap Chinese Machine) never worked I tore up a bit trying. Your setup is awesome, it took a little trial and error to set it up the way i want it, but I would never been able to do that with out you toutering. You are a gentalman and a scholar Sir.
I saw this video many years ago and stil I lauf with you ....:) I bout the cnc and I just did not have time to do anything with it. Now I am back and I do hope that I remember the things I learned from you and others on youtube and add to it. Thank you for a wonderful channel.....:)
Worked like a champ on on older Mach3 equipped Syil S7. It doesn't have an Automatic Tool Changer, so this will speed things up immensely. Thanks for posting this.
Thanks to you, I've been able to use it very comfortably for the past few years, and I'm just now thanking you. Especially since I recently moved to mach4, there is nothing more special about it, and I miss the convenience of the Auto Tool Zero (Z Axis) you created in mach3. I wish you all the best in your future endeavors.
Not sure if anyone commented on whether or not this script works with USB controllers or not but to answer that is yes. Works great! I have a Gecko G540 and a UC100 USB controller. Only differance i found is that Mach3 won't auto detect the input. If anyone would like more information on how I did it feel free to message me. Awesome Video as always Charlie. What would we do without you!
Hi, during this weekend Charlie worked to modify the probe code for my machine and it's working fine. I would say it was full helpness from his side and I'm very impressed about his engagement. Many, many THANKS to Charlie! Great work!
Explained thoroughly and clean. Been looking for something that can solve my wondering on how to set it up. Big thanks to you Charlie Sarsfield. You're the man.
Very helpful script. Watched the video twice. Downloaded the script and after fiddling a bit with the height of my probe I got it to work. Now the Z-zero is perfect. Thanks a lot.
I just purchased a vevor 3040 CNC usb and the script that they sent with that did not work at all I followed your video and used your script and it works spot on thank you so much for this video i'm off to watch your other video now lol
Lovely video, lovely man. On my 6040 CNCest machine I simply wired the touch in parallel with the EStop button. The Z can be brought down fairly rapidly and stops when it touches. I just zero Z and reset the Mach3. I supply the voice confirmation!
Really Really good stuff, well edited, informative, and clearly thought out. I'm ear marking your videos for when I go to set up my 4th axis and my Z touch.
I installed your script yesterday after making a touch off plate out of some scraps it is working fine. Finding the tool height in relation to work surface has always been a hit or miss problem for me. NOT ANY MORE Thanks for willingness to share your work with all of us. I will try the probe edge finding as soon as my probe gets here, I already have the scripts installed I sure that I will like it as much as the tool touch off script. Thanks Again from Jack in St. Louis, MO
Absolutely fantastic... I think said this on another video of yours a year ago or so! :D ah Now I got the time to test it (finally) ! Greetings from Portugal! And Stay safe from that Evil Bug that is out there!
Hi Charlie, Thanks and Thanks, Many many thanks I would say it was full helpless from his side and I'm very impressed about his engagement. Many, many THANKS to Charlie! Great work. God bless you
Hello Charlie, thanks for the tutorial and great video, I follow your directions update to mach3 .066 and I'm using a Chinese usb breakout motion card STB4100 on my milling machine and work flawlessly. Thanks
@@kboothrealty Hello Kevin as soon I get to my shop I reply you also you're going to update you're instructions on mach 3 but I pass it on to you to just copy and paste.
Really helpful video...clear...and even funny ; - )....thanks!!!!! PLUS the script "seems" to work really well!! I say it SEEMS to work cause I´m setting up my third machine, using ...wait for it....a USB board , but as yet have no mechanics nor transmissions coupled to the motor shafts, just electronics, and motors, and so I simply connect the 2 probe cables to test the touch plate function. BUT, the good news is that the MACH screen shows the Z axis moving to a height of 21.336mm, which is the default plate thickness of 20.066mm added to the default 1.27mm of stand-off distance above plate. Voila!!! Didn´t install the voice messages, it seems a bit of overkill. Many thanks again!
Definitely. I actually started the works on making a video about this a little while ago, then had a computer crash. Thank you for the reminder. :) By the way, I also have the Digitize LED on my Offsets screen as well. Makes life easier.
Thanks a lot for the information, Charlie. Hi everyone. If you lived some problems like retracts and continue to go up out of the limits of the machine and the z-axis didn't stop at the specified location. You can try to change GetVar(2002) codes to GetOEMDRO(802).
I have it working on a USB CNCEST machine. Had to figure out the wiring on the Bitsensor control board I have inside. I wired ACM/ DCM (they are joined on mine) to input 4. In Mach 3 I have the probe port setting as 3 and the pin as 4. Otherwise as Charlie's excellent videos.
blackcatunderwater can you may help me? I have also cncest machine, for mine it says probe to gnd(ground) and in4 , i have the usb motion controller from build your cnc
@@TheDanie1988 do you have the red BITSENSOR board ? If not I can't help sorry... You either need to ground the probe or supply a voltage to it. Had to figure that out on mine by trial and error
Hello Charlie, I followed your recommendation update mark3 to version .066 and work flawlessly also I'm using a chinese usb breakout board motion controller STB4100 and is working perfect Thanks.
I just found your channel. Thanks. I am refurbishing a Chinese CNC 4x8 Table and funny but his name is Wuhan Charlie..LOL...I know I am not the only person who names their toys! Thanks for the work on this.
Hello Charlie. Thanks for the great video. Easy to follow and has helped me get further with my 6090 set-up. PROBLEM....When I hit the Auto Tool Zero Button, I get this " Error on line: 59 - Sub or function not defined: MachMsg" . I haven't knowingly altered any of your script....and I don't know what error I'm looking for. Can you or one of your followers please help me out? Many Thanks in advance. John
Eu estava com mach3 263 deu esse erro - "Erro na linha: 54 - esperado: =" instalei a última versão do Mach3 (R3.043.066) ficou perfeito. Muito obrigado.
I wanted to say THANKS for writing this script and I am trying to get things to work. I do have a question... I have a CNC4PC breakout board and when I short the wires from the board I get a light on the Probe input in MACH3. No issues there. I have a gauge like yours and when i short the ground to the gauge i also get a probe light. When I connect the clip lead to my endmill and try and get a connection no go. I guess 5 volts is not enough to drive this. I just wondered if you were using 12 volts and then bringing it down to 5 to trigger the TTL on the board?
Thanks a lot for your wonderful content. I have a question :D I have used many hours and now I thought it was time to reach out ! I've got a CNCz 6040 China Machine, Mach3 and a windows 7 computer. I can move my cnc, run programs and stuff- spindle works, but when I go to Mach3 Diagnostics there are no green lights showing at Port 1 pins current state? How is that? I ran a monitor program to check my ports activity and could see there were some ports that were red and some were green. Well all this began because I wanted to use my touchplate probe... I can press the auto tool zero button- but I doesn't stop it movement down the z-axis when it touches the plate. BUT----I can only use the auto tool zero if I have my active low unchecked- as soon as I check the active low setting in ports and pins input for the probe it doesn't work. I can see the digitize light is green when active low enabled. And it doesn't flash or turn off when i test the probing plate. What is wrong? Could it be a missing ground connection in the controller box for the probe? Or electrical noise? Or my setup? A bios thing with printer port? I know the CNC 6040 are not the best built machines, but it is all I could afford ::) I hope I dont need to solder stuff and rewire, as I am not so proficient in electrics.
@@Dark_Phoinix hi i use both mm and inch if this dose not work for you try this www.cncrouterparts.com/pro-cnc-accessories-c-47_56.html there is a script here too
Thank you for the script and a good quality fun video that explains how to use it! That being said, for some reason after touching the probe my CNC would go to top Z, hit a limit switch, then set DRO to probe thickness. I ended up removing a bit of code from the script ("Move to contact point due to overrun" bit) and it's been working flawlessly since. Any idea why my machine could be acting that way when yours worked fine in the video? I'm using Mach3 with MKX-IV control board. Probe/plate wired to "probe" on the board.
Glad you got the script working the way you need it to. I have no specific ideas as to why it was acting up on you. Truly, I am only familiar with my system specifically.
@@sunny5rising i have same problem...i find a script that works for me for z probe... FeedCurrent = GetOemDRO(818) 'Get the current settings, OEM DROs (818)=Feedrate DRO ZCurrent = GetOemDro(802) 'OEM DROs (802)=Z DRO GageH = GetOEMDRO(1001) 'OEMDRO(1001)=Gage Block Height ZNew = ZCurrent - 300 'probe down 20 mm Code "G90F200" 'slow feed rate to 100 MM/MIN Rem Code "G4 P1" 'Pause 1 second to give time to position probe plate Code "G31 Z" &ZNew While IsMoving() Sleep(10) Wend Call SetDro (2,GageH) 'DRO(2)=Z DRO FinalMove = GageH + 10 Code "G0 Z" &FinalMove Code "F" &FeedCurrent 'restore starting feed rate dr.lin 2009.10.16
Hi Agent West, I have the same problem. Had the probing script crash into the plate a few times... disastrous... the tip was supposed to move up (in positive direction), and it does 9/10 times... Anyways, highly recommend doing a soft touch pretty much all the time until you are sure the script works. I'm using Mach3 USB. The best I could figure was that some of the code (OEM LED and OEMDRO) correspond to different fields for me. Switching between the workpiece/machine coordinates, I realised that the script was zeroing my machine coordinates. As Agent West suggested, I also removed the bit of code from the script ("Move to contact point due to overrun" bit), and changed all the G90 to G91, now the code works.
Cue Jeff Goldbloom meme.... you did it, you sob.... thank you so much for this script, made life super easy setting the homing probe up and the audio is awesome...... sub'd
Tried this tonight with a couple issues Firstly are touching the probe the Z Axis fully retracts to the limit switch and the Z is showing around + 8 and should be more like +40 Secondly after saving the script the jig features don’t work, home all does still work
ok I have it set up as you suggested and I'm having problems with Z not going to Zero. My touch plate is 19.2 mm and this is the same measurement I'm getting in "Machine Coordinates" while, with "soft Limites" on or off and Machine Coordinates off I am at Zero in Mach3 but my tool is not at Zero and is about 5mm above my zero. What am I doing wrong? Also, do you need to set all your axises to zero in both soft, normal and machine coordinates before auto zeroing? Cheers ps: touch plate, touch plate, touch plate lol
Hey Charlie! Great video! Do you possibly know what might cause the Z axis to move the wrong way during auto tool zero only?? I haven't been able to find any info
Try this macro - CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO ProbeHeight = GetUserDRO(32) If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty DoOEMButton (1010) 'zero the Z axis so the probe move will start from here Code "G4 P2" ' two second delay Code "G31 Z-1.0 F5" 'Z goes down a max of 1.0 at 5IPM While IsMoving() 'wait while it happens Wend ZProbePos = GetVar(2002) - "Make your ProbeHeight" 'get the axact point the probe was hit, making sure to account for the tool offset which is not accounted for in 2002 Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun While IsMoving () Wend Call SetDro (2, "Make Your PlateThickness") 'set the Z axis DRO to whatever is set as plate thickness Code "G4 P0.25" 'Pause for Dro to update. Code "G0 Z1.0" 'retract Z to 1.0 inch Code "(Z axis is now zeroed)" 'puts this message in the status bar Code "F" &CurrentFeed 'Returns to prior feed rate Else Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if applicable Exit Sub End If Example for mine I use in my G0704 with TTS in a ER-20 tool holder and a 1/4 chunk of drill rod. My tool table seem to be working good with it. ZProbePos = GetVar(2002) - 3.883 'get the axact point the probe was hit, making sure to account for the tool offset which is not accounted for in 2002 Call SetDro (2, 0.758) 'set the Z axis DRO to whatever is set as plate thickness
I am really happy for your awesome video. I am facing another problem. I am using mach3 for my CNC machine. But here in BD, we face load-shadding. Sometime I load a long time design but in the running time electricity cut off . I can not damage costly wood. Therefore, If I want to re-start the work from the same point where the machine stopped , What is the procedue for MAC3 system? Please could you help me? I will be grateful to you.
I will have to do a video on this topic. There are several ways to continue an interrupted job in Mach3. Which way to do this depends on several factors (home switches installed or not, CNC program written in absolute or incremental mode, for examples).
Dear respected@@sunny5rising, Please sir, I am facing some problem about the load shading. Here in Bangladesh, electricity cut off frequently. After completing almost 50% sometime 70% of the total program, sometime electricity cut off, then I can not re-start the program from the line where electricity cut off. Therefore, I need a good solution about the uncompleted design. Please sir, could you help me? I need your help
Hello, a great job. Congratulations and thank you for sharing it, it is very appreciated by the fans of the CNC. Thanks I have a nvum USB card and I do not work the programs, they do things very rare like other partners. What plate do you have your mounted. Thank you.
Hi Charlie ! Nice video and great job on the script. I try to put that in place on my DIY CNC. It works fine except just one issue : I have limit switches on X, Y and Z and the Z limit switch triggers when the tool touches the probe. As a consequence, the CNC stops in emergency instead of finishing the script. Do you see any way to have the script work fine while keeping the Z limit switch feature active for the rest of the operations? Sorry if it is a stupid question, my level in Mach3 is not far from noob :) Thx for the support
I forgot to mention that my probe is on the same pin as my Z limit switch. So the expected behavior would be that the Z limit switch activation does not trigger CNC emergency stop during Auto Zero Tool script, but reactivates normally after the script is finished
Apologize for the late reply. There might be a way to disable Z limit through scripting, not sure. I'd have to look into it. On another note, you could temporarily manually disable the Z limit (ports/pins_Inputs) while using the Z_axis script. Before running the script, make sure the digitize LED does light upon contact.
Nice video Charlie, and nice clean code. I'm having one issue. After I have homed my machine to X, Y and Z I then move the bit into position on workpiece, I zero X and Y. Then I put touch plate on workpiece surface and click auto zero. The bit moves down slowly, makes contact and then retracts all the way back up to hitting the Z home switch at the top! It should only retract .05" per your script. Any idea why it's doing this? Thank you!
Love your video, downloaded your script. But I got a problem. My plate is .760 thick, came with the machine, China CNC 6040. When I auto measure, it puts -.760 in the offset, not at the bottom of the touch plate. Any help appreciated. Thanks
Hi can you help me with ver .062 , it got mesg "Maximum Travel Reached. Reposition Z Axis Closer To Touch Plate And Try Again!","*** OOPS! ***" then stop. some time it complete the cycle, but always go up 6.29mm regardless plate thicknesser, please help me if you can
thanks Charlie for this fantastic tutorial . I got a question, can I use a negative value for the touch plate ? I'm thinking of using your script on my plasma tables floating Z axis . sorry I know its been some time since you first posted.
Charlie Sarsfield yeah I did and it didn’t like it so much the probe touched the plate stopped then went down a further 5mm then returned to the standoff distance
Thanks for your video. I've tried several times the script but alwais " script compiled error " appears in the screen of my Mach3 Version3.043.066. Can you suggest some reason?
@Charlie Sarsfield Hi, thanks for the video man, it explains all the steps very well, I get this message "This is only for the printer port modes!" when I click on Automated Setup of Inputs. I can't continue.... what should I do?
I haven't ran into that situation before, but I would imagine that you should still be able to manually insert the Port/Pin number and Enable the probe. If you don't know the pin number, you should be able to cycle through pin number options till you find the one that works. I do use a parallel port, so perhaps it's why I haven't heard of your issue. Not sure.
You're welcome. If you haven't tried both the v12 and v22 scripts, give the other version a try and see if the issue persists. If it does, let me know and we'll figure it out.
Hi Charlie, I've tried this code on my machine (mach3 ver r3.043.066) and for some reason, it is working only on thin materials (Z=3mm) once I try it on a 50mm stock material, it crushes down below...any ideas on what could be the problem? Thanks
Any chance you can do a video on the issue to show me what's happening, and send me a link? I don't want you to crash your machine, so I recommend an "air part".
Thanks for the great video. I set up the z probe detect and it works fine! But some time it confuses and insteed of moving in z direction to probe it moves in X direction! Do you have any idea why it could be?🙄
Hello, sir . i have a green mach3 with usb connection. but i have problem when using autolevel program. Where the resulting file or log file contains the same points. I've been trying to solve this problem for almost 1 month, but to no avail. can we discuss the problem?
Hi Charlie, excellent tutorial and all good with my installation except I get a funny response if I am in Machine Coords when I hit Auto Tool Zero. (I get a Y movement instead of Z). Can the script have an override to force work coords ? Alan
Script works fine in work coords, really pleased with it. It just threw me when the Y suddenly started to happen one time. I haven't had chance to check if it is always Y and whether it depends on 'last used' or something similar. I think a simple 'if not then go to' sort of thing to make it more robust but I am not a programmer so leave it to you .... Going to do the probing scripts next but probably be next week before I can give you any feedback. (PS - like the chuckles)
great scripts, great video, however do you have any idea why the count down only works once? The completion message works every time, but the countdown only works the first macro (X, Y or Z) that I run after starting Mach3. I have tried to check windows text to speech settings but the button is grayed out. (windows 7)
Thanks for the compliments. I do not have an answer as to why the countdown only works once. Possibly something with Windows 7, but not sure. I run mine on XP.
This script seems to work, but it doesn't zero the tool and wont let me move the machine or anything until I hit escape. For example I zero Z axis 5mm above the machine bed, run the script and it then stops when contact is made leaving Z axis at - 4.90. which kind of makes sense as my plate is a 0.1mm shim. Am I missing something or misunderstanding ?
Sir, thank you so much. Works like a charm. Love the audio!
TROUBLESHOOTING: For users who are using a USB to DB-25 pin converter and you don’t see the “LED’s” light up in the “Port 1 current state” section (at least they don’t for the ebay version of the dongle), follow along with everything else, but at the CONFIG -> PORTS AND PINS -> INPUT SIGNALS section the “Automated Setup of Inputs” button will not work. Instead enter the following information manually (NOTE: this is for a JP-382A controller board). Scroll down to “Probe” - Enable: CHECK, Port #: 1, Pin Number: 15, Active Low: CHECK, Emulated: X, HotKey: 0. Click OK and continue with video. You still won’t see the LED’s light up but it still worked for me.
Thanks for the detailed explanation. I'm sure it'll help some folks out.
@@sunny5rising
Hi Charlie.
I love your set up it makes me happy.
May I please have a copy of your script please.
Bill
Hi David, My old parallel port computer died and my only choice was to buy a newer one with Win 10 installed (what a dreadful system). I had to buy a genuine UC100 USB to parallel converter, but I eventually got it working. I was almost stopped dead in my tracks because I grounded the probe and no LED illuminated in the Diagnostics page. I have no idea what the board is, probably a Chinese knock off but the motor outputs are X axis 2,3 Y axis 4,5 Z axis 6,7 and A axis 8,9. Thank you for restoring my 'will to live'. I shall give your suggestion a try.
Pro Tip: Don't tighten your endlmill. Then when you realize space bar can't stop it, you save your cutter. :)
Nice video. Works for me except I had to wire my touch plate the opposite of your diagram.
I'm very happy, I'm going to spend the next 30 minutes homing my mill over and over.
What a fantastic video. No waffle, Just straight to the point and clearly explained. Thank you. . . . . . Jim
Thank you. Glad you enjoyed the video.
I'm always a little cautious with scripts that never work etc.on UA-cam BUT yours worked first time and I love the humour. Also you make it clear and easy to understand. Keep up the good work and stay safe in these testing time. Thanks from the UK
I agree. ALWAYS be cautious. Glad the scripts are working for you.
The script that was given to me with my CCM (Cheap Chinese Machine) never worked I tore up a bit trying. Your setup is awesome, it took a little trial and error to set it up the way i want it, but I would never been able to do that with out you toutering.
You are a gentalman and a scholar Sir.
Excellent! Glad you got it working. And thank you for the compliments.
I saw this video many years ago and stil I lauf with you ....:) I bout the cnc and I just did not have time to do anything with it. Now I am back and I do hope that I remember the things I learned from you and others on youtube and add to it. Thank you for a wonderful channel.....:)
Thank you. Glad you enjoyed the video. Have fun with the script.
Worked like a champ on on older Mach3 equipped Syil S7. It doesn't have an Automatic Tool Changer, so this will speed things up immensely. Thanks for posting this.
Excellent! Glad it's working out for you.
Thanks to you, I've been able to use it very comfortably for the past few years, and I'm just now thanking you.
Especially since I recently moved to mach4, there is nothing more special about it, and I miss the convenience of the Auto Tool Zero (Z Axis) you created in mach3. I wish you all the best in your future endeavors.
Thank you. Glad you enjoyed the script.
Not sure if anyone commented on whether or not this script works with USB controllers or not but to answer that is yes. Works great! I have a Gecko G540 and a UC100 USB controller. Only differance i found is that Mach3 won't auto detect the input. If anyone would like more information on how I did it feel free to message me. Awesome Video as always Charlie. What would we do without you!
Thanks for the input.
Hi, during this weekend Charlie worked to modify the probe code for my machine and it's working fine. I would say it was full helpness from his side and I'm very impressed about his engagement. Many, many THANKS to Charlie! Great work!
Very welcome and thanks for the compliments.
WoW!
I have been trying to get my Z probe working for months and finally your code did the trick. Thanks for the great video and explanation😃.
Excellent! Glad it worked for you.
Explained thoroughly and clean. Been looking for something that can solve my wondering on how to set it up. Big thanks to you Charlie Sarsfield. You're the man.
Very helpful script. Watched the video twice. Downloaded the script and after fiddling a bit with the height of my probe I got it to work. Now the Z-zero is perfect. Thanks a lot.
I just purchased a vevor 3040 CNC usb and the script that they sent with that did not work at all I followed your video and used your script and it works spot on thank you so much for this video i'm off to watch your other video now lol
Thanks a million for the files and tutorial....and the hilarious time.
Did anyone else started laughing too?
You're welcome.
I did.
Best script I have yet seen on the Auto Tool Zero! Very well done and thanks for throwing it out there and making it available!!
The most charming laugh in youtube history!Very practical tutorial. I learned what I wanted. Thank you!
Hai Tom, how did you receive the the files?the link does not seem too forward it to my email.
Excellent! Thank you.
Email me at sunny5rise@gmail.com and I'll send the files.
Lovely video, lovely man. On my 6040 CNCest machine I simply wired the touch in parallel with the EStop button. The Z can be brought down fairly rapidly and stops when it touches. I just zero Z and reset the Mach3. I supply the voice confirmation!
You are so generous to put all this together and sharing it. Thank you.
You're welcome.
@@sunny5rising I just got it working and it works well! Thanks!
Excellent!
Man I thought Morgan Freeman got involved in CNC after getting retired. Great contents
Really Really good stuff, well edited, informative, and clearly thought out. I'm ear marking your videos for when I go to set up my 4th axis and my Z touch.
Muchas gracias por sus enseñanzas y por los codidos, muy valiosos, por cierto estos videos son los mas avanzados que he visto.
Gracias. Me alegro de que te gusta los videos.
Thank you for the effort you have put into this video and the script you made available. Works first time
Excellent! Thank you for commenting. Enjoy the script.
Thank you I appreciate all your videos and work. This works on Ethernet on my mach3 motion controller
You are welcome. Thanks for commenting.
This is so great, just completed my setup and works like a charm -THANK YOU!!
Merci beaucoup pour votre vidéo!!! Le programme fonctionne à la perfection sur Windows 7.
Vous êtes les bienvenus. Merci pour les commentaires.
I installed your script yesterday after making a touch off plate out of some scraps it is working fine. Finding the tool height in relation to work surface has always been a hit or miss problem for me. NOT ANY MORE Thanks for willingness to share your work with all of us.
I will try the probe edge finding as soon as my probe gets here, I already have the scripts installed I sure that I will like it as much as the tool touch off script. Thanks Again from Jack in St. Louis, MO
Absolutely fantastic... I think said this on another video of yours a year ago or so! :D ah Now I got the time to test it (finally) !
Greetings from Portugal! And Stay safe from that Evil Bug that is out there!
Thanks. Glad you enjoy the videos.
Yeah, we're staying safe around here.
Hi Charlie,
Thanks and Thanks, Many many thanks I would say it was full helpless from his side and I'm very impressed about his engagement. Many, many THANKS to Charlie! Great work.
God bless you
You're welcome.
Hello Charlie, thanks for the tutorial and great video, I follow your directions update to mach3 .066 and I'm using a Chinese usb breakout motion card STB4100 on my milling machine and work flawlessly. Thanks
what port and pin configuration did you use? I'm having problems with my stb4100 seeing the probe.
@@kboothrealty Hello Kevin as soon I get to my shop I reply you also you're going to update you're instructions on mach 3 but I pass it on to you to just copy and paste.
well illustrated tutorial and the script are beautiful. nice humor too. God Bless. thank you charlie
You're welcome.
Thank You!. Like you'r 100% professional advices and "clear" picture of what you are doing.
Thanks for the the compliment.
Brilliant. Thanks for sending me the files. Z axis done - now for the others.
Really helpful video...clear...and even funny ; - )....thanks!!!!! PLUS the script "seems" to work really well!! I say it SEEMS to work cause I´m setting up my third machine, using ...wait for it....a USB board , but as yet have no mechanics nor transmissions coupled to the motor shafts, just electronics, and motors, and so I simply connect the 2 probe cables to test the touch plate function. BUT, the good news is that the MACH screen shows the Z axis moving to a height of 21.336mm, which is the default plate thickness of 20.066mm added to the default 1.27mm of stand-off distance above plate. Voila!!! Didn´t install the voice messages, it seems a bit of overkill. Many thanks again!
You may wish to edit the home screen too, to enable the digitise button LED on the main screen when you test it before using, saves switching screens.
Absolutely!
@@sunny5rising Sounds like the subject of a video, right up your street.
Definitely. I actually started the works on making a video about this a little while ago, then had a computer crash. Thank you for the reminder. :) By the way, I also have the Digitize LED on my Offsets screen as well. Makes life easier.
@@sunny5rising Great idea, I hadn't thought of that, I may have some time later to add that.
THANKS A LOT !! I followed step by step your video and it's working perfectly on my bench :D
Great!
Thanks a lot for the information, Charlie. Hi everyone. If you lived some problems like retracts and continue to go up out of the limits of the machine and the z-axis didn't stop at the specified location. You can try to change GetVar(2002) codes to GetOEMDRO(802).
Thank you so much, it works perfectly ! And indeed, it is very well explained.
Excellent! And thanks for the feedback.
I have it working on a USB CNCEST machine. Had to figure out the wiring on the Bitsensor control board I have inside. I wired ACM/ DCM (they are joined on mine) to input 4. In Mach 3 I have the probe port setting as 3 and the pin as 4. Otherwise as Charlie's excellent videos.
Thanks for your input.
blackcatunderwater can you may help me? I have also cncest machine, for mine it says probe to gnd(ground) and in4 , i have the usb motion controller from build your cnc
@@TheDanie1988 do you have the red BITSENSOR board ? If not I can't help sorry... You either need to ground the probe or supply a voltage to it. Had to figure that out on mine by trial and error
blackcatunderwater i have this on www.buildyourcnc.com/item/electronicsAndMotors-electronic-component-breakout-Mach3-USB-Board
Thanks z zero works very well like your videos
Legend, thanks for the files and video was really helpful.
Hello Charlie, I followed your recommendation update mark3 to version .066 and work flawlessly also I'm using a chinese usb breakout board motion controller STB4100 and is working perfect Thanks.
Charlie, you are a genius! Ciao, Marco.
Not sure about that, but thank you, lol.
@@sunny5rising 😂
I just found your channel. Thanks. I am refurbishing a Chinese CNC 4x8 Table and funny but his name is Wuhan Charlie..LOL...I know I am not the only person who names their toys! Thanks for the work on this.
Ok, that's funny.
Hello Charlie. Thanks for the great video. Easy to follow and has helped me get further with my 6090 set-up. PROBLEM....When I hit the Auto Tool Zero Button, I get this " Error on line: 59 - Sub or function not defined: MachMsg" . I haven't knowingly altered any of your script....and I don't know what error I'm looking for. Can you or one of your followers please help me out? Many Thanks in advance. John
Eu estava com mach3 263 deu esse erro - "Erro na linha: 54 - esperado: =" instalei a última versão do Mach3 (R3.043.066) ficou perfeito. Muito obrigado.
Very informative, going to install on my machine ASAP, thanks.
revb0
Awesome!
Nice piece, Charlie. Thank you.
Do either of the versions work with Mock3 on an ethernet connection?
Thank you. I've had some folks say the USB version works with ethernet. If you try it, test carefully.
Worked great for me (using UC 100). thanks!!
Excellent! Thanks for the information.
Maybe the most verbose code and video (
except for the laughter :) , what happended??!!).
Now seriously, awesome job dude, thanks for sharing!
I wanted to say THANKS for writing this script and I am trying to get things to work. I do have a question... I have a CNC4PC breakout board and when I short the wires from the board I get a light on the Probe input in MACH3. No issues there. I have a gauge like yours and when i short the ground to the gauge i also get a probe light. When I connect the clip lead to my endmill and try and get a connection no go. I guess 5 volts is not enough to drive this. I just wondered if you were using 12 volts and then bringing it down to 5 to trigger the TTL on the board?
Thanks a lot for your wonderful content. I have a question :D
I have used many hours and now I thought it was time to reach out ! I've got a CNCz 6040 China Machine, Mach3 and a windows 7 computer.
I can move my cnc, run programs and stuff- spindle works, but when I go to Mach3 Diagnostics there are no green lights showing at Port 1 pins current state? How is that? I ran a monitor program to check my ports activity and could see there were some ports that were red and some were green.
Well all this began because I wanted to use my touchplate probe... I can press the auto tool zero button- but I doesn't stop it movement down the z-axis when it touches the plate. BUT----I can only use the auto tool zero if I have my active low unchecked- as soon as I check the active low setting in ports and pins input for the probe it doesn't work. I can see the digitize light is green when active low enabled. And it doesn't flash or turn off when i test the probing plate. What is wrong? Could it be a missing ground connection in the controller box for the probe? Or electrical noise? Or my setup? A bios thing with printer port?
I know the CNC 6040 are not the best built machines, but it is all I could afford ::) I hope I dont need to solder stuff and rewire, as I am not so proficient in electrics.
Thank you so much works great with a little mod for my machine
you use inch and not mm
@@Dark_Phoinix hi i use both mm and inch if this dose not work for you try this www.cncrouterparts.com/pro-cnc-accessories-c-47_56.html there is a script here too
Awesome!!! Thanks a lot for all of this !!
You're welcome.
Great info. Do you have any info using a usb board for this? I have been searching and I can't get it to work with mach3
Thank you for the script and a good quality fun video that explains how to use it!
That being said, for some reason after touching the probe my CNC would go to top Z, hit a limit switch, then set DRO to probe thickness. I ended up removing a bit of code from the script ("Move to contact point due to overrun" bit) and it's been working flawlessly since. Any idea why my machine could be acting that way when yours worked fine in the video?
I'm using Mach3 with MKX-IV control board. Probe/plate wired to "probe" on the board.
Glad you got the script working the way you need it to. I have no specific ideas as to why it was acting up on you. Truly, I am only familiar with my system specifically.
@@sunny5rising i have same problem...i find a script that works for me for z probe...
FeedCurrent = GetOemDRO(818) 'Get the current settings, OEM DROs (818)=Feedrate DRO
ZCurrent = GetOemDro(802) 'OEM DROs (802)=Z DRO
GageH = GetOEMDRO(1001) 'OEMDRO(1001)=Gage Block Height
ZNew = ZCurrent - 300 'probe down 20 mm
Code "G90F200" 'slow feed rate to 100 MM/MIN
Rem Code "G4 P1" 'Pause 1 second to give time to position probe plate
Code "G31 Z" &ZNew
While IsMoving()
Sleep(10)
Wend
Call SetDro (2,GageH) 'DRO(2)=Z DRO
FinalMove = GageH + 10
Code "G0 Z" &FinalMove
Code "F" &FeedCurrent 'restore starting feed rate dr.lin 2009.10.16
Hi Agent West, I have the same problem. Had the probing script crash into the plate a few times... disastrous... the tip was supposed to move up (in positive direction), and it does 9/10 times... Anyways, highly recommend doing a soft touch pretty much all the time until you are sure the script works.
I'm using Mach3 USB. The best I could figure was that some of the code (OEM LED and OEMDRO) correspond to different fields for me. Switching between the workpiece/machine coordinates, I realised that the script was zeroing my machine coordinates.
As Agent West suggested, I also removed the bit of code from the script ("Move to contact point due to overrun" bit), and changed all the G90 to G91, now the code works.
Ah, makes sense if it was using absolute coordinates instead of machine coordinates.
Great video. Look forward installing on my CNC.
Rick McCaskill
Excellent, let me know how it works for you.
Cue Jeff Goldbloom meme.... you did it, you sob.... thank you so much for this script, made life super easy setting the homing probe up and the audio is awesome...... sub'd
Tried this tonight with a couple issues
Firstly are touching the probe the Z Axis fully retracts to the limit switch and the Z is showing around + 8 and should be more like +40
Secondly after saving the script the jig features don’t work, home all does still work
Email me at sunny5rise@gmail.com and I'll send an edited script for you to try.
Many thanks for the files and the video tutorials.
You're welcome.
ok I have it set up as you suggested and I'm having problems with Z not going to Zero. My touch plate is 19.2 mm and this is the same measurement I'm getting in "Machine Coordinates" while, with "soft Limites" on or off and Machine Coordinates off I am at Zero in Mach3 but my tool is not at Zero and is about 5mm above my zero. What am I doing wrong? Also, do you need to set all your axises to zero in both soft, normal and machine coordinates before auto zeroing? Cheers ps: touch plate, touch plate, touch plate lol
Hey Charlie! Great video! Do you possibly know what might cause the Z axis to move the wrong way during auto tool zero only?? I haven't been able to find any info
this script work only in inch
great stuff... thanks for making this saved my day...
You're welcome.
Awesome !! one tip. Leave machine coordinates OFF !!!
Is there a way to use this macro to change the tool height in the tool library instead of zeroing the Z?
Possibly, I haven't tried that.
Try this macro -
CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO
ProbeHeight = GetUserDRO(32)
If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P2" ' two second delay
Code "G31 Z-1.0 F5" 'Z goes down a max of 1.0 at 5IPM
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002) - "Make your ProbeHeight" 'get the axact point the probe was hit, making sure to account for the tool offset which is not accounted for in 2002
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, "Make Your PlateThickness") 'set the Z axis DRO to whatever is set as plate thickness
Code "G4 P0.25" 'Pause for Dro to update.
Code "G0 Z1.0" 'retract Z to 1.0 inch
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Code "F" &CurrentFeed 'Returns to prior feed rate
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if applicable
Exit Sub
End If
Example for mine I use in my G0704 with TTS in a ER-20 tool holder and a 1/4 chunk of drill rod. My tool table seem to be working good with it.
ZProbePos = GetVar(2002) - 3.883 'get the axact point the probe was hit, making sure to account for the tool offset which is not accounted for in 2002
Call SetDro (2, 0.758) 'set the Z axis DRO to whatever is set as plate thickness
I am really happy for your awesome video. I am facing another problem. I am using mach3 for my CNC machine. But here in BD, we face load-shadding. Sometime I load a long time design but in the running time electricity cut off . I can not damage costly wood. Therefore, If I want to re-start the work from the same point where the machine stopped , What is the procedue for MAC3 system? Please could you help me? I will be grateful to you.
I will have to do a video on this topic. There are several ways to continue an interrupted job in Mach3. Which way to do this depends on several factors (home switches installed or not, CNC program written in absolute or incremental mode, for examples).
Dear respected@@sunny5rising, Please sir, I am facing some problem about the load shading. Here in Bangladesh, electricity cut off frequently. After completing almost 50% sometime 70% of the total program, sometime electricity cut off, then I can not re-start the program from the line where electricity cut off. Therefore, I need a good solution about the uncompleted design.
Please sir, could you help me? I need your help
Dear sir, still I am waiting for your response. Please sir, I need your help.
Try this... ua-cam.com/video/7yAEXM-rq1E/v-deo.html
thank U man it help me a lot. Best regards from Paris
Hello, a great job. Congratulations and thank you for sharing it, it is very appreciated by the fans of the CNC. Thanks I have a nvum USB card and I do not work the programs, they do things very rare like other partners. What plate do you have your mounted. Thank you.
Very informative, well shot video, thanks a lot.
Thanks. Glad you enjoyed it.
I used it today, a couple of syntax errors in the script, deleted those and got it running nicely, thanks again.
Hi Charlie ! Nice video and great job on the script. I try to put that in place on my DIY CNC. It works fine except just one issue : I have limit switches on X, Y and Z and the Z limit switch triggers when the tool touches the probe. As a consequence, the CNC stops in emergency instead of finishing the script. Do you see any way to have the script work fine while keeping the Z limit switch feature active for the rest of the operations? Sorry if it is a stupid question, my level in Mach3 is not far from noob :) Thx for the support
I forgot to mention that my probe is on the same pin as my Z limit switch. So the expected behavior would be that the Z limit switch activation does not trigger CNC emergency stop during Auto Zero Tool script, but reactivates normally after the script is finished
Apologize for the late reply. There might be a way to disable Z limit through scripting, not sure. I'd have to look into it. On another note, you could temporarily manually disable the Z limit (ports/pins_Inputs) while using the Z_axis script. Before running the script, make sure the digitize LED does light upon contact.
Great tutorial...
Many thanks for this...
👍
You're welcome.
God loves you my child, thank you
You're welcome.
Thanks a lot, very good script!!
Very welcome.
Nice video Charlie, and nice clean code. I'm having one issue. After I have homed my machine to X, Y and Z I then move the bit into position on workpiece, I zero X and Y. Then I put touch plate on workpiece surface and click auto zero. The bit moves down slowly, makes contact and then retracts all the way back up to hitting the Z home switch at the top! It should only retract .05" per your script. Any idea why it's doing this? Thank you!
Did you find the answer to this problem as mine is doing the same
Love your video, downloaded your script. But I got a problem. My plate is .760 thick, came with the machine, China CNC 6040. When I auto measure, it puts -.760 in the offset, not at the bottom of the touch plate. Any help appreciated. Thanks
Hi can you help me with ver .062 , it got mesg "Maximum Travel Reached. Reposition Z Axis Closer To Touch Plate And Try Again!","*** OOPS! ***" then stop. some time it complete the cycle, but always go up 6.29mm regardless plate thicknesser, please help me if you can
thanks Charlie for this fantastic tutorial . I got a question, can I use a negative value for the touch plate ? I'm thinking of using your script on my plasma tables floating Z axis . sorry I know its been some time since you first posted.
Haven't tried that or even thought about a negative value while programming. Did you try it?
Charlie Sarsfield yeah I did and it didn’t like it so much the probe touched the plate stopped then went down a further 5mm then returned to the standoff distance
If possible, can you make a short video of your touch plate or where you're zeroing? Also possibly your material setup and such.
Thanks for your video. I've tried several times the script but alwais " script compiled error " appears in the screen of my Mach3 Version3.043.066. Can you suggest some reason?
@Charlie Sarsfield Hi, thanks for the video man, it explains all the steps very well, I get this message "This is only for the printer port modes!" when I click on Automated Setup of Inputs. I can't continue.... what should I do?
I haven't ran into that situation before, but I would imagine that you should still be able to manually insert the Port/Pin number and Enable the probe. If you don't know the pin number, you should be able to cycle through pin number options till you find the one that works. I do use a parallel port, so perhaps it's why I haven't heard of your issue. Not sure.
Thanks for this informative video! Question: when I try to run the script, my z-axis goes upwards, not down. What should I change?
You're welcome. If you haven't tried both the v12 and v22 scripts, give the other version a try and see if the issue persists. If it does, let me know and we'll figure it out.
@@sunny5risingFor some reason, I had to add -1:
Code "#100=" &VarMaxDistance * -1
Now it works perfectly!
Excellent! Glad you got it working.
Great video. Do you have any videos on calibration of XYZ Axis. I have the same Cnc. Exact one.
Hi Charlie, I've tried this code on my machine (mach3 ver r3.043.066) and for some reason, it is working only on thin materials (Z=3mm) once I try it on a 50mm stock material, it crushes down below...any ideas on what could be the problem? Thanks
Any chance you can do a video on the issue to show me what's happening, and send me a link? I don't want you to crash your machine, so I recommend an "air part".
Haha, I won't crush it, I'm testing with a cheap end mill not tighten too much and on a foam block... I'll try to do some videos once I'm in the shop
Thanks for the great video. I set up the z probe detect and it works fine! But some time it confuses and insteed of moving in z direction to probe it moves in X direction! Do you have any idea why it could be?🙄
I'm not sure why that would happen. There are no X movements in the script. Sounds like some sort of system issue, but I have no idea.
good work , pls how can I install the pivot point of the rotary table for the 5 axis machine
Hello, sir . i have a green mach3 with usb connection. but i have problem when using autolevel program. Where the resulting file or log file contains the same points. I've been trying to solve this problem for almost 1 month, but to no avail. can we discuss the problem?
Yes, email me at sunny5rise@gmail.com and I'll try to help you out.
Oke Sir, thanks for response. I will sen the email , thank you 🙏🏻
I have sent the email sir, please check. thank you Sir. 🙏🏻🙏🏻🙏🏻
Mainly milling aluminum, will your edge finding and tool zero scripts work with a passive probe in mach3?
Yes it will work just fine. Whether active or passive just depends on the probe's Active Low status in Ports & Pins/Input Signals.
Hi Charlie, excellent tutorial and all good with my installation except I get a funny response if I am in Machine Coords when I hit Auto Tool Zero. (I get a Y movement instead of Z). Can the script have an override to force work coords ? Alan
Holy Moly! That is an issue I haven't heard of yet. I'll have to look into that one. When in work coords does the script work correctly?
Script works fine in work coords, really pleased with it. It just threw me when the Y suddenly started to happen one time. I haven't had chance to check if it is always Y and whether it depends on 'last used' or something similar. I think a simple 'if not then go to' sort of thing to make it more robust but I am not a programmer so leave it to you .... Going to do the probing scripts next but probably be next week before I can give you any feedback. (PS - like the chuckles)
Bro thanks for the video and the humor
You're Welcome. Glad you enjoyed it.
Thanks and Thanks, Many many thanks
Very welcome
great scripts, great video, however do you have any idea why the count down only works once? The completion message works every time, but the countdown only works the first macro (X, Y or Z) that I run after starting Mach3. I have tried to check windows text to speech settings but the button is grayed out. (windows 7)
Thanks for the compliments. I do not have an answer as to why the countdown only works once. Possibly something with Windows 7, but not sure. I run mine on XP.
Worked well, thank you!
Nice and easy to follow, thank you
You are welcome!
This script seems to work, but it doesn't zero the tool and wont let me move the machine or anything until I hit escape. For example I zero Z axis 5mm above the machine bed, run the script and it then stops when contact is made leaving Z axis at - 4.90. which kind of makes sense as my plate is a 0.1mm shim.
Am I missing something or misunderstanding ?
thanks, u are god :D i love your videos
Oh my, lol. Thanks.
Muchísimas gracias.
Thank you Charlie !!!
Very welcome.
Worked perfect
Would there be a way to edit the script for a different axis other than Z?
I also have a video and scripts for XY. ua-cam.com/video/MQ9XT30s-PU/v-deo.html
Quite informative thanks.
I like the script but keep getting a Maximum Travel reached message. Not sure how to resolve it
Tried it today had the same problem
Make sure the Maximum Travel in the script variables section is set larger than your expected travel to touch the touch plate.