AXYZ 4008 ATC CNC router control retrofit

More
23 Apr 2014 01:56 #46226 by papaours
Atc is working

This afternoon i have tryed the sub routine code i found on the net and it worked!

I must ad the tool ejected, tool locked input and soleinod to moove up the spindle....


To open and close the drawbar i have use m64 and m65 instead of m101/m102

The subroutine, check if there is a tool in the spindle, and drop it before to load one.

I hop it could help you.

Mael.


( ;Pick tool subroutines )
O<PickTool1> SUB
g53 G0z0 (safe height)
g53 g0 x0 y5.2 ( over slot )
g53 g0 z-65
m64p2
g53 g0 z-67.5
g4p3
g53 g0 z-70.5
m65p2
g53 g0 z0
#1000 = 1 (; toolchange success )
#1001 = [#5400]

O<PickTool1> endsub

O<PickTool2> Sub ( PickTool2 )
g53 G0z0 (safe height)
g53 g0 x0 y27.2 ( over slot )
g53 g0 z-65
m64p2
g53 g0 z-67.5
g4p3
g53 g0 z-70.5
m65p2
g53 g0 z0
#1000 = 1 (; Tool change success )
#1001 = [#5400]

O<PickTool2> endsub

O<PickTool3> Sub ( PickTool3 )
g53 G0z0 (safe height)
g53 g0 x0 y49.2 ( over slot )
g53 g0 z-65
m64p2
g53 g0 z-67.5
g4p3
g53 g0 z-70.5
m65p2
g53 g0 z0
#1000 = 1 (; Tool change success )
#1001 = [#5400]

O<PickTool3> endsub

O<PickTool4> Sub ( PickTool4 )
g53 G0z0 (safe height)
g53 g0 x0 y71.2 ( over slot )
g53 g0 z-65
m64p2
g53 g0 z-67.5
g4p3
g53 g0 z-70.5
m65p2
g53 g0 z0
#1000 = 1 (; Tool change success )
#1001 = [#5400]

O<PickTool4> endsub

( ;Drop tool subroutines )

O<DropTool1> Sub ( DropTool1 )
g53 G0z0 (safe height)
g53 g0 x0 y5.2 ( over slot )
g53 g0 z-65
m64p2
g4p3
m65p2
g53 g0 z0
O<DropTool1> endsub

O<DropTool2> Sub ( DropTool2 )
g53 G0z0 (safe height)
g53 g0 x0 y27.2 ( over slot )
g53 g0 z-65
m64p2
g4p3
m65p2
g53 g0 z0
O<DropTool2> endsub

O<DropTool3> Sub ( DropTool3 )
g53 G0z0 (safe height)
g53 g0 x0 y49.2 ( over slot )
g53 g0 z-65
m64p2
g4p3
m65p2
g53 g0 z0
O<DropTool3> endsub

O<DropTool4> Sub ( DropTool4 )
g53 G0z0 (safe height)
g53 g0 x0 y71.2 ( over slot )
g53 g0 z-65
m64p2
g4p3
m65p2
g53 g0 z0
O<DropTool4> endsub

O<Change_Tool> sub (change_tool)

( ;Use #1000 to indicate successful toolchange )
( Use #1001 to indicate old tool )
#1000 = 0 ( ; Tool change not performed )
O100 if [ [#5400] eq [#1001] ]
(msg,Tool already in spindle)
o100 endif
( ; check tool in spindle and exit sub )
o101 If [ [#5400] ne [#1001] ]
o102 if [[#5400] ge 5 ]
(msg,Please select a tool from 1 to 4.)
m0 ; stop
o102 else
( ;Drop current tool )
o103 If [[#1001] eq 1]
O<DropTool1> call
o103 endif
o104 If [[#1001] eq 2]
O<DropTool2> call
o104 endif
o105 If [[#1001] eq 3]
O<DropTool3> call
o105 endif
o106 If [[#1001] eq 4]
O<DropTool4> call
o106 endif
( ;Pick new tool )
o107 if [[#5400] eq 1]
O<PickTool1> call
o107 endif
o108 if [[#5400] eq 2]
O<PickTool2> call
o108 endif
o109 if [[#5400] eq 3]
O<PickTool3> call
o109 endif
o110 if [[#5400] eq 4]
O<PickTool4> call
o110 endif
o102 endif
o101 endif
o111 If [[#1000] eq 1]
o111 endif

O<Change_Tool> EndSub




m6 t1
o<Change_Tool> call
g0 x0 y0
g0 z50
m6 t2
o<Change_Tool> call
g0 x0 y0
g0 z50
m6 t3
o<Change_Tool> call
g0 x0 y0
g0 z50
m6 t4
o<Change_Tool> call
g0 x0 y0
g0 z50
m6 t0
o<Change_Tool> call
g0 x0 y0
g0z50
m2
The following user(s) said Thank You: tsmutz5

Please Log in or Create an account to join the conversation.

More
23 Apr 2014 02:54 #46228 by tsmutz5
Wow Mael !

This is great news.

I'm looking forward to implementing this sub routine.

This is a huge help, thank you.

Tyler

Please Log in or Create an account to join the conversation.

More
24 Apr 2014 04:10 #46268 by newbynobi
Hallo Papaours,

Have you allready changed to gmoccapy?
As i made/make gmoccapy, i can tell you, that you don't have to worry, most changes from Axis to gmoccapy happened without any Problems.

And please show us a Video running your machine with gmoccapy.

Norbert

Please Log in or Create an account to join the conversation.

More
30 Apr 2014 03:42 #46480 by tsmutz5
I've got the homing routine working on the Y axis.

Now the problem I'm running into it getting them all to work together.

The home switches are pnp proximity sensors that go to the same pin for X-Y and another pin for Z-A. They are also the limit switches.

I'm not sure how to configure the .hal /.ini to connect X-Y and Z-A to two separate pins and not fire a limit error on X while homing Y

From the Wiki:

"3.4. HOME_IGNORE_LIMITS

Can hold the values YES / NO. The default value for this parameter is NO. This flag determines whether LinuxCNC will ignore the limit switch input for this axis while homing. Setting this to YES will not ignore limit inputs for other axes. If you do not have a separate home switch set this to YES and case connect the limit switch signal to the home switch input in HAL. LinuxCNC will ignore the limit switch input for this axis while homing. To use only one input for all homing and limits you will have to block the limit signals of the axes not homing in HAL and home one axis at a time."

I'm not sure how to go about making the changes shown in red ^.

I've posted my .hal and .ini below if anyone could look it over and advise I'd be most grateful.


Tyler

File Attachment:

File Name: AXYZ_4008_ATC_3.hal
File Size:10 KB


File Attachment:

File Name: AXYZ_4008_ATC_3.ini
File Size:5 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
30 Apr 2014 03:48 #46482 by tsmutz5
@ newbynobi

I'd like to try Gmoccapy. It looks great.

On 2.6 its not available to select by PNCCONF.

Do you just need to change your .ini to DISPLAY=Gmoccapy ?


Thanks again.

Tyler

Please Log in or Create an account to join the conversation.

More
30 Apr 2014 05:28 #46484 by andypugh

I'm not sure how to go about making the changes shown in red ^.


net some-signal-name axis.0.home-sw-in axis.0.pos-lim-sw-in axis.0.neg-lim-sw-in

net some-signal-name parport.0.pin-00-in (or whatever)

www.linuxcnc.org/docs/html/man/man9/motion.9.html

You can put it all on one line of HAL, if you prefer. The lines I gave can be anywhere in the HAL that makes sense to you.
You want a different signal-name for each switch signal, but the X and Y would use the same signal name. A typical name would be "x-y-home-both" but can be anything you choose.

You will also need to se the "HOME_IS_SHARED" value in the INI:
www.linuxcnc.org/docs/html/config/ini_ho...homing-configuration

Please Log in or Create an account to join the conversation.

More
29 Jul 2020 00:34 #176318 by reyntjensm
What a great story! Great machine you have over there. Within our company we have a huge axyz 6*3.8m, sadly enough it's driven by steppers... But it works good for the aluminum sheets we mill with it. I'm new to linuxCNC and the mesa cards. We also have a AXYZ millennium but the controller was broken for years. I now bought a mesa card and got the thing to move again after such a long time. On the millennium i have a 2.2kW spindle with a commander se drive. Could you give me some more information on how you got the commander se working with the mesa card and linuxCNC? What kind of materials are you milling with your machine? I didn't knew AXYZ had servo driven machines... How many tools can you store in the ATC?

Please Log in or Create an account to join the conversation.

More
29 Jul 2020 15:53 - 29 Jul 2020 16:06 #176395 by bevins

What a great story! Great machine you have over there. Within our company we have a huge axyz 6*3.8m, sadly enough it's driven by steppers... But it works good for the aluminum sheets we mill with it. I'm new to linuxCNC and the mesa cards. We also have a AXYZ millennium but the controller was broken for years. I now bought a mesa card and got the thing to move again after such a long time. On the millennium i have a 2.2kW spindle with a commander se drive. Could you give me some more information on how you got the commander se working with the mesa card and linuxCNC? What kind of materials are you milling with your machine? I didn't knew AXYZ had servo driven machines... How many tools can you store in the ATC?


I just did two AXYZ routers with steppers. 7i92-7i76 worked great. Did each in a day. AXYZ machines are a blast to do.

AXYZ Router config

That is an AXYZ machine I did including connecting sp[indle inverter Commander. Just one parameter to change in Inverter.

Energize a relay with spindle-enable and feed that to the inverter. Then feed the inverter your spindle out while giving 7i76 0-10v and everything should be honky dory.
Last edit: 29 Jul 2020 16:06 by bevins.

Please Log in or Create an account to join the conversation.

More
31 Jul 2020 12:56 #176660 by reyntjensm
Wow great! Thank you for the info! This was also my first experience with linuxcnc. I got the machine moving again after a few hours. The mesa cards are great! Do you have any info on the accuracy of your machine? What type of work do you preform on it?

Please Log in or Create an account to join the conversation.

More
31 Jul 2020 15:32 #176674 by bevins

Wow great! Thank you for the info! This was also my first experience with linuxcnc. I got the machine moving again after a few hours. The mesa cards are great! Do you have any info on the accuracy of your machine? What type of work do you preform on it?


It was a customers machine.

Please Log in or Create an account to join the conversation.

Moderators: cncbasher
Time to create page: 0.115 seconds
Powered by Kunena Forum