Re: okuma tool registry bug
SECOND THAT! tired of calling a different tool all the time
Re: okuma tool registry bug
Their software is not a bug it's just the way it's designed to work. I agree that it could make it more user-friendly. I use this tool change macro in order to make your tool change woes go away.
Enter this as a library program so that it is always available to all your programs.
OTCHK
( SET GCODE PARAM. G111 TO OTCHK )
( AT TOOL CHANGE KEY IN G111 T= TOOL NO. Q = NEXT TOOL EX: G111 T1 Q2)
IF [ VTLCN EQ PT ]NST1 (ACTIVE TOOL)
IF [ VTLNN EQ PT ]NRT1 (NEXT TOOL)
IF [ VTLNN EQ 0 ]NOT1 (NEXT TOOL)
M64
NOT1 T=PT
NRT1 M06
NST1
IF [ PQ EQ EMPTY ]NEND (IF READY TOOL EMPTY/JUMP )
IF [ VTLNN EQ PQ ]NEND (IF PREP TOOL IS AT NEXT TOOL POS./JUMP)
IF [ VTLNN EQ 0 ]NTT1 (IF NEXT TOOL HAS NO VALUE)
M64 (NEXT TOOL POT RETURN)
NTT1
T=PQ
M356 (NEXT POT ADVANCE)
NEND G56 H=VTLCN
D=VTLCN
RTS
PQ DEF: WHEN P IS ATTACHED TO A LETTER IT BECOMES READABLE
Makes tool change frustrations a thing of the past.
Best regards,
Ps: if we can do it why can't Okuma? ;-)
Re: okuma tool registry bug
Put me in the camp that thinks Okuma's tool change command should be more intelligent. The ATC errors are a hassle to me when
I change my mind on what tool I want, re-work or etc.,etc.(on an OKUMA 4020 VMC) I decided to solve the problem and add a lot
of new features to my tool change command.
My ATC command works in a program or by MDI and doesn't care what tool is preselected or in the spindle or not. It will work
every time. The OM6 program below is one of many programs I put in a 'folder' named: OKUMA.LIB which loads into RAM when you
turn on the machine in the morning.
On your G/M screen set G116 = OM6. In MDI for example use G116T5 instead of T5M6. If T5 is already in the spindle it will not
error out. If T1 was preselected and T2 was in the spindle my pgm will put T1 back in the tool drum, preselect T5 and then
put T5 in the spindle (returning T2 to the drum also).
The full set of my G116 tool change commands are as follows:
T = Tool number (T is required the rest are optional)
P = Preselect next tool number
A = Drill point angle (Calculates drill point length and puts the value in VC8)
C1= safe tool change position #1
C2= Safe tool change position #2
L = Min tool length requirement (Used with a positive number)
L = Max tool length requirement (used with a negative number)
Now for some examples:
(1) Say on my VMC I'm using a long gang fixture between my A axis and center and a tool length over 6 inches would crash into
my setup. I would use G116T1P2L-6 My program would check T1's length before the tool change and issue an error if the tool
length was over 6" long. (Crash proof!)
(2) Say I'm using a drill with a point angle of 130° and want to drill a hole (at full dia) .5 deep with a tall part in a
chuck or vice right below the tool change position. I would use G116T1P2A130C1 (The drill line: G73R.1Q.1Z-.5-VC8F.003)
OM6
VC8=0
IF[PC EQ EMPTY]NL0
G16H0Z17.6949
IF[PC EQ 2]NC2
G16H0X-20Y-2.5307
GOTO NL0
NC2 G16H0X11Y-2.5307
NL0 IF[PL EQ EMPTY]NQ1
IF[PL LT 0]NL2
IF[PL LT VTOFH[PT]]NQ1
VUACM[1]='TOOL TOO SHORT!'
VDOUT[992]=1
NL2 IF[VTOFH[PT] LT ABS[PL]]NQ1
VUACM[1]='TOOL TOO LONG!'
VDOUT[992]=1
NQ1 IF[VTLCN EQ PT]NQ4
IF[VNTOL EQ PT]NQ3
IF[VNTOL EQ 0]NQ2
M64
NQ2 T[PT]M6
GOTO NQ4
NQ3 M6
NQ4 IF[VNTOL EQ PP]NQ6
IF[VNTOL EQ 0]NQ5
IF[PP EQ EMPTY]NQ6
M64
NQ5 T[PP]
NQ6 IF[PA EQ EMPTY]NEND
IF[VTOFD[VTLCN] NE 0]NQ7
VUACM[1]='TRC NOT SET!'
VDOUT[992]=1
NQ7 IF[PA LT 60]NQ8
IF[PA LE 180]NQ9
NQ7 VUACM[1]='ANGLE ERROR!'
VDOUT[992]=1
NQ9 VC8=DROUND[VTOFD[VTLCN]/[TAN[PA/2]]]
NEND G56H[VTLCN] (Activates tool length comp automatically)
G62X0Y0Z0 (Cancels mirror image automatically)
G95M54D0
IF[VC9 LE 1.6]NQ12
VC9=1
NQ10 IF[PL EQ EMPTY]NQ12
IF[PL LT 0]NQ11
IF[PL LT VTOFH[VTLCN]]NQ12
VUACM[1]='TOOL TOO SHORT!'
VDOUT[992]=1
NQ12 RTS
Re: okuma tool registry bug
Quote:
Okuma's tool change command should be more intelligent
it is a philosophy problem in my opinion. Okuma tool change is simple as selecting the tool (plus tool offset) and tool change command. What problems could be with that kind of matter? If you take the same tool with different offset Okuma just changes the offset. What's wrong with that?