Application implementation

An application can provide its own TimeOffset provider by using the ITcSetExternalTime interface in TwinCAT C++.

This module provides a cyclic value for the respective offsets, if necessary.

Sequence

A module implements the following sequence

A TcCOM module was instantiated
1. The module registers itself as provider of a certain type of offset (Soft/Medium/Hard) via RegisterExternalTimeProvider
2. SetExternalTimeOffset can be used to provide an offset cyclically, if necessary
3. The module logs off using UnregisterExternalTimeProvider

Registration ensures that an offset of only one module can be used at a time.

A more detailed description of the ITcSetExternalTime interface can be found in chapter ITcSetExternalTime interface.