Variable.SynchronizedDataAccess Property

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Variable.SynchronizedDataAccess Property

BR.AN.PviServices .NET


Only Valid for ANSL connections!!! Defines synchronized write/read access to variable data on the PLC Possible settings: /SYNC=0 ... Data consistency can only be ensured for single variables with a maximum size of 4 bytes and single variable of type double (8-byte float). This setting corresponds to write/read access to variables in INA2000. If the data from entire structures or fields should be transferred consistently, the user has to implement corresponding measures(e.g.with handshake variables). /SYNC=1 ... Write/Read access to variable data on the PLC is synchronized with the task class, thus guaranteeing data consistency. With synchronized write/read access, the variable data is copied to a buffer in the context of the respective task class. Only one copy procedure takes place in each task class cycle. The size of the buffer is currently 4096 bytes. This results in the following limitations: 1. The maximum data size of a synchronized variable is limited by the size of the buffer. 2. If the data size of all synchronized variables is greater than the size of the buffer, then the copy procedure will be split up across several task class cycles. In this case, it may not be possible to observe the predefined refresh rate or the associated necessary currentness of the variable data. For this reason, synchronized write/read access should be used sparingly.

[Visual Basic]

Public Property SynchronizedDataAccess() As Boolean

  Public Get

  End Get

  Public Set

  End Set

End Property

[C#]

public bool SynchronizedDataAccess { public get; public set; }

See Also

Variable Class | BR.AN.PviServices Namespace


Generated from assembly BR.AN.PviServices [8.1.0.4]