Recipe Creation

Hello, I was wondering how to make a recipe creation and indexing to access through PLC Studio5000, and then after create it, i want to save it in an array, how can I make it? which functions could I use?
 
It depends on the compexity most recipes may contain integers, floats, bits etc. in that case you will need an array of a UDT in other words create a UDT i.e.
Recipe_Stage
Weight : xxx.xx kg (Real)
Tollerance: xx.xx kg (Real)
Mix Time : xxx Secs (Integer)
& so on.
we do ned to know the structure of the recipe i.e. how many variables per stage & how many stages & possibly how many recipes.
 
I'm not that familure with RW as I gave up using it many years ago, but create a UDT (User data type somtimes called something else depending on platform) as I posted, then create an array of 15 of UDT type configured.
Not sure how you copy arrays in RW. Unfortunately, not sure you can create a UDT of ARRAY of a UDT as that would be easier to configure so perhaps you have to create all 10 x 4 variables then have an array of 15, do you not have an HMI on the system that could store recipes in CSV format or some other recipe function.
 
You can create an array of a UDT inside another UDT. Start by creating the first UDT, call it something like UDTRecipeVariables. It will probably need 5 elements
Code:
Temp (REAL)
TimeMinutes (DINT)
TimeHours (DINT)
Name (STRING)
NumberOfSteps (DINT)
Once that is created, you can create another UDT, call it something like UDTRecipe, and give it one element
Rich (BB code):
Variables (UDTRecipeVariables[10])
The [10] will need to be entered manually, and indicates that you want an array of 10 UDTRecipeVariables data types.
Finally you can create your recipe tag, call it recipes, and give it 1 element, but a dim 0 of 15.
Code:
recipes (UDTRecipe[15])
You should end up with exactly what you are asking for. Indexing through this will be up to you to figure out once you see the final structure. But the address should look like the following when all is said and done.
Code:
recipes[0].UDTRecipe[0].Temp
 
I've built free form batching systems that are completely flexible and are task base. Each task has a flexible set of parameters that could be time, temperature, weight, etc depending on the task being performed. Any task can happen in any order and multiple tasks of the same type can be executed during a complete batching sequence. The recipe is simply an array of tasks, and each task is defined by a task type code, the parameters, the parameter descriptions, limits and units, etc. The final repository of stored recipes is just an array of these recipes. So, similar to what Mikey described, just not as rigidly defined. The batching sequence is just a calling routine that executes the task defined for each step.
 

Similar Topics

I'm working on a Factorytalk view ME application that will eventually go into a PVP+ 1000 to replace a dying Proface HMI. I would like to have...
3
Replies
4,385
Views
Hi, Just wondering is it possible to write dynamic recipies on a SCADA systems such as Siemens WinCCC and AB Factory Talk. I know that you can...
1
Replies
4,118
Views
Hello has anyone made a Recipe screen or add on graphic for view designer PLC Logic Based, Rockwell provides one but it seems that it is HMI Based...
0
Replies
126
Views
I'm trying to find a way to allow a user/operator to type in the recipe they want, and have the PLC search my recipe array and populate a...
37
Replies
1,884
Views
Has anyone used MIPS with studio 5000 program to control a batching system? My job wants me to integrate our MIPs product tracking network to a...
0
Replies
275
Views
Top