Routines

A routine is a set of logic instructions in one programming language, such as Ladder Diagram (ladder logic). Routines provide the executable code for the project in a controller.
Each program has a main routine. The main is the first routine to execute when the controller triggers the associated task and calls the associated program. Use logic, such as the Jump to Subroutine (JSR) instruction, to call other routines.
You can also specify an optional program fault routine. The controller executes this routine if it encounters an instruction-execution fault within any of the routines in the associated program.
Routines in a Control Application
This image shows routines in a control application.
Routines in the Controller Organizer and Logical Organizer
This image shows routines in the Controller Organizer and Logical Organizer.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal