WriteSyncMode

<< Click to Display Table of Contents >>

 

WriteSyncMode

Enum Determines how writings are sent to the I/O Server (synchronous or asynchronous mode). This property contains the configuration options described on the next table.

Available options for the WriteSyncMode property

Option

Description

0 - wsmDefault

Synchronous mode (default)

1 - wsmSync

Synchronous mode. Every time a value is written to a Tag, E3Run sends the writing to the I/O Server and waits for the return of that writing

2 - wsmAsyncUnconfirmed

Asynchronous mode without confirmation. All writings are sent to the I/O Server without waiting their return, and it is always assumed that writing was successful. When in asynchronous mode, Tag's writing methods (Write, WriteEx) always return True immediately, and writing status (on methods returning this status) remains always empty. Driver's OnTagWrite event is executed as soon as the writing is sent to the I/O Server, and the Succeeded parameter always remains in True

 

Asynchronous writings are executed by the I/O Server as soon as this Driver is available (when the current reading finishes). If several asynchronous writings are sent to the I/O Server, this Driver only resumes readings after all asynchronous writings are executed.

Was this page useful?