Fanuc Alarm PS017 ILLEGAL MODE FOR GOTO/WHILE/DO
Fanuc Alarm PS017 ILLEGAL MODE FOR GOTO/WHILE/DO
Fanus Control Model: 10/11/12/15/15i
Description
This alarm appears when the control system has difficulty executing these macro statements such as GOTO, WHILE, or DO. Does your CNC controller accept these specific commands or is there a fundamental error in the program logic that violates the prevailing rules of the system?
How to Fix Alarm
To eliminate this alarm, the program must be run in MEMORY mode. WHILE/DO or GOTO statements must be in the main program or in a subprogram with proper support. The opening and closing of the loop must be correct and the program must be in accordance with Fanuc standards.
The program logic is correct, but the program is written in a way that the Fanuc control does not allow it.
