(write name type value conf sec locked seconds nanoseconds [flags quality])
The name of the point. This is a string.
The type of point. One of
0 = string
1 = float (8-byte double)
2 = integer (32-bit integer)
A string representation of the value for the point. It will be interpreted into the type specified by the type parameter.
A confidence factor in the range of 0 to 100. This is not used by the DataHub, so is available to programs that produce graduated confidence, such as expert systems.
A security level for this point. This is rarely used. If a point's security level is set to a non-zero value then attempts to write to that point must claim a security level equal to or greater than the security level of the point. This uses a "good citizen" model - the writer can claim any security it wants, and is assumed to be honest - so there is no strong security here. It is intended for systems that want to avoid accidental changes to values. Security level can be from 0 to 32767.
An indication that the point is locked, and cannot be changed. Can be 0 or 1. Attempts to write to a locked point will fail.
The UNIX epoch - seconds since Jan. 1, 1970, as produced by the time() function.
The number of nanoseconds inside this second. Cannot exceed 1,000,000,000.
User level code should always send a 0 for this value.
A quality indicator consistent with the OPC DA specification. This is not a bit field. It can be one of:
All strings can be surrounded by double-quotes if the string contains spaces or special characters. The backslash character (\) escapes double quotes and backslashes within the string. Newline, carriage return, form feed and tab are represented with \n, \r, \f, \t respectively. Strings must not contain newline characters.
A message indicating success or error. Please refer to Return Syntax for details.
This command lets you manually write information to a point. See also cwrite.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.