Palette Change M201/M202 Alarm
Hi
Found a helpful library file on this forum. MX40-HA.zip
M201= call in pallet#1,continue if pallet#1 is current
M202= call in pallet#2,continue if pallet#2 is current
M203= empty tool from spindle
M204= call WARMUP cycle for machine
M205= empty thru tool coolant line with air blow
If i use M201 or M202 when the right palett is "in" the machine, nothing happens and everything is ok
If I use M201 or M202 when the wrong palett is "in" the machine, i got an Alarm :
2207 ALARM-B Expression: factor 512F
Machine MA-600HB 2008/07
OSP-P200M
M203,M204 and M205 works great
Is there somebody who may know what causes this?
Ole H (sorry for bad English....)
Re: Palette Change M201/M202 Alarm
This library file was originally designed for a OSP7000 control.
The alarm sounds like that some "expression" in that code does not work on your P200 control
I cannot assist as I no longer have access to an Okuma machine...
What you could do is put sections into a normal program, single step through it, and find the offending code... the following is used to call PALLET 1... RTS changed to M30
Code:
OPAL1(PALLET1)
NSTRT(CHECK WHICH PALLET IN MACH)
IF[VPLTK EQ 2]NCHK2 ( PALLET#2 - IN MACH)
IF[VPLTK EQ 1]NEND
GOTO NERR1
NCHK2
IF[VORD[WKPL] NE 1]NMESS
M60
RP=1 M289 ( SET PALLET#1 ) GOTO NEND
NMESS
VNCOM[1]=1
MSG (******************************** CHECK NEXT PALLET IS READY AND PRESS WORK LOAD FINISHED ********************************)
NLOOP
IF[VORD[WKPL] NE 1]NLOOP
NMSG
GOTO NSTRT
NERR1
VNCOM[1]=1
MSG (ILLEGAL PALLET COND)
M0
GOTO NEND
NEND M30
Re: Palette Change M201/M202 Alarm
Hi
Thanks for reply and tips
When i put this into a normal program it seems like it stops on the" IF[VORD[WKPL] NE 1]NMESS" line...
Re: Palette Change M201/M202 Alarm
Quote:
Originally Posted by
Superman
I think this is incorrect
WKPL (I think) is the workload finished button, that it is OK to change pallets.
Hi
Thank for the reply
Found this program: (deleted MSG and NMSG, and now it seems to work perfect)
OPAL1
IF [VPLNO EQ 1] NRTS
M60
MSG (PALLET CHANGE IF CORRECT PALLET PROGRAM WILL CONTINUE)
M01
G04 F5
NMSG
NRTS
RTS
For Pallet 2
OPAL2
IF [VPLNO EQ 2] NRTS
M60
MSG (PALLET CHANGE IF CORRECT PALLET PROGRAM WILL CONTINUE)
M01
G04 F5
NMSG
NRTS
RTS