开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Micro Switch CNC Shield V3
-- Hi everyone , I need some help with the home_sense and the pins associated for micro switches. The page says that the correct pins are GPIO 18 and GPIO21 (CNC Shield V3) but the last one doesnt
By juanlusiruizbellido@... · #155584 ·
wxtimer
Is the wxtimer working as in the older versions of mach4 i still see the wxpanel and wxtimer event in the screenload script, but if i create a button and do a timer:Start(10) i get a message box
By Gary · #155583 ·
motion
Is there a way to check if any axis is in motion, after you excited a mc.mcCntlGcodeExecute command in a coroutine so the motion is finished before another? mc.mcCntlGcodeExecute is excited ? or
By Gary · #155582 ·
Re: angle calculation g68
Atan[3]/[20] works in Mach3 Gcode, not in an external card. If you have Mach3 on a PC with no connection to a controller or machine then you can use: G90 #50=Atan[3]/[20] g0 A#50 and the DRO for the
By Martin Connelly · #155581 ·
Re: angle calculation g68
hello Martin I thank you very much for the time you take to help me I managed to turn the drawing on the screen with the following commands Code “G68 A0 B0 R” & Final result Sleep(150) doOEMButton
By res.amazonite@... · #155580 ·
Re: angle calculation g68
Glad I could help with the angle calculation. Here is something to consider. If you are not currently using the A axis you can make use of it. The A axis is rotation about the linear X axis and uses
Re: angle calculation g68
hello Martin I implemented the function calls the Taylor series it worked well now, I don't think the measurements for angles less/greater than 20° are justified for me the maximum could be less
By res.amazonite@... · #155578 ·
Re: angle calculation g68
It never occurred to me that they did not implement Atan in Mach3 scripts since it is a standard VB function. There is a simple work around though using what are known as the Taylor Series for trig
Re: angle calculation g68
Hi after several attempts Atan is not taken into account in the GCode, it is possible that the function is not implemented in the controller card (Chinese) I fell back on this formula AB = 100'
By res.amazonite@... · #155576 ·
Re: angle calculation g68
thank you Martin for this reflection, I will test all this by replacing the Z with the Y I will keep you informed of my tests it all depends on how the piece is fixed on the table
By res.amazonite@... · #155575 ·
Re: angle calculation g68
Thank you for the link but the goal is to obtain the result of the angle using a mach3 macro
By res.amazonite@... · #155574 ·
Re: angle calculation g68
Much simpler is go to this Website and enter the dimensions you have and get the result immediately. https://www.engineersedge.com/calculators/triangle_solution_3.htm Emgee
By Emgee Radian · #155573 ·
Re: angle calculation g68
I have been thinking a little bit more on this. It occurred to me that you may be better just reading the Z axis DRO into two variables and using the difference between those two values to calculate
By Martin Connelly · #155572 ·
Re: angle calculation g68
I just like to declare variables to remind me what is in a macro. I also like to put a really unlikely value in something that is going to be calculated so I can tell when it has been changed in the
By Martin Connelly · #155571 ·
Re: angle calculation g68
thank you martin for this approach yes, I use a probe and GetOEMDRO(802) is indeed the Z you start by probing the Z and then do the final calculation Angle = ATAN(Zdro/20) you declare a variable:
By res.amazonite@... · #155570 ·
Re: angle calculation g68
On Tue, Feb 6, 2024 at 01:18 AM, Martin Connelly wrote:
By res.amazonite@... · #155569 ·
Re: angle calculation g68
Pythagoras will give you the distance between the start point and the end point. So if D is the distance between the start and end points up 3mm and across 20mm then D?=3?+20?? ? D?=9+400=409?
By Martin Connelly · #155568 ·
Re: angle calculation g68
Sorry about the mix up, I thought you were chasing a length.
By Wesley Wilcox · #155567 ·
Re: angle calculation g68
hi simply because I'm terrible at math c squared = my angle??
By res.amazonite@... · #155566 ·
Re: angle calculation g68
Because he’s trying to calculate an angle, not the length of a side. Sent: Monday, February 5, 2024 3:26 PM To: [email protected] Subject: Re: [MachCNC] angle calculation g68 If you are
By Andy Wander · #155565 ·