Hi,
I’m trying to find the variable that holds the number for the current tool that’s called up for a Macro. It’s on a Doosan Puma with 31i control.
I have seen similar posts on here suggesting #4120 but that just contains 0.
Hi,
I’m trying to find the variable that holds the number for the current tool that’s called up for a Macro. It’s on a Doosan Puma with 31i control.
I have seen similar posts on here suggesting #4120 but that just contains 0.
Hi,
Check your Tool Change Macro.
Probably stored in #100, in my macro it is; #100 = #4120, Toolnumber is shown in #100.
Regards.
Mr guhl,
Were did I say #4120 = 0 and #100 = 0 ???
When I do a toolchange like T9 M6 varaible #100 shows 9 after toolchange, depending on the toolnumber !!!!
My ( HWacheon Vesta 1000 ) macro says: #100 = #4120 and stores the 9 in #100, simple as that.
O9020(M06 T..AUTO CHANGE)
G31
#148=#4003
IF[#1014EQ1]GOTO10
IF[#20EQ#0]GOTO10
IF[#20EQ0]GOTO902
#100=#20
GOTO20
N10#100=#4120
N20
M606T#100
G49
G#148
M99
N902#3000=2(M06 TF-CODE COMMAND ERROR)
M30
jedd,
#4120 is a system variable that you can not see. If, like Heavy_Metal said, you go into your tool change program and right after the M6 add #100=#4120.
Then when you look in your macro variables page you will see your tool number in 100.
Just a note, you can use any common variable you choose (#100 to #199) it does not have to be just #100
Thanks for the replies. I was looking through SYSTEM>PARAMETERS thinking it was reading from there.
Is there no way of browsing through the system variables or can I find a list anywhere of other system variables?
Thanks
Hi,
There are plenty of variable lists, just Google for it.
https://www.cnccookbook.com/fanuc-ma...d-programming/
https://www.machinetoolhelp.com/Appl...variables.html
and many more.
On a Doosan Puma with a 31i control, the variable that holds the current tool number for a macro is typically #5000
papa's scooperia