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.

Fakhrusy Sf avatar image Fakhrusy Sf commented ·

1657624221299.png

The token goes to the invalid product, I dont know why

0 Likes 0 ·
1657624221299.png (153.6 KiB)
Mischa Spelt avatar image Mischa Spelt commented ·
@Fakhrusy Sf is it possible for you to post the model?

If there is anything confidential, you can also send it to me by email ([email protected]).


0 Likes 0 ·
Fakhrusy Sf avatar image Fakhrusy Sf Mischa Spelt commented ·

This is my model, I don't why the error popping out

Can you assist me? @Mischa Spelt


0 Likes 0 ·
Fakhrusy Sf avatar image Fakhrusy Sf Fakhrusy Sf commented ·
0 Likes 0 ·

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.

model.find("/Tools/GlobalNodes/FloWorks/Products/V122").value = 10;
model.find("/Tools/GlobalNodes/FloWorks/Products/EnginePrEmixer").value = 11;
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.

Fakhrusy Sf avatar image Fakhrusy Sf commented ·
Thank you so much, It works like a charm...

If I encounter this problem again, how do I need to solve it?

Do I need to reshuffle the product table??

0 Likes 0 ·
Mischa Spelt avatar image Mischa Spelt Fakhrusy Sf commented ·
Yes, you'll need to make sure the products stay in the order in which you have added them. Sorry about that.
0 Likes 0 ·
Fakhrusy Sf avatar image Fakhrusy Sf Mischa Spelt commented ·
Dear @Mischa Spelt ,

can you explain on how to do the coding in order to avoid confusion in load recipe function like you mentioned earlier?

0 Likes 0 ·
Show more comments
Fakhrusy Sf avatar image Fakhrusy Sf commented ·

Greetings, @Mischa Spelt

I encounter a problem

This is my recipe in floworks recipe table

1658067410947.png

After running the process flow, the thing is confused when I am not rearrange the product..

For "DG1031", it changed the name to J500 and for "CG1004" It cannot detect the flow source when I already have connected to it.. Can @Mischa Spelt assist me??

1658067363016.png

Thank youu...

This is my model

Mini_Simulation_OilLubricantsV11.fsm

0 Likes 0 ·
Fakhrusy Sf avatar image Fakhrusy Sf Fakhrusy Sf commented ·

Is it clear Mr. @Mischa Spelt ?

Do I need to provide more explanation?

And can you give your soonest reply possible?Thank youu

0 Likes 0 ·
Mischa Spelt avatar image Mischa Spelt Fakhrusy Sf commented ·
Sorry @Fakhrusy Sf I missed this; perhaps it is better to ask a follow-up question in a new topic. I saw in your other question that you are now on v12 of the model, was this issue fixed as well or do I still need to look into it?
0 Likes 0 ·
Show more comments