Hi Jim , I wanted to add my thanks here in the comments, I saw these videos a while back and well this evening I decided to finally get round to adding these scripts (and the one for the circle centre finder one )to my machine, all work great and its really good to have that functionality,I'm no programmer but managed to get it all up and running. I enjoy learning new stuff and studying your code line by line is a great example to help me further that.. so many thanks sir its much appreciated :)
Thanks for sharing Jim, love your machine. Hey guys swap NE for in the code when you find Wend it should be on a line of it´s own, hit enter and drop Code down to the next line.
Hi Jim, I managed to get it working, but had to copy the text to notepad first, copy the notepad text and then paste into the button script. If i copied direct from the UA-cam page, It just didnt work for some reason. I also got the hole centre script working but to get it working, i had to remove the "Wend" command after the "Code "G0 Y" &YCenter 'rapid move To the center location While IsMoving ()" line, and had to add in a "G0 X" &XCurrent for the return after X move to the right.
I have tried to implement the same fix as yourself by copying the code into Notepad. When I did this it did not copy the crlf codes for the text. This resulted in the code being one massive block of text with no discreet lines. Did this happen with you? If it did then when you pasted it back to the button script, how did you regenerate the individual lines?
Jim Taylor hi Jim, Yes, it was just one long line. I had to edit it all and put it in sequence, then I ran the script editor which showed the errors I missed. All good now once I deleted the “Wend” command as mentioned.
Certainly one obvious error not far from the start. Where you currently have XCurrent = GetDro(0) Current = GetDro(1) I think you;ll find it works better if you have XCurrent = GetDro(0) YCurrent = GetDro(1) The code 10 ir so lines later Rem Probe up YNew = YCurrent + 75 will have much more chance of doing something useful
Well done. You have spotted a real error. This error is in both the Y direction probes (probe bottom edge and probe top edge). Also, in the 'probe top edge' the 'Rem Prob up' line would be more correct if it was 'Rem Probe down'. Thanks for letting me know.
Dear Jim, I'm 70 and live on Curacao and my English script is not zobest. Very interested in the world, I bought a Chineshe cnc 2030 which works with mach3. I would also like to find the corners easily and have also tried to install your script. Unfortunately, the result is not good. The XY moves all the way but measuring the corners of my totchfinder is not found. Also have no knowledge or experience for writing the script, so a problem. I think you're wondering and I wonder what's wrong with me. Regards, Rien
Dear Rien Without knowing the configuration of your machine it is difficult to give you advise on your problem. However, here are a few things to think about. 1. My edge finding system as described in my video, will only find the edges of metal parts unless some kind of electrical contact piece, for the probe to touch, is placed on the part. 2. The probe or pin mounted in the spindle collet must be electrically connected to the correct input on your cnc breakout board. 3. You will also need to set the Mach3 probe, port number and pin numbers (input signals) settings correct according to your system. 4. For a more detailed explanation of how I connect my system for the probing please see my video at: ua-cam.com/video/38bJjcp97QI/v-deo.html - 'Yet another Zero touch probe'. I hope that this is of help to you... Oh, by the way, I am 77.
Hello Jim, Thanks for your response, have another question. You say in this script to change EN into the two not-equals brackets. What do you really mean? Is that X and Y or LH and RH. Both have tried but do not work. Greetings and please hear from you.
Hi Jim, yes, replaced them all. i also tried the script for the circle (hole) centre finder and got the same errors. Just wondering if there is something missing from the scripts when they were copied to the UA-cam page?
I don't think so since others that have used it seem to had no problems. Only Barri Kellow found one problem and fixed it - see below. I see that you say that the Y axis works. Have a close look at the other axes and make sure that they follow exatly the same syntax as the Y axis but with only the obvious differences.
Thanks Jim for your answer. But No. Unfortunately I have not had success with the update. When you say change the letters NE. I do not know what to put in that place. Could you expand your explanation? Thank you very much.
Hi Jim , I wanted to add my thanks here in the comments, I saw these videos a while back and well this evening I decided to finally get round to adding these scripts (and the one for the circle centre finder one )to my machine, all work great and its really good to have that functionality,I'm no programmer but managed to get it all up and running. I enjoy learning new stuff and studying your code line by line is a great example to help me further that.. so many thanks sir its much appreciated :)
It is very nice to know that my work is helping people out there. Many thanks
Thank you for sharing, script works! Greetings from Finland
Thanks for sharing Jim, love your machine.
Hey guys swap NE for
in the code when you find Wend it should be on a line of it´s own, hit enter and drop Code down to the next line.
Hi Barri
Am I right that every line you find NE in it you change to .
Hi Jim, your script works. Try to study 6040CNC now, your video helps.
Thanks from Russia, Norilsk
From Russia...with love...maybe?
like in James Bond film? I hope all not so bad)))
Hi Jim, I managed to get it working, but had to copy the text to notepad first, copy the notepad text and then paste into the button script. If i copied direct from the UA-cam page, It just didnt work for some reason. I also got the hole centre script working but to get it working, i had to remove the "Wend" command after the "Code "G0 Y" &YCenter 'rapid move To the center location While IsMoving ()" line, and had to add in a "G0 X" &XCurrent for the return after X move to the right.
I have tried to implement the same fix as yourself by copying the code into Notepad. When I did this it did not copy the crlf codes for the text. This resulted in the code being one massive block of text with no discreet lines. Did this happen with you? If it did then when you pasted it back to the button script, how did you regenerate the individual lines?
Jim Taylor hi Jim, Yes, it was just one long line. I had to edit it all and put it in sequence, then I ran the script editor which showed the errors I missed. All good now once I deleted the “Wend” command as mentioned.
Hello Jim,Thank you for sharing. It is much appreciated. Where are you from? I am from New Hampshire USA. Have a great day.
Certainly one obvious error not far from the start. Where you currently have
XCurrent = GetDro(0)
Current = GetDro(1)
I think you;ll find it works better if you have
XCurrent = GetDro(0)
YCurrent = GetDro(1)
The code 10 ir so lines later
Rem Probe up
YNew = YCurrent + 75
will have much more chance of doing something useful
Well done. You have spotted a real error. This error is in both the Y direction probes (probe bottom edge and probe top edge). Also, in the 'probe top edge' the 'Rem Prob up' line would be more correct if it was 'Rem Probe down'. Thanks for letting me know.
Hi Jim, I copied your script to mach3 which is r2. Working propelry. Thanks.
Good to know.
Dear Jim,
I'm 70 and live on Curacao and my English script is not zobest. Very interested in the world, I bought a Chineshe cnc 2030 which works with mach3. I would also like to find the corners easily and have also tried to install your script. Unfortunately, the result is not good. The XY moves all the way but measuring the corners of my totchfinder is not found. Also have no knowledge or experience for writing the script, so a problem. I think you're wondering and I wonder what's wrong with me.
Regards,
Rien
Dear Rien
Without knowing the configuration of your machine it is difficult to give you advise on your problem. However, here are a few things to think about.
1. My edge finding system as described in my video, will only find the edges of metal parts unless some kind of electrical contact piece, for the probe to touch, is placed on the part.
2. The probe or pin mounted in the spindle collet must be electrically connected to the correct input on your cnc breakout board.
3. You will also need to set the Mach3 probe, port number and pin numbers (input signals) settings correct according to your system.
4. For a more detailed explanation of how I connect my system for the probing please see my video at: ua-cam.com/video/38bJjcp97QI/v-deo.html - 'Yet another Zero touch probe'.
I hope that this is of help to you... Oh, by the way, I am 77.
Hello Jim, Thanks for your response, have another question. You say in this script to change EN into the two not-equals brackets. What do you really mean?
Is that X and Y or LH and RH. Both have tried but do not work. Greetings and please hear from you.
Usb bob does not support edgefinder
Hi Jim, I am only able to get Y axis to work. the other come up with a "Scripter Compile Error" any ideas?
When you downloaded my code, did you replace all of the instances of 'NE' with '' angle brackets?
Hi Jim, yes, replaced them all. i also tried the script for the circle (hole) centre finder and got the same errors. Just wondering if there is something missing from the scripts when they were copied to the UA-cam page?
I don't think so since others that have used it seem to had no problems. Only Barri Kellow found one problem and fixed it - see below. I see that you say that the Y axis works. Have a close look at the other axes and make sure that they follow exatly the same syntax as the Y axis but with only the obvious differences.
for the X axis, put the "Code "F"...." after WEND on a new line. You'll notice that it's like that on the Y axis
Hi Jim.
Thanks for sharing.
Actually isnt working. Says Syntax error.
Can you help me please?
I have mach3 R2.63
Thanks a lot.
My Mach3 is version R3.042.040. I suggest that you upgrade and try again. Good luck.
Thanks Jim for your answer.
But No. Unfortunately I have not had success with the update.
When you say change the letters NE. I do not know what to put in that place.
Could you expand your explanation?
Thank you very much.
Sorry that the update did not fix it. As regards the change in the letters NE, I think that you should be replying to barri kellow.