When an industrial machine begins behaving unpredictably, the natural reaction is to start changing things.

Operators press RESET. Maintenance personnel power-cycle field devices. Engineers modify timers, force permissives or apply online edits. Each person is trying to help restore production.

Unfortunately, these actions often destroy the evidence needed to identify the original fault.

The first rule of unstable PLC recovery is therefore simple:

Stop changing the system.

Before resetting, forcing, editing or restarting anything, preserve the current condition. Record what the PLC sees, what the physical machine is doing and what changed immediately before the failure.

Good troubleshooting begins with observation—not panic edits.

Why Freezing the Situation Matters

An intermittent failure may exist for only one PLC scan.

A permissive drops briefly. A network device stops updating. A sequence timeout expires just before feedback arrives. An output command is overwritten later in the scan.

Once the machine stops, secondary conditions begin changing:

  • Motors stop and their feedback disappears.
  • Flow and pressure fall.
  • Valves move to fail positions.
  • Downstream machines stop.
  • Additional alarms activate.
  • Communication may reconnect.
  • Operators begin pressing RESET.

Within seconds, the original fault may no longer be visible.

The machine now shows the consequences of the failure rather than its cause.

Freezing the situation preserves the best available evidence before it disappears.

A Typical Evidence-Loss Sequence

Consider a conveyor that stops unexpectedly:

  1. Remote drive communication fails.
  2. The motor command is removed.
  3. Conveyor speed feedback falls to zero.
  4. Product backs up.
  5. Downstream-ready disappears.
  6. A sequence timeout activates.
  7. Pressure drops after auxiliary equipment stops.
  8. The operator presses RESET repeatedly.
  9. Communication returns.
  10. Maintenance sees several active alarms but no obvious initiating cause.

The original problem was the drive communication failure.

By the time troubleshooting begins, that condition may already be healthy. Engineers may then investigate pressure, product sensors or timeout logic instead.

A first-out alarm or captured diagnostic state would have immediately narrowed the investigation.

Do Not Reset Before Capturing the Fault

RESET often changes more than the alarm display.

Depending on the program, it may:

  • Clear fault latches
  • Restart timers
  • Reset sequence steps
  • Cancel first-out records
  • Clear communication alarms
  • Re-enable startup logic
  • Restore output requests
  • Move the machine into a recovery state

Pressing RESET before recording the current condition may erase the information that explains the failure.

Before resetting, capture:

Current machine state
Previous machine state
First active fault
All current alarms
Startup and run permissives
Output requests
Final output commands
Field feedback
Communication status
Important analog values
Active operating mode

After the evidence is preserved, RESET can become part of a controlled test.

Stop Repeated Startup Attempts

Repeatedly pressing START can also change the fault.

Each attempt may:

  • Advance the sequence partially
  • Move actuators
  • Restart transition timers
  • Change process pressure
  • Create additional products or material movement
  • Produce new alarms
  • Change the physical relationship between sensors and equipment

After several attempts, the machine may no longer be in the same physical condition as it was during the original failure.

A controlled startup test should have:

  • One defined start request
  • Known initial conditions
  • Signals being recorded
  • Expected transitions
  • Clear stop criteria

Ten blind startup attempts usually provide less information than one properly monitored attempt.

Freeze Online Changes

When several engineers are connected to the PLC, uncontrolled online work can quickly make the system impossible to understand.

One engineer may:

  • Change a timer
  • Force an input
  • Modify a sequence condition

At the same time, another engineer may:

  • Restart a drive
  • clear a fault
  • adjust an HMI parameter

The combined result cannot be attributed to one action.

Before recovery continues:

  1. Identify everyone connected to the control system.
  2. Stop uncoordinated online edits.
  3. Assign one person to approve changes.
  4. Record all current online differences.
  5. Confirm which project matches the running PLC.
  6. Save a recoverable baseline.

The goal is to restore one authoritative version of reality.

Capture the Current PLC State

The current machine state is often the most useful starting point.

For state-based programs, record:

Current_State
Previous_State
Requested_Next_State
Transition_Reason
State_Entry_Time
Time_In_State

For older latch-based programs, record the important internal memories that represent sequence progress.

Examples include:

Cycle_Active
Startup_Complete
Automatic_Run_Request
Recovery_Active
Step_Complete
Fault_Reset_Accepted

The technician should be able to answer:

  • Where did the machine stop?
  • What transition was expected next?
  • Which condition blocked that transition?
  • How long had the machine remained in the state?
  • Did the state change immediately before the fault?

Without that information, troubleshooting often becomes a search through unrelated ladder networks.

Capture Active Alarms

Do not record only the alarm currently shown at the top of the HMI.

Capture:

  • First-out alarm
  • Alarm activation order
  • Current alarms
  • Cleared-but-unacknowledged alarms
  • Device diagnostic alarms
  • Network alarms
  • Analog channel faults
  • Sequence timeouts

Alarm order matters.

For example:

03:14:20.115 — Remote I/O connection lost
03:14:20.128 — Drive ready lost
03:14:20.135 — Motor command removed
03:14:20.840 — Flow low
03:14:22.100 — Process pressure low

The flow and pressure alarms are consequences.

The remote I/O loss is the likely initiating fault.

Capture Raw Interlock Conditions

Combined interlock bits are convenient during normal operation but can hide the real problem.

A tag such as:

Motor_Permissive = FALSE

does not explain which condition failed.

Capture the individual raw conditions:

Safety_Healthy
Overload_Healthy
Drive_Ready_Raw
Drive_Communication_Healthy
Pressure_Switch_Raw
Valve_Open_Feedback
Downstream_Ready

Also capture their processed versions:

Pressure_Healthy_Filtered
Valve_Open_Validated
Drive_Data_Valid
Motor_Start_Permissive

Comparing raw and processed values shows whether the failure came from the field, communication, filtering or logic.

Capture Startup Conditions

Intermittent startup faults often disappear as soon as all devices finish initializing.

Before attempting another start, record:

  • PLC startup-complete status
  • Remote I/O connection
  • Drive communication
  • Drive ready
  • Analog data validity
  • Safety status
  • Utility pressure
  • Required valve positions
  • Upstream and downstream readiness
  • Start-request duration

A useful startup event record might show:

03:22:04.100 — Start request received
03:22:04.105 — Start blocked: Drive 3 data invalid
03:22:04.120 — Start request removed
03:22:04.145 — Drive 3 data became valid

Without high-speed capture, the HMI may show every permissive healthy by the time the engineer looks at the screen.

Identify All Active Forces

An active force changes the relationship between the real system and the program.

The raw input may be false while the PLC uses a forced true value. The ladder may show a coil de-energized while the physical output remains forced on.

Before troubleshooting, review the complete force table.

Record:

  • Forced tag or channel
  • Forced value
  • Who applied it
  • Why it was applied
  • When it was applied
  • Expected removal condition

Do not assume that forces are absent because no force symbol is visible on the current ladder page.

A force elsewhere in the project can affect the same sequence indirectly.

Capture Active Bypasses

Programmed bypasses can be more difficult to identify than online forces.

Search for:

  • Maintenance overrides
  • Commissioning bits
  • Ignore-fault commands
  • Disabled timeouts
  • Forced-ready conditions
  • Simulation mode
  • Test-mode logic

Record each active bypass separately:

Bypass: Valve V12 open feedback
Status: Active
Authorized by: Maintenance
Activation time: 02:48
Reason: Sensor alignment test
Operating restriction: Manual mode only

A general indication such as Any_Bypass_Active is useful, but it should not replace a detailed bypass register.

Identify the Last Known Stable Condition

The last stable condition provides a boundary for the investigation.

Determine:

  • When did the machine last complete a normal cycle?
  • What state was it in?
  • What maintenance occurred afterward?
  • Was power interrupted?
  • Was a program edit applied?
  • Was a device replaced?
  • Did the operating mode change?
  • Did the fault begin after shift handover?

A timeline might look like:

01:50 — Production operating normally
02:05 — Pressure transmitter replaced
02:18 — PLC scaling updated online
02:22 — First successful cycle
02:31 — First intermittent startup failure
02:44 — Filter time increased
03:02 — Machine stopped completely

This timeline immediately directs attention toward the transmitter, scaling change and later filtering modification.

Ask What Changed Immediately Before the Fault

“What changed?” is one of the most useful commissioning questions.

Possible changes include:

  • Online PLC edit
  • HMI download
  • Drive parameter update
  • Sensor replacement
  • Cable repair
  • Network switch replacement
  • Power interruption
  • Mechanical adjustment
  • Recipe change
  • Production speed increase
  • Mode change
  • Operator procedure change

The answer should be based on records and observation rather than memory alone.

A change may appear unrelated while still affecting timing, signal quality or sequence conditions.

Check for Recent Online Edits

Online edits deserve special attention because they can create differences between:

  • The running PLC
  • The engineer’s offline project
  • The official backup
  • Another engineer’s laptop copy

Record:

  • Which block was changed
  • Exact original logic
  • Exact new logic
  • Time of the edit
  • Person who applied it
  • Reason
  • Whether it was tested
  • Whether the offline master was updated

A project comparison or online/offline difference report can reveal changes that were never documented.

Before adding another edit, determine whether the previous one should be rolled back.

Determine Whether Power Cycled

Power interruptions can alter:

  • Retained bits
  • Sequence states
  • Communication sessions
  • Analog filter values
  • Drive readiness
  • HMI command states
  • Remote I/O initialization
  • Device diagnostics

Ask:

  • Did the PLC restart?
  • Did only field power fail?
  • Did drives remain powered?
  • Did the HMI restart separately?
  • Did remote I/O recover later than the CPU?
  • Were any startup commands retained?
  • Did timestamps or diagnostics record undervoltage?

Different power-recovery orders can create different symptoms.

A CPU that starts before remote I/O and drives may evaluate incomplete permissives and enter a fault state before the rest of the equipment is ready.

Verify Whether a Permissive Failed Physically

Do not assume that a false PLC permissive is a programming problem.

Check the physical source:

  • Is pressure actually healthy?
  • Is the valve physically open?
  • Is the contactor energized?
  • Is the guard closed?
  • Is airflow present?
  • Is the drive truly ready?
  • Is the remote machine operating?

Compare:

Physical process
Electrical input
Raw PLC input
Processed PLC permissive
HMI indication

This isolates where the disagreement begins.

For example:

  • Valve physically open
  • Sensor LED on
  • Input-module LED off
  • PLC input false

This points toward wiring or the input module—not sequence logic.

Check for Stale HMI Data

The HMI may display information that is:

  • Delayed
  • Cached
  • Filtered
  • Slowly refreshed
  • No longer updating

A green indicator does not prove that the PLC saw the condition during the failed transition.

Confirm:

  • HMI communication healthy
  • Tag quality valid
  • PLC raw value matches the display
  • Trend update interval is fast enough
  • No HMI-side scaling is applied
  • The tag is mapped to the correct PLC variable

Use PLC traces or watch tables for brief events.

The HMI is an observation tool. It is not always an accurate event recorder.

Check Remote I/O Communication

Remote I/O can produce intermittent faults without leaving an obvious permanent alarm.

Review:

  • Connection state
  • Diagnostic buffer
  • Packet or update errors
  • Device restart events
  • Port statistics
  • Update time
  • Data validity
  • Module diagnostics
  • Network topology changes

A remote input may remain at its last value during communication loss, depending on configuration.

A healthy-looking bit must therefore be checked together with communication quality and signal age.

Save Diagnostic Buffers Before Restarting Devices

Restarting a PLC, drive or network device often clears or changes diagnostic information.

Before power cycling, save:

  • PLC diagnostic buffer
  • Drive fault history
  • Safety-controller diagnostics
  • Network switch logs
  • Remote I/O diagnostics
  • HMI event history
  • Alarm records
  • Trace data

Power cycling may restore operation while simultaneously deleting the evidence needed to understand why the failure occurred.

Use it as a controlled test, not an automatic first response.

Create a Recovery Snapshot

A useful recovery snapshot can contain four categories.

PLC information

Current state
Previous state
Fault code
Active alarms
Start and stop requests
Output commands
Active forces
Online differences
Cycle time

Field information

Physical actuator positions
Device indicator states
Actual pressure, flow and level
Contactors and breakers
Power-supply voltage
Sensor condition

Communication information

Remote I/O health
Drive connections
Network-device status
Data-valid bits
Heartbeat counters
Last-update times

Recent history

Maintenance work
Online edits
Power interruptions
Recipe changes
Operator actions
Last successful cycle

This snapshot becomes the baseline for controlled troubleshooting.

Assign One Change Owner

During live recovery, one person should coordinate all PLC changes.

Other specialists may investigate mechanical, electrical and process conditions, but the change owner should know:

  • What is being modified
  • Why it is being modified
  • Expected result
  • Rollback method
  • Current active test

This prevents simultaneous changes from different laptops or teams.

It also makes the recovery log accurate.

Begin Controlled Isolation

After the situation is frozen and documented, isolate the problem systematically.

Trace the signal path:

Request
↓
Permission
↓
State transition
↓
Command
↓
Physical output
↓
Device response
↓
Feedback

For a motor startup failure:

Start request received?
↓
Start permissives valid?
↓
Machine entered STARTING?
↓
Motor command generated?
↓
PLC output energized?
↓
Contactor or drive responded?
↓
Running feedback returned?

The first failed stage identifies the most likely fault area.

Use One Hypothesis at a Time

Write the hypothesis before changing anything.

For example:

The machine fails to start because remote drive-ready data becomes valid after the HMI start pulse ends.

Then define the test:

Trace the HMI start request, drive-ready value, data-valid bit and machine state at PLC task speed.

Expected result:

On failed attempts, the start request returns false before drive-ready data becomes valid.

This approach produces evidence without forcing the drive-ready signal or extending timers blindly.

Make One Controlled Change

When evidence supports a modification:

  1. Record the original value or logic.
  2. Define the expected outcome.
  3. Apply one change.
  4. Repeat the same controlled test.
  5. Record the result.
  6. Keep or roll back the change.

Avoid changing:

  • Timer
  • Permissive
  • Filter
  • Sequence step
  • Drive parameter

all during the same test.

When several changes are applied together, the successful one cannot be identified.

Define Rollback Before Editing

Before applying an online edit, know how the system will be restored.

The rollback plan should include:

  • Original code or parameter
  • Correct backup
  • Required machine state
  • Whether a CPU stop is needed
  • Data values that must be preserved
  • Person authorized to approve rollback
  • Post-rollback test

A change without a rollback method is not a controlled test.

Protect Safety Functions

Freezing the troubleshooting situation also means preventing well-intentioned changes from degrading safety.

Do not use standard PLC forces or ordinary bypass bits to defeat:

  • Emergency-stop functions
  • Guard monitoring
  • Safe motion
  • Safety contactor feedback
  • Required protective interlocks

Safety-related testing must follow the approved architecture, procedures and machine risk assessment.

Production pressure does not change the required level of protection.

Preserve the Physical Machine Condition

Sometimes freezing the situation also requires preventing further physical changes.

Depending on the fault and risk, this may involve:

  • Stopping automatic retries
  • Blocking new product entry
  • Maintaining a controlled valve state
  • Applying energy isolation
  • Preventing operators from moving actuators
  • Marking product positions
  • Recording gauge readings

The goal is to prevent the machine from drifting farther away from the condition that produced the fault.

Build Freeze Functions Into the PLC

Well-designed systems make evidence collection easier.

Useful features include:

  • First-out fault capture
  • Previous and current machine states
  • Transition history
  • Snapshot buffers
  • Event timestamps
  • Raw permissive displays
  • Output-command and feedback comparisons
  • Active bypass register
  • Signal-quality monitoring
  • Maximum scan-time records

A fault snapshot might automatically record:

Fault time
Machine state
Sequence step
Output requests
Physical feedback
Important analog values
Communication health
Operator mode

This reduces dependence on an engineer being connected at the exact moment of failure.

A Practical Freeze Checklist

When an unexpected fault appears:

Stop

  • Stop repeated resets.
  • Stop repeated startup attempts.
  • Stop uncontrolled online edits.
  • Stop additional forces and bypasses.

Secure

  • Confirm personnel safety.
  • Assess hazardous stored energy.
  • Apply site isolation procedures where required.
  • Prevent unexpected movement.

Capture

  • Current and previous state
  • First-out fault
  • Active alarms
  • Interlock status
  • Startup permissives
  • Output commands and feedback
  • Analog values
  • Communication status
  • Active forces and bypasses
  • Diagnostic buffers

Establish history

  • Last known stable cycle
  • Recent maintenance
  • Recent online edits
  • Power interruptions
  • Device or network changes
  • Operator actions

Control

  • Assign one recovery leader.
  • Establish one running project baseline.
  • Record every action.
  • Define rollback before changes.

Isolate

  • Trace request to feedback.
  • Test one hypothesis.
  • Change one condition.
  • Observe and record the result.

Questions That Must Be Answered

Before altering the PLC program, the recovery team should answer:

  • What exactly failed?
  • What was the machine doing at that moment?
  • What changed immediately beforehand?
  • Which alarm occurred first?
  • What state was the sequence in?
  • Was an online edit applied recently?
  • Did any equipment lose power?
  • Are forces active?
  • Are bypasses active?
  • Did a physical permissive fail?
  • Is communication healthy?
  • Is the HMI displaying current data?
  • Does the PLC state match the physical machine?
  • What was the last confirmed stable condition?

When these questions remain unanswered, editing the logic is premature.

Final Thoughts

The worst time to make rapid uncontrolled changes is when the machine is already behaving unpredictably.

Every reset, force, bypass, timer adjustment and online edit changes the evidence. When several changes are layered together, the original fault disappears beneath the recovery attempts.

Professional troubleshooting begins by freezing the situation.

Capture the PLC state. Preserve alarms. Record forces and bypasses. Verify the physical machine and identify the last stable condition.

Only then should controlled isolation begin.

The objective is not to avoid taking action.

It is to ensure that every action produces useful information and can be reversed safely.

Observation creates a baseline.

A baseline creates evidence.

Evidence restores predictable behaviour far more reliably than panic edits.

Leave a Reply

Your email address will not be published. Required fields are marked *