Hello Guest it is May 08, 2024, 09:01:22 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 - Graham Waterworth

551
Mach3 under Vista / Re: homing question
« on: August 20, 2020, 07:47:42 PM »
Sticky/Slow switch?

552
You need to look at the M6Start macro

553
Mach4 General Discussion / Re: Touch sensor mounted at side of spindle.
« on: August 20, 2020, 07:09:13 PM »
you need to add code to the probing macros you are using allowing for the distance in x&y to the centre of the spindle

554
Mach3 under Vista / Re: homing question
« on: August 20, 2020, 07:01:40 PM »
Check what is in the Home Off. column under Homing/Limits
 

555
Mach4 General Discussion / Re: CV Tuning Wizard
« on: August 18, 2020, 02:52:10 PM »
A picture of the problem and a sample of the code may help

556
Do you have Softlimits turned on?

557
Mach4 General Discussion / Re: CV Tuning Wizard
« on: August 18, 2020, 08:39:10 AM »
You can add a G61 to the start of the finishing path to turn off CV, it could also be you need to slow the feed for the corners.


558
Check out G61 exact stop mode, finish last move before next command, no blending and G64 constant velocity mode normal profiling mode with blending of moves.

559
It is normal to calibrate the probe at 0,0 once that is done the exact offset from the probe to the spindle c/l can be measured using a clock and the offset stored in some DRO's

Then when setting a fixture datum the probes found position can be offset with a G10 command to correct the position ether in the probe macros or with a MDI/button command on screen.



560
Here is the code I did for pawl lock back type tool changers it uses incremental moves to stop the counting errors, it may not be right for a straight swap but the code may be of use.

Code: [Select]

 ' (C) Graham Waterworth Mach forum.
' rough draft for a lock back to pawl type tool changer
' this has not been tried on any tool changer
' use/modify it as you wish, I take no responsability
' for any damage to you or your equipment.

If IsLoading() Then
  ' do now't, program loading
Else

' dim some vars

  Dim next_tool As Integer
  Dim current_tool As Integer
  Dim steps_per_tool As Integer
  Dim steps_after_pawl As Integer
  Dim max_tools As Integer
  Dim holdingDRO As Integer
  Dim rotateCW As Integer
  Dim moves As Integer
  Dim fast_feed As Integer
  Dim slow_feed As Integer
  Dim axis As String
  Dim zero As Integer
  Dim to_pawl As Integer

' set up some vars

  zero = 0
  axis = "A" ' change to what ever axis you use for tool changer
  rotateCW = 0 ' set to 1 for CCW and 0 for CW rotation
  max_tools = 6 ' number of tools on turret
  steps_per_tool= 100 ' set to what ever it needs to be
  steps_after_pawl = 10 ' set to amount to clear pawl
  steps_to_lock_back_on_pawl =10 ' number of steps to lock onto pawl
  holdingDRO=1050 ' or what ever you have set screen dro to
  next_tool = GetSelectedTool()
  current_tool = GetCurrentTool()
  fast_feed = 2500 ' set to safe rapid rotation speed
  slow_feed = 500 ' set to safe creep speed back onto pawl.

' do some tool changing

  If next_tool > max_tools Then
    Message "Tool number too high, program stopped."
    Code "M30"
    End
  End If
  If next_tool<1 Then
    Message "Tool number too low, program stopped."
    Code "M30"
    End
  End If
  If next_tool=current_tool Then
    ' do nowt, we got it already
  Else
  ' lets do some changing
    If next_tool>current_tool Then moves=next_tool-current_tool 
    If next_tool<current_tool Then moves=max_tools-current_tool+next_tool
    rapid_move = (moves * steps_per_tool) + steps_after_pawl
    to_pawl = zero - steps_to_lock_back_on_pawl
    If rotateCW =1 Then
      rapid_move = zero - rapid_move
      to_pawl =  Abs(to_pawl)
    End If
    Code "G92 " & axis & "0"
    Code "G91 G94 G61"
    Code "G01 " & axis & rapid_move & "F" & fast_feed
    Code "G04 P250"
    While IsMoving()
    Wend
    Code "G01 " & axis & to_pawl &  "F" & slow_feed
    While IsMoving()
    Wend
    SetCurrentTool next_tool
    SetUserDRO holdingDRO, next_tool
    Code "G90" ' back to absolute movement
  End If
End If

' end of tool change