Enum TimeType

TwinCAT provides four different timestamps. The Enum TimeType is used to distinguish between them.

Syntax

enum TimeType {
SystemTime = 0,
ExternalTimeHard = 1,
ExternalTimeMedium = 2,
ExternalTimeSoft = 3, // e.g. NTP
};

Values

How the three external timestamp types are used in practice depends on application. The example below is merely a suggestion.

Name

Description

ExternalTimeHard

Suggested use for hard offsets that have no drift

ExternalTimeMedium

Suggested use for accurate offsets such as IEE1588

ExternalTimeSoft

Suggested use for general offsets, such as NTP