question

Fakhrusy Sf avatar image
0 Likes"
Fakhrusy Sf asked Fakhrusy Sf commented

Why my recipe cant be loaded into the mixer when I already defined the recipe?

Greetings, I have some problems with the recipe table in floworks

i already my recipe in the floworks recipe table..

1657624060736.png

This is my schedule

1657624116898.png

Why I got this?

1657624150536.png

I already defined in the recipe table

can anyone help

FlexSim 18.2.3
FloWorksrecipe table
1657624060736.png (34.4 KiB)
1657624116898.png (12.6 KiB)
1657624150536.png (8.2 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Mischa Spelt avatar image
0 Likes"
Mischa Spelt answered Fakhrusy Sf commented

Hi @Fakhrusy Sf ,

Thanks for including the model. Looks like this is a bug in the loadRecipe function (that has been in FloWorks for quite a while, so kudos for finding it!)

It seems like the function gets confused when you re-order the products in the products table, like you did when you added the V122 component and then moved the mix product to the bottom of the list.

For now, the two things you should do are:

1. Run the following code from a Script window (click Script in the toolbar, paste the code below and press the green "Play" button above the script). You'll only need to do this once, then save the model.

  1. model.find("/Tools/GlobalNodes/FloWorks/Products/V122").value = 10;
  2. model.find("/Tools/GlobalNodes/FloWorks/Products/EnginePrEmixer").value = 11;
  3. model.find("/Tools/GlobalNodes/FloWorks/Products/EnginePrEmixer/Recipe/2/Ingredients/1/Product").value = 10;

This will fix the current error.

2. From now on, don't reorder products in the products table; only add them at the bottom. This will prevent the error from happening again.


I will fix this in a future release of FloWorks, although I see you are using version 18.2 and we only be providing updates for version 22.0 and later.

· 8
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.