Top  | Previous | Next

system.opc.writeValue

Description

Writes a value directly through an OPC server connection. Will return an OPC-UA status code object. You can quickly check if the write succeeded by calling isGood() on the return value from this function.

Syntax

system.opc.writeValue(opcServer, itemPath, value)

Parameters

String opcServer - The name of the OPC server connection in which the item resides.

String itemPath - The item path, or address, to write to.

Object value - The value to write to the OPC item.

Returns

Quality - The status of the write. Use returnValue.getQuality.isGood() to check if the write succeeded.

Scope

All