Reference
OpcClient.WriteNodes Method
Writes one or more values to one or more attributes of one or more nodes using the specified commands.
Reference
OpcClient.WriteNodes 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 |
|---|---|
| WriteNodes( | Writes one or more values to one or more attributes of one or more nodes using the specified commands. |
| WriteNodes( | Writes one or more values to one or more attributes of one or more nodes using the specified commands. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The write service is currently not supported, especially using the commands 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 |
WriteNodes(IEnumerable<OpcWriteNode>)
Writes one or more values to one or more attributes of one or more nodes using the specified commands.
public OpcStatusCollection WriteNodes(IEnumerable<OpcWriteNode> commands)Public Function WriteNodes(
commands As IEnumerable(Of OpcWriteNode)) As OpcStatusCollectionParameters
| Name | Type | Description |
|---|---|---|
commands | IEnumerable<OpcWriteNode> | A sequence of OpcWriteNode instances to process. |
Returns
An instance of the OpcStatusCollection its number and order of items matches the number and order of items in the commands sequence. There is for each command one entry which indicates the outcome of the operation for that command.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The commands sequence or one of its items is a null reference ( |
Remarks
Known results for the commands specified 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 |
WriteNodes(params OpcWriteNode[])
Writes one or more values to one or more attributes of one or more nodes using the specified commands.
public OpcStatusCollection WriteNodes(params OpcWriteNode[] commands)Public Function WriteNodes(
ParamArray commands As OpcWriteNode()) As OpcStatusCollectionParameters
| Name | Type | Description |
|---|---|---|
commands | params OpcWriteNode[] | An array of OpcWriteNode instances to process. |
Returns
An instance of the OpcStatusCollection its number and order of items matches the number and order of items in the commands commands. There is for each command one entry which indicates the outcome of the operation for that command.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The commands array or one of its items is a null reference ( |
Remarks
Known results for the commands specified 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 |

