SetExternalTimeOffset method

Provide a new offset for the registered TimeType

Syntax

HRESULT      TCOMAPI SetExternalTimeOffset(OTCID oidProvider, TimeType type, __int64 offset) = 0;

Parameter

oidProvider: (type: OTCID) The object ID of the provider; normally the object ID of the calling party

type: (type: TimeType) The TimeOffset type

offset: (type: __int64) The new offset value.

Return value

Type: HRESULT

Notifies the success.

Description

It is valid for the offset ExternalTime = Internal Time + Offset. I.e. if the time in TwinCAT is in the past, the offset must be greater than 0.