Hello Guest it is January 27, 2023, 10:35:35 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 »
21
General Mach Discussion / Re: VB Script
« on: October 07, 2018, 08:15:27 AM »
Just tested the above script and I am getting "Scripter Compile Error" it could well be something that I have done wrong, but am unsure ?

22
General Mach Discussion / Re: VB Script
« on: October 05, 2018, 08:03:19 AM »
Oops, I'm giving credit to the wrong person here :o Many thanks also to TPS, much appreciated mate.

23
General Mach Discussion / Re: VB Script
« on: October 04, 2018, 03:10:22 AM »
here a simple sxript for X

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           

'get the exact probepos
ProbeX- = GetVar(2000)

    '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           

'get the exact probepos
ProbeX+ = GetVar(2000)

'goto the center
middle = ProbeX- + ((ProbeX+ - ProbeX-)/2)
Code "G90 G01 Y" + CStr(middle)
SetOEMDro(800,0)

End Sub

be careful, not tested, just written down.

z-axis has to be in probe hight.



Many thanks Gerry, very much appreciated.

24
General Mach Discussion / Re: VB Script
« on: October 03, 2018, 09:24:21 AM »
Hi Gerry, inside measurements, no more than 100mm on the X, and probably the same on the Y. Obviously I am working in metric.

25
General Mach Discussion / VB Script
« on: October 03, 2018, 05:00:54 AM »
Hi guys, another newbie request again.

Can anyone give me a script that will probe, and find the centre in the X  axis only ? Similarly I would like to be able to do the same in the Y axis.

I am using Hoss's probing screenset at the moment and although I can probe to find the centre of a circle, I can't probe to find the centre of a single axis.

Any help would be gratefully received ;)

Thanks in advance guys.

26
General Mach Discussion / Re: VB Script
« on: November 18, 2015, 01:31:51 PM »
A huge thanks to robertspark :)  That code worked a treat, so now I no longer have to manually move my spindle. Every day is indeed a learning day !!

Many thanks once again.

27
General Mach Discussion / Re: VB Script
« on: November 18, 2015, 03:19:19 AM »
Many thanks my friend, I'll certainly be giving this a try tonight

28
General Mach Discussion / VB Script
« on: November 17, 2015, 03:08:15 PM »
Ok guys, still just finding my way around mach3 and am once again struggling with what I am trying to do.

When I first start up in mach3 I tend to follow a routine, first of all, I always click on "Ref All Home" then I manually move the spindle so as it`s sitting just above the rear left jaw of the vice. I know there will be a script that I could use to do this at the press of a button, but I`m afraid that writing the said script is way beyond my limited knowledge.

Would anyone be able to point me to a script, where I could then just fill in the blanks for X move --------,  Y move ---------,  Z move --------- , that in turn, would then place my spindle exactly over the rear left corner of my vice (which is nearly always my zero zero)

Once again, any help gratefully appreciated guys :)

29
General Mach Discussion / Re: Mach3 & Fusion 360
« on: June 22, 2015, 03:20:53 PM »
Quote
Take a screen of the part with the pocket operation open on the heights tab. You probably have the contour at the top of the pocket or the heights set incorrectly

Hopefully this is what you mean !


30
General Mach Discussion / Mach3 & Fusion 360
« on: June 22, 2015, 11:35:35 AM »
Hi guys, I have recently been trying fusion 360, and am having problems with my first piece of code that fusion has written.
I drew a simple box with an odd shaped pocket inside it, made the pocket 20mm deep and asked fusion to cut down in 1mm increments using adaptive clearing. When I run the program it does everything as it should for the first 1mm, but then when it goes back to start the second cut, it just keeps spiraling down to 7mm !  Strange thing is, Mach 3 still reads the spindle as being at -2mm.
I`m not an expert with code, far from it, but I just can`t see why it should suddenly lose 5mm somewhere! Does anyone else have any experience in using fusion 360 with the generic mach3 mill pp ?

Pages: « 1 2 3 4 »