Hello Guest it is April 19, 2024, 02:55:48 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 - Testing

Pages: 1
1
General Mach Discussion / Re: Lathe tool turret macro
« on: April 20, 2021, 04:19:24 PM »
Thank You so much, I have been working on this problem for the last few days. Your fix really made my day.
 

2
General Mach Discussion / Lathe tool turret macro
« on: April 20, 2021, 10:06:37 AM »
I am having some trouble getting my Lathe's tool change macro to work. Any help would be appreciated.
 System(s):
 (1) Computer: Dell Optiplex 780, Windows 7 64bit home, 4gb Ram, 250gb Solid State HardDrive, intel core duo 3ghz processor. Using Mach3.
 (2) External Motion Controller: Warp9's Smooth stepper, With C25S - Dual Port SmoothStepper Board(Push Lock Terminals) Breakout board, and 5vdc 1amp power supply.
 (3) Machine: Retrofit Lablond cnc lathe, With Gecko Drives and Automatic tool turret(Which is where my problem is).

Problem(s):
 (1): After entering M6T(Tool Number (ex.M6T3)) Mach 3 clears the current tool and then asks me to enter current tool and then desired tool.
 (2): After tool change is complete, the tool current tool is updated but the offsets are not.

The tool turret is a simple 4 station mechanical one that uses CW to rotate one tool position and then CCW to lock it into place, the process is repeated until the desired tool  is reached.

The Macro I have been using is one I found on this forum and then modified slightly to fit my needs.

'Tool change macro for 4 tool turret
Sub Main()
   'Sets variable OldTool to what is currently loaded
   OldTool=GetCurrentTool()
   
   'Sets Variable MaxToolNum to the max number of tools possible
   MaxToolNum=4
   
   'Sets variable Newtool to the one being selected with M6 T#
   tool = GetSelectedTool()
        NewTool = tool   
   
   'Get positions before moving to do tool change
   x = GetToolChangeStart( 0 )
   y = GetToolChangeStart( 1 )
   z = GetToolChangeStart( 2 )
   a = GetToolChangeStart( 3 )
   b = GetToolChangeStart( 4 )
   c = GetToolChangeStart( 5 )
   
   'If the current tool loaded is 0 or greater than 4 then tool has been lost
   'so need to ask what tool is currently loaded
   While OldTool=0 Or OldTool>4
   OldTool=Question ("Current tool unknown, enter tool in spindle 1 to " & MaxToolNum)
   Wend
   
   'Sets CurrentTool to Oldtool in case it was lost and entered above
   SetCurrentTool(OldTool)

   'When the tool asked for is invalid then this makes you select a valid tool
   While NewTool > MaxToolNum Or NewTool <1
   NewTool = Question ("Invalid tool chosen, enter tool number 1 to " & MaxToolNum)
   Wend
   
        'If the tool asked for is the same one that is already loaded then exit macro
   If NewTool=OldTool Then
   Message "Tool already loaded or tool not specified with T# (ex:M6 T4)"
      Exit Sub
   End If

'Turn off soft limits if they are on
If GetOEMLED(23) Then
DoOEMButton(119)
End If

'Sets ChangeNums to 0 for safety in case it is not at 0
ChangeNums=0

'Makes the magic happen and moves the proper number of times if new tool is higher than old
If NewTool>OldTool Then
   For ChangeNums=1 To NewTool-OldTool
   
   'Moves Z axis to the top of tool change
   ActivateSignal(Output2)
   Sleep 3000
   DeActivateSignal(Output2)
   Sleep 500

   'Moves back to bottom of tool change area
   ActivateSignal(Output3)
   Sleep 2000
   DeActivateSignal(Output3)
   Sleep 500
   
   Next
   
'Makes the magic happen and moves the proper number of times if new tool is lower than old   
Else
   For ChangeNums=(OldTool-NewTool) To 3
   
   'Moves Z axis to the top of tool change
   ActivateSignal(Output2)
   Sleep 3000
   DeActivateSignal(Output2)
   Sleep 500


   'Moves back to bottom of tool change area
   ActivateSignal(Output3)
   Sleep 2000
   DeActivateSignal(Output3)
   Sleep 500

   Next
End If
   
'Should be a succesful tool change at this point so this sets the NewTool as the current tool
SetCurrentTool(NewTool)

'Turn back on soft limits
DoOEMButton(119)
End Sub           


3
General Mach Discussion / Re: Software stops mid opperation.
« on: March 13, 2019, 05:27:18 PM »
  I am using a desktop.

  I have been wanting to upgrade to an external motion controller for a while but just haven't had the time to research it and find some good boards. I will look into the controllers that you suggested and see about upgrading now.I am using the printer for part of a home business and just need it to run reliably.

Thanks for all your time and help.  Your info will save me a lot of time and grief.

4
General Mach Discussion / Re: Software stops mid opperation.
« on: March 13, 2019, 04:55:58 PM »
Is there anything else or should I give it a try now?

5
General Mach Discussion / Re: Software stops mid opperation.
« on: March 13, 2019, 01:06:38 PM »
 Ok, Got that done.

6
General Mach Discussion / Re: Software stops mid opperation.
« on: March 12, 2019, 06:50:21 PM »
My computer does have the interface parallel port.

Thanks for the help, I will get back to you tomorrow as I am currently running a print.

8
General Mach Discussion / Re: Software stops mid opperation.
« on: March 12, 2019, 06:05:32 PM »
I am using a parallel port, Running windows 7 on a Dell OptiPlex 760, and it is home-made.
thanks

9
General Mach Discussion / Software stops mid opperation.
« on: March 12, 2019, 03:30:42 PM »
Hi,
  I am using mach3 software to run a 3d printer. It usually runs fine but once it a while it just stops. The printer acts like it would if a limit switch were triggered but the software doesn't show that any has been and just seems to be paused mid print. From this point on the software and printer seem to have no interaction with each other. Then, after I close and restart the software, it will run fine again. The problem may happen any time during a print and does not consistently stop at any specific point in the gcode.

Any help would be appreciated.

Pages: 1