Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I'm creating a program where I need to handle arrays, like:
- Declare lenght variable arrays - [array(1..var) of "sometype"]. This is not possible in pure codesys, right?
- Know array lenght, min, max, avg values in runtime
- append/delete itens in an array
- and so on
Is there a library know for this in codesys.
Is it possible to build our own libraries using some high level language like python or java script?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm creating a program where I need to handle arrays, like:
- Declare lenght variable arrays - [array(1..var) of "sometype"]. This is not possible in pure codesys, right?
- Know array lenght, min, max, avg values in runtime
- append/delete itens in an array
- and so on
Is there a library know for this in codesys.
Is it possible to build our own libraries using some high level language like python or java script?
habe a look at __new and __delete operators.
have in mind that in this case u have a look at memory
see
https://help.codesys.com/api-content/2/codesys/3.5.15.0/en/_cds_operator_new/