![Allen-Bradley ControlLogix 1756-STRT3 Quick Start Manual Download Page 37](http://html1.mh-extra.com/html/allen-bradley/controllogix-1756-strt3/controllogix-1756-strt3_quick-start-manual_2900177037.webp)
1
1
7
7
5
5
6
6
-
-
Q
Q
S
S
1
1
0
0
4
4
A
A
-
-
E
E
N
N
-
-
P
P
C
C
o
o
n
n
t
t
r
r
o
o
l
l
L
L
o
o
g
g
i
i
x
x
Q
Q
u
u
i
i
c
c
k
k
S
S
t
t
a
a
r
r
t
t
Page 37
Creating a New Program
Create a new program under Task2, which is the periodic task.
1. From the
Controller Organizer
, right click on the
Task2
icon
and choose
New Program
.
The New Program dialog appears.
2. In the
Name
field, type 'Program2'.
3. In the
Schedule In
field, be sure that
Task2
is selected and click on
OK
.
You have now created a new program under Task2. All of the routines created and called under this
program folder will execute once every 1000 milliseconds (or once every second).
Also notice that under Program2 in the Controller Organizer, there is now an item called Program Tags.
All program-scoped tags are kept under this entry; any tags stored here are accessible by Program2
and all of its routines, but not by other programs in the controller.
Creating a New Routine
Create a new routine under the Program2 folder.
1. From the
Controller Organizer
, click on the
+
sign in front of Task2 to expand it, right click on
Program2
and choose
New Routine
.
The New Routine dialog appears.
2. In the
Name
field, type 'Routine2'.
3. In the
Description
field, type 'This routine will increment a counter each time the routine is executed.'
Allen-Bradley Parts