IMDHMIControls LibraryShop main store

How-to

Replacing a safety PLC CPU: move the memory plug first

PLC programming Published 7 min read By IMDHMI controls team

Short answer

Move the original memory plug from the removed CPU to the replacement before commissioning: it stores the Setting and Monitoring Tool parameters and project and supplies the CPU, all module internal logic, safety inputs I1 to I8 and test outputs X1 to X8. Outputs Q1 to Q4 and Y1 to Y6 are supplied separately, and a WS0-MPL0 plug requires reconfiguration of any replaced EFI-compatible device.

On this page
  1. What the memory plug stores and what it powers
  2. Match the plug variant to the CPU module first
  3. Counting the supply paths for all 26 safety I/O terminals
  4. Moving the memory plug during a CPU module exchange
  5. Reconfiguring EFI devices when the plug is a WS0-MPL0
  6. Verify the controller before the machine runs again
  7. The decisions, case by case
  8. Questions asked

A MELSEC-WS CPU exchange is finished correctly when the original memory plug ends up on the replacement CPU module before commissioning — not when the project has been rewritten. The plug carries the parameters and project saved from the Setting and Monitoring Tool, and it is also the only electrical supply path to the CPU, to the internal logic of every module, to the safety inputs I1 to I8 and to the test outputs X1 to X8. Outputs Q1 to Q4 and Y1 to Y6 are supplied separately. One plug variant, WS0-MPL0, adds a duty: after a connected EFI-compatible device is replaced, that device must be configured again. This article gives the variant check, the terminal count that shows what a missing plug really kills, the transfer procedure and the checks to pass before the machine runs.

What the memory plug stores and what it powers #

The plug is two components in one. As storage, it holds the complete system configuration of the controller, so a module exchange does not force a reconfiguration, and it holds the parameters and project written from the Setting and Monitoring Tool. The stored data survives a power interruption, and nothing in that retention path is a battery — unlike a controller whose memory depends on replacing the S7-200 CPU 224 battery module safely during a CPU swap.

As supply, the plug feeds the CPU and the internal logic of all modules. On the safety I/O modules, the voltage for internal logic and the test outputs travels the internal FLEXBUS+ bus, and the documentation is explicit that those circuits, together with the safety inputs I1 to I8 and the test outputs X1 to X8, are supplied electrically only through the memory plug — they have no second source. The outputs are different: Q1 to Q4 and Y1 to Y6 are supplied separately from the plug, and a further clause in the documentation repeats Q4, Y1 to Y6 and adds IY7 and IY8 to the separately fed list, so wire those terminals to their own supply too. Separately fed loads are a normal panel arrangement — the same principle as relay contacts that switch separately supplied loads on an expansion output module: the load's supply lands at its terminals, not through the controller's storage.

Match the plug variant to the CPU module first #

Two memory plug variants exist for the MELSEC-WS, and each is usable only with the CPU modules specified for it; WS0-MPL0 is the variant the documentation names in the EFI reconfiguration rule. The Setting and Monitoring Tool writes each connected WS0-CPU1's parameters to that CPU's own plug, so a plug belongs to a CPU, not to a shelf. Before using a plug from a spare or another machine, read the variant marking on the plug and the type marking on the CPU and confirm the pairing in the Safety Controller documentation. Connectors that physically mate are not compatibility evidence.

Decision: the original plug transfers with the exchange. If a plug's variant and a CPU's type do not form a documented pair, that combination does not go into service — fit the correct variant instead of adapting by force or assumption.

Counting the supply paths for all 26 safety I/O terminals #

The case: one MELSEC-WS controller with every safety I/O terminal in use — 8 safety inputs (I1 to I8), 8 test outputs (X1 to X8), 4 outputs (Q1 to Q4) and 6 outputs (Y1 to Y6). The terminal groups and counts come from the controller documentation.

The rule: the memory plug electrically supplies the CPU, the internal logic of all modules, the safety inputs and the test outputs; the two output groups are supplied separately from it.

The arithmetic:

  • plug-fed field terminals: 8 + 8 = 16 terminals;
  • separately fed field terminals: 4 + 6 = 10 terminals;
  • check: 16 + 10 = 26 terminals, the full set in use;
  • plug-fed share: 16 ÷ 26 = 0.615, about 62 percent of the field terminals — with the CPU and every module's internal logic behind them.

The result: 16 of the 26 field terminals have no supply route except the memory plug; the other 10 terminals keep their own supply whether the plug is fitted or not.

The decision: a controller that is dark while the separately supplied output terminals still show their supply is pointing at the plug, because the plug is the CPU's only supply path. Check that it is fitted, seated and variant-matched before diagnosing power hardware or field wiring. One dead input among live ones is a field or device fault; all sixteen dead together is the plug.

Moving the memory plug during a CPU module exchange #

Work in this order:

  1. Photograph the CPU type marking and the memory plug variant marking before loosening anything.
  2. Label every connecting cable and plug-in connector on the controller unambiguously; the Safety Controller documentation calls for exactly this to prevent misconnection.
  3. Shut the controller down and isolate the machine under your site's lockout procedure.
  4. Remove the defective CPU module and keep its original memory plug with the job — never left on the discarded module, never swapped for another.
  5. Hang the replacement CPU module onto the DIN rail as the hardware manual describes.
  6. Fit the original memory plug onto the replacement CPU and press it fully home; confirm the variant-to-CPU pairing from the section above.
  7. Reconnect each labeled cable and connector to its recorded position.
  8. Power up and confirm the parameters and project appear from the Setting and Monitoring Tool; if the fitted plug is a WS0-MPL0 and a connected EFI-compatible device was replaced, configure that device again before the verification below.

Reconfiguring EFI devices when the plug is a WS0-MPL0 #

With that variant fitted, replacing an EFI-compatible connected device is not finished when the hardware is swapped: the controller documentation requires configuring the connected device again, and stored project data does not remove the step. The reason is checksum bookkeeping — the configuration of the connected EFI devices is not part of the WS checksum the tool maintains, so a clean checksum says nothing about those devices. A safety controller that meets hardware its configuration cannot account for can refuse to run altogether, the same failure shape as a safety PLC that stops with a 65D error when its EtherCAT module is added.

Decision: whenever the exchange touches an EFI-compatible device, schedule its reconfiguration before the functional checks, not after the machine refuses.

Verify the controller before the machine runs again #

Work through these checks in order:

  • the original plug sits on the replacement CPU, fully seated, with plug variant and CPU type forming a documented pair;
  • the parameters and project from the tool are present after power-up;
  • the safety inputs read their connected devices and the test outputs deliver their test pulses;
  • each separately supplied output group has its own supply verified at the terminals, since the plug never feeds them;
  • replaced EFI-compatible devices, where the plug variant requires it, are configured and accounted for.

One rule sits above all of this: moving the plug restores the stored configuration, it does not prove the safety function — run the machine's commissioning tests and demonstrate the safety function end to end, the proof a cause and effect matrix in a safety PLC must show, before the machine carries product or people.

The decisions, case by case #

  • CPU exchanged, original plug in hand: move the plug to the replacement CPU before commissioning — the stored configuration and the supply for most of the field terminals ride on it.
  • Plug variant uncertain: read the plug marking and the CPU type marking and match the documented pairing before power-up; a connector that mates proves nothing.
  • EFI-compatible device replaced: configure the connected device again before the functional checks — the WS checksum never carried it.
  • Controller dark but separately supplied output terminals live: suspect the memory plug before the power hardware; it is the CPU's only supply path.
  • Inputs and test outputs healthy, one output group dead: the fault sits in that group's separate supply, not in the plug.

Questions asked

If I rewrite the project after the exchange, do I still need the original memory plug?

Yes. Rewriting the parameters and project from the Setting and Monitoring Tool restores the stored data, but the supply role is separate: the CPU, the internal logic of every module, the safety inputs and the test outputs are fed only through the plug. With no plug fitted those circuits stay dead, and a fresh plug returns power but not your stored configuration, which is why the original plug is the one to move.

Does the memory plug come with a replacement CPU module?

No. The CPU module hardware documentation states that the memory plug is ordered separately, so a replacement CPU does not arrive with one fitted. Keep the original plug with the controller after the exchange, and do not plan a plug-less start: the CPU has no supply path except the plug, so a controller without one does not power up.

Do other safety platforms handle CPU or module replacement the same way?

No, each platform documents its own exchange behavior. GuardLogix documentation describes the controller attempting to configure a replacement CIP Safety I/O module automatically when the module is in an out-of-box condition. SIMATIC safety documentation commissions a replacement F-CPU with the previous F-CPU's SIMATIC Memory Card or an empty one, and replaced fail-safe signal modules keep the address DIP switch setting of the module they replace. The MELSEC-WS instead carries its configuration in the memory plug that transfers with the CPU.

Keep reading

  • Troubleshooting

    Why an S7-1500 safety PLC is missing from TIA Portal

    The CPU 6ES7511-1UK01-0AB0 and the two fail-safe modules are not hidden by licensing: they are absent from a V13 SP1 catalog because that release cannot engineer them. You need TIA Portal V14 SP1 with STEP 7 Professional V14 SP1, and the fail-safe entries appear only with STEP 7 Safety Advanced V14 SP1 installed. Upgrade the engineering station to that matched set, then prove the three order numbers in a test project before migrating the machine's project.

    PLC programming

  • Explainer

    What a cause and effect matrix in a safety PLC must prove

    A cause and effect matrix is implemented correctly only when you can prove three things: the logic matches the approved matrix revision intersection by intersection, every cause-to-effect path completes inside the process safety time with the final element stroke measured in the field, and every marked intersection trips while every unmarked one stays quiet. Latched first-out trips and managed bypasses belong in the same proof.

    PLC programming

  • 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