Hello Guest it is March 28, 2024, 04:16:42 PM

Author Topic: Softlimits  (Read 56267 times)

0 Members and 1 Guest are viewing this topic.

Offline chad

*
  • *
  •  361 361
  • When the going gets weird, the weird turn pro.
    • View Profile
Re: Softlimits
« Reply #60 on: October 26, 2006, 08:29:02 PM »
Ok in that case that switch will only do something when you are in homing, mach knows when you are homing and ignores the switch the rest of the time.

You can also use that switch as a limit. Just set the same pin number for the home as the limit. If you are moving and then hit the switch it will cause a e stop.

Offline chad

*
  • *
  •  361 361
  • When the going gets weird, the weird turn pro.
    • View Profile
Re: Softlimits
« Reply #61 on: October 26, 2006, 10:30:02 PM »
No problem.

If you can spare one extra input pin you can wire the other side limit switches serial and if any of those three are hit it will trigger an e- stop. Just do the same trick assign all the other limits to the same pin.

Chad

Hood

*
Re: Softlimits
« Reply #62 on: October 27, 2006, 02:56:04 AM »
Chris
 I am very poor on G Code so not sure how to set up what you are asking. I do get the same error as you if I put G54 Z-200 but surely this is correct as I only have 127mm travel same as you. Maybe I am misunderstanding as I would think Z Max would be the top of the travel and Z min would be the bottom. Is this not the normal way?
Hood
Re: Softlimits
« Reply #63 on: October 27, 2006, 05:10:31 AM »
Hood

Your not misunderstanding me Z max is at the top of the travel and Z min is at the bottom. Imagine you have got a long tool in the spindle like 200mm long, you then need to have at work offset of at least -200mm so you can go to Z 0. With the current soft limit warnings if you put a work offset in larger than your softlimits you get a warning but it should take the tool offset into consideration as well and not give you a warning.

What the G code does:

Set G54 Z offset to -200 & T3 to +200, this is presuming your soft limits in Z are roughly from 0.0mm to -127.0mm, then run this.

%
G21                          This puts Mach into metric
G0G17G40G49G80G90 Rapid, XYplane, cancel cutter comp, cancel tool offset, cancel caned cycles, absolute
T3M6                        Tool 3, tool change
G0G54G90X0.Y0.        Rapid, G54 offsets, absolute
G43H3Z-1.                 Use tool offset go to Z-1.0 This should move your machine to Z-1.0 in machine coordinates -200+200-1=-1
G1Z-10.F1000.           Feed to Z-10 at 1000mm/min
M30
%

Cheers

Chris

Hood

*
Re: Softlimits
« Reply #64 on: October 27, 2006, 04:02:39 PM »
Chris
Yes I understand now, even stranger is that I now again get the softlimits X min warning while doing any code :(
Hood
Re: Softlimits
« Reply #65 on: October 28, 2006, 04:39:20 AM »
I think I found what causes the X Y warnings now, if you just have G0 and G1 it works properly but when you use G2 or G3 it causes problems.

Chris

Hood

*
Re: Softlimits
« Reply #66 on: October 28, 2006, 06:55:25 PM »
Have just tried that and if I just have a few lines with a G2 in it doesnt give the error, but a G3 will. As I said before I am a newbie with GCode so I will try a few other things. This may give Art a place to start looking though, thanks Chris.
Hood

Hood

*
Re: Softlimits
« Reply #67 on: October 28, 2006, 07:06:19 PM »
OK G2 do it also, must have screwed up the first time, nothing new about that though ;)

Hood
Re: Softlimits
« Reply #68 on: October 30, 2006, 08:00:53 AM »
How about an example?
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com

Hood

*
Re: Softlimits
« Reply #69 on: October 30, 2006, 03:35:19 PM »
An example of me screwing up or an example of code?   ;)

As an example of code I just ran the circular pocket wizard and below is the code. As soon as I press cycle start I get a soflimits popup and the message window says "soft warning on X Min"
 If you dont get this Brian I am wondering if it may be to do with me having Mach setup in mm and I presume Chris is also mm wheras you will be in inches.
Hood
G0 G49 G40  G17 G80 G50 G90
M6 T0(TOOL DIA.6)
G64
G21 (mm)
M04 S0
G00 G43 H0  Z2
X0 Y0
G01 Z-2 F100
G2 Y0 X1.2 R0.6 F400
Y0 X-1.2 R1.2
Y0 X2.4 R1.8
Y0 X-2.4 R2.4
Y0 X3.6 R3
Y0 X-3.6 R3.6
Y0 X4.8 R4.2
Y0 X-4.8 R4.8
Y0 X6 R5.4
Y0 X-6 R6
Y0 X7 R6.5
Y0 X-7 R7
X7 Y0 R7
Y-3.5 X3.5 R3.5
G00 Z2
M5 M9
M30
« Last Edit: October 30, 2006, 03:39:15 PM by Hood »