Hello Guest it is April 23, 2024, 11:14:34 PM

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 - Davek0974

1151
Oops, same spindle as me then, my bad :)

Is the cable from the VFD to the motor shielded and grounded at one end only?

There can be a continuous safety earth conductor, grounded at both ends but the shield should be grounded at the VFD only.


1152
Have you tried running a whole job with the router power turned off - air cutting of course??

This would help split the issue in two - router or system.

Routers can be very noisy - they have brush motors and brushes create noise.

1153
I grounded my 0v line to the machine for exactly the same reason, as Stephen says above ALWAYS test the plate by touching it on the tool the instant before you press the button in the 2010 screen set, it gets really messy if it fails ;)

I have the same screen set and its great, the tool change is brilliant.

One other thing i do is ALWAYS wipe the top of the fixed probe before pressing enter after the tool-change - a bit of swarf or muck on there will spoil your day.

1154
General Mach Discussion / Tweaking the Tool-Change...
« on: September 18, 2016, 06:16:00 AM »
Stumbled upon a situation today brought on by the massive flexibility of my Bridgeport CNC conversion, the tool-change was set to go to a programmed position - this could cause the tool to be dragged over clamps etc or with a large lump on the bed which overhangs could cause it to be mashed into the rear body of the machine.

The safest option seems to be to do nothing but lift the Z up to machine zero then wait.

This is my current M6Start macro, M6End is empty.

My question - if i comment out the block marked ************************************X, i think that will do it, BUT is there anything in the rest of the macro that does anything useful, apart from the block that parks the Z axis??

Code: [Select]
Sub Main()

Dim XScale, YScale, ZScale
Dim ZClear, Zoffset, ZClearMach
Dim ClearAllow
Dim Response

If GetOEMLED(1866) Then Exit Sub

If GetOEMLED(801) Then ' On = English Measure INCH

ClearAllow = 0.125 ' Max Z Travel = .125in below Machine Z zero

Else ' Off = Metric Measure MM

ClearAllow = 2.0 ' Max Z Travel = 2mm below Machine Z zero

End If

Zclear = GetOEMDRO(1814) ' Get Z Clearance Plane from DRO

Zoffset = GetOEMDRO(49)

ZClearMach = Zoffset + Zclear

CurrentAbsInc = GetOemLED(48) ' Get the current G90/G91 state

'Get Axis Scale factors
XScale = GetOEMDRO(59)
YScale = GetOEMDRO(60)
ZScale = GetOEMDRO(61)

'Set All Axis' Scale to 1
Call SetOEMDRO(59,1)
Call SetOEMDRO(60,1)
Call SetOEMDRO(61,1)
Sleep(250)

tool = GetSelectedTool()
SetCurrentTool( tool )
SetVar(1, GetOEMDRO(800))
SetVar(2, GetOEMDRO(801))
SetVar(3, GetOEMDRO(802))
TCX=GetOEMDRO(1200)
TCY=GetOEMDRO(1201)
TCZ=GetOEMDRO(1202)


Code "G90"

Code "G53 G0 Z" & ZClear
While IsMoving()
Wend


Code "G53 G0 X" & TCX & " Y" & TCY ***************************************************************X
While IsMoving()                              ***************************************************************X
Wend                                             ***************************************************************X

If CurrentAbsInc = 0 Then 'if G91 was in effect before then return to it
Code "G91"
End If

Call SetOEMDRO(59,XScale)
Call SetOEMDRO(60,YScale)
Call SetOEMDRO(61,ZScale)
Sleep(250)

End Sub

1155
General Mach Discussion / Re: Spindle button and M3 and M4
« on: September 16, 2016, 06:58:27 AM »
Ah crap, i am trying to run a printing press at the same time though ;)(

This was the bit i wanted...

Code: [Select]
If GetOEMLed(164) or GetOEMLed(165) then
  DoSpinStop()
else
  If GetVar(1601)=0 then
    DoSpinCW()
  Else
    DoSpinCCW()
  End If
End if

1156
General Mach Discussion / Re: Spindle button and M3 and M4
« on: September 16, 2016, 06:14:18 AM »
So, to the OP,

In your M3 macro

Add...
SetVar(1601,0)

In your M4 macro

Add...
SetVar(1601,1)

In your spindle toggle code, find the line that says DoSpinCW() and put a ' at the start so it looks like 'DoSpinCW()

Then Add...

Code: [Select]
  If GetVar(1601)=0 Then
    DoSpinCW()
  Else
    DoSpinCCW()
  End If

Sorted :)

1157
General Mach Discussion / Re: Spindle button and M3 and M4
« on: September 16, 2016, 06:11:18 AM »
LOL ;)

1158
General Mach Discussion / Re: Spindle button and M3 and M4
« on: September 16, 2016, 05:44:47 AM »
Ah, i was wondering when you would spot that one :)

Definitely better to put the SetVar bits in the M3/M4 then I think, that would solve it, presuming there is no sneaky macro stuff running elsewhere calling an ActivateSignal(OUTPUTxx) :)

1159
General Mach Discussion / Re: Spindle button and M3 and M4
« on: September 16, 2016, 04:43:04 AM »
Well, with the code all in the spindle button, it will rely on the status of the spindle LED's in Mach - providing these work it shouldn't matter if you pressed M4 M5 M4 M5 or whatever - it examines the status of those led's at the instant you press the toggle button ;)


1160
General Mach Discussion / Re: Spindle button and M3 and M4
« on: September 15, 2016, 04:24:04 PM »
Hi

reply no.16 has your answer, it all lives in the spindle toggle button.

One thing you may find with Mach is that there are few bullet proof solutions - many ways to solve most issues :)