Programming Manual Logix5000 Controllers I/O and Tag Data 1756 ControlLogix, 1756 GuardLogix, 1768 Compact GuardLogix, 1769 CompactLogix, 1789 SoftLog
Preface These documents contain additional information concerning related Rockwell Automation products. Resource Description Logix5000 Controllers P
Chapter 1 Communicate with I/O modules To communicate with an I/O module in your system, you add the module to the I/O Configuration folder in the Con
Chapter 1 Communicate with I/O modules The Logix5000 controller uses connections to transmit I/O data. Term Definition Connection A communicatio
Communicate with I/O modules Chapter 1 formats. Each format uses a different data structure. The communication format that you choose also determin
Chapter 1 Communicate with I/O modules Ownership In a Logix5000 system, modules multicast data. This means that multiple devices can receive the s
Communicate with I/O modules Chapter 1 If module is And another controller And you want to Then use this type of connection Owns the module ---
Chapter 1 Communicate with I/O modules Important: Changing Electronic Keying parameters online interrupts connections to the device and any dev
Communicate with I/O modules Chapter 1 • Same catalog number• Same or higher Major Revision • Minor Revision as follows: • If the Major Revision is
Chapter 1 Communicate with I/O modules I/O information is presented as a set of tags. • Each tag uses a structure of data. The structure depends
Communicate with I/O modules Chapter 1 Where Is SubMember Specific data related to a Member. Bit Specific point on a digital I/O module; depends
Important user information Read this document and the documents listed in the additional resources section about installation, configuration, and oper
Chapter 1 Communicate with I/O modules The drill routine executes the logic for the drill machine. The map_outputs routine copies the values of ou
Chapter 2 Organize tags With a Logix5000 controller, you use a tag (alphanumeric name) to address data (variables). Term Definition Tag A text-based
Chapter 2 Organize tags Example: Tags Item Description Analog I/O Device Integer Value Storage Bit Counter Timer Digital I/O Device The tag type
Organize tags Chapter 2 Term Definition Data type The data type defines the type of data that a tag stores, such as a bit, integer, floating-poin
Chapter 2 Organize tags The minimum memory allocation for a tag is four bytes. When you create a tag that stores data that requires less than four
Organize tags Chapter 2 When you create a tag, you define it as either a controller tag (global data) or a local tag for a specific program (local
Chapter 2 Organize tags • Routines cannot access data that is at the local scope (local tag) of another program.• You can reuse the tag name of a
Organize tags Chapter 2 Program parameters are similar to tags: • You create program parameters at the program level, and use them tomanage data.•
Chapter 2 Organize tags Guideline Details Use arrays to quickly create a group of similar tags An array creates multiple instances of a data typ
Organize tags Chapter 2 Guideline Details These tags are easier to read Than these tags Tank_1 TANK_1 Tank1 TANK1 tank_1 tank1 Consider the al
Summary of changes This manual contains new and updated information. The following table contains the changes made to this revision. Change Topic Upd
Chapter 2 Organize tags Guideline Details Using extended properties in logic (continued) In the Function Block Editor, you can access extended
Organize tags Chapter 2 Guideline Details Using extended properties in logic (continued) • Array Tags are constrained A constraint on array tags
Chapter 2 Organize tags 1. In the Controller Organizer, right-click Controller Tags and then clickEdit Tags.p2. In the Tag Editor, from the Scope
Organize tags Chapter 2 2. If the Properties pane is not visible, click Properties.3. In the Properties pane, click Extended Properties, and select
Chapter 2 Organize tags Data Type Range DINT -2,147,483,648...2,147, 483,647 INT -32,768...32,767 LINT 0...32535129599999999 SINT -128...127
Organize tags Chapter 2 Item Description To expand a structure and display its members, click the + sign. To collapse a structure and hide its m
Chapter 2 Organize tags Example: Two-dimension array A drill machine can drill one through five holes in a book. The machine requires a value
Organize tags Chapter 2 Configure an array To create an array, you create a tag and assign dimensions to the data type. 1. In the Controller Organi
Chapter 2 Organize tags User-defined data types (structures) let you organize your data to match your machine or process. Example: User-defined
Organize tags Chapter 2 Example: User-defined data type that stores the data that is required to run a machine. Because several drill stations
Chapter 2 Organize tags Guidelines for user-defined data types When you create a user-defined data type, use the following guidelines. • If you i
Organize tags Chapter 2 4. Click Add Member to add a new data type member.5. In the member Name box, type a name for the data type member.6. In the
Chapter 2 Organize tags 1. In the Properties pane, click the box next to External Access, andselect an attribute.2. To display the value of the m
Organize tags Chapter 2 5. Select one or more properties that you want to add. The properties in the list depend on the selected data type or mem
Chapter 2 Organize tags In version 13 or later, the Logix Designer application lets you automatically build descriptions out of the descriptions i
Organize tags Chapter 2 Paste pass-through description—Use the data type and array description as a basis for more specific descriptions. In this
Chapter 2 Organize tags 3. Check Show Pass-Through Descriptions and Append to Base TagDescriptions.4. Click OK.Paste a pass-through description Ch
Organize tags Chapter 2 A tag name follows this format. Where Is Name Name that identifies this specific tag. Element Subscript or subscripts
Chapter 2 Organize tags The tags window displays alias information. Item Description drill_1_depth_limit is an alias for Local:2:I.Data.3 (a digi
Organize tags Chapter 2 The following logic was initially programmed by using descriptive tag names, such as stop and conveyor_on. Later, the tags
Table of Contents Studio 5000 environment...9 Additional resou
Chapter 2 Organize tags 3. In the cell, click .4. Select the tag that the alias represents.To Do This Select a tag Double-click the tag name.
Organize tags Chapter 2 Example: Step through an array. The timer_presets array stores a series of preset values for the timer in the next rung.
Chapter 2 Organize tags You can use these operators to specify the subscript of an array. Format your expressions as shown in the following table.
Organize tags Chapter 2 For more information on handling major faults, refer to the Logix5000 Controllers Major and Minor Faults Programming Manual
Chapter 2 Organize tags You can store project documentation for multiple languages in a single project file rather than in language-specific proje
Chapter 3 Force I/O Use a force to override data that your logic either uses or produces. For example, use forces to: • Test and debug your logic.• Ch
Chapter 3 Force I/O Disable or remove a force To stop the effect of a force and let your project execute as programmed, disable or remove the for
Force I/O Chapter 3 Force status indicator If your controller has a FORCE Status Indicator, use it to determine the status of any I/O forces. Impo
Chapter 3 Force I/O Use an I/O force to override: • An input value from another controller (that is, a consumed tag).• An input value from an inpu
Force I/O Chapter 3 Force an input value Forcing an input or consumed tag: • Overrides the value regardless of the value of the physical device o
Table of Contents Alias tags ... 4
Chapter 3 Force I/O To force a Do this BOOL value Right-click tag and then click Force On or Force Off. Non-BOOL value In the Force Mask column
Force I/O Chapter 3 4. Right-click a tag or element that has the force and then click RemoveForce.Disable all I/O forces To disable, on the Menu b
Chapter 4 Data access control In version 18 or later of the Logix Designer application, there are two tag attributes that allow you to control access
Chapter 4 Data access control • FactoryTalk Historian software.• Other third-party software.You configure external access from a menu when you cr
Data access control Chapter 4 Important: For alias type tags, the External Access list is unavailable. You are not allowed to change the externa
Chapter 4 Data access control 3. In the External Access list, choose an external access option.4. Click OK.66 Rockwell Automation Publication 1
Data access control Chapter 4 As shown in the following example, the External Access list is unavailable for an alias tag. There may be many alias
Chapter 4 Data access control 1. In the Tag Editor, right-click a tag and then click Edit (tag name)Properties.2. In the Tag Properties dialog box
Data access control Chapter 4 View and select external access status on the Tag Editor You can view the external access status of a tag in the Ta
Table of Contents Constant value tags... 76 Configure
Chapter 4 Data access control 1. In the Tag Editor select the alias tag, and then on the Logix Designerapplication Menu bar, click Search > Go
Data access control Chapter 4 Dialog Box/Window Considerations New Tag The External Access list is unavailable if: • The tag is an alias tag. •
Chapter 4 Data access control 1. In the Controller Organizer, right-click the data type and then clickProperties.2. In the Data Type editor, click
Data access control Chapter 4 • If the member’s data type is User-defined and the child-member has adifferent external access level from its par
Chapter 4 Data access control You can configure the external access of an Add-On Instruction’s parameters and local tags in the Add-On Instructio
Data access control Chapter 4 Dialog Box/Window Considerations Add-On Instruction Definition - Parameters Tab The External Access column is unav
Chapter 4 Data access control Only tags with external access settings of Read/Write or Read Only can be mapped to a PLC-2 controller and PLC-5/SL
Data access control Chapter 4 Use FactoryTalk security to control who is permitted to change values of constants and who can change the constant a
Chapter 4 Data access control 2. In the New Tag dialog box, in the Type list, choose a tag type.3. Select the Constant check box.4. Click Create.S
Data access control Chapter 4 2. In the Parameter/Local Tag Properties dialog box, select the Constantcheck box.3. Click OK.See Constant check box
Chapter 4 Data access control 1. In the Controller Organizer, right-click Controller Tags and then clickEdit Tags.In the Tag Editor, select the ch
Data access control Chapter 4 Dialog Box/Window Considerations Tag Monitor You can change the value of a constant tag in the Tag Monitor if yo
A access external 63 add extended properties to a tag 32 add extended properties to user-defined data type 42 Add-On Instruction constant value c
Index tag description 44 user-defined data type 44 E electronic keying electronic keying 17 enable force 55 exact match electronic keying 16
Index O ownership I/O module 14 P pass-through description 44 program parameters 12, 19, 25, 27 tags 25 program parameters 12, 19, 25, 27 pr
Rockwell Automation support Rockwell Automation provides technical information on the web to assist you in using its products. At http://www.rockwella
Preface This manual shows how to access I/O and tag data in Logix5000 controllers. This manual is one of a set of related manuals that show common pr
Komentarze do niniejszej Instrukcji