Übersetzungsfehler bei Sender mit array von DUT
CODESYS Forge
talk
(Thread)
Übersetzungsfehler bei Sender mit array von DUT
Last updated: 2017-06-06
FB Charcurve (Array of points) manipulation?
CODESYS Forge
talk
(Thread)
FB Charcurve (Array of points) manipulation?
Last updated: 2011-05-16
save the varies of array to a TXT file
CODESYS Forge
talk
(Thread)
save the varies of array to a TXT file
Last updated: 2014-05-26
ARRAY Index aus der Dimensionierung wird überschritten.
CODESYS Forge
talk
(Thread)
ARRAY Index aus der Dimensionierung wird überschritten.
Last updated: 2016-02-10
Codesys Anfänger braucht Hilfe bei Array programmierung
CODESYS Forge
talk
(Thread)
Codesys Anfänger braucht Hilfe bei Array programmierung
Last updated: 2010-04-06
Find how many elements filled inside an array
CODESYS Forge
talk
(Thread)
Find how many elements filled inside an array
Last updated: 2023-01-10
Convert array of 4 byte to real
CODESYS Forge
talk
(Thread)
Convert array of 4 byte to real
Last updated: 2021-06-30
Runtime Error: Wrong Array Index! Pls Open Callstack!
CODESYS Forge
talk
(Thread)
Runtime Error: Wrong Array Index! Pls Open Callstack!
Last updated: 2020-07-17
Querverweise von Struktur elementen oder Array Feldern
CODESYS Forge
talk
(Thread)
Querverweise von Struktur elementen oder Array Feldern
Last updated: 2011-04-11
BOOL ARRAY direct addressing on modbus area
CODESYS Forge
talk
(Thread)
BOOL ARRAY direct addressing on modbus area
Last updated: 2005-10-11
Array for IW ,QW or MW addresses
CODESYS Forge
talk
(Thread)
Array for IW ,QW or MW addresses
Last updated: 2016-11-14
[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 voffi on Converting UINT into bytes and converting 2Bytes into UINT
CODESYS Forge
talk
(Post)
There are some ways. One is to use SHR and SHL and it depends on your byte order in the data array. For Motorola byte order: PROGRAM PLC_PRG VAR u : UINT; byte_array_in : ARRAY [1..8] OF BYTE := [16#11, 16#12, 16#13, 16#14, 16#15, 16#16, 16#17]; byte_array_out : ARRAY [1..8] OF BYTE; END_VAR u := SHL(TO_UINT(byte_array_in[2]), 8) + TO_UINT(byte_array_in[1]); byte_array_out[1] := TO_BYTE(u); byte_array_out[2] := TO_BYTE(SHR(u, 8)); If it's Intel byte order just change 1 and 2 in the array indexes.
Last updated: 2023-12-07
Post by mubeta on UNION statement is not supported in the ethercat data exchange
CODESYS Forge
talk
(Post)
Hi all, I am using a unionn statement for merge in integer data type some values that are received in byte from the i/o cards, but, using this simple and light technique, is not recognized by the ethercat data exchange and in fact the tags are not updated. In my opinion it's a very big bug.
Last updated: 2025-02-05
Post by imdatatas on Problem of assigning physical addresses to variables of type ARRAY OF ARRAY as MW and QW
CODESYS Forge
talk
(Post)
Hello, I am encountering an interesting problem as below in SP20patch5 variable definition area. I think this is a bug. As can be seen in the attached screenshot, it assigns the same %MW or %QW address to all elements of the array. I hope Codesys team can solve this problem in the next version. Best regards, Imdat
Last updated: 2025-03-17
Post by timvh on Readable IO names
CODESYS Forge
talk
(Post)
IF you create an ENUM {attribute 'qualified_only'} {attribute 'strict'} TYPE E_IO : ( FIRST := 0, SECOND := 1 ); END_TYPE You should be able to access the array items like: IOCard_OUTPUT[E_IO.FIRST]
Last updated: 2024-09-28
Post by gcodejedi on The element of type 'VisuFbElemImage' could not be updated. Reason: Index was outside the bounds of the array.
CODESYS Forge
talk
(Post)
Hello, I am experiencing this exact same issue. Were you able to get yours resolved? If so, would you mind sharing the solution you discovered? Thanks!
Last updated: 2025-11-03
Post by jzhvymetal77 on VarAccGetAddress does not return the correct address for TYPE_ARRAY or TYPE_USERDEF.
CODESYS Forge
talk
(Post)
VarAccGetAddress does not return the correct address for TYPE_ARRAY or TYPE_USERDEF. When you use VarAccGetNode, it returns a proper IBaseTreeNode if you provide the full path of an array element or structure element, and it even provides the correct data type. The problem is that with TYPE_ARRAY, it returns the start address of the array rather than the indexed element. With TYPE_USERDEF, it only returns the offset of the element instead of the actual address. This causes many issues with nested structures or arrays of structures, since it requires manually calculating the address based on the parent IBaseTreeNode. See attached image and example.
Last updated: 2025-08-28
How to change data format of 'Trend' time data to DT or something else
CODESYS Forge
talk
(Thread)
How to change data format of 'Trend' time data to DT or something else
Last updated: 2021-05-10
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND or OR.