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/