We have an Okuma MX60 with two different pallets I1 and I2. When it takes one pallet out using the code "M60" (near the end of each program) that also puts the other pallet in at the same time.
Does anyone know how we can set it to automatically switch programs when it switches pallets, so it can run in a loop? Currently the operator has to select a different program each time they load/unload a part unless they are only running one pallet.
Here are possibly relevant sections of nc code:
($5555.MIN#) (REV -)
(part name )
( OKUMA MX60)
( MACHINE TIME = 8:06.2 )
N6969 ( * )
VZOFX[1]=0.VZOFY[1]=0.VZOFZ[1]=0.VZOFB[1]=0.
VZOFX[2]=0.VZOFY[2]=0.VZOFZ[2]=0.VZOFB[2]=0.
VZOFX[3]=0.VZOFY[3]=0.VZOFZ[3]=0.VZOFB[3]=0.
VZOFX[4]=0.VZOFY[4]=0.VZOFZ[4]=0.VZOFB[4]=0.
VZOFX[5]=0.VZOFY[5]=0.VZOFZ[5]=0.VZOFB[5]=0.
VZOFX[6]=0.VZOFY[6]=0.VZOFZ[6]=0.VZOFB[6]=0.
VZOFX[7]=0.VZOFY[7]=0.VZOFZ[7]=0.VZOFB[7]=0.
VZOFX[8]=0.VZOFY[8]=0.VZOFZ[8]=0.VZOFB[8]=0.
VZOFX[9]=0.VZOFY[9]=0.VZOFZ[9]=0.VZOFB[9]=0.
VZOFX[10]=0.VZOFY[10]=0.VZOFZ[10]=0.VZOFB[10]=0.
M01
G120 I2 (PALLET ID)
…
(body of program)
…
G53 Z100. M9
G53 X100. Y100. M5
G130
M60
M30
%¶
Does anyone know how we can set it to automatically switch programs when it switches pallets, so it can run in a loop? Currently the operator has to select a different program each time they load/unload a part unless they are only running one pallet.
Here are possibly relevant sections of nc code:
($5555.MIN#) (REV -)
(part name )
( OKUMA MX60)
( MACHINE TIME = 8:06.2 )
N6969 ( * )
VZOFX[1]=0.VZOFY[1]=0.VZOFZ[1]=0.VZOFB[1]=0.
VZOFX[2]=0.VZOFY[2]=0.VZOFZ[2]=0.VZOFB[2]=0.
VZOFX[3]=0.VZOFY[3]=0.VZOFZ[3]=0.VZOFB[3]=0.
VZOFX[4]=0.VZOFY[4]=0.VZOFZ[4]=0.VZOFB[4]=0.
VZOFX[5]=0.VZOFY[5]=0.VZOFZ[5]=0.VZOFB[5]=0.
VZOFX[6]=0.VZOFY[6]=0.VZOFZ[6]=0.VZOFB[6]=0.
VZOFX[7]=0.VZOFY[7]=0.VZOFZ[7]=0.VZOFB[7]=0.
VZOFX[8]=0.VZOFY[8]=0.VZOFZ[8]=0.VZOFB[8]=0.
VZOFX[9]=0.VZOFY[9]=0.VZOFZ[9]=0.VZOFB[9]=0.
VZOFX[10]=0.VZOFY[10]=0.VZOFZ[10]=0.VZOFB[10]=0.
M01
G120 I2 (PALLET ID)
…
(body of program)
…
G53 Z100. M9
G53 X100. Y100. M5
G130
M60
M30
%¶