Tiza Group

Home / Guides / Testing, commissioning and faults

SCADA Measurements With a Shifted Timestamp

Why SCADA event and measurement times differ from the device's: time zone, who stamps, unsynchronized clock. We configure it remotely.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

A difference of exact hours between SCADA and the device points to time zone or daylight saving time; a difference of seconds that grows each day, to an unsynchronized clock; a small, variable difference, to a stamp applied on arrival of the data and not at the source. It is separated by comparing one same event at the device, the gateway and SCADA.

Symptom

The same event has one time in the local log of the relay or the inverter and another on the SCADA event screen. Other times the measurements of the historical trend arrive shifted against those of the meter, or two events that happened almost at once appear in reversed order. Absurd dates also show up: events from 1970 or from the future.

That situation spoils trip analysis, reconciliation with other records and any report that requires a chronology. To understand the time architecture of a plant, with its master clock and protocols, see the parent guide on time synchronization in a solar plant. This guide starts from the symptom already being in SCADA and looks for where it comes from.

Probable causes, from most to least likely

CauseHow to recognize itWhat confirms or rules it out
Mixed time zone (UTC and local)Shift of an exact number of hours, stableZone configured in the device, the gateway, the SCADA server and the viewer
Daylight saving time enabled in one componentOne-hour shift only part of the year or only in some devicesDaylight saving option in each component
SCADA stamps on arrival and not at the sourceSmall, variable shift that changes with communication loadCompare the data stamp with the reception time; the «device time» option of the communication controller
Device clock unsynchronized or driftingShift of seconds or minutes that grows over the daysTime quality of the data and state of the device clock
Time source unreachable or badly configuredSeveral devices shifted at onceTime server status, routes, ports and alternates
Device with no initialized timeDates of 1970 or another default dateDevice log after a restart or a loss of power
Data held and forwardedCorrect stamps, but they arrive lateStore-and-forward in the gateway or the device
Gateway that rewrites the stampAll data from the same gateway with the same shiftProtocol conversion configuration of the gateway

How to diagnose it

  1. Choose a reference event. Best is an operation you cause with authorization, for example opening and closing a breaker, so that a local log of the device exists with its time.
  2. Follow the event time along the whole chain. Note the time in the device’s local log, the one leaving the gateway if there is one and the one SCADA shows, in the same time zone. The subtraction between each pair locates the stretch where the shift is born.
  3. Classify the difference. If it is an exact multiple of 3,600 seconds, think of time zone or daylight saving. If it grows with the days, think of a drifting clock. If it is small and changes from one event to another, think of a stamp applied on arrival or a communication queue.
  4. Look at the time quality. Telecontrol and substation automation protocols carry time validity flags. In IEC 60870-5-101 and 104 the CP56Time2a stamp occupies seven octets, from milliseconds to the year, and carries an invalid-time bit and a summer-time bit. In IEC 61850 the stamp is a UTC time referenced to 1970 and the quality includes clock-failure and clock-not-synchronized flags. If the device marks the time as invalid or not synchronized, the shift is born in the device.
  5. Check the time source. A network time server delivers UTC and carries no zone or daylight saving information. The conversion to local time is made by each component; if two components convert differently, the shift appears.
  6. Check the SCADA communication controller’s stamp option. Many let you choose between using the time carried by the data or the time at which it arrived. With the second, the time depends on the network and the queues.
  7. Confirm the synchronization status of the devices. The status of PTP, IRIG-B or the time server of each device is read in its own interface, as described in the guide on when IEDs lose time.

What to do

  • Time zone or daylight saving. Define a single convention for the whole plant: store everything in UTC and display in local time, or always use local time without daylight saving. Apply it the same in devices, gateways, server and viewers.
  • Stamp on arrival. Configure the controller to use the source time when the device delivers it with good quality, and reserve arrival time for devices that do not stamp.
  • Drifting or unsynchronized clock. Fix the source: time server, network, protocol and its configuration. The options and their reach are in PTP, NTP or IRIG-B; the guide on GNSS clock with holdover and redundancy covers the source.
  • Uninitialized time. Make the device get the time at startup and mark it invalid until it does.
  • Gateway. Correct the stamp conversion rule and check that it does not mix source and arrival.
  • After correcting. Note the date of the change: earlier records keep the shift and whoever uses them must know.

Field checklist

  • Reference event provoked and its time noted in the device’s local log.
  • Time of the same event in the gateway and in SCADA, in the same zone.
  • Shift calculated and classified: exact hours, growing drift, or small and variable.
  • Time zone and daylight saving checked in device, gateway, server and viewer.
  • Time quality of the data checked: invalid time, clock not synchronized.
  • Stamp option of the communication controller checked: source or arrival time.
  • Status of the time source and of each device’s synchronization confirmed.
  • Absurd dates searched for after restarts or losses of power.
  • Correction documented with a date for later records.

Illustrative example

Generic situation, with invented figures. A relay at the plant records an opening at 14:32:10.250 local time, with a synchronized time source. SCADA shows the event at 19:32:10.250. The difference is exactly 5 hours, 5 × 3,600 = 18,000 seconds, and the milliseconds match: there is no drift or network delay, only a conversion. The site is at UTC−5, so the data arrives correctly stamped in UTC and the viewer shows it without converting it to local time. At another plant, a clock with no source drifts 2 seconds per day: after 9 days the shift is 18 seconds, and the events of two relays that operated less than 18 seconds apart appear swapped in order. The two cases are separated by the shape of the difference: constant and round against growing.

What not to do

  • Do not correct the time of a device in service without coordinating. Changing it can disorder its event and oscillography records and affect functions that depend on synchronization.
  • Do not «fix» the shift by adjusting the SCADA time if the source is wrong: one screen ends up right and every record wrong.
  • Do not mix UTC and local time in the same convention nor change convention in the middle of a record.
  • Do not trust the SCADA order to determine the cause of a trip when there is a shift; use the synchronized local records.
  • Do not open medium-voltage cabinets or intervene on energized circuits: all of this is done in the data network and in the configuration.

When to call us

If you cannot locate where the shift is born, or need to define a single time convention for the devices, gateways and SCADA of your plant, we review the configuration and the traffic and leave it consistent. We configure it remotely. Contact us.

References

  • IEC 60870-5-4, definition and coding of application information elements, CP56Time2a format.
  • IEC 60870-5-104, telecontrol over TCP/IP networks.
  • IEC 61850-7-2, abstract communication services and models: timestamp data type and time quality.
  • IETF RFC 5905, Network Time Protocol Version 4: Protocol and Algorithms Specification.

Frequently asked questions

SCADA shows events exactly five hours after the relay's time. What happened?

A difference that is an exact multiple of an hour is almost always a time zone issue: one component stores or transmits time in UTC and another displays or interprets it as local time, or the reverse. A five-hour difference matches a site at UTC−5 with no daylight saving.

Why does the order of events in SCADA not match the relay's?

Because SCADA orders by whatever stamp each data point carries. If some devices stamp at the source and others receive the stamp on arrival, or if a clock is off, events that happened close together can appear in another order. The device's local log, synchronized, is the reference.

Can I fix the shift by changing the time in SCADA?

Only if the problem is in SCADA and is one of presentation. If the source is badly synchronized, moving the SCADA time hides the symptom and leaves every record of the device wrong. First you have to know where the shift is born.

WhatsApp