Skip to main content
Version: 8.1

system.opchda.replace

This function is used in Python Scripting.

Description

Replaces values on the OPC-HDA server if the given item ID exists.

Client Permission Restrictions

Permission Type: OPC Server Management

Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope.

Syntax

system.opchda.replace(serverName, itemId, value, date, quality)

Parameters

TypeParameterDescription
StringserverNameThe name of the defined OPC-HDA server.
StringitemIdThe item ID to perform the operation on.
ObjectvalueThe value to replace.
ObjectdateThe date to replace.
IntegerqualityThe quality to replace.

Returns

Integer - The items quality resulting from the operation.

Scope

Gateway, Vision Client, Perspective Session

Keywords

system opchda replace, opchda.replace