WriteEx

<< Click to Display Table of Contents >>

 

WriteEx

WriteEx([Value], [SyncWrite])

Writes a value to a device. All its parameters are optional. If omitted, the behavior of this method 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 the OPC Tag'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 the OPC Tag's SyncWrite property.

 

NOTE

As in the Write method, writings are performed independent of the value being different from OPC Tag's current value, as well as independent of OPC Tag's AllowWrite property being True or False. In addition, if the writing works but the OPC Tag is not in scan (if 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 the writing.

Was this page useful?