WriteEx

<< Click to Display Table of Contents >>

 

WriteEx

WriteEx([Value], [NewTimestamp], [NewQuality], [SyncWrite])

Performs a writing of a value to a device. All its parameters are optional. If omitted, this method's behavior is the same as the Write method. This method returns a Boolean indicating whether this operation was successful or not. The Value parameter defines a value to write to the OPC UA Driver. Its data type depends on the Driver. If omitted, assumes the current value of the OPC UA Block Tag. If specified, it must be an array with the same number of Elements of the OPC UA Block Tag. The NewTimestamp and NewQuality parameters indicate, respectively, the date and time and quality of this value, if the WriteValueMode property is set to 2 - wvmValueQualityTimestamp. The SyncWrite parameter is a Boolean specifying whether this operation must be synchronous (True) or asynchronous (False). If omitted, uses the value specified in the SyncWrite property of the OPC UA Block Tag.

 

NOTE

As in the Write method, this writing is performed independently of the value being different from the current value of the OPC UA Block Tag, as well as independently of the AllowWrite property of the OPC UA Block Tag being set to True or False. In addition, if this writing works but the OPC UA Block Tag is not in scan (whether because its AllowRead property is set to False or uses the AdviseWhenLinked option when not linked), the value written is immediately assumed with good quality and the time stamp at the moment of this writing.

Was this page useful?