omron — Using Array Tags

About Tags and the Project Database • Save development time during tag declaration You specify array tags in one of two formats: • For a simple array tag, type: ArrayTagName [ ArrayIndex ] • For a complex array tag (where the array index is an expression consisting of a tag and an arithmetic operation), type: ArrayTagName [ ArrayIndex + c ] Where: • ArrayTagName is the tag name; • [ ArrayIndex ] is the unique index (fixed value or another tag); • + is an arithmetic operation; and • c is a numerical constant. Note: • You must specify a maximum index for each array tag by typing a value ( n ) in the Array Size column of an Project Tags datasheet or in the Array Size field on a New Tag dialog.

(See " Creating project database Tags "). When you create an n -position array tag, IWS actually creates n +1 positions (from 0 to n ). For example, if you specify ArrayTag[15] , the array will have 16 elements, where 0 is the start position and 15 is the end position. • You must not use spaces in an array tag. When IWS reads a tag it begins with the first character and continues until it finds the first space or null character. Consequently, the system does not recognize any characters following the space as part of the array tag. For example, if you type a[second + 1] , IWS regards a[second as the tag and considers it invalid because IWS does not find (recognize) the closing bracket.

However, if you type a[second +1] , this is a valid array tag. Page 55