-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crashes tool bit into bed #5
Comments
So the zero-finder program works insofar as it finds zero for X, Y, and Z, but when you run your own job it crashes into the bed, right? |
Yeah, we got it all calibrated and everything appears to work as it should but when I go to run a file it lowers the z into the bed instead of raising like it usually does
Sent from Yahoo Mail on Android
On Mon, Jun 12, 2023 at 4:28 PM, Ron ***@***.***> wrote:
So the zero-finder program works insofar as it finds zero for X, Y, and Z, but when you run your own job it crashes into the bed, right?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
What program are you using to create the Shopbot file, and is it
possible to include an example file that demonstrates the problem?
…On 12 Jun 2023, at 18:00, Ksaor21 wrote:
Yeah, we got it all calibrated and everything appears to work as it
should but when I go to run a file it lowers the z into the bed
instead of raising like it usually does
Sent from Yahoo Mail on Android
On Mon, Jun 12, 2023 at 4:28 PM, Ron ***@***.***> wrote:
So the zero-finder program works insofar as it finds zero for X, Y,
and Z, but when you run your own job it crashes into the bed, right?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Reply to this email directly or view it on GitHub:
#5 (comment)
You are receiving this because you commented.
Message ID:
***@***.***>
|
' ======================================================================================== ' Give the user a chance to exit the program if they didn't intend to run it, ' We want to make sure the bit is not spinning when running this program... ' **************************************************************************************** ' Set the scale we'll use ' Used in calculating where Z should be ' The thickness of the aluminum plate ' The size of the top part of the plate where Z is found (and then we move off from there) ' This is the length of the entire plate ' ' **************************************************************************************** ¤tMode = %(22) ' **************************************************************************************** ' Load the custom variables file from Custom Cut 90 ' Get Speed Limits of the machine IF %(25) = 0 THEN GOSUB GetInchSpeedLimits ' TEMPORARY: Haven't figured out the metric values yet '------------------------------------------------------------------------------ ' Okay, now we have to get the current settings of the machine ' Now we're going to set up the X and Y speeds and ' This is the speed we use to move quickly around the ' Now actually set the speed of the machine '------------------------------------------------------------------------------ ' Now we're going to do similar stuff for the Z axis &start_Zmove_Speed = %(73) ' MoveSpeed Z &new_Zmove_Speed = .25 'Set thickness and pull-up distance ' **************************************************************************************** 'Save start X and Y positions for use with centering 'Set paramaters 'Limits are deactivated here, automatically reset to original state when file ends ' ---------------------------------------------------------------------------------------- GOSUB TEST_CLEAR 'Check for clear ' Set-up the contact switch action ... VS, , &new_Zmove_Speed ' Start continuous plunge ... looking for contact to occur ' Contact! Save the position in the save_Z_dist variable ' ---------------------------------------------------------------------------------------- 'Set tool to Relative Mode because we want to move around based on where we currently are ' Check for clear ' Set the move speed ' ' First we want to move off a bit in the positive X to clear the plate, ' And now go back to being slow ' And now we want to go to the Z location and a little lower ' Now we set up the contact switch action again ... ' ' We're still touching the plate, so let's move it back ' Okay, we have the position on the right side of the plate. ' First lift the tool an inch to clear the plate ' Set the move speed ' Move past the plate plus 1 inch ' And now go back to being slow ' And now we want to go to the Z location and a little lower ' First set the contact switch action ... ' &toolDiameter = (&right_X_pos - &left_X_pos) - &FULL_PLATE_LENGTH ' ---------------------------------------------------------------------------------------- SR ' Okay, as of right now we're sitting on the right edge of the plate somewhere. First ' Now we want to move in -Y the length of the plate ' Now put us inside the plate in the X axis ' And now go back to being slow GOSUB TEST_CLEAR 'Check for clear 'First set the contact switch action ... ' **************************************************************************************** ' We're still touching the plate in Y, so let's move back .25 ' And put us back in absolute mode ' And we need neither dilly nor dally getting there... ' Now let's move to the right Y ' Where are we? 'MY, &NowY + 1 + &yAdjustment ' Now move to the X plus 1 inch (the width of the lower plate) + the MX, &myNewX ' Now set the X, Y, and Z at this spot MSGBOX(All Done. I am now going to move the bit out of the plate. Have a nice day., 48, Finished) ' And lift the tool 2 inches to clear the plate ' **************************************************************************************** ' **************************************************************************************** ' ---------------------------------------------------------------------------------------- Zcontact:
RETURN ' ---------------------------------------------------------------------------------------- ' This is our subroutine for action on hitting the plate on the left side ' This is our subroutine for action on hitting the plate on the right side Xagain: ' ---------------------------------------------------------------------------------------- Ycontact: Yagain: ' **************************************************************************************** TEST_CLEAR: NO_CLEAR: ' Function that sets the speed limits in imperial ' Function that tells the user the program is not going to work in preview mode ' Function that exposes to the user the fact that I am bad at metric/imperial conversion |
We took your file off github and use the Shop Bot edit to alter the script. all we changed was parameters for your xyz block. At the end of the script I noticed the way it zeros axis is different from what I am accustomed to. 'VA, 0, 0, %(3),,,,,,, . what does the %3,,,,,, mean and do? My next attempt is to comment out that line as you can see in the code and try running a z3 instead. I wouldn't think it would make a difference, but we are using a Alpha model Shop Bot with the 48x96 bed. Really appreciate you getting back to me so quick about this! |
This is the file we have been trying to run after doing a xyz home, its just a simple single hole but it does require a tool change with our ATC, could that maybe be causing a issue. I've run the same file without doing the xyz script and it works just as it should. Again, I really appreciate any insight, help you can provide. This setup really is a brilliant idea and is going to save us a lot of prep time if I can get it figured out. '---------------------------------------------------------------- &PWSafeZ = 0.200 |
Out of curiosity, did you make a plate similar to the pics to run the script with? |
Same setup but dimensions are different. When we run the script it does everything perfect and is right on the corner 0,0. After that completes. Any cut file I try to run off of vcarve, it plunges the z directly into the bed. But if I run the same vcarve file with homing the xy and doing the z with the plate from shopbot. it works perfect. It is like the code for that block has some kind of lingering effect on the shopbot control interface making the z run reversed?
Sent from Yahoo Mail on Android
On Tue, Jun 13, 2023 at 3:24 PM, Ron ***@***.***> wrote:
Out of curiosity, did you make a plate similar to the pics to run the script with?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I wonder if this could be a firmware issue, this machine is only a year old. Windows OS = 2, 6.02 Resolution = 1920 X 1080 Control Box Firmware Version = 224 Size - - - - (not determined) Supply VDC = 5.00 [4.98 to 5.01] Controller Temp = 36.7 Controller Loc - q_Freq- 1000.0(hz) Static_ET 2.5(ms) Packet_ET- 17.5(ms;good<20) |
hm, one option for testing would be to let the program zero everything out, then manually move Z up and back down and zero it out manually and see if that makes a difference. Manually setting Z should negate any effects of the plate program. |
unfortunately, we tried that. Even tried moving the z back to 0 and also xy to the new 0 and then doing a z3 after the xyz finder finishes. It seems like no matter what we do after running your script it makes the z lower into the bed when a file is started. it only goes away if you zero the x y and do a z zero with the plate like one would normally do with machine. It is so weird, we have be en tinkering with this for about 2 days now trying to get it to operate correctly. Our machine does have the automatic tool changer setup, and I've noticed it does not run the atc script to see what bit is in collet after we run xyz finder. Maybe that's something to do with it? I appreciate you getting back to us and trying to help! we are totally stumped over here haha |
I admit I didn't even know there was an ATC for the shopbot; we don't have that so it's hard to say whether it has anything to do with it, but it seems possible that maybe there's a command that the ATC doesn't like; maybe there's a special command for it. I'll try to investigate your file and the documentation, but I'm on vacation on a bike so I'll get to it when I can. |
No rush on it, we had some down time and saw this and was like o wow this would be perfect. Appreciate ya! look into at your leisure, if you feel like it! I was hoping it was just something stupid we overlooked but I too am thinking it has to do with the ATC. |
After zeroing with plate, we go to start a file and instead of raising the Z it drives it into the bed. Do you have any suggestions for this?
The text was updated successfully, but these errors were encountered: