IMDHMIControls LibraryShop main store

How-to

Mapping standard PLC tags into a safety program

Controllers and I/O Published 7 min read

Short answer

Yes — Studio 5000 Logix Designer documents a standard-to-safety tag mapping that copies a controller-scoped standard tag into a safety-scoped tag, and the pair must be controller-scoped, of matching data types, with no aliases. The copy stays standard-domain data whose integrity you own, so map diagnostics such as a scanner checksum and take protective signals from CIP Safety or hardwired OSSDs.

On this page
  1. What crosses the boundary and what does not
  2. The three requirements for a mapped pair
  3. Classify the scanner data before you map anything
  4. Mapping procedure, step by step
  5. Worked example: mapping a checksum on a wired-OSSD scanner
  6. When to replace the mapping with a safety connection
  7. Questions asked

Yes, there is a documented way, and it opens from one menu path: Logic → Map Safety Tags in Studio 5000 Logix Designer. That Safety Tag Mapping dialog pairs the EDS-created, controller-scoped standard source with a safety-scoped destination of the same data type, and the safety task reads the copy. Three rules gate the pair — both tags controller-scoped, matching data types, no aliases. The copy stays standard-domain data, and the documentation's warning is blunt: you are responsible for the integrity of imported data. So map diagnostics such as a configuration checksum, and let protective signals arrive by CIP Safety or hardwired OSSDs.

What crosses the boundary and what does not #

In a GuardLogix controller the safety task runs apart from standard logic, and Studio 5000 marks the safety task and its instructions with a red icon so the boundary stays visible in the editor. The EDS import builds the scanner's data structure as a controller-scoped standard structure, sitting in the same controller tree as the safety tags. That is why the data looks available and then is refused: scope and origin keep it out, not distance. The mapping function is the one documented crossing — an explicit pair of one standard source and one safety destination that the safety task is allowed to read.

A mapped value is a copy, not a conversion. IEC 61784-3 governs safety data on industrial networks, and in substance it requires the safety protocol to catch everything a plain network lets through: corrupted, repeated, inserted, lost, mis-sequenced, delayed or wrongly addressed messages. CIP Safety applies those measures end to end, which is why a scanner on a safety connection can drive protective logic. A mapped tag applies none of them — whatever the standard domain computes, the safety task receives as truth.

The three requirements for a mapped pair #

The documented rules for standard tags in safety routines are short. The standard tag and the safety tag of the pair must both be controller-scoped. Their data types must match. Neither side may be an alias. The 37.00 Studio 5000 Logix Designer online help carries this section, and the dialog that applies it opens from Logic → Map Safety Tags in the menu bar: the Safety Tag Mapping dialog presents the sources and destinations as rows in a table that you pair. When a pair is rejected, the cause is almost always one of those three rules.

Classify the scanner data before you map anything #

Sort every field of the scanner's data set into one of two classes before configuring anything. If the field can initiate or suppress a protective action, it belongs on a safety-rated path — a CIP Safety connection or a validated hardwired circuit. If it only reports, indicates or compares, it is a diagnostic and may be mapped. That is the safety note of this article, and it is what the integrity warning is about: nothing at the mapping boundary detects a corrupted, stale or wrongly sourced value.

Scanner information Path it belongs on Permitted use in the safety program
Protective-field state CIP Safety connection or hardwired OSSD pair Drives the protective stop
Zone-selection command Validated hardwired selection circuit or safety-rated connection Chooses the active protective field
Configuration checksum Standard tag mapped into a safety tag Compared against the validated value; a mismatch drives a defined state
Fault and status words Standard controller data Display, maintenance and fault reporting only

A wired OSSD pair lands on safety-rated input channels, and the self-checks that hardware runs on its own signals are a separate discipline — see how fail-safe I/O modules detect their own faults. Nothing in this classification changes the machine's required performance level or SIL: the complete safety function remains one chain, validated as a whole against ISO 13849-1 or IEC 62061, and the path choice only decides which links carry protective data.

Mapping procedure, step by step #

  1. Inventory the EDS-created structure: for each member, record the data type, meaning, update source and its protective-or-diagnostic class from the rule above.
  2. Confirm the mapped set contains no protective item before continuing — every protective item must already have its CIP Safety or hardwired path. If one does not, stop and fix that first.
  3. Create the safety destination tag, controller-scoped, with the same data type as the source member, and describe it in the tag database as the safety-side copy.
  4. Open Logic → Map Safety Tags and pair the standard source member with the safety destination in the dialog's table.
  5. Verify the pair lists the real EDS-created member rather than a similarly named copy, then reference only the safety destination inside the safety routine.
  6. Add validation logic for each mapped item: for a checksum, compare the mapped value against the expected value recorded during validation and drive the defined diagnostic or inhibit state on mismatch.
  7. Download through the site's controlled safety workflow, functionally test every mapped item from scanner to outcome, then apply the safety lock and record the safety signature.

Worked example: mapping a checksum on a wired-OSSD scanner #

The case: a machine whose area scanner selects its protective zones through wired zone-selection inputs, reports protective-field state through a hardwired OSSD pair, and exposes a configuration checksum over Ethernet inside the EDS-created, controller-scoped structure.

Inputs:

  • 2 protective items, both already on wires: the protective-field state on the OSSD pair and the zone-selection command on the selection inputs (machine wiring).
  • 1 checksum member in the EDS-created structure, carried over standard EtherNet/IP (EDS import). Take it as a 32-bit integer for this example; the EDS defines the real type, so read it there before creating the destination.
  • 2 diagnostic words on the same Ethernet link, a fault word and a status word (illustrative members of a typical scanner data set).
  • 3 documented mapping requirements per pair: controller scope on both tags, matching data types, no aliases.
  • 1 threshold: the count of protective items in the mapped set must equal zero.

Rule in words: classify, then count. Only diagnostics may enter the mapped set, and the mapped set's protective count must be zero; any count above zero stops the design.

Arithmetic:

  • Items classified: 2 protective + 1 checksum + 2 diagnostic words = 5 in total.
  • Items crossing the boundary: 1 of 5, which is 1 ÷ 5 = 0.20, or 20 percent of the scanner's data set.
  • Protective items inside the mapped set: 0 against a threshold of 0, so the design passes.
  • Verification owed: 1 pair × 3 documented requirements = 3 checks — scope, type match, no alias.

Result: one mapped pair, three verifications, zero protective exposure, and 20 percent of the data set crossing from the standard domain into the safety task.

At runtime, whenever the safety task executes the comparison, the mapped checksum R is tested against the expected value E recorded when the scan area was validated. R = E leaves the machine alone; R ≠ E drives the defined state you designed and tested, such as an inhibit. The comparison is a watchdog on scanner configuration, not a protective channel — the OSSD pair still does the stopping.

Decision: map the checksum and nothing else, leave the OSSD and zone-select wiring in place, and record the expected value at validation. Above zero protective items in the mapped set, do not map; reroute that item to CIP Safety or to wires.

When to replace the mapping with a safety connection #

For a new protective function, or when the installed scanner reaches end of life, specify CIP Safety capability if the controller supports it. Documented CIP Safety area scanners integrate through an add-on profile in Studio 5000 and carry all safety signals over the network, monitoring and selecting two zones from one scanner head with no zone-selection wiring. Protective-field state and zone selection then arrive as safety data at the source, and the checksum comparison drops back to ordinary standard-side diagnostics. Safety connections bring their own configuration burden — why an FSoE connection is not established on a safety PLC shows how much must line up on a safety network before it passes. The decision by case:

  • Installed machine with working wired OSSDs and zone selects: keep the wiring, map the checksum, validate and sign.
  • New machine, or a scanner replacement on a CIP Safety-capable controller: put protective data on the safety connection from day one.
  • Any mapped value that would influence a protective action: redesign that path — the answer is no.

Questions asked

Can an HMI write a value into the safety task through this mapping?

An HMI writes standard tags, so point it at the standard side of the pair and let the mapping carry the value into the safety task. The copy keeps standard integrity, so this route suits entries that never initiate or suppress a protective action, such as a monitoring setpoint or an advisory request the safety logic weighs. A safety reset keeps its designed input path.

Why can the safety routine see some scanner tags but not the EDS-created structure?

The EDS import creates a controller-scoped structure in the standard domain, and safety routines can reference only safety-scoped tags, so the routine refuses it even though the structure sits in the same controller tree. Installations of this kind also report a module-defined tag created during scanner setup that the safety program can select, which is why both can appear in one project.

Does the safety signature make a mapped value trustworthy?

No. The lock and signature protect the safety application exactly as configured; they say nothing about the standard source feeding a mapping. A change to the scanner configuration, to standard logic that writes the source, or to the network between them changes the copied value without touching the signature, which is why the classification rule keeps protective signals off this path.

What do I check when the Safety Tag Mapping dialog rejects a pair?

Work the three documented requirements in order: both tags controller-scoped, data types matching exactly, and neither side an alias. Then confirm the source row holds the actual EDS-created member rather than a similarly named copy built elsewhere in the project, and that the destination was created as a safety tag rather than a standard one.

Keep reading

  • Troubleshooting

    Why an FSoE connection is not established on a safety PLC

    The controller stays in RunIntern and the drive holds EMERGENCY STOP because the FSoE master-slave connection never reaches the established state, so the command bits in the 2Byte Bit-Coded SMM (780-784) function are never transmitted. Match the FSoE addresses, put the correct module in the FSoE master slot, copy the master slot data to the slave slot and back, and in ctrlX SAFETY Engineering 1.7.1.8239 replace the ctrlX DRIVEplus slave object with the IndraDrive MPx20/21 FSoE slave.

    PLC programming

  • Explainer

    How fail-safe I/O modules detect their own faults

    A fail-safe I/O module continuously proves it can report the correct value: self-diagnostics and redundant internal paths catch its own failures, line monitoring catches the field wiring, and any detected fault de-energizes the channel. The single-channel low-demand figure is PFDavg ≈ λDU × TI / 2, with both numbers read from the module's safety manual.

    Controllers and I/O

  • How-to

    Structure dock door conveyor interlocks in Studio 5000

    Run the conveyor on three explicit states — Ready, Running and Restart-required — with door-open, truck-present and curtain-clear as permissives. Truck departure mid-cycle stops the conveyor and latches a manual restart; the light curtain's protective stop stays in safety-rated equipment. Fix the door sensor before debouncing, then size the timer to the measured flicker — 600 ms against a 240 ms example.

    PLC programming