EasyManua.ls Logo

Allen-Bradley Logix5000

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 399
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE) Chapter 8
Example 3: Strings_a is an array of string structures. The SIZE instruction finds the number
of elements in the DATA member of the string structure and stores the size in
data_size_a. In this example, the DATA member has 24 elements. (The string
structure has a user-specified length of 24.)
Relay Ladder
Structured Text
SIZE(strings_a[0].DATA[0],0,data_size_a);
Size in Elements
Source strings_a[0].DATA[0]
'$00'
Dim. To Vary 0
Size data_size_a
24
SIZE

Table of Contents

Other manuals for Allen-Bradley Logix5000

Related product manuals