Scope – Rockwell Automation 1756-SPESMNRMXT GuardLogix Controllers User Manual Manuel d'utilisation
Page 95

Rockwell Automation Publication 1756-UM020I-EN-P - August 2012
95
Develop Safety Applications
Chapter 6
Scope
A tag’s scope determines where you can access the tag data. When you create a
tag, you define it as a controller tag (global data) or a program tag for a specific
safety or standard program (local data). Safety tags can be controller-scoped or
safety program-scoped.
Controller-scoped Tags
When safety tags are controller-scoped, all programs have access to the safety
data. Tags must be controller-scoped if they are used in the following:
• More than one program in the project
• To produce or consume data
• To communicate with a PanelView/HMI terminal
• In safety tag mapping
Safety Tag Mapping on page 102
for more information.
Controller-scoped safety tags can be read, but not written to, by standard
routines.
Tags associated with Safety I/O and produced or consumed safety data must be
controller-scoped safety tags. For produced/consumed safety tags, you must
create a user-defined data type with the first member of the tag structure reserved
for the status of the connection. This member is a predefined data type called
CONNECTION_STATUS.
Program-scoped Tags
When tags are program-scoped, the data is isolated from the other programs.
Reuse of program-scoped tag names is permitted between programs.
Safety-program-scoped safety tags can only be read by or written to via a safety
routine scoped in the same safety program.
IMPORTANT
Controller-scoped safety tags are readable by any standard routine. The
safety tag’s update rate is based on the safety task period.
Table 27 - Additional Resources
Resource
Description
on page
Provides more information on the
CONNECTION_STATUS member
Logix5000 Controllers I/O and Tag Data Programming Manual,
publication
Provides instructions for creating user-defined
data types
- 1756-SPESMNRM GuardLogix Controllers User Manual 1756-SPESMNSEXT GuardLogix Controllers User Manual 1756-SPESMNSE GuardLogix Controllers User Manual 1756-ESMNRMXT GuardLogix Controllers User Manual 1756-ESMNRM GuardLogix Controllers User Manual 1756-ESMNSEXT GuardLogix Controllers User Manual 1756-ESMNSE GuardLogix Controllers User Manual 1756-ESMCAPXT GuardLogix Controllers User Manual 1756-ESMCAP GuardLogix Controllers User Manual 1756-L7x GuardLogix Controllers User Manual 1756-LSP GuardLogix Controllers User Manual 1756-L6x GuardLogix Controllers User Manual