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
TargetTimeThe 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
BrowseNameSetTime
References Node Class BrowseName DataType TypeDefinition Other
0:HasPropertyVariable0:InputArguments0:Argument[] 0:PropertyTypeM
ConformanceUnits
MDIS Timesync Object
Table 87 – SetTime Result Codes
Symbolic Id Description
Bad_InvalidTimestampThe timestamp is outside the range allowed by the Server or an error occurred setting the Server time.