question

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

How to assign each mixer differently in floworks?

Hello there,

My simple model containing 2 different mixer/blender that cannot mix between the engine oil product and gear oil product... The engine oil will on blend in the Blender1_Eng and the gear oil will be blend in Blender2_gear.In process flow, I just try using the schedule time but because of the connection in blender1_eng, the flow then proceed to blend the gear oil in the engine blender.How to do this??

1650959883727.png

1650959907770.pngBlend.fsm

FlexSim 18.2.3
FloWorks
1650959883727.png (53.0 KiB)
1650959907770.png (103.3 KiB)
blend.fsm (25.1 KiB)
· 2
5 |100000

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

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·
Hi @Fakhrusy Sf ,

Do you mean that you want to acquire the ENG blender when you go left in your ProcessFlow and you want to only acquire the Gear blender when you go right in the ProcessFlow? You are splitting the flow already when I look at your screenshot. So I am not sure if I understand your question correctly.

Note, the model you attached is not your latest version I think, because that model has no ProcessFlow included in the file.

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

I am so sorry, attached with this comment is the latest..

The question is how do I prevent the blender1_ENG from blending the gear oil?

the process flow is okay but as for the conditional decide, I am not sure whether the condition is right or wrong.

It my question clear to you? @Patrick Zweekhorst




blend_V2.fsm

0 Likes 0 ·
blend-v2.fsm (60.7 KiB)

1 Answer

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst answered Patrick Zweekhorst commented

Hi @Fakhrusy Sf ,

I think I understand your question and your decide now. If the Product name contains the substring "E" you want to go left and use the ENG blender. When it does not contain "E" you want to use the gear blender. If that is the case please change the decide to token.Product.as(string).indexOf( "E" ) > 0. Otherwise you would always get a non zero result (which means true for the decide).


Note:
I noticed you have a ticker in your model? That object is not needed when using FloWorks and it creates lots of useless events. Please remove the ticker.


Are you using both Mixer ProcessFlows? Or only the one you are adapting? If that is the case you might want to remove the other one, since that is also assigning information to the mixers.


· 11
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 ·

1650963177427.png

What is value of the true and false for this case?
sorry I am not that familiar with floworks.


I already removed the ticker

0 Likes 0 ·
1650963177427.png (9.8 KiB)
Fakhrusy Sf avatar image Fakhrusy Sf commented ·
I am using both of the mixer since the there two type of different product that needed two different type of mixer since the mixers cannot interchangeable between the engine oil and gear oil due to quality control concern, is it okay??
0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst Fakhrusy Sf commented ·

You have two different ProcessFlows in your model right? This processFlow called mixers with recipe table2 is doing stuff with the 2 mixers in 3D. The processFlow called mixers with recipe table does not seem to be doing much ( it is not linked to one of the mixers and I think you don't need this ProcessFlow). The table2 ProcessFlow will be used to control both mixers.


token.Product.as(string).indexOf( "E" ) > 0 returns 1 (== true) if the Product string contains "E". And it return 0 if "E" is not in the string. When your decide condition returns true the token will go to port 1 (to the left). When the condition returns false the token will go to output port 2, to the right. This holds when you keep your decide at the original settings:

1650964062490.png

Does this make sense to you?

0 Likes 0 ·
1650964062490.png (8.4 KiB)
Fakhrusy Sf avatar image Fakhrusy Sf Patrick Zweekhorst commented ·

Ahhh yess indeed, i already detele the mixers with recipe table....

But I still get error in the system console.

1650964489137.png

I already define what is the recipe for the product in the recipe table...

1650964647170.png

what is wrong with my process flow?

below are my files...

blend_V3.fsm

0 Likes 0 ·
1650964489137.png (24.9 KiB)
1650964647170.png (31.8 KiB)
blend-v3.fsm (47.6 KiB)
Show more comments