OPCDA.NET Reference Manual
Write(String,Object,Int32,Int32) Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > RefreshGroup Class > Write Method : Write(String,Object,Int32,Int32) Method

name
IN: Full OPC item name
val
IN: value to write
TransactionId
This value is returned in the WriteComplete callback to allow the execution information to be associated with the Write call.
CancelId
OUT: Cancel id code

Glossary Item Box

Write a new value to the specified item. An asynchronous OPC write call is executed. The WriteComplete callback returns the indication of the successful execution or error information if the write failed.
The returned cancel ID can be used to cancel the call execution.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Write( _
   ByVal name As String, _
   ByVal val As Object, _
   ByVal TransactionId As Integer, _
   ByRef CancelId As Integer _
) As Integer
C# 
public int Write( 
   string name,
   object val,
   int TransactionId,
   out int CancelId
)

Parameters

name
IN: Full OPC item name
val
IN: value to write
TransactionId
This value is returned in the WriteComplete callback to allow the execution information to be associated with the Write call.
CancelId
OUT: Cancel id code

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.