Jump to content

Recommended Posts

Posted

Hi,

I was wondering if anyone has suggestions on how I could go about solving the following instruction that I'm trying to do.

In my NA5-HMI, I have a bunch of recipes of the following:

Recipe 1 with 6 ingredients and their respective values

Recipe 2 with 6 ingredients and their respective values

Recipe 3 etc...

up to Recipe 8 (or X)

Now one of the ingredient values is Duration (DINT) that gets converted to a TIME in the PLC.

 

At runtime, the user selects which Recipe he/she wishes to start: let's say Recipe 6. After Recipe 6 runs for X-duration hours, the logic finishes and the objective now is to cycle through the remaining recipes down to 1 (ie the PLC will run through Recipe 6 -> 5 -> 4 -> 3 -> 2 -> 1 without operator manually loading the next recipe.

 

My problem is that I haven't found any methods/workflow for accessing the next recipe (from the PLC side) to load the ingredient values into global memory variables that the PLC can access.

 

Doe anyone have any suggestions/workflow that can do this? Or am I going at this in the wrong way?

Thank you.

Regards,

RW.

Posted

@rwnoctz

Send me a message and i will send you a project i threw together that shows how to do what you are asking - pared back code from some things i am doing with Recipes.

Can't seem to attach the file. Errors on this site are getting annoying

If you want the project, here is a pic of it working using the Simulator with NA. Toggle the Change_Product variable in the PLC and HMI will load the next queued Recipe. I have a variable in each recipe that you set for the next you want it load when called. This way you do not have to do consecutive but can have jump in varying orders. Could also "Prime" a different recipe number with the PLC despite what is set in the recipe without much change.

 

66bc0464978f0_RecipeChange.thumb.jpg.7ab 

  • Like 1
Posted

@rwnoctz

I sent you an email with the file

I had other request for the sample project. Took a few tries to get thru the website errors but looks like I was finally able to submit it thru the Downloads section of the website under Omron > Sample PLC Code as well as attach it here this time with no errors.

 

 

LoadRecipe.smc2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...