Hello Guest it is May 05, 2024, 12:30:08 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 - Davek0974

1391
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: August 14, 2016, 10:41:03 AM »
Got the panel wired back up, all tested ok :)

Got a few bits to sort out, need a longer cable for the canbus to the MPG module, tidy up the cables once i figure out how it all goes in use, fit the chip guards to the drive belts and z axis, strip and finish the control panel.

Nearly there but moved on a lot in a few days :)

1392
General Mach Discussion / Re: Tool Offset Macro...
« on: August 14, 2016, 10:30:23 AM »
Hmm, i thought I had this working, seems not.

My routine seems to be coming up with odd results, here's the setup...

Ref tool = 126mm long approx
T1 = 145mm long approx

With ref tool in and zeroed at touch-plate surface manually, Machine Z = -66.7062
With T1 in and run to the touch-plate manually, Machine Z = -45.9865
So my length difference = 20.7187mm

I *think* the tool table should show 20.7187 (positive because T1 length > Ref Tool)

BUT

What it's showing is 25.970250 - totally wrong and off by some 5mm.

Anyone care to whale in and offer some help here?
Macro for height setting is below.


Sub Main()
' Tool Height Offset Measuring
' Based on the macros created be Big Tex -  May 25 2010
' and modified by D. Kearley 29 July 2017 with help from Hood and others on the Mach3 forum
' Machine Z should be set manually with 3d Height Probe first to top of touch-plate

Dim ZNew, ZMachineEnd
Dim ClearAllow, NewOffSet
Dim Response, Style

Style = 48
If GetOemLED(800) Then
  Response = MsgBox ("Mach In Reset, Enable And Start Again", Style, "Tool-Height Setting")
  End
End If

Style = 48
If GetOemDRO(42) > 0 Then
  Response = MsgBox ("Please Use A Zero Offset Length Tool For This Routine", Style, "Tool-Height Setting")
  End
End If

Style = 3 + 32 + 256
Response = MsgBox ("Reset Reference Tool Offset?", Style, "Tool-Height Setting")
If response = 6 Then 'user pressed yes
  SetVar(500, GetOEMDRO(85))   ' Get Current Z Machine Coordinate at first pass of routine - this was set manually with 3d-Taster
End If
If Response = 2 Then 'user pressed cancel
  End
End If

' Move the Z axis up so 3d-taster can be replaced with a tool
Code "G0 G53 Z0" 'move in machine coordinates to Z zero

Style = 64
Response = MsgBox ("Please Mount First Tool In Spindle", Style, "Tool-Height Setting")

'//////// the block below will set all your reusable vars depending on Inch or mm.
'//////// this sets the vars so you only need ONE large block of probing code.

If GetOEMLED(801) Then  ' On = English Measure INCH
  FirstProbeDist = 6.0 ' Probe down 6 inches
  FirstRetractDist = 0.05 ' Then retract .05 inch
  SecProbeDist = 0.25 ' Then probe down .25 inches
  FirstProbeFeed = 10.0 ' First probe feed @ 10 ipm
  SecondProbeFeed = 1.0 ' Second probe feed @ 1 ipm
  ClearAllow = 0.125 ' Max Allowable Clearance = Z Machine Zero - .125in
Else ' Off = Metric Measure MM
  FirstProbeDist = 150.0 ' Probe down 150mm
  FirstRetractDist = 1.0 ' Then retract 1mm
  SecProbeDist = 6.0 ' Then probe down 6mm
  FirstProbeFeed = 250.0 ' First probe feed @ 250 mm/min
  SecondProbeFeed = 25.0 ' Second probe feed @ 25 mm/min
  ClearAllow = 2.0 ' Max Allowable Clearance = Z Machine Zero - 2mm
End If

'//////// Error Condition checking...

If GetOemLED(16)<>0 Then ' Check for Machine Coordinates
  Style = 48
  Response = MsgBox ("Please Change To Working Coordinates", Style, "Tool-Height Setting")
  Exit Sub ' Exit if in Machine Coordinates
End If

If GetOemLED(825)<>0 Then
  Style = 48
  Response = MsgBox ("Touch-Plate Is Grounded, Check Connection And Try Again)", Style, "Tool-Height Setting")
  Exit Sub ' Exit if probe is tripped
End If

'//////// Start Probing Code, Probe In -Z direction.
'//////// The vars will be Inch or Metric from above if/else statment

Style = 64
Response = MsgBox ("Ensure Touch-plate Is In Position", Style, "Tool-Height Setting") ' Get user to check probe plate

Code "F" & FirstProbeFeed ' Set feedrate to 10 ipm or 300mm/min
Code "(Probing for Z Zero.....)" ' Puts this message in the status bar
ZNew = (GetOEMDro(802) - FirstProbeDist ) ' Probe move to current Z - 6 inches
Code "G90 G31 Z" & Znew
  While IsMoving() ' Wait for probe move to finish
  Wend
ZNew = GetVar(2002) ' Read the touch point
Code "G0 Z" & ( ZNew + FirstRetractDist ) ' Move up .05 inch or 1mm in case of overshoot
  While IsMoving()
  Wend

  Code "F" & SecondProbeFeed ' Set feedrate to 1 ipm or 25mm/min
ZNew = (GetOEMDro(802) - SecProbeDist ) ' Probe move to current Z - .25 inches
Code "G90 G31 Z" & Znew
  While IsMoving()
  Wend
ZNew = GetVar(2002) ' Read the touch point
ZMachineEnd = GetVar(2002) 'store the final machine co-ordinate

Code "G0 G53 Z0" 'Fully Retract the Z ready for next tool
While IsMoving()
Wend

NewOffset = ZMachineEnd - GetVar(500)'calculate the result

Tool = Question("Enter Tool Number For This Offset")

Code "G90" & "G10" & "L1" & "P" & Tool &"Z" & NewOffset

DoOemButton(121)  'show the tooltable


End Sub                

1393
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: August 14, 2016, 03:39:08 AM »
Thanks Hood, the good thing with the control panel is that I have plenty of spare cable-cores going back to the main cabinet and also its the easiest part to strip, rebuild or replace later on when i start to realise what is missing or in the wrong place :)

1394
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: August 13, 2016, 03:26:21 PM »
no, not that much really.

Full story is that i built a mini-mill for cutting aluminium parts and to learn CNC, plus the fun of the build ;) Then realised that it took up a lot of workshop real-estate so decided to convert the Bridgeport mill as it was under-used, the idea being that the one machine could do both jobs - heavy stuff plus small light stuff. If that succeeded I would then sell the mini-mill to recover some cash.

Thats the theory anyway ;)

1395
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: August 13, 2016, 02:29:45 PM »
Looks very nice Dave.
What is the aux spindle for?

Its a 24k rpm water-cooled spindle, great for aluminium and engraving etc, bridgeport only goes to 3000rpm.

1396
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: August 13, 2016, 10:24:17 AM »
Got the panel finished, bench-tested, all passed 100% :)

Got the pendant rough-wired so i could bench-test the panel, seems functional.

All axes homed and jogged perfectly, no surprises, e-stop system seems to work ok.

Managed to lug the panel into the cabinet, nearly ruptured myself but it's in now and bolted down.

Tomorrow will be final wiring on the switches and limits etc, plus re-rigging the pendant for the next power-up test. Then I'll probably strip the pendant and send it out for powder-coating, or just spray it if impatience takes over ;)

1397
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: August 13, 2016, 06:50:27 AM »
Thats the thing, i'm only looking at losing about 20mm on Z so will still have 100mm + to play with - thats more than I have on the mini-mill so should be ok, the tools are all small apart from the Haimer - will have to move the table out the way to get that in i think. I can now see the advantages of a large Z travel, but sadly will never have it on this build.

Wiring the pendant up today, panel is finished, nearly testing time.

1398
General Mach Discussion / Re: Normally Open VS Normally Closed
« on: August 13, 2016, 03:13:44 AM »
Thanks Hood,
Is there a known method to simply look at the cslabs output in question.  Reason being, I have a bunch of things planned that would require looking at any given output state.  Just getting started and seems none of the documentation is correct.  Could be my old eyes.....


Yes there is but i cant recall it, i found a document on their website that shows exactly how to examine every out and in port state, something like GetOutput(Bit...) but don't try that it was guess.

The docs are on their site somewhere.

Or have a look in their pre-writtenmacro samples, they use the codes a lot

1399
General Mach Discussion / Re: machine homes by itself while machining
« on: August 13, 2016, 03:05:11 AM »
I thought homing was blocked on Mach while running code?

Anyways, do you have a button on your controller mapped to Ref All ?? If so it could just be a short in the wiring of the controller - cable failing somewhere.

Maybe try running with X-Box unplugged.

1400
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: August 13, 2016, 03:01:18 AM »
Already there hood, here is a design i'm modifying / copying (pic below)

Its a H shape and my version will have a 20mm spigot that goes into an R8 collet in the spindle.

This part is only the top plate of the H, one plate would not be stable enough i think.

;)