Publication 1756-PM004C-EN-P - October 2009 29
Organize Tags Chapter 2
Scope
When you create a tag, you define it as either a controller tag (global data) or a
program tag for a specific program (local data).
A Logix5000 controller lets you divide your application into multiple
programs, each with its own data. There is no need to manage conflicting tag
names between programs. This makes it easier to reuse both code and tag
names in multiple programs.
Controller tags
(Global data)
Task
Program
Project
Other routines
Main routine
I/O data
Program tags
(Local data)
System-shared data
Controller tags (Global data)
Program_A
Other routines
Main routine
Tag_4
Tag_5
Program tags
(Local data)
Tag_1
Tag_2
Program_B
Other routines
Main routine
Tag_4
Tag_5
Program tags
(Local data)
Data at the program scope is isolated from other programs.
• Routines cannot access data that is at the program scope of another program.
• You can reuse the tag name of a program-scoped tag in multiple programs.
For example, both Program_A and Program_B can have a program tag named Tag_4.
Data
All programs have access to
data that is at the controller
scope.