ARRAY_LENGTH block
Short summary
Name |
|
→POU type |
|
Category |
|
Conform to →IEC-standard |
not defined in IEC-standard |
Graphical interface |
, , , |
Available since |
Version 3.2.5 (for library |
Functionality
The block returns the size (the number of the elements) of the connected →array variable.
No check of invalid dimensions When these blocks are used, Neuron Power Engineer does not check whether the connected array variable is of the correct dimension. For instance, when you connect a two-dimensional array variable with the input of |
Inputs, outputs, return value
|
Identifier |
Description |
|
---|---|---|---|
In-outs |
|
|
a one-dimensional array of variable length |
Return value: |
– |
|
number of the elements of the array |
|
Identifier |
Description |
|
---|---|---|---|
In-outs |
|
|
a two-dimensional array of variable length |
Outputs: |
|
|
number of the elements in dimension 1 |
|
|
number of the elements in dimension 2 |
|
Return value: |
– |
|
number of all elements of the array |
|
Identifier |
Description |
|
---|---|---|---|
In-outs |
|
|
a three-dimensional array of variable length |
Outputs: |
|
|
number of the elements in dimension 1 |
|
|
number of the elements in dimension 2 |
|
|
|
number of the elements in dimension 3 |
|
Return value: |
– |
|
number of all elements of the array |
|
Identifier |
Description |
|
---|---|---|---|
In-outs |
|
|
a four-dimensional array of variable length |
Outputs: |
|
|
number of the elements in dimension 1 |
|
|
number of the elements in dimension 2 |
|
|
|
number of the elements in dimension 3 |
|
|
|
number of the elements in dimension 4 |
|
Return value: |
– |
|
number of all elements of the array |
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Example for usage within ST-editor
The calculated values are evaluated by using the Assert
block.
|
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.