Troubleshooting CPU 315-2DP Date and Time Reset Faults

David Krause6 min read
S7-300SiemensTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

A CPU 315-2DP clock returning to January 1994 indicates a clock initialization or overwrite event, not ordinary clock drift. First inspect the CPU diagnostic buffer, then audit every possible clock-writing path, including SFC0, connected engineering tools, operator interfaces, and time-synchronization services. If no write event explains the reset, compare the installed firmware against the update notes for the exact 6ES7315-2AG10-0AB0 hardware.

Symptom interpretation

The affected device is a Siemens CPU 315-2DP, 128 KB, with order number 6ES7315-2AG10-0AB0. The reported symptom is a return to a date in January 1994. Treat that value as a reset signature: a large, repeatable jump to an old date points toward initialization, an explicit clock write, loss of clock retention, or a firmware defect. Normal oscillator error produces gradual drift rather than a discontinuous change of decades.

Record when the date changes. A reset that coincides with power restoration has a different diagnostic path from one that occurs while the CPU remains in RUN. Also distinguish the CPU clock from a date displayed by an HMI or supervisory system. Read the time directly from the CPU before concluding that the controller clock changed; a display can show a default value because of a failed read, conversion error, invalid data, or stale communication.

Observed pattern Primary investigation Deciding evidence
Reset follows power removal Clock-retention behavior and hardware condition CPU time read before shutdown and immediately after restart
Reset occurs during RUN Programmed or external clock write Call references, communication logs, and matching timestamps
Only an HMI shows 1994 Display tag, conversion, and communications Direct CPU clock reading differs from the HMI value
No write path is found CPU diagnostics and firmware Diagnostic-buffer events and applicable firmware update notes

Clock-change mechanisms

The real-time clock is separate from the process image and ordinary retained application data. A memory reset, restart, or power interruption can affect these areas differently. Therefore, do not infer clock behavior solely from whether retained markers or data blocks survived. The CPU manual for the exact order number defines the clock-retention conditions and any hardware dependencies.

An application can set the CPU clock through SFC0. A block containing the call may execute only during startup, maintenance mode, a calendar routine, or an infrequent error branch, so a normal online observation can miss it. The call's return-value output must be evaluated and recorded; ignoring it hides rejected date structures and execution errors.

The PLC program is not the only possible writer. An engineering workstation, HMI, supervisory computer, or configured network time function can send a clock-setting request. Multiple time masters create intermittent reversals when one source has an incorrect date. Assign one authoritative source and disable competing writers.

Firmware is another decision branch for this CPU. The installed firmware version must be read from the module information and compared with the operating-system update notes that apply to 6ES7315-2AG10-0AB0. Match both the order number and hardware revision before selecting an update; a file intended for another CPU variant is not an acceptable substitute.

Diagnostic checks

  1. Capture the actual CPU time. Read the controller clock online and compare it with the HMI display and a trusted reference. Record the full date, time, CPU operating state, and whether communication was healthy.
  2. Read the diagnostic buffer before clearing or resetting anything. Look around the first incorrect timestamp for power loss, restart, transition between STOP and RUN, memory-reset activity, communication events, or internal CPU errors. Because timestamps after the clock jump may be misleading, use event sequence as well as displayed time.
  3. Search the complete application for clock manipulation. Find every direct or indirect use of SFC0, including calls inside reusable blocks, startup logic, maintenance code, and library blocks. Trace the enable condition and the date-time source feeding the call.
  4. Check the return value. Temporarily store and monitor the call's return-value output together with the input date-time value and a call counter. A changing counter proves execution even when the clock-setting request fails.
  5. Inventory external writers. Review engineering stations, HMIs, supervisory systems, and network synchronization settings. Identify which device is allowed to set the PLC time and compare that device's own date before reconnecting it.
  6. Identify the installed firmware. Record the CPU order number, hardware revision, and firmware version from module information. Compare that combination with the applicable CPU 315-2DP operating-system update notes.

Correction procedure

  1. Back up the PLC project and upload the current online configuration needed for comparison.
  2. Correct or inhibit every unintended SFC0 execution path. Gate legitimate clock setting with an explicit maintenance command, validate the supplied date-time fields, and retain the return value for diagnosis.
  3. Select one time authority. Disable clock writes from other connected systems, or configure them only as consumers of the selected source.
  4. If the reset follows power interruption, check the exact CPU manual for clock-retention requirements and inspect the applicable retention hardware or module condition. Replace only the component identified for this CPU revision.
  5. If diagnostics and firmware notes identify an applicable defect, follow the Siemens update procedure for the exact order number and hardware revision. Record the original firmware, target firmware, project backup, and post-update module information.
  6. Set the correct CPU date and time once, then return the controller to its required operating state. Do not repeatedly write the clock during every scan.

Numbered verification checks

  1. Check 1: direct clock reading. Expect the online CPU date and time to match the selected reference, apart from normal observation and communication delay.
  2. Check 2: application execution. Expect the SFC0 call counter to remain unchanged unless an authorized time-setting command occurs. When commanded, expect the recorded return value to indicate successful execution.
  3. Check 3: display agreement. Expect the HMI or supervisory display to show the same calendar date as the direct CPU reading. A mismatch isolates the remaining fault to communications, data conversion, or display configuration.
  4. Check 4: restart behavior. Perform the permitted restart test and expect the corrected date to remain valid. Correlate any change with the diagnostic-buffer event sequence.
  5. Check 5: power-cycle retention. Where the process and site procedure permit power removal, record the CPU time before shutdown and immediately after restoration. Expect continuity according to the retention behavior specified for the installed CPU hardware.

Recurring diagnostic pitfalls

Do not clear the CPU or diagnostic buffer before collecting evidence. A reset can remove the event sequence needed to distinguish a power event from a software write. Export or transcribe the buffer first.

Do not treat every January 1994 display as proof of a failed PLC clock. Read the clock online from the CPU and compare it with the displayed value. Likewise, do not declare power loss to be the cause merely because the machine recently restarted; test clock retention separately from application-data retention.

A text search for one visible SFC0 call is insufficient when clock-setting logic can be nested or conditionally executed. Cross-reference the complete project and instrument the execution path. Finally, never apply firmware by family name alone. The order number, hardware revision, installed firmware, and update package applicability must all match.

FAQ

Can a power outage reset a CPU 315-2DP clock?

It can be the trigger if the installed hardware no longer meets the CPU's clock-retention requirements. Record the time before power removal and immediately after restoration, then compare the result with the manual for 6ES7315-2AG10-0AB0.

Does a memory reset also reset the PLC date and time?

Clock retention and application-memory retention are separate behaviors. Check the diagnostic buffer and the exact CPU manual instead of inferring the clock result from retained markers or data blocks.

Can SFC0 change the CPU clock without an obvious operator command?

Yes. SFC0 may execute from startup, maintenance, library, or conditional logic; cross-reference every call and monitor its enable condition, input value, call counter, and return value.

Does a January 1994 HMI date prove that the CPU clock reset?

No. Read the clock directly from the CPU. If the direct value is correct, troubleshoot the HMI tag, date conversion, stale data, and communication status.

Can firmware cause CPU 315-2DP date resets?

Firmware remains a diagnostic branch after clock writers and retention conditions are checked. Compare the installed version with the operating-system update notes for the exact order number and hardware revision, apply only a matching update, then repeat the restart and permitted power-cycle tests; expect the corrected date to remain valid.

Back to blog