Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scripting_function


Panel
titleDescription

Insert values on the OPC-HDA server.

Panel
titleClient 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.

Panel
titleSyntax

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

  • Parameters

String serverName - The name of the defined OPC-HDA server.

String itemId - The item ID on which to perform the operation.

Any value - The value to insert.

Any date - The date to insert.

Integer quality - The quality to insert.

  • Returns

QualityCode - The result of the insert. See Scripting Object Reference.

  • Scope

Gateway, Vision Client, Perspective Session

Panel
titleCode Examples
Code Block
languagepy
# This inserts the value for May 28th, 2014 at 5:42:33.
 
date = system.date.getDate(2014, 4, 28)
datetime = system.date.setTime(date, 5, 42, 33)
system.opchda.insert("MyHistoryServer", "MyItemId", 42.5, datetime, 192)
Panel
titleKeywords

system opchda insert, opchda.insert