I am trying to get an older CNC running that has an OSAI 10 control. I am able to execute G code files. The main issue I am facing is that the CNC goes into an error whenever a T command is executed, either through the G code, or MDI. The OSAI control displays the following error:

Error 23/401- Process :01
New Tool Request Failed

in the HICAM2 window it displays a similar error:

99-152 Error T programmed process

This seems to hang up at around this point in the macro (I do have the macro if that is useful)

#PMT=0 ; Change from T like macro to normal PLC function
T(HI)
#PMT=1 ; Come back to T like macro
#(DLY,1);

Any Ideas?

Thank you!