![Allen-Bradley ControlLogix 1756-STRT3 Quick Start Manual Download Page 50](http://html1.mh-extra.com/html/allen-bradley/controllogix-1756-strt3/controllogix-1756-strt3_quick-start-manual_2900177050.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 50
Changing the Name of the Program You Pasted
Change the name of MainProgram1 in the ReusableCode.ACD controller file.
1. In the
ReusableCode.ACD
controller file, right click on
MainProgram1
and choose
Properties
.
The Program Properties dialog box appears.
2. In the
Name
field, type 'ReusedProgram'.
3. In the
Description
field, type 'This program was copied from Controller1.ACD. The code and tags will
be reused in this project to perform the same function.'
4. Click on
OK
to save your changes and close the Program Properties dialog.
Changing the Name of the Main Routine
Change the name of MainRoutine and review the ladder diagram.
1. In the
ReusableCode.ACD
controller file, under
ReusedProgram
, right click on
MainRoutine
and
choose
Properties
.
2. Change the name of MainRoutine to
ReusedRoutine
.
3. Click on
OK
to save your changes and close the routine properties dialog.
FYI
You probably noticed that there were two routines named MainRoutine. ControlLogix
provides program scoping, which allows routines under different programs to have the
same name. Program scoping also allows program tags to have the same name as tags
under other programs. The program scoping concept makes it easy to cut and paste
code for reuse.