Search talk: declare array dimensions

 
1 2 3 .. 22 > >> (Page 1 of 22)

Variable Length Array - Cannot mix variable and fixed length dimensions? CODESYS Forge talk (Thread)
Variable Length Array - Cannot mix variable and fixed length dimensions?
Last updated: 2025-05-26

how to declare an array size without constant CODESYS Forge talk (Thread)
how to declare an array size without constant
Last updated: 2016-11-16

Post by andrax on Variable Length Array - Cannot mix variable and fixed length dimensions? CODESYS Forge talk (Post)
Arrays with variable lengths are a bad idea. This makes your system unstable and can lead to crashes. Declare your array large enough to reserve enough memory
Last updated: 2025-05-24

Post by nz-dave on Variable Length Array - Cannot mix variable and fixed length dimensions? CODESYS Forge talk (Post)
VAR CONSTANT size : INT := 10; END_VAR My_Array : ARRAY[1..SIZE , 1..5] OF REAL;
Last updated: 2025-05-26

Checking or changing objects dimensions using code. CODESYS Forge talk (Thread)
Checking or changing objects dimensions using code.
Last updated: 2024-11-19

Array of array CODESYS Forge talk (Thread)
Array of array
Last updated: 2021-05-28

Auto Declare in SP14 CODESYS Forge talk (Thread)
Auto Declare in SP14
Last updated: 2019-05-14

Axis declare CODESYS Forge talk (Thread)
Axis declare
Last updated: 2024-02-13

Post by bmatlove on Variable Length Array - Cannot mix variable and fixed length dimensions? CODESYS Forge talk (Post)
Using Codesys 3.5.18.30 I am trying to work with an array of variable length in one dimension, but known in the other dimension. For example, using an array that represents a list of items, each with an attribute profile. I do not know how many items will be in the list, but I know that every item has 5 attributes, like size, weight, etc. Codesys does not seem to be able to accept this. I have referenced Data Type: ARRAY OF documentation page, which is not explicit if variable & fixed length array dimensions can be mixed. In the VAR_IN_OUT scope, I initially tried MY_ARRAY : ARRAY [*, *] OF REAL; which was no problem, of course. I then modified it to MY_ARRAY : ARRAY [*, 1..5] OF REAL; which throws C0006: ', or ]' expected instead of '..' among consequent downstream errors. I then used the Auto Declare -> Array Wizard, which accepted (asterisk)-(asterisk) and 1-5 for 2-dimensional lower and upper bounds. It output: MY_ARRAY: ARRAY[*..*, 1..6] OF INT; which throws the same error stream. What's the deal here? Is this possible?
Last updated: 2025-05-23

String Array to Byte Array problem CODESYS Forge talk (Thread)
String Array to Byte Array problem
Last updated: 2008-09-04

Grosses Array in kleines Array schreiben CODESYS Forge talk (Thread)
Grosses Array in kleines Array schreiben
Last updated: 2009-06-15

Zugriff bei Deklaration ARRAY OF ARRAY CODESYS Forge talk (Thread)
Zugriff bei Deklaration ARRAY OF ARRAY
Last updated: 2011-11-03

how to declare network variables? CODESYS Forge talk (Thread)
how to declare network variables?
Last updated: 2010-12-15

Declare enumerations outside Object Organizer? CODESYS Forge talk (Thread)
Declare enumerations outside Object Organizer?
Last updated: 2020-09-13

Pointer ARRAY BYTE to ARRAY BOOL CODESYS Forge talk (Thread)
Pointer ARRAY BYTE to ARRAY BOOL
Last updated: 2008-06-06

array table and combo box array multitouch problem CODESYS Forge talk (Thread)
array table and combo box array multitouch problem
Last updated: 2018-04-23

Write one dimensional array into two dimensional array CODESYS Forge talk (Thread)
Write one dimensional array into two dimensional array
Last updated: 2022-02-25

Declare and dereference pointer of unknown type CODESYS Forge talk (Thread)
Declare and dereference pointer of unknown type
Last updated: 2016-10-12

Why declare FB instance name every time? CODESYS Forge talk (Thread)
Why declare FB instance name every time?
Last updated: 2005-09-13

how to declare retain variables in eeprom CODESYS Forge talk (Thread)
how to declare retain variables in eeprom
Last updated: 2017-09-25

Auto Declare window disappears by itself in the Ladder editor CODESYS Forge talk (Thread)
Auto Declare window disappears by itself in the Ladder editor
Last updated: 2025-03-14

ARRAY of unknow struct CODESYS Forge talk (Thread)
ARRAY of unknow struct
Last updated: 2017-10-09

TwinCAT ARRAY CODESYS Forge talk (Thread)
TwinCAT ARRAY
Last updated: 2018-08-16

In Array suchen CODESYS Forge talk (Thread)
In Array suchen
Last updated: 2010-12-22

Array Deklaration ΓΌber Konstante CODESYS Forge talk (Thread)
Array Deklaration ΓΌber Konstante
Last updated: 2012-07-30

1 2 3 .. 22 > >> (Page 1 of 22)

Showing results of 526

Sort by relevance or date