Page 2 of 2 FirstFirst 12
  1. #11
    Hi Guys, Sorry its been ages since I've last updated. I've been stuck twiddling my thumbs a little as I am constantly waiting for bits to turn up.

    I wired up most the machine. I've managed to get both axis's working, the spindle turning and the tool post turning.

    The Control card from CNC4PC is very limited in terms of inputs. I have had to purchase a further Parallel post card and breakoutboard to connect the home and limit switches to.

    I'm struggling to get the spindle to turn at the desired speed. It seems to just stay to one constant speed even when using the mach3 tuning tool. I am also struggling to work out which core on the encoder goes to what, i.e are they pairs do they need 5V and Gnd etc

    With regards to the tool post, that bit seems to be rather simple, all you need to do is tell mach3 to watch the grey code for the correct tool then stop and reverse then switch back over to the spindle. No voltage need to be applied once is fully locked in, though it wouldn't be possible to apply any constantly anyway as you can only have either the tool post on or the spindle on at any one time.

    Oh and does anyone know how many steps per inch or whatever it is?

    One final thing, any CAM recommendations?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	DSCF0384.JPG 
Views:	239 
Size:	315.3 KB 
ID:	2106   Click image for larger version. 

Name:	DSCF0383.JPG 
Views:	209 
Size:	533.6 KB 
ID:	2107  

  2. #12
    Well its been a while since I updated, I managed to blow up the breakout board so I had to fit some new chips anyway...

    I have made some adjustments to the program to suit the Mirac the way I have it set up. So in Mach3 when the code
    T0101 M6 Appears this is saying T offset, toolnumber then M6 is tool change macro

    Heres the macro:

    Dim Tool As Integer
    Dim OldTool As Integer
    Dim NewTool As Integer
    Dim MaxToolNum As Integer

    MaxToolNum = 8 'Maximum positions on Automatic Tool Changer
    Tool = GetSelectedTool() 'Get the toolnumber from the command e.g T0101 M6 Tool number 1
    OldTool = GetCurrentTool() 'Get current tool number


    Call StartToolChanger

    While NewTool <> Tool
    Call CheckPins
    Wend

    Call StopTool

    SetCurrentTool(NewTool)

    '//// Subroutines /////////

    Sub StartToolChanger
    ActivateSignal(Output3) 'Turn on output signal to turn off spindle and turn on the atc
    ActivateSignal(Output4) 'Turn atc forward
    End Sub


    Sub CheckPins
    If IsActive(Input3) And Not IsActive(Input2) And Not IsActive(Input1) Then
    NewTool = 1
    End If
    If Not IsActive(Input3) And Not IsActive(Input2) And Not IsActive(Input1) Then
    NewTool = 2
    End If
    If Not IsActive(Input3) And Not IsActive(Input2) And IsActive(Input1) Then
    NewTool = 3
    End If
    If IsActive(Input3) And Not IsActive(Input2) And IsActive(Input1)Then
    NewTool = 4
    End If
    If IsActive(Input3) And IsActive(Input2) And IsActive(Input1) Then
    NewTool = 5
    End If
    If Not IsActive(Input3) And IsActive(Input2) And IsActive(Input1)Then
    NewTool = 6
    End If
    If Not IsActive(Input3) And IsActive(Input2) And Not IsActive(Input1) Then
    NewTool = 7
    End If
    If IsActive(Input3) And IsActive(Input2) And Not IsActive(Input1) Then
    NewTool = 8
    End If
    End Sub

    Sub Stoptool
    DeActivateSignal(Output4) ' Stop running the ATC forward, if you don't do this the inverter will stop and the whole unit
    ' Will need to be turned off and on again
    ActivateSignal(Output5) 'Run ATC in reverse
    Sleep 3000 'Wait 3 seconds to allow the toolpost to lock in
    DeActivateSignal(Output5) 'Stop running ATC in reverse
    DeActivateSignal(Output3) 'Turn off output to turn spindle back on
    End Sub

    I've yet to test it but it works fine in VBscript. Should have a chance to test it tommorow.

    The outputs corrospond to the following:

    Output 3 is the ATC power contactor and Spindle Power Contactor, the Spindle Power contactor is wired to the normally closed side of the relay and and ATC power contactor is wired to the normally open side of the relay

    Output 4 is the ATC Forward Relay

    Output 5 is the ATC Reverse Relay

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 19
    Last Post: 21-08-2013, 11:20 PM
  2. Help, electronics
    By totts in forum Motor Drivers & Controllers
    Replies: 2
    Last Post: 14-09-2011, 09:09 PM
  3. FOR SALE: Denford Mirac CNC Lathe with Auto Tool Changer For Sale
    By CHudson in forum Items For Sale
    Replies: 3
    Last Post: 19-02-2011, 12:11 AM
  4. RFQ: Looking for somone to finish conversion Denford Mirac with Mach3
    By CHudson in forum Projects, Jobs & Requests
    Replies: 0
    Last Post: 14-10-2010, 08:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •