An Introduction To RSLogix5000 Tags - PLCdev
An Introduction To RSLogix5000 Tags - PLCdev
An Introduction To RSLogix5000 Tags - PLCdev
1 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
Search
Tags are the method for assigning and referencing memory locations in
Allen Bradley Logix5000 controllers. No longer are there any physical
addresses such as N7:0 or F8:7 which use symbols to describe them. These
have been replaced with tags which are a pure text based addressing
scheme. This is a departure from the more conventional ways of
programming PLCs, which includes Allen Bradleys earlier line of
PLC5 and SLC 500 controllers.
One of the hardest transitions from the older systems is realizing how the
tag database works. The person with experience in Allen Bradley systems
will recognize many of the instructions and be at home with the editor in
Popular Articles
PLC Timeline
Rockwell
Automation's
Retroincabulator!
PLC Basics
RSLogix 5000. Understanding the tag database is the first major hurdle in
becoming comfortable with the ControlLogix and CompactLogix systems. So
lets dig in and get started.
PLC Simulators
Cheap PLCs
Earlier Allen Bradley PLCs programmed with RSLogix 5 and RSLogix 500
software had data files to store I/O and other internal values. These
Navigation
different data files could only hold one data type. A data type defines the
Book reviews
Online books
Recent posts
About
RSS
Feed Me!
Firefox
User login
Username: *
Data File Descriptions
Password: *
File # Type
Description
5/12/2015 2:35 PM
2 of 14
Log in
O0
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
Output
I1
Input
S2
Status
B3
Bit
T4
Timer
C5
Counter
R6
Control
N7
Integer
F8
File #
Name
Data Type
I1
Start
Input
I1
Stop
Input
F8
Speed Setpoint
Floating Point
N7
Alarm Code
Integer
5/12/2015 2:35 PM
3 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
files.
RSLogix 5 / 500
RSLogix 5000
File #
Type
O0
Output
I1
Input
Local:0:I.Data.0
S2
Status
Bit
T4
Timer
C5
Counter
R6
Control
N7
Integer
F8
Floating
Point
Creating a Tag
One way to create a new tag is right click on the Controller Tags in the
Controller Organizer and select New Tag. Even faster is the Ctrl+W hot key.
5/12/2015 2:35 PM
4 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
Grouping
Grouping
Level_High
High_Level
Level_Low
Insert_Nut
Insert_Nut
Knife_Stop
Knife_Stop
Low_Level
Use the Description field for a longer description of the tag. It is best to
5/12/2015 2:35 PM
5 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
keep names short yet not cryptic. Tag names are downloaded and stored in
the controller but the description is not as it is part of the documentation of
the project.
The tag Type defines how the tag operates in the project
Base
Alias
Produced
Consumed
Alias tags mirror the base tag to which they refer. When the base tag value
changes so does the alias tag. Use aliases in the following situations:
program logic in advance of wiring diagrams
assign a descriptive name to an I/O device
provide a more simple name for a complex tag
use a descriptive name for an element of an array
Produced and consumed tags make it possible to share tags between
controllers in the same rack or over a network. This article does not cover
this aspect.
Select a Data Type for the tag by typing it in or by clicking on the ellipsis
button and selecting it from the list. A data type is a definition of the size
and layout of memory allocated for the created tag. Data types define how
many bits, bytes, or words of data a tag will use.
The term Atomic Data Type refers to the most basic data types. They form
the building blocks for all other data types.
Data Type
Boolean
BOOL
0-1
Short Integer
SINT
-128 to 127
Integer
INT
16
-32,768 to 32,767
32
-2,147,483,648 to
2,147,483,647
Real Number
REAL
32
+/-3.402823E38 to
+/-1.1754944E-38
5/12/2015 2:35 PM
6 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
Controller Tags are available to all programs. You cannot go wrong using
controller scoped tags unless you easily want to copy and paste programs. A
tag must be controller scoped when used in a Message (MSG) instruction, to
produce or consume data and to communicate with a PanelView terminal.
Program Tags are isolated from other programs. Routines cannot access
data that is at the program scope of another program. Having program tags
make it easy to copy/paste programs and not have to worry about
conflicting tag names. Make sure though that no controller tags are named
the same as program tags.
Style is the form in which to display the tag by default. The following table
provides you with information on the base and notation used for each style.
Style
Base
Notation
Binary
2#
Decimal
10
Hexadecimal
16
16#
5/12/2015 2:35 PM
7 of 14
Octal
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
8#
Exponential
0.0000000e+000
Float
0.0
Clicking the + sign next to a tag reveals its structure. For a DINT tag this is
the 32 individual bits that make up the tag which will not be of interest if
you are using the tag as a number rather then individual bits. If you do
wish to use the individual bits then you can address them in this way with
the tag name followed by a period and then the bit position (e.g. MyTag.5).
Shown below is the expanded structure for a TIMER. Notice it is made of
two DINTs and three BOOLs. In this case, the Booleans are packed into one
DINT and therefore a timer uses three DINTs of memory.
5/12/2015 2:35 PM
8 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
Conclusion
These are the basics of tags. The advantages are:
1. Tags, if done right, create a level of documentation that is stored in
the PLC.
2. The software does an automatic housekeeping of memory locations.
Theres no more worrying about physical addressing and memory
conflicts.
3. Structures can be more easily put together based on function rather
then data type.
Advance subjects include arrays, user defined data types (UDT) and Add-On
5/12/2015 2:35 PM
9 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
Instructions. Hopefully, you will continue to learn more about the power of
tags. There is no doubt that if you grasp the principles presented here you
will be well on your way to using and troubleshooting any Logix5000
controller.
Allen Bradley's PLC
Programming Handbook
up
Printer-friendly version
plc softwear
Submitted by alezz_zak on Mon, 2007-10-15 07:58.
dear Sir,
I have many plcs (omron,mitsubishi,simmens,toshiba)i need the softwear
that reads all the obove PLC's .
Regards,
Alezz Zak
many plc
Submitted by jan jager (not verified) on Sun, 2008-09-14 08:50.
5/12/2015 2:35 PM
10 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
many PLCs
Submitted by duggo1 (not verified) on Mon, 2010-10-04 20:35.
:) wouldn't we all :(
Emulator
Submitted by Anonymous (not verified) on Sat, 2008-07-26 12:16.
Actually I want a plc emulator software for practice.
So how i get this?
5/12/2015 2:35 PM
11 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
plc simulator
Submitted by LELOS (not verified) on Fri, 2008-09-05 13:33.
i want it immediattly!!!!!!!!!!!!!!!thanks!!!!!!!!
simulador de plc
Submitted by kerlin (not verified) on Mon, 2008-09-15 23:30.
para hacer mis practicas de estudios y poder aplicarlos por que es un
buen programa
PLC simulator
Submitted by PRAMOD KUMAR SINGH (not verified) on Tue,
2011-06-21 07:06.
PLC simulator is an electronic interfacing device to simulate PLC I/O
in different ways like to enable or disable the signals
plc emulator
Submitted by Anonymous (not verified) on Sun, 2010-01-31 22:14.
were you able t get the emulator
knowledge
Submitted by Ramchandra Kashalikar (not verified) on Sat, 2011-08-20
01:52.
I am interested in learning PLC programming.
5/12/2015 2:35 PM
12 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
5/12/2015 2:35 PM
13 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
2012-03-25 17:04.
Who actually knows and understands what they are talking about. He is
correct, Tags just point to memory locations, just like symbols always
have. A PAC (IE: Controllogix/RSLogix 5000) is just the evolution of the
PLC more closer to computers, where it has more memory and can store
symbols/tags and where the internal physical addresses are hidden by
higher level operating system and all you see and have access to is the
tag, just like computers and windows does.
Also someone was wanting more training on PLC (not PAC), see
http://www.bin95.com/Troubleshooting-PLC-Controls-Simulator.htm to
gain years of troubleshooting experience with PLC simulator in just
days. Same site has PAC training CD too, to introduce you to
differences.
5/12/2015 2:35 PM
14 of 14
http://www.plcdev.com/an_introduction_to_rslogix5000_tags
5/12/2015 2:35 PM