Failed to delete routine

There was a problem when you attempted to delete a routine. The error message you receive indicates one of the these conditions:
This operation is not allowed if the program is a main routine of the program
The routine that is being deleted is assigned to be the main routine of the program. You must change the assignment in order to delete the routine.
This operation is not allowed if the program is a fault routine of the program
The routine that is being deleted is assigned to be the fault routine of the program. You must change the assignment in order to delete the routine.
Attribute(s) could not be set in the controller's current state.
A routine cannot be deleted while the controller is in hard run mode. Move the key switch from "Run" to either "REM" or "PROG" and then delete the routine.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.