What's new
What's new

Okuma MX60 loop programs and pallets

JaycubL

Plastic
Joined
May 20, 2020
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
 
? I'm probably not understanding the question. But...

M30

GOTO 4321.MIN

That will change to program 4321 in the Main folder.

R
 
Maybe try schedule programs?
I don't know how the Okuma pallets work, but on my Brother there is a spot where I tell it which program is running on each pallet. Easy Peasy.
 
I am not sure on that version of the control, but on our machines we run schedule programs to pallets. If you don't have that on there you could do something like what Rob is saying to the tune of.....

CONTRUN.MIN

NSTRT

IF [VPLNO EQ 1] NRUN1
IF [VPLNO EQ 2] NRUN2

NALM1
VUACM [1] = 'PALLET NO ERROR'
VDOUT[992]=9001
GOTO NALM1

NRUN1
(PUT IN YOUR PROGRAM TO RUN HERE)
GOTO NSTRT

NRUN2
(PUT IN YOUR PROGRAM TO RUN HERE)
GOTO NSTRT
.....

May have to add "GOTO CONTRUN>MIN" to the end of the two programs you are running. It will do the pallet change then the main program will look to see which program it should be running every time and pick the appropriate one.

VPLNO (I am pretty sure, working off memory) is the current pallet number variable. Hoping your control has this. You can check by putting in pallet 1 or 2 and in MDI type VC1=VPLNO and see what value you get.
 








 
Back
Top