OPC Foundation
  • Documents
  • NodeSets
  • Search
5.9.4 SetTime Method

SetTime Method (defined in Table 33) 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 35).

Method Declaration

SetTime (

[in] TargetTime UtcTime

);

Table 33 - 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 UA Services Part 4 – Services specification). They are described in Table 94 for ease of reference.

Comments

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

Table 34 - SetTime Method AddressSpace Definition

Attribute

Value

BrowseName

SetTime

References

Node Class

BrowseName

DataType

TypeDefinition

Modelling Rule

HasProperty

Variable

InputArguments

Argument[]

PropertyType

Mandatory

Table 35 – 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