Reference
OpcClient.WriteNodeValue Method
Writes the Value attribute of the node using the further specified value.
Reference
OpcClient.WriteNodeValue Method
- Type
- OpcClient
- Namespace
- Opc.UaFx.Client
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcClient Members
- Also in
- Opc.UaFx.Client
Writes the Value attribute of the node using the further specified value.
csharp
public OpcStatus WriteNodeValue(IOpcNodeValue node, object value)vbnet
Public Function WriteNodeValue(
node As IOpcNodeValue,
value As Object) As OpcStatusParameters
| Name | Type | Description |
|---|---|---|
node | IOpcNodeValue | The IOpcNodeValue instance which represents the node its Value is to be written. |
value | Object | The data to write to the Value attribute. |
Returns
An instance of the OpcStatus class which indicates the outcome of the write operation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The node is a null reference ( |
| Invalid | The write service is currently not supported, especially using the node specified. |
| Object | The object has been disposed of. |
| OpcException | The service execution failed upon different circumstances; for more details see exception details. The following issues can lead to that exception: BadNothingToDo and Bad |
Remarks
Known results for the operation are:
| Status | Description |
|---|---|
| Good | The value was successfully written to an intermediate system but the Server does not know if the data source was updated properly. |
| BadNodeIdInvalid | For more details see BadNodeIdInvalid. |
| BadNodeIdUnknown | For more details see BadNodeIdUnknown. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The requested write operation is not supported. If a client attempts to write any value, quality, timestamp combination and the server does not support the requested combination ( |
| BadNotWritable | For more details see BadNotWritable. |
| Bad | For more details see Bad |
| BadOutOfRange | If a client attempts to write a value outside the valid range like a value not contained in the enumeration data type of a node, the server shall return this status for that node. |
| BadTypeMismatch | For more details see BadTypeMismatch. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |

