Create object in compact control builder
hi i want to create several instances of a variable of a data type that has several "internal" variables. Then i want to place all the variables in a array which i will use for accessing and controlling the variables.
I want to create the instances of the data type variable in a for loop which will only be executed once in the begining.
However i understand how the array works but i was wondering but the problem is to create the instances. I dont want to create the data type variable one by one manual since the amount of variables will change depending of the projects specifications. The array will also be used in the opc in order to present the information from the variables for the operator. but mainly the array will be used for the control logic.
Any one that has done something similar and can help me out?
You can use the "CreateArray" and "InsertArray" Commands from Code to create arrays and add new instances (like, in a for loop as described by you).
However the OPC Server for the AC800M doesn't support arrays so there is no direct way to access this data and present to the operator.