05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CONFIGURING DATA TAGS<br />

EDITING FLAG TAGS<br />

• The Elements property is used to indicate how many data items the array should<br />

hold. Array elements are referred to using square brackets, such that Array[0] is<br />

the first element, and Array[n-1] is the last element, where n is equal to the<br />

value entered for this property.<br />

• The Access and Storage properties are as described for flag variables.<br />

• The Simulation property is as described for flag variables. Note that the value to<br />

be simulated applies to all elements of the array. If you need to simulate on a per<br />

element basis, use a number of formulae to alias the array elements.<br />

• The Read Policy property is used to define how Crimson will read the data for<br />

arrays that are mapped to remote data items. The table below lists the various<br />

policies that can be configured, and describes their operation…<br />

MODE<br />

Read Adaptively<br />

Read Manually<br />

Read Whole Array<br />

DESCRIPTION<br />

Any referenced array elements will be added to the<br />

communications scan. Data either side of a referenced<br />

element, as defined by the Read Ahead and Read Behind<br />

properties, will be read as well. Old data may be<br />

displayed momentarily when an element from an adaptive<br />

array is first displayed on the virtual HMI.<br />

The array will be read if and only if the ReadData<br />

function is called. This mode is useful for items that are<br />

read only rarely, or which are known not to change in the<br />

remote device.<br />

The entire array will be added to the communications<br />

scan if any element in the array is referenced. This mode<br />

ensures that all data items are available before they are<br />

referenced, but can lower system performance.<br />

• The Read Ahead and Read Behind properties modify the behavior of the adaptive<br />

read policy by controlling how many adjoining registers will be read when a<br />

specific array element is referenced. The adjoining reads are used to maximize<br />

the chance of data being available when indirection is used to scroll up or down<br />

an array. The default values should be suitable for most applications.<br />

• The On Write property is as described for flag variables.<br />

REVISION 6 PAGE 111

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!