OPC Foundation
  • Documents
  • NodeSets
  • Search
6.13.4 SetTime Method

SetTime Method (defined in Table 85) is used to set the time on the Server. If an error occurs this Method shall return an error code indicating the failure to set the time (see Table 87).

Signature:

SetTime (

[in] 0:UtcTime TargetTime );

Table 85 – SetTime Method parameters

Argument

Description

TargetTime

The UTC Time that the Server shall use to update its internal clock.

Method result codes are defined as part of the Call Service (see OPC 10000-4). They are described in Table 124 for ease of reference.

Comments

The SetTime Method will change the time on the Server. Table 86 specifies the AddressSpace representation for the SetTime Method.

Table 86 – SetTime Method AddressSpace Definition

Attribute

Value

BrowseName

SetTime

References

Node Class

BrowseName

DataType

TypeDefinition

Other

0:HasProperty

Variable

0:InputArguments

0:Argument[]

0:PropertyType

M

ConformanceUnits

MDIS Timesync Object

Table 87 – SetTime Result Codes

Symbolic Id

Description

Bad_InvalidTimestamp

The timestamp is outside the range allowed by the Server or an error occurred setting the Server time.

Please report errors or issues with the site to webmaster.

Copyright © 2025 - OPC Foundation