Displaying the current loaded Recipe

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Sunshine12
Posts: 12
Joined: Fri Sep 14, 2012 6:27 am

Displaying the current loaded Recipe

Post by Sunshine12 »

Hi there how can i display the current loaded recipe name on the screen.

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

Re: Displaying the current loaded Recipe

Post by mark.monroe »

Yes, see image below.
Snap 2012-09-14 at 08.01.00.png
Snap 2012-09-14 at 08.01.00.png (77.6 KiB) Viewed 11641 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Sunshine12
Posts: 12
Joined: Fri Sep 14, 2012 6:27 am

Re: Displaying the current loaded Recipe

Post by Sunshine12 »

Thank you that's great

Schmiedi
Posts: 2
Joined: Tue Oct 23, 2012 3:55 am

Re: Displaying the current loaded Recipe

Post by Schmiedi »

Is it possible to resolve the loaded recipe as integer, not as string?

I need the integer for comparing in the PLC and for logging.

Regards,
Stipo
Pleasure is the only you should live for!

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

Re: Displaying the current loaded Recipe

Post by mark.monroe »

You would have to write a script that takes the recipe name in the recipe system tag and converts it into an int. Then you would write that int value to a tag that your PLC could read.

You can use the ValueChange even in the Tag scripting section to fire code whenever a tag's value changes.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

fserritella
Posts: 3
Joined: Mon Feb 06, 2012 11:33 am

Re: Displaying the current loaded Recipe

Post by fserritella »

I am using the "last loaded recipe" system variable with the "non-volatile" checked but after power-up, the register isn't updating. The values in the recipe will be the latest but the name is usually a previously entered name and not the latest.

I also tried checking "always active" with the same results.

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

Re: Displaying the current loaded Recipe

Post by mark.monroe »

The last loaded recipe is only the recipe that was last loaded. It can not be used to load a recipe. Because all the recipe values may or may not be non-volatile, when the unit boots up, there is no way for it to be sure that the recipe is still loaded.

Recipes load and over-right the current tag values. They do not force those values to always hold the value in the recipe.

If you want to load the recipe at boot up, then you will have to trigger the recipe load.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply