Overview

Time stamping data diagnostic is managed by 2 types of information:

  • Data exchanged implicitely with the PLC.

  • Data stored in the time stamping module internal buffer (BMX ERT 1604 T or BMX CRA 312 10) with time stamped events.

Diagnostic Data Provided Through Implicit Exchanges

Information accessed through %IW or IODDT or Device DDT:

  • TS_DIAGNOSTIC_FLAGS that contains:

    • Time valid indication (TIME_VALID)

    • Clock failure indication (CLOCK_FAILURE)

    • ClockNotSynchronized indication (CLOCK_NOT_SYNC)

    • Buffer full indication (BUFF_FULL). The bit set to 1 on buffer full detection (bit is cleared when buffer is able to store new events).

  • Percentage of buffer filled (TS_BUF_FILLED_PCTAGE)

  • Time stamping events state for internal use (TS_EVENT_STATE)

  • SOE uncertain indication (SOE_UNCERTAIN is not used in applicative time stamping solution)

Diagnostic Data Contained in the Modules Internal Buffer

Each time stamped event contains an information on time quality. TimeQuality is the 12th byte of each time stamped entry in the buffer and contains the following diagnostic data:

  • LeapsSecondsKnown (BOOL type, bit 7 -preset to 0-)

  • ClockFailure (BOOL type, bit 6)

  • ClockNotSynchronized (BOOL type, bit 5)

  • TimeAccuracy (5 bits code, bit 4 to 0). TimeAccuracy has the following meanings:

    • It represents the number of significant bits in the time stamp fraction of second (a 1ms time stamp resolution in the BMX ERT 1604 T is set with value 01010 bin).

    • It indicates the time stamp quality for TimeQuality diagnostic purpose (11111 bin indicates a non periodical time stamping detection cycle, 11110 bin indicates an invalid time, 11101 bin indicates an I/O channel detected error, 11100 bin indicates an initialization in process, 11011 bin indicates that the clock is in synchronization phase).

The BMX ERT 1604 T module provides an event with ID 16 (SOE_UNCERTAIN ) to indicate that some events may be lost in the next sequence of events.

Diagnostic Data Contained in the GET_TS_EVT_X Function Block Parameter

GET_TS_EVT_X function blocks have an output STATUS parameter that provides reports on communication (exchange, address, buffer size) and function block operation (PLC buffer, time stamping module buffer, user parameters consistency during function block execution). Details on STATUS parameter are provided in GET_TS_EVT_M: Reading the Modicon M340 Time Stamped Event Buffer and GET_TS_EVT_Q: Reading the Quantum Time Stamped Event Buffer chapters.

Diagnostic Data Contained in Device DDT Information

Time stamping source modules located in a Modicon X80 remote drop manage device DDT diagnostic parameters. Details on those device DDTs are provided in chapter Device DDT Names for Quantum EIO Remote I/O Adapter Modules.

Diagnostic Data Contained in Language Interface Information

A BMX ERT 1604 T module in a Modicon M340 local drop manage diagnostic parameters with implicit input parameters. Details on those implicit input parameters are provided in chapter Language Objects for Channels.