Atc mfunc.6 could use some help (Resolved)

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help

Post by WINSTON »

New video of what exactly its doing . Maybe the gcode needs a callout for a tool changer for it to use the macro ?
WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help

Post by WINSTON »

Ok thanks
WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help

Post by WINSTON »

Ok found out that if m6t5 was on the same line it would go right through the macro but if I did m6 on one line and t5 on the next it would go to the macro .
Could be hardly anything is working in the macro and I could not see it.
Thanks for the help cncsnw.
cncsnw
Posts: 3763
Joined: Wed Mar 24, 2010 5:48 pm

Re: Atc mfunc.6 could use some help

Post by cncsnw »

You are missing an M99 at the end of your embedded O9902 subprogram in your M6 macro file.

As a result, all the rest of the M6 file is assumed to be part of the O9902 subprogram.
WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help

Post by WINSTON »

Thanks fixed that now . I have movement now just debugging maybe rewriting parts of the macro .
WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help

Post by WINSTON »

Cncsnw
I think I may have misunderstood you when you where talking about defining the inputs. Did you mean in the centroid main program where you have to compile or just put the definitions of the i puts in the gcode header ?
Thanks for your help
WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help

Post by WINSTON »

I had some progress got it to go to the proper locations except for 1 and 16 it thinks those are the same . I have checked the magnets and they are in the proper locations .
2 I can't figure out why its not changing the tool number at the end of the macro if i press cycle start again at the end of the program it changes but that can't be done running a real gcode program vid below of what it is doing


Attachments
mfunc6.mac
(19.26 KiB) Downloaded 92 times
report_F045DA76BCBE-1108181316_2021-02-28_16-59-15.zip
(878.61 KiB) Downloaded 84 times
WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help

Post by WINSTON »

Even a blind squirrel finds nut nut ever so often :lol:
Made some progress looks like it working except 1 and 16 are the same location on the carousel :x and its writing cnc files of the macro tool location code in the cnc folder . Is it supposed to do that?
It might not work an hour from now who knows


Attachments
mfunc6.mac
(21.33 KiB) Downloaded 84 times
report_F045DA76BCBE-1108181316_2021-03-01_16-32-45.zip
(898.11 KiB) Downloaded 94 times
WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help

Post by WINSTON »

Ok first parts using the tool changer still finding bugs ever so often .I have got to change the red drawbar button it has no power going to it unless the spindle is off and brake is applied ,my mill has no brake just using that for extra safty . I also added a feature so I could use my old tool holders just have to make their tool numbers higher than 16.

WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help

Post by WINSTON »

Here's biggest bug in this program that I have found . Say it goes into a tool change and I realize somethings wrong and I hit the estop button , It doesn't turn off the outputs which means it crashes into the spindle and the carousel keeps turning .
How can I get the estop to turn off the outputs
Thanks
Post Reply