ST_TimeSyncDiagnostic

Extended output structure for FB_TimeSync

TYPE ST_TimeSyncDiagnostic :
  STRUCT
    iCycleIndexDiff              : DINT;
    iTotalEqualDataCounter       : UINT;
    iConsecutiveEqualDataCounter : UINT;
    fDrift                       : LREAL;
  END_STRUCT
END_TYPE

iCycleIndexDiff : Difference between the current iCycleIndex and the value received during the previous task cycle. For continuous sending/receiving the value is 1. 0 if a date is read twice, 2 if a sent date was not received.

iTotalEqualDataCounter : Total number of cycles during which no new data were received since the FB was activated.

iConsecutiveEqualDataCounter : Current number of successive cycles during which no new data were received, i.e. during which fCycleIndex=0 applied successively.

fDrift : Current sender and the receiver phase difference in [ppm=parts per million]. A negative sign means that the cycle time of the sender is greater than that of the receiver.

fDrift := 1E6/(number of cycles between two step changes)