Hello Guest it is March 28, 2023, 08:08:10 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - needleworks

Pages: 1 2 3 4 »
1
General Mach Discussion / Re: Homing?Limits
« on: May 22, 2020, 09:12:48 AM »
I wonder if you considered soft limits. They have saved my butt so many times! Every time I ignored the warning I watched my job go to hell!!!


I have never used them mate, never found a need  (as long as my limit switches were operational)  :-\

2
General Mach Discussion / Re: Homing?Limits
« on: May 15, 2020, 09:26:11 AM »
Panic over guys, I think I've got it sorted !!
Somehow the Z++ had manged to change itself from active low to active high, I have no idea how this happened or how long it has been like that but all my switches are now working again.

3
General Mach Discussion / Re: Homing?Limits
« on: May 15, 2020, 08:13:34 AM »
Settings -> Override Limits  enabled maybe?
Yes mate, auto override limits is enabled and always has been. Changing it back still doesn't make any difference though.

4
General Mach Discussion / Re: Homing?Limits
« on: May 15, 2020, 02:34:30 AM »
Go to the diagnostics screen in mach3 and then press each limit switch in turn and see if you see the correct limit led change state on the screen.

Is there no z-- limit switch fitted?


I tried that Graham, all the limits change state when the switches are activated and no, there is no Z-- switch.

5
General Mach Discussion / Re: Homing?Limits
« on: May 14, 2020, 04:25:24 PM »
you do not have to insert it, just Chose the file and hit Post

Ok, let's try this then.



6
General Mach Discussion / Re: Homing?Limits
« on: May 14, 2020, 10:03:50 AM »
if you post a reply, below the Input window is a + sign for Attachments and other Options.

Yeah I got to that part mate, I then clicked on "choose file"   I choose the file but I can't see how to insert it !

7
General Mach Discussion / Re: Homing?Limits
« on: May 14, 2020, 03:46:15 AM »
A picture of your ports and pins screen would be a good starting point


Tried to add a picture but I can't figure out how to attach it ?

8
General Mach Discussion / Re: Homing?Limits
« on: May 13, 2020, 04:25:34 PM »
Anyone ?

9
General Mach Discussion / Homing?Limits
« on: May 12, 2020, 02:17:22 AM »
Hi guys, looking for a little advice regarding a Mach3 problem.

Today I was machining a part that was very close to being max size for my work envelope, the fact that I had clamped the workpiece slightly in the wrong place, meant that I had reached the limit of travel in the Y direction, and subsequently crashed the machine into my limit switch. Odd thing is that the machine didn't stop, it just kept going susequently ruining the part. After stopping the machine, I checked the switch by manually pressing the switch down, and --- nothing ! I then tried all the rest of the switches and found that none of them were working.

Now before I started this job, I did as I usually do, and hit "ref all home" which resulted in the machine going to the home positions, activating the switches and stopping. To me, this proves that all switches are working as home switches, but none are working as limit switches ?
As a rule, I never tend to hit limit switches so I have no idea how long the machine has been like this. I have never changed any settings in over a year, and everything else is running great.

Also, after this happened I tried the machine running UCCNC, and for some bizarre reason everything works perfect there, machine stops as soon as any limit switch is actvated, and this was set up using the Mach3 xml file. Am I missing a setting in Mach3, or have I unknowingly changed something that I am unaware of ?

Any help greatly appreciated.

10
General Mach Discussion / Re: VB Script
« on: October 11, 2018, 02:08:30 PM »
here we have the X-Center without the debug Windows
Code: [Select]
'simple X-center script
Sub Main()
SetOEMDro(800,0)

    'do the X- probe
    Message ("probe X- ")
    Code "G31 X-100 F150"
    While IsMoving()
        x = GetOEMDRO(800) 'X actpos
        If x <= -100 Then
            DoOEMButton(1003) 'Stop too far no probe hit
            MsgBox ("Probe X- canceled , no probe hit!" )
            Exit Sub
        End If
    Wend           

Sleep(200)
'get the exact probepos
ProbeXNeg = GetVar(2000)

'clear the probe
Code "G91 X2 F150"
    While IsMoving()
Sleep(10)
    Wend           
Code "G90"


    'do the X+ probe
    Message ("probe X+ ")
    Code "G31 X200 F150"
    While IsMoving()
        x = GetOEMDRO(800) 'X actpos
        If x >= 200 Then
            DoOEMButton(1003) 'Stop too far no probe hit
            MsgBox ("Probe X+ canceled , no probe hit!" )
            Exit Sub
        End If
    Wend           

Sleep(200)
'get the exact probepos
ProbeXPos = GetVar(2000)

'clear the probe
Code "G91 X-2 F150"
    While IsMoving()
Sleep(10)
    Wend           
Code "G90"

'goto the center
middle = ProbeXNeg + ((ProbeXPos - ProbeXNeg)/2)
Code "G90 G01 X" + CStr(middle)
    While IsMoving()
Sleep(10)
    Wend           
SetOEMDro(800,0)

End Sub


and the y-Center

Code: [Select]
'simple Y-center script
Sub Main()
SetOEMDro(801,0)

    'do the Y- probe
    Message ("probe Y- ")
    Code "G31 Y-100 F150"
    While IsMoving()
        y = GetOEMDRO(801) 'Y actpos
        If y <= -100 Then
            DoOEMButton(1003) 'Stop too far no probe hit
            MsgBox ("Probe Y- canceled , no probe hit!" )
            Exit Sub
        End If
    Wend           

Sleep(200)
'get the exact probepos
ProbeYNeg = GetVar(2001)

'clear the probe
Code "G91 Y2 F150"
    While IsMoving()
Sleep(10)
    Wend           
Code "G90"


    'do the Y+ probe
    Message ("probe Y+ ")
    Code "G31 Y200 F150"
    While IsMoving()
        y = GetOEMDRO(801) 'Y actpos
        If y >= 200 Then
            DoOEMButton(1003) 'Stop too far no probe hit
            MsgBox ("Probe Y+ canceled , no probe hit!" )
            Exit Sub
        End If
    Wend           

Sleep(200)
'get the exact probepos
ProbeYPos = GetVar(2001)

'clear the probe
Code "G91 Y-2 F150"
    While IsMoving()
Sleep(10)
    Wend           
Code "G90"

'goto the center
middle = ProbeYNeg + ((ProbeYPos - ProbeYNeg)/2)
Code "G90 G01 Y" + CStr(middle)
    While IsMoving()
Sleep(10)
    Wend           
SetOEMDro(801,0)

End Sub



hope i did everthing right


 
Thank you again for all your help my friend. It will be later tonight before I can try it but I will let you know how it goes.

Just tried the codes you provided and they are working perfectly. Once again, many thanks for helping me out with this, you are indeed a top man.

Pages: 1 2 3 4 »