Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Control recipes from controller
PostPosted: Wed Feb 06, 2013 3:43 am 

Joined: Tue Oct 09, 2012 12:56 am
Posts: 26

Offline
Hello,

on the MAC E1000 - Terminals there was a function called "RecipeControlBlock". By using the function it was possible to manage recipes (new, delete, load, save,...) by a combination of data registers from the plc.

Is there a possibility to do this with iX-Panel, e.g.:
plc writes '7' in tag 'RecipeNr', and the panel loads the recipe from the nr stored in the tag?

Thanks for your answers!

_________________
Best regards,
Philip Joebstl


 Profile  
 
 Post subject: Re: Control recipes from controller
PostPosted: Wed Feb 06, 2013 9:26 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
You would have to write C# to do that. You can put an if statement on the value change of a tag, and then depending on the tag's value, you can load a different recipe. Take a look at this forum post on the code needed to load a recipe.

The Value Change event is located in the lower left hand corner of the Tags Tab.

Attachment:
Snap 2013-02-06 at 08.25.53.png
Snap 2013-02-06 at 08.25.53.png [ 48.49 KiB | Viewed 4001 times ]

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Control recipes from controller
PostPosted: Wed Feb 06, 2013 9:42 am 

Joined: Tue Oct 09, 2012 12:56 am
Posts: 26

Offline
So this is what I thought...

Maybe you should take this topic on the wish list for the next iX-Developer. Because the big deal on the old panels was that there was a bunch of pretty awesome features built-in and use-ready. If everything has to be written in C# on iX-Panels, many customers will be overwhelmed.

And as always, thanks for the quick answer!

_________________
Best regards,
Philip Joebstl


 Profile  
 
 Post subject: Re: Control recipes from controller
PostPosted: Tue Feb 12, 2013 8:01 am 

Joined: Tue Oct 09, 2012 12:56 am
Posts: 26

Offline
I have another question regarding this topic.

I tried to load a recipe by passing the recipe name in the sample project Sample_recipe, there it was working fine. But when I do the same thing on a T7A-panel project, it loads the chosen recipe and then always pops up with the load recipe-screen.

Is this because of the compact framework or some difference between pc and panel project?

_________________
Best regards,
Philip Joebstl


 Profile  
 
 Post subject: Re: Control recipes from controller
PostPosted: Tue Feb 12, 2013 9:37 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
Take a look at this forum post and download the CustomRecipeDialog project. On Screen2 there is code that loads a recipe, and it does not bring up any dialog or confirmation boxes.


Code:
      void Button1_Click(System.Object sender, System.EventArgs e)
      {
         //Load the recipe that was entered
         Globals.Recipe1.LoadRecipe(Globals.Tags.RecipeNameToLoad.Value);
         //Close the load recipe screen
         Globals.Screen2.Close();
      }

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Control recipes from controller
PostPosted: Tue Feb 12, 2013 10:09 am 

Joined: Tue Oct 09, 2012 12:56 am
Posts: 26

Offline
Sorry, I had the 'LoadRecipe'-Action still set on that button. Shame on me. Of course now there comes no dialog any more :lol:

_________________
Best regards,
Philip Joebstl


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: