Post by apurv on Cannot pass array of constant size to a function as a reference
CODESYS Forge
talk
(Post)
I have a Array of constant size defined like this Var Constant MAX_SIZE :UINT := 10; End_var VAR array : ARRAY[0..MAX_SIZE] OF INT; END_VAR Now I want to pass this array to a function by reference, Function fun : INT VAR_IN_OUT CONSTANT MAX_SIZE : UINT; END_VAR VAR_INPUT array : REFERENCE TO ARRAY[0..MAX_SIZE] OF INT; END_VAR but when I run this it gives strange Errors Error : Cannot Convert type 'ARRAY [0..MAX_SIZE] OF INT' to type 'ARRAY[0..MAX_SIZE] OF INT'
Last updated: 2024-01-07
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
CODESYS Forge
talk
(Thread)
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
Last updated: 2021-09-08
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
CODESYS Forge
talk
(Thread)
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
Last updated: 2021-09-08
Data Sources Manager causing exception due to float or double type in OPC server
CODESYS Forge
talk
(Thread)
Data Sources Manager causing exception due to float or double type in OPC server
Last updated: 2024-07-01
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
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
How can i read data from a file into an array?
CODESYS Forge
talk
(Thread)
How can i read data from a file into an array?
Last updated: 2021-08-09
Function overloading with ANY_<type>
CODESYS Forge
talk
(Thread)
Function overloading with ANY_<type></type>
Last updated: 2021-07-09
Post by janber on REFERENCE TO in an array
CODESYS Forge
talk
(Post)
Hi all, in the online help it written, that array of reference to data type is not possible. Ok... but if I create array of struct of reference to - everything works fine - please see the screenshots: and it works this way OK. Is it intention or error in compiler 3.5.18.20 and we should avoid it? Thanks a lot, Jan.
Last updated: 2024-10-14
Abourt recipe management & user login in CDS 3
CODESYS Forge
talk
(Thread)
Abourt recipe management & user login in CDS 3
Last updated: 2018-10-04
Bug: Table scrolling and selection manager CDS V3.4
CODESYS Forge
talk
(Thread)
Bug: Table scrolling and selection manager CDS V3.4
Last updated: 2010-05-10
SVN Version Info not available after update to CDS 3.5.16.20
CODESYS Forge
talk
(Thread)
SVN Version Info not available after update to CDS 3.5.16.20
Last updated: 2021-06-15
How to TYPE define a new TYPE
CODESYS Forge
talk
(Thread)
How to TYPE define a new TYPE
Last updated: 2018-04-27
Convert 2 diff type of int to real type
CODESYS Forge
talk
(Thread)
Convert 2 diff type of int to real type
Last updated: 2021-08-17
Type SM3_Drive is not equal to type SM3_Drive
CODESYS Forge
talk
(Thread)
Type SM3_Drive is not equal to type SM3_Drive
Last updated: 2023-03-13
convert INT Type to STRING Type
CODESYS Forge
talk
(Thread)
convert INT Type to STRING Type
Last updated: 2009-10-22
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
Variable Type detection?
CODESYS Forge
talk
(Thread)
Variable Type detection?
Last updated: 2019-11-26
Unknown type error
CODESYS Forge
talk
(Thread)
Unknown type error
Last updated: 2021-05-11
__VARINFO and ANY Type
CODESYS Forge
talk
(Thread)
__VARINFO and ANY Type
Last updated: 2017-04-11
Modbus Master | Register Type
CODESYS Forge
talk
(Thread)
Modbus Master | Register Type
Last updated: 2022-05-15
Eigener Type ...
CODESYS Forge
talk
(Thread)
Eigener Type ...
Last updated: 2010-12-24
Add method, return type
CODESYS Forge
talk
(Thread)
Add method, return type
Last updated: 2019-10-09
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
.