Search talk: declare array dimensions

 
<< < 1 .. 9 10 11 12 13 .. 23 > >> (Page 11 of 23)

[SOLVE] Convert array of word to string CODESYS Forge talk (Thread)
[SOLVE] Convert array of word to string
Last updated: 2023-06-30

Messwerte+Zeitstempel in einem Array sichern und darstellen CODESYS Forge talk (Thread)
Messwerte+Zeitstempel in einem Array sichern und darstellen
Last updated: 2016-02-06

How to create an array dynamically CODESYS Forge talk (Thread)
How to create an array dynamically
Last updated: 2009-06-16

Limiting Memory Access of an Array to Within its Bounds CODESYS Forge talk (Thread)
Limiting Memory Access of an Array to Within its Bounds
Last updated: 2024-03-06

FB having single input but initialized with Array CODESYS Forge talk (Thread)
FB having single input but initialized with Array
Last updated: 2024-05-07

Setting array values with JSON Utilities SL CODESYS Forge talk (Thread)
Setting array values with JSON Utilities SL
Last updated: 2024-05-23

Parameterized Property syntax for array element processing CODESYS Forge talk (Thread)
Parameterized Property syntax for array element processing
Last updated: 2025-10-19

Post by sedoerr on Trouble accessing Math functions in OSCAT library CODESYS Forge talk (Post)
Try to declare it like this: ARRAY_SDV : OSCAT_BASIC.ARRAY_SDV;
Last updated: 2024-01-08

Post by nonstop-cat on Problem of assigning physical addresses to variables of type ARRAY OF ARRAY as MW and QW CODESYS Forge talk (Post)
Array writing method error,,,<arrayname>: ARRAY [<ll1>..<ul1>, <ll2>..<ul2>, <ll3>..<ul3>]</ul3></ll3></ul2></ll2></ul1></ll1> OF <basedatatype></basedatatype></arrayname>
Last updated: 2025-03-31

Post by nonstop-cat on Problem of assigning physical addresses to variables of type ARRAY OF ARRAY as MW and QW CODESYS Forge talk (Post)
Array writing method error,,,<arrayname>: ARRAY [<ll1>..<ul1>, <ll2>..<ul2>, <ll3>..<ul3>]</ul3></ll3></ul2></ll2></ul1></ll1> OF <basedatatype></basedatatype></arrayname>
Last updated: 2025-03-31

Post by e13740e on Parameterized Property syntax for array element processing CODESYS Forge talk (Post)
Since parameterized (indexed) properties are not possible, I decided to use architectural approach "Indexing Property Adapter" to achieve the intended goal — avoiding code duplication for validated access to array elements. Essence: Create a Function Block Adapter (FB_PropertyAdapter) that encapsulates the logic for working with a single element of the target array (e.g., with one settings structure). Declare Properties inside the adapter block for accessing each individual field of the data structure. All validation logic is implemented within the Set accessors of these properties. Data Binding via VAR_IN_OUT: The adapter block receives a reference to a specific data element from the global array through its VAR_IN_OUT section, which ensures direct work with the original data without copying. Create an Array of Adapters: In the parent POU (e.g., FB_SettingsManager), an array of these adapter blocks is created — one for each element of the global array that needs to be managed. Initialize Bindings: In a FOR loop, each adapter instance from the array is given a reference to the corresponding data element. Result: This approach allows accessing the data via the index of the adapter array, and then through the property name, which simulates the behavior of an indexed property: MyAdapterArray[Index].MyProperty Thus, the validation and data access logic is written only once inside the adapter block and is then reused multiple times by creating instances of it in an array. This completely solves the problem of code duplication while providing a clean, scalable, and object-oriented architecture compatible with standard CODESYS features. Question closed.
Last updated: 2025-10-19

Post by peterned on Array to String CODESYS Forge talk (Post)
max. string length in Codesys is 255 chars. It's not possible to cram 20,000 things in a string. If you need to send the data to another device, send the whole data[] array (as byte array, without doing anything to it) and extract the information on the other end. As each struct member has a fixed size (81 bytes, as per you declaration), this will be easy. To save some resources, consider declaring string lengths - e.g. if the max possible length for key is 10 chars, declare it key: STRING(10); and it will occupy 11 bytes instead of 81
Last updated: 2024-07-20

Post by struccc on Checking or changing objects dimensions using code. CODESYS Forge talk (Post)
That time it was not answered. But yes, it is possible. Search for "Relative movement" properties of the rectangle element. Might need to enable advanced features in the property browser. https://content.helpme-codesys.com/en/CODESYS%20Visualization/_visu_elem_rectangle.html
Last updated: 2024-11-19

Post by pistola on Checking or changing objects dimensions using code. CODESYS Forge talk (Post)
That works, thanks, I was trying to get a variable into the Position>Height and was struggling, then I was using absolute movement, never though to try relative movement.
Last updated: 2024-11-19

Using a method called from opcua fill an specific array position CODESYS Forge talk (Thread)
Using a method called from opcua fill an specific array position
Last updated: 2022-02-18

2D array , data move from a column to another column CODESYS Forge talk (Thread)
2D array , data move from a column to another column
Last updated: 2011-03-23

Post by ewi04 on Recipe Manager - RecipeManCommands, load & write wrong values, Bug? CODESYS Forge talk (Post)
I'm getting closer to the error. The combination of STRUCT and ARRAY probably causes the strange behavior. As soon as the ARRAY is followed by a variable, the problem arises. Examples: X: ARRAY[1..2] OF INT; // okay Y: ARRAY[1..2] OF STRUCT; // problem Z: STRUCT; Z.ArrayOfInt[1]; // okay Z.ArrayOfStruct[1].Variable // problem // *update - array of array also causes the error A: ARRAY[1..2] OF ARRAY[1..4] OF BOOL; // problem I can't be the only one who has this problem. Or? Maybe there is a solution. Anyone? Or is it a bug after all?
Last updated: 2023-11-17

Cannot convert type 'Unknown type: 'ADR(tabOrderIdArray)" to type 'POINTER TO ARRAY [0..0]OF INT' CODESYS Forge talk (Thread)
Cannot convert type 'Unknown type: 'ADR(tabOrderIdArray)" to type 'POINTER TO ARRAY [0..0]OF INT'
Last updated: 2021-04-26

How to read SD card data and store in array CODESYS Forge talk (Thread)
How to read SD card data and store in array
Last updated: 2012-11-26

addressin an array of byte containing bits of type bool CODESYS Forge talk (Thread)
addressin an array of byte containing bits of type bool
Last updated: 2018-11-14

How I should define a huge size byte array in CoDeSys V3? CODESYS Forge talk (Thread)
How I should define a huge size byte array in CoDeSys V3?
Last updated: 2013-05-09

Pass the second array dimension into a function as a parameter CODESYS Forge talk (Thread)
Pass the second array dimension into a function as a parameter
Last updated: 2022-05-10

Passing an I/O Array to a Function or Function Block CODESYS Forge talk (Thread)
Passing an I/O Array to a Function or Function Block
Last updated: 2015-05-07

Targetvisu: Einem als Frame eingebundenem Visuelement ein array als In_out übergeben CODESYS Forge talk (Thread)
Targetvisu: Einem als Frame eingebundenem Visuelement ein array als In_out übergeben
Last updated: 2020-05-11

Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu CODESYS Forge talk (Thread)
Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu
Last updated: 2021-11-02

<< < 1 .. 9 10 11 12 13 .. 23 > >> (Page 11 of 23)

Showing results of 551

Sort by relevance or date