Reference
OpcClient.WriteNodeValues Method
Writes the Value attributes using the nodes and values in the nodeValues specified.
Reference
OpcClient.WriteNodeValues 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
| Overload | Description |
|---|---|
| WriteNodeValues( | Writes the Value attributes using the nodes and values in the nodeValues specified. |
| WriteNodeValues( | Writes the Value attributes using the nodeValues specified. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The write service is currently not supported, especially using the nodeValues 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 |
WriteNodeValues(IEnumerable<OpcNodeValuePair>)
Writes the Value attributes using the nodes and values in the nodeValues specified.
public OpcStatusCollection WriteNodeValues(
IEnumerable<OpcNodeValuePair> nodeValues)Public Function WriteNodeValues(
nodeValues As IEnumerable(Of OpcNodeValuePair)) As OpcStatusCollectionParameters
| Name | Type | Description |
|---|---|---|
nodeValues | IEnumerable<OpcNodeValuePair> | A sequence of OpcNodeValuePair items which represents the nodes its Value is to be written using the further defined values. |
Returns
An instance of the OpcStatusCollection its number and order of items matches the number and order of items in the nodeValues sequence. There is for each item one entry which indicates the outcome of the operation for the OpcNodeValuePair item.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The nodeValues sequence or one of its items is a null reference ( |
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 |
WriteNodeValues(params OpcNodeValuePair[])
Writes the Value attributes using the nodeValues specified.
public OpcStatusCollection WriteNodeValues(params OpcNodeValuePair[] nodeValues)Public Function WriteNodeValues(
ParamArray nodeValues As OpcNodeValuePair()) As OpcStatusCollectionParameters
| Name | Type | Description |
|---|---|---|
nodeValues | params OpcNodeValuePair[] | An array of OpcNodeValuePair items representing the nodes and values which are written to their Value attribute. |
Returns
An instance of the OpcStatusCollection its number and order of items matches the number and order of items in the nodeValues array. There is for each entry in nodeValues one entry which indicates the outcome of the operation for that node.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The nodeValues array or one of its items is a null reference ( |
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 |

