question

tall_pauhl avatar image
0 Likes"
tall_pauhl asked Joerg Vogel answered

Start a subflow in send message

Hello everybody,

In my model I´m portraying a Simulation of a cafeteria. Therefore I implemented a fixed production, where due to variables a certain amount of the ingredients is being moved at specific times to be "cooked/ produced" and the moved to Theke ... where two components, a person and a palette will be combined to represent a person with a plate and a main and side component.

The model is supposed to demonstrate static and dynamic production. This is accomplished by the fixed production at the beginning an the dynamic production depending on demand.

The fixed works well so far.

So what I would like to implement is that in between the time when the cafeteria is open (11:00:00-14:00:00), food is produced depending on the inventory. When the inventory from the start (fixed) for example goes below "100" (Floor Space Theke Nudelteller) then a message is supposed to be send by the corresponding combiner. I chose the combiner because I did message on exit, and since people aren`t generated before 11:00:00 the "Theke Nudelteller" will have more objects in the floor space than the <100 before the first combined item would leave the combiner and the message would be send.

If the content does go below 100, this message is supposed to trigger a processflow, as the message get`s send to "Lebensmittellager".

Problem: The message would need to be specified to certain items with the label Type. I´m confused how to do this, as I did not understand the Parameter 1/ Parameter 2. Right now all process Flows are being triggered so it does not differenciate the message to specific process flows.

I hope you understand my problem and can help me moving forward.

All the best

Paul Uhlig

20240115_SPP_Simulation_V1_tne.fsm

FlexSim 23.2.1
processs flowsend message
· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Please repost the model with the exceptions fixed - you have another post where the steps to do this are outlined.

1 Like 1 ·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered

I show some methods to get data from a 3D model

by messages or directly by creating a token in a process flow activity

transfer_data_from_3D_model_to_process_flow.fsm


5 |100000

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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The parameters that you can pass in when you send a message are accessible when the message is received. You can use those to transmit necessary information between the sender and the receiver.

You have already configured the Event-Triggered Source for the noodle production correctly to only create a token when the first parameter is a 1.

capture1.png


capture1.png (11.5 KiB)
5 |100000

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