I/O Tags in Studio 5000: How to Link I/O to Ladder Logic

By editor Updated 7 min read
Module tag Local:1:I.Data.0 linked to the readable tag DI_Start_PB and used in a ladder logic rung

An I/O tag in Studio 5000 is the named data location for a real input or output point, such as Local:1:I.Data.0. When you add a module to the I/O Configuration, the software creates its tags in Controller Tags. To use a point in ladder logic, reference the module tag directly, create a readable alias such as Motor_Start, or copy it to a separate mapped tag.

MethodExampleBest forLimit
DirectXIC Local:1:I.Data.0Very small test programsHard to read and tied to hardware
AliasMotor_Start = Local:1:I.Data.0Readable names without extra rungsNo separate data copy
MappedRung copies input to DI_Start_PBLarger or simulated machinesAdds mapping rungs
Three ways to connect I/O to ladder logic.
Safety first: Do not force I/O or download changes to a running machine until the area is safe and you have authorization. A wrong tag can start or stop real equipment. Safety functions must not rely on standard logic alone.
Controller
Scope of I/O module tags
:I / :O
Input and output data
3
Ways to link I/O
RPI
Module update period

How to Read an I/O Tag

Parts of a module-defined I/O tagThe tag Local:1:I.Data.0 identifies the local chassis, slot 1, input data, the Data member and bit 0.How to read a module-defined I/O tagLocalModule in thelocal chassis1SlotnumberIInput data(O = output)DataDatamember0Bitor point::..First input pointLocal:1:I.Data.0IndustrialBasicsindustrialbasics.com
Figure 1: The tag describes where the signal is in the hardware, not what the device does.

A module tag tells you where a signal is, but not what it does. Local:1:I.Data.0 is the first input point on the module in slot 1 of the local chassis. In Rockwell’s Logix Basics lab, modules in the controller chassis are called “Local”, and all I/O module tags are created in the Controller Scope.

TagMeaning
Local:1:I.Data.0Input point 0, slot 1
Local:1:I.Data.1Input point 1, slot 1
Local:1:O.Data.0Output point 0, slot 1
Local:2:I.Ch0DataAnalog input channel 0, slot 2
Local:2:O.Ch0DataAnalog output channel 0, slot 2
Example tags from the Logix Basics lab. Member names depend on the module.
Reader tip: Scope decides who can use a tag. Controller-scoped tags are accessible by all programs, while program-scoped tags are limited to their program.

How to Associate an I/O Tag With Ladder Logic

This alias workflow follows the Studio 5000 Logix Basics lab.

  1. Add the module under I/O Configuration and set its properties.
  2. Open Controller Tags to confirm that the module tags exist.
  3. Open the routine and right-click the ladder tag, such as Motor_Start.
  4. Choose Edit Properties.
  5. Change the tag Type from Base to Alias.
  6. Open Alias For and select from the controller-scoped tags.
  7. Expand Local:1:I, choose Data, then select bit 0.
  8. Click OK, then repeat for each remaining tag.
  9. Verify the routine and resolve any errors before downloading.
Ladder tagAlias forDevice type
Motor_StartLocal:1:I.Data.0Input
Motor_StopLocal:1:I.Data.1Input
Motor_RunLocal:1:O.Data.0Output
Alias assignments used in the lab.

Always check the tag against the electrical drawing. The tag only confirms a software address, so a wiring error will still put the wrong signal on that point. If you are planning the hardware, start with our guide on how to select a PLC.

Direct vs Alias vs Mapped Tags

Direct, alias and mapped I/ODirect logic uses the module tag. An alias is another name for the same data. A mapped tag is a separate tag written by a mapping rung.Three ways to use an I/O point in logicDirectLocal:1:I.Data.0Ladder instructionSimpleTied to the hardwareAliasLocal:1:I.Data.0DI_Start_PB (same data)ReadableNo separate copyMappedLocal:1:I.Data.0DI_Start_PB (own data)Hardware boundaryNeeds a mapping rungIndustrialBasicsindustrialbasics.com
Figure 2: Only mapping creates a separate data location between the module and the logic.

An alias is another name for the same data. When the value of one changes, the other reflects it. A mapped tag is different: a rung copies the module point into a separate tag, and the rest of the program uses that tag.

FactorDirectAliasMapped
ReadabilityLowHighHigh
Extra rungsNoneNoneYes
Separate dataNoNoYes
If a point movesEdit each referenceUpdate the aliasEdit the mapping rung
SimulationHarderLimitedEasier
Comparison based on JoeGuardian Automation’s I/O series.

A mapped program structure

Mapped ladder logic exampleOne rung maps an input to DI_Open_PB, a logic rung uses DI_Open_PB and DI_Open_LS to drive DO_Motor_Up, and a final rung maps DO_Motor_Up to an output point.A simple mapped program structureInput mappingLocal:1:I.Data.0XICDI_Open_PBOTEMachine logicDI_Open_PBXICDI_Open_LSXIODO_Motor_UpOTEOutput mappingDO_Motor_UpXICLocal:1:O.Data.0OTEIndustrialBasicsindustrialbasics.com
Figure 3: Illustrative rungs. If hardware moves, only the mapping rung changes.

With mapping, physical references stay in routines such as R01_Input_Mapping. If a signal moves from Local:1:I.Data.3 to Local:4:I.Data.7, only the mapping rung changes. The trade-off is a few extra instructions and one more place to check while troubleshooting.

Naming I/O Tags

Good names make faults faster to find. Choose a convention and use it across the project.

StyleExampleWhy it helps
Signal prefixDI_Open_LS, DO_Motor_UpShows the signal direction
Equipment prefixConv1_JamPE, Conv1_MotorGroups tags by machine
AvoidInput1, Tag_ASays nothing about the device
Common tag naming approaches.

Be careful when renaming tags in an existing project, because HMI and SCADA references can break. Good structure also supports the language practices in our IEC 61131-3 guide.

Checking the Connection

The module’s Requested Packet Interval (RPI) sets the period at which data is updated to and from the module. The lab uses a 20 ms setting for its digital module. If a point does not behave as expected, work through this list:

SymptomCheck
Tag never changesModule connection, field wiring and correct slot
Wrong device respondsAlias or mapping against the drawing
Module mismatch errorCatalog number selected in I/O Configuration
Alias shows an errorThat the target tag still exists
Output tag on but no outputOutput power, fuse, wiring and load
HMI value is blankRenamed tag or External Access setting
Basic I/O tag troubleshooting.

For background, see what a PLC is and PLC vs DCS vs SCADA. For larger loads on a digital output, see our guide to the interposing relay.

Safety note: This guide is educational. Follow your site programming standard and the documentation for your controller and software version. Studio 5000 and Logix are products of Rockwell Automation, and IndustrialBasics is not affiliated with Rockwell.

New to the software itself? See Studio 5000 Logix Designer explained, including the RSLogix 5000 rename and version matching.

Frequently Asked Questions

What is an I/O tag?

An I/O tag is a named data location that represents a signal from or to an input or output module. In Studio 5000, a tag such as Local:1:I.Data.0 identifies a specific input point.

Where are I/O tags created in Studio 5000?

When you add a module to the I/O Configuration, its module tags appear in Controller Tags. All I/O module tags are controller scoped.

What does Local:1:I.Data.0 mean?

It is bit 0 of the input data for the module in slot 1 of the local chassis.

What is an alias tag?

An alias is a tag that represents another tag. Both names share the same value, so Motor_Start can be a readable name for Local:1:I.Data.0.

Does an alias tag buffer an input?

No. An alias is another name for the same data. It improves readability but does not create a separate copy.

Should I use alias tags or mapped tags?

Aliases are simple and readable. Mapped tags add a separate software boundary between hardware and logic. Follow your site standard and use one approach consistently.

Can a program-scoped alias point to an I/O tag?

Yes. In the Rockwell lab workflow, a tag in the program is aliased by selecting the I/O address from the controller-scoped tags.

What is RPI in Studio 5000?

Requested Packet Interval is the period at which data is updated to and from a module, set in milliseconds in the module properties.

Sources and Further Reading

About the author

editor

Leave a Comment