Hello Guest it is February 27, 2021, 01:05:54 PM

Author Topic: CNC Router Automatic Tool Changer- In search of help.  (Read 316 times)

0 Members and 1 Guest are viewing this topic.

CNC Router Automatic Tool Changer- In search of help.
« on: September 29, 2020, 02:00:08 PM »
Hello,

In search of a Mach3 professional to work one on one basis that can help me setup ATC for CNC Router.
I’m utilizing Mach3, 2010 Screenset (currently manual tool change) and have all hardware and software in place.
Basically, aid in setting up Mach3 for ATC, changing/ adding screen set and proofing/editing macros which I all ready have.
Although, I'm familiar with Mach 3 software and have a solid understanding, this is not my area of expertise.   
Please contact me with questions and fee requirements.
 Thank you.

Offline TPS

*
  •  1,996 1,996
    • View Profile
Re: CNC Router Automatic Tool Changer- In search of help.
« Reply #1 on: September 30, 2020, 04:34:03 AM »
some more Information about your TC would be great.
-some Pictures
-Information witch In-/Outputs are used
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: CNC Router Automatic Tool Changer- In search of help.
« Reply #2 on: September 30, 2020, 09:33:17 AM »
Thank you.

Attached is the photo of the machine with tool pallet.I am utilizing the Midwest Rapid Tool system. The output that controls the air solenoid is Output 5 and functions both manually and by Mach. As an example, I run the find TH center macro,  Z axis comes down in what appears to be in the correct order and orientation but does not touch the tool holder, then times out and goes to the next position. My machine is setup in metric units and it appears the macros are in imperial,that may cause issues.I believe its all in the macros. I attached the 1st tool TH center macro for review.
Re: CNC Router Automatic Tool Changer- In search of help.
« Reply #3 on: September 30, 2020, 09:37:12 AM »
Photo of machine. Did not attach to previous message.
« Last Edit: September 30, 2020, 10:03:13 AM by Tweakie.CNC »

Offline TPS

*
  •  1,996 1,996
    • View Profile
Re: CNC Router Automatic Tool Changer- In search of help.
« Reply #4 on: September 30, 2020, 04:03:54 PM »
hello, for the moment i am not realy able to follow.
are we looking for a automatic TC macro or for a Center macro? 

here: https://www.machsupport.com/forum/index.php?topic=36417.msg249874#msg249874

i have published a simple TC macro.

all this can be easy found by using the search function.
« Last Edit: September 30, 2020, 04:07:26 PM by TPS »
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: CNC Router Automatic Tool Changer- In search of help.
« Reply #5 on: September 30, 2020, 04:48:09 PM »
Both but I would like to start with the TH center Marco that I attached. As I stated, my Mach3 is setup in metric but the TH center macro appears to be in imperial. First, would that cause issues? if so, how do I correct.

Offline TPS

*
  •  1,996 1,996
    • View Profile
Re: CNC Router Automatic Tool Changer- In search of help.
« Reply #6 on: October 01, 2020, 02:34:56 AM »
ok had a look to your macro code.
it is not specific for imperial but there are a couple of DRO's witch Need to be set
via Screen Input.
here is the code where i made some comment's

Code: [Select]
'Macro M501 - Tool #1
'An OemLed(825) must be added to settings page
'Place a Tool Holder in Bay 1 orientated properly
'Attach the grounding aligator clip leads to the bottom of the Tool Holder and the zero plate
'Place a cylindrical probe in the a Tool Holder and mount in Tool Changer

'*****************************************************
'TPS all these values have to be set via screen dro's
'*****************************************************

LIFT      = GetOemDRO(1093)
CLEARANCE = GetUserDRO(1094)
PROBEFEED = GetUserDRO(1095)
MOVEFEED  = GetUserDRO(1096)


Call SetOemDRO(800,0)
Call SetOemDRO(801,0)

Code "G91 G01 Z-.10 F" & PROBEFEED 'Sets Feed speed
While IsMoving ()
Sleep 200
Wend

'****************************************************************************
'TPS dro 1109 has to be set via screen dro it is the probing depth of z-axis
'****************************************************************************
Code "G91 G31 Z" & GetUserDRO(1109) 'probing move, can set the feed rate here as well as how far to move
While IsMoving ()
Sleep 200
Wend

Code "G4 P0.5"

'****************************************************************************
'TPS dro 1092 has to be set via screen dro it is the overrun of z-axis
'****************************************************************************
PROBEDEPTH = GetOemDRO(85) + GetUserDRO(1092)
ZUP = GetOemDRO(85) + LIFT
Code "G90 G53 G0 Z" & ZUP 'Move Z to clearance height
While IsMoving ()
Sleep 200
Wend

XVAL = GetOemDRO(83) 'Get current Machine X value
YVAL = GetOemDRO(84) 'Get current Machine y value
XPLUSS = XVAL + CLEARANCE 'Add clearance value to get probing point location
XMINUSS = XVAL - CLEARANCE 'Subtract clearance value to get probing point location
YPLUSS = YVAL + CLEARANCE 'Add clearance value to get probing point location
YMINUSS = YVAL - CLEARANCE 'Subtract clearance value to get probing point location

'1ST PROBE POINT
Code "G90 G53 G1 Y" & YPLUSS &"F" &MOVEFEED 'Move to upper Y axis probe location
Code "G53 G1 Z" &PROBEDEPTH

'****************************************************************************
'TPS G90 G31 Y0.0 does not make sense, probing distance is zero
'****************************************************************************
Code "G90 G31 Y0.0 F" &PROBEFEED 'Move probe till contact with side of Tool Holder
While IsMoving() 'wait while it happens
Sleep 200
Wend
Code "G4 P0.5"
YUPPER = GetOemDRO(84) 'Get current Machine Y value
Code "G90 G53 G0 Z" & ZUP 'Move Z to clearance height
While IsMoving ()
Sleep 200
Wend

'2ND PROBE POINT
Code "G90 G53 G1 Y" & YMINUSS & "F" &MOVEFEED 'Move to lower Y axis probe location
Code "G53 G1 Z" &PROBEDEPTH
'****************************************************************************
'TPS G90 G31 Y0.0 does not make sense, probing distance is zero
'****************************************************************************
Code "G90 G31 Y0.0 F" &PROBEFEED 'Move probe till contact with side of Tool Holder
While IsMoving() 'wait while it happens
Sleep 200
Wend

Code "G4 P0.5"
YLOWER = GetOemDRO(84) 'Get current Machine Y value
YCENTER = (YUPPER + YLOWER)/2
Code "G90 G53 G0 Z" & ZUP 'Move Z to clearance height
While IsMoving ()
Sleep 200
Wend


'3RD PROBE POINT
Code "G90 G53 G1 X" & XMINUSS & "Y" & YCENTER & "F" &MOVEFEED  'Move to left X axis probe location
Code "G53 G1 Z" &PROBEDEPTH 
'****************************************************************************
'TPS G90 G31 X0.0 does not make sense, probing distance is zero
'****************************************************************************
Code "G90 G31 X0.0 F" &PROBEFEED 'Move probe till contact with side of Tool Holder
While IsMoving() 'wait while it happens
Sleep 200
Wend

Code "G4 P0.5"
XLEFT = GetOemDRO(83) 'Get current Machine X value
Code "G90 G53 G0 Z" & ZUP 'Move Z to clearance height
While IsMoving ()
Sleep 200
Wend


'4TH PROBE POINT
Code "G90 G53 G1 X" & XPLUSS & "F" &MOVEFEED 'Move to right X axis probe location
Code "G53 G1 Z" &PROBEDEPTH
'****************************************************************************
'TPS G90 G31 X0.0 does not make sense, probing distance is zero
'****************************************************************************
Code "G90 G31 X0.0 F" &PROBEFEED 'Move probe till contact with side of Tool Holder
While IsMoving() 'wait while it happens
Sleep 200
Wend

Code "G4 P0.5"
XRIGHT = GetOemDRO(83) 'Get current Machine X value
Code "G90 G53 G0 Z" & ZUP 'Move Z to clearance height
While IsMoving ()
Sleep 200
Wend
XCENTER = (XLEFT + XRIGHT)/2
Call SetUserDro(1101,XCENTER)
Call SetUserDro(1111,YCENTER)
Code "G90 G53 G1 X" & XCENTER & "Y" & YCENTER & "F" &MOVEFEED  'Move to center of tool holder
             
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: CNC Router Automatic Tool Changer- In search of help.
« Reply #7 on: October 01, 2020, 09:07:55 PM »
Thank you!

I added travel distance to the... 'TPS G90 G31 Y0.0 does not make sense, probing distance is zero
I now have it successfully picking up a tool from the tool pallet. I may have more questions as I move forward but its a good start!

Stay tuned...
Re: CNC Router Automatic Tool Changer- In search of help.
« Reply #8 on: October 02, 2020, 07:32:22 PM »
I would like to write a quick test code to enter in the MDI line. I would like to Get tool #6 then return tool #6 and then Get tool #3 . How would this code be written?

Offline TPS

*
  •  1,996 1,996
    • View Profile
Re: CNC Router Automatic Tool Changer- In search of help.
« Reply #9 on: October 03, 2020, 03:47:57 AM »
M6T6
M6T3

is for MDI line Input

the entire code for the tool Change will be in M6Start.M1S macro.

make sure Config -> General Config -> Toolchange ->Auto Toolchanger
is selected.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.