Create a program
Use the
New Program
dialog box to create programs. For large or complex programming tasks, it can help to break up the logic into multiple programs. Each program has its own tags that logic in other programs cannot access. Either schedule each program to run in a task or leave unscheduled. Can define up to 1000 programs in each task for ControlLogix
and Studio 5000®
Logix Emulate
. Other platforms support up to 32 programs per task. 1769-L23 controllers are limited to 16 programs per task.
TIP:
To open the New Program dialog:
- From theFilemenu, chooseNew Component > Program.
- From the Controller Organizer, right-click a task and then chooseAdd > New Program.
- From the Logical Organizer, right click a program folder and then chooseAdd > New Program.
To create a program:
- InName, enter a name for the program.
- InDescription, enter a description of the program.
- From theParentlist, select a parent program to make this program a child of an existing program in the logical model. Otherwise select<none>.
- From theClasslist, choose whether the program is aStandardprogram or aSafetyprogram.
- Select theUse as Foldercheck box to create a program folder rather than a program. TheUse as Foldercheck box does not apply to equipment phases.
- From theSchedule Inlist, choose the task in which to schedule this program.Note that the list only includes tasks where the program can be placed. When the maximum number of scheduled programs is reached, the tasks in this list appear dimmed. TheController Fault HandlerandPower-up Handlerare always enabled. Any existing program becomes unscheduled if a program is created to one of these two places.
- SelectInhibit Programto prevent the program and its routines from executing.
- SelectSynchronize Redundancy Data after Executionor leave the check box cleared to not synchronize redundancy data after execution. The check box is checked by default.TIP: TheSynchronize Redundancy Data after Executionoption only applies to standard controllers; it does not apply to Safety controllers.
- ClickOKto create the new program.
Provide Feedback