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