PDA

View Full Version : tool call with "IF" inquiry



tec80
02-10-2012, 07:42 AM
Hello colleagues

Have a little problem and maybe somebody knows a solution to it.
I have around 500 tools on my 5-axis milling machine. These will get a new tool description.
To save time and to improve my programs, I want to do the tool call directly over the subprogram so that 1. The main programs become shorter and second always the up to date cutting data is programmed and thirdly so that I can call tools with the old and new description with a “IF” enquiry.


That looks like this:

Tool description old: 249 new: 11532495

Sub program:
N10 If T249 then gotof N30
N20 T11532495
N30 G96 S250 M3
N40 ...

Is it possible to call the tools if they are still in the magazine and therefore program them with a If-inquiry?

How would the subprogram look like?

nixalsverdruss
02-10-2012, 10:26 AM
$A_TOOLMN[t]
Gives out the magazine number of the tools with the T-No.=t.
Is the tool not allocated to the magazine, then 0 is given out.
Is the tool management not active then -1 is given out.
If no tool with T-Nr.=t exists, then -2 is given out.
You get an alarm if the values for the T numbers are damaged.

tec80
02-10-2012, 02:33 PM
$A_TOOLMN[t]
Gives out the magazine number of the tools with the T-No.=t.
Is the tool not allocated to the magazine, then 0 is given out.
Is the tool management not active then -1 is given out.
If no tool with T-Nr.=t exists, then -2 is given out.
You get an alarm if the values for the T numbers are damaged.

Would the program look like this:

Subprogram:
N10 IF $A_TOOLMN[249]=0 gotof WZ2
N20 T249
N30 M6
N40 G96 S2000 M3
N50 gotof end
N60 WZ2:
N70 T11532495
N80 M6
N90 G96 S2000 M3
N100 END:
N110 M17