Relay Ladder; Structured Text - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
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

Size in Elements
Source strings_a[0].DATA[0]
Dim. To Vary
Size

Structured Text

SIZE(strings_a[0].DATA[0],0,data_size_a);
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
SIZE
'$00'
0
data_size_a
24
Chapter 8
399

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents