arkansascontrols
Lifetime Supporting Member
I have an S7 application that involves a fairly complicated recipe for process control. My original idea was to create a UDT for the basic structure of a single recipe then create a DB with an array variable of type UDTx.
The problem is that the basic structure for a single recipe is right at the size limit for the DB and even an array of 2 elements exceeds the size limitation.
Now I'm not stuck on having all the data in a single DB but I need a way to Address the DB indirectly if I'm to used a separate DB for each recipe. I'm guessing that building a string with the DB Name and setting a pointer to it won't work.
If anyone has some example code of how to indirectly address a DB I would appreciate it. I have indirect addressing working inside the DB (Thanks to you guys). I will have around 25 recipes to start with but with the option of adding more later. So I need something that will let me stipulate;
DB1.Variable or
DB2.Variable ... DB25.Variable
Alternately if anyone knows of a good work around for the size limit, I'd be really interested in knowing about that as well.
Eric
The problem is that the basic structure for a single recipe is right at the size limit for the DB and even an array of 2 elements exceeds the size limitation.
Now I'm not stuck on having all the data in a single DB but I need a way to Address the DB indirectly if I'm to used a separate DB for each recipe. I'm guessing that building a string with the DB Name and setting a pointer to it won't work.
If anyone has some example code of how to indirectly address a DB I would appreciate it. I have indirect addressing working inside the DB (Thanks to you guys). I will have around 25 recipes to start with but with the option of adding more later. So I need something that will let me stipulate;
DB1.Variable or
DB2.Variable ... DB25.Variable
Alternately if anyone knows of a good work around for the size limit, I'd be really interested in knowing about that as well.
Eric