WriteEx

<< Click to Display Table of Contents >>

 

WriteEx

WriteEx([Value], [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 succeeded or not. The Value parameter defines a value to write to the OPC Driver. Data type depends on the Driver. If omitted, assumes OPC Block's current value. The SyncWrite parameter is a Boolean specifying whether this operation must be synchronous (True) or asynchronous (False). If omitted, uses the value specified in OPC Block's SyncWrite property.

 

NOTE

As in the Write method, writings are performed independent of the value being different from OPC Block's current value, as well as independent of OPC Block's AllowWrite property being True or False. In addition, if the writing works but the OPC Block is not in scan (whether its AllowRead property is set to False or because it is using the AdviseWhenLinked option when it is not linked), the written value immediately assumes a good quality and the time stamp of the moment of writing.

Was this page useful?