Examples

<< Click to Display Table of Contents >>

 

Examples

Examples for the Item field of a Variable Tag

Variable

Block Size

Interpretation

simpleVariable

0 (zero, PLC Tag)

Simple data type

arrayVariable

10

Array with ten positions of simple data types

arrayVariable[9]

0 (zero)

Simple data type (element of an array)

structVariable.simpleMember

0 (zero)

Simple data type (element of a structure)

arrayStructVariable[5].simpleMember

0 (zero)

Simple data type (element of an array of structures)

structVariable.arrayMember[10]

0 (zero)

Simple data type (element of an array in a structure)

arrayStructVariable[5].arrayMember[1]

0 (zero)

Simple data type (element of an array in an array of structures)

arrayStructVariable[5].arrayMember

2 (two)

Array with two positions of simple data types (elements of an array of structures)

(int, sint)structVariable

2 (two)

Structure with two members

(word, int)structVariable

3 (three)

Error in Tag configuration

(word, int[10])structVariable

11

Structure with two members and one of them is an array

(word, int[10])structVariable

2 (two)

Error in Tag configuration

Was this page useful?