Hello Guest it is May 07, 2024, 12:48:33 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 - Graham Waterworth

601
G-Code, CAD, and CAM discussions / Re: Mach3 G54 to G55 issue
« on: June 12, 2020, 08:52:24 PM »
The only thing I can see is you have no M06 on tool 7 in the first profile.

Mach3 will not display the fixture offsets in the correct place due to a limitation in the way it works, the tool will be in the correct place just the graphics are messed up.


602
FAQs / Re: Tripping Limit Switches
« on: June 12, 2020, 08:37:25 PM »
If you have mechanical switched it could be you need to up the debounce in config. or it could be noise on the switch wires, they should be twisted pair shielded with the shield grounded at one end only.

Or it could be a loose connection that is triggered by the cutting resonance.

 

603
Mach4 General Discussion / Re: Spindle Brake Switch
« on: June 12, 2020, 11:49:30 AM »
Yes but with a double pole switch you can signal Mach that the switch is open and in the M3.m1s macro check the switch.

604
Mach4 General Discussion / Re: Spindle Brake Switch
« on: June 11, 2020, 08:39:28 PM »
The safest way is to wire the switch into the spindle run relay so it can not energise.

605
Mach4 General Discussion / Re: EMCO 6P CNC retrofit - M6 Issue
« on: June 11, 2020, 08:31:27 PM »
This is a Mach3 M6Start.m1s file for an Emco that I did some time back, you should be able to replace the relevant calls with Mach4 ones and I am sure we can help if you get stuck.

Code: [Select]
' Emco 8 station turret index
' Version 1.0.2
' (c) G. Waterworth 11/12/2007

Sub Main()
If IsLoading() then
  ' do nowt
Else
  OldTurretPos=(GetOEMDRO(824))   'current tool position
  NextTool=GetSelectedTool()      'tool to be indexed
 
  If OldTurretPos<>NextTool Then
    ' new tool required
    If NextTool<1 Or NextTool>8 Then 'valid tool check
      Message("Next Tool out of range")
      Exit Sub
    End If

    ActivateSignal(OUTPUT4)   'rotate Turret

    '=== Index Tool ===
    Select Case NextTool
Case 1
count=1
Case 2
count=3
Case 3
count=2
Case 4
count=6
Case 5
count=4
Case 6
count=12
Case 7
count=8
Case 8
  count=9
    End Select

    thistool=OldTurretPos

    While thistool<>count
      sensors=0
      While sensors=0
        if IsActive(OEMTRIG1) then sensors=sensors+1
        if IsActive(OEMTRIG2) then sensors=sensors+2
        if IsActive(OEMTRIG3) then sensors=sensors+4
        if IsActive(OEMTRIG4) then sensors=sensors+8
      Wend
      thistool=sensors
    Wend

    Code"G04 P50"
    While Ismoving()
    Wend
 
    DeActivateSignal(OUTPUT4) 'stop turret rotation
    SetCurrentTool(thistool)
  End If
End If
End Sub           

'The actual timings are:-
'
'opto 1 2 3 4
'pin 10 11 12 13
'value 1 2 4 8
'Tool 1 on off off off
'Tool 2 on on off off
'Tool 3 off on off off
'Tool 4 off on on off
'Tool 5 off off on off
'Tool 6 off off on on
'Tool 7 off off off   on
'Tool 8 on off off on

606
Why not do it in g-code with an M98 and the file name, store the programs in the subroutine folder inside mach.

607
Mach4 General Discussion / Re: Loop-d-loop G41
« on: June 08, 2020, 08:34:54 PM »
Was the code written for G41 from the start or have you added it later?

608
General Mach Discussion / Re: Puzzled :(
« on: June 05, 2020, 01:22:40 PM »
Gaining steps is usually noise on the step wire, are you using shielded twisted pair cable on your signal wires grounded at one end only.


609
Mach3 under Vista / Re: Soft Limits Issue
« on: June 03, 2020, 08:55:44 PM »
Softlimits work off the machine coordinates so if your machine is at home in picture one then switch to machine coords and move to the opposite limits and that will be your min values minus xyz, home should be your max values.


610
When using servo motors the steps per is based on the encoder pulses so a 1024 per rev encoder would be 4096 steps divided by your pitch and drive ratio.