Size In Elements (Size); 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

Size In Elements (SIZE)

SIZE(Source,Dimtovary,Size);
Description:
Arithmetic Status Flags:
Fault Conditions:
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
The SIZE instruction finds the size of a dimension of an array.
Operands:

Relay Ladder

Operand
Source
Dimension to
Vary
Size

Structured Text

The operands are the same as those for the relay ladder SIZE instruction.
The SIZE instruction finds the number of elements (size) in the designated
dimension of the Source array and places the result in the Size operand.
· The instruction finds the size of one dimension of an array.
· The instruction operates on an:
– Array
– Array in a structure
Array that is part of a larger array
Not affected
None.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
SINT
Array tag
INT
DINT
REAL
structure
string
DINT
Immediate (0,
1, 2)
SINT
Tag
INT
DINT
REAL
Description
Array on which the instruction is to operate
Dimension to use:
For The Size Of
First dimension
Second dimension
Third dimension
Tag to store the number of elements in the
specified dimension of the array
Chapter 8
Enter
0
1
2
397

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents