question

Maston avatar image
1 Like"
Maston asked Maston commented

Separated Flowitems not destroyed on reset

I created a pre-packed pallet in the flowitem bin. When the pallet runs through a separator, the boxes that were unpacked from the pallet do not destroy on model reset. I have to set switch_destroyonreset to 1 on the items on exit from the separator.

Am I doing something wrong when I am setting up the nested flowitems? Or is there a way to set the destroyonreset flag on the items in the flowitem when I am setting up the custom flowitem?

Attaching an example model in 24.2.2

separator problem24.2.fsm

FlexSim 24.2.2
flowitemflowitem binflowitems inside flowitems
5 |100000

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

Jordan Johnson avatar image
2 Likes"
Jordan Johnson answered Maston commented

I'm not sure the flowitem bin was designed with making pre-packed objects that can be unpacked later.

Instead of building a pre-packed flowitem in the flowitem bin, I would create a packed item using Process Flow. See this model: separator-problem242-pfsource.fsm

I made an Object process flow. I attached that flow to a Queue. I changed the shape of the Queue to match the Source.

The main idea of the flow is to mimic the logic of a 3D source:

  1. Wait for the next arrival time
  2. Make an item
  3. Wait for the item to be released

By default, a Queue releases items instantly. So the flow closes the queue's output ports until an item arrives. Then it opens them long enough to release the item. Note that it opens in them in the On Listener Initialized trigger in the event triggered source.

The main advantage of this approach is that it avoids your original issue. In addition, it is highly flexible. You could easily change the number or type of cases in a layer. The downside is that it is a bit more work.


· 3
5 |100000

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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Maston commented

I saved a packed pallet from an combiner output as a user library object:

packedPallet.fsl

You can use it in a create object activity directly by its main path to get a packed pallet item into your model.

MAIN:/project/userlibrary/UserLibrary 1/Product_my

Copy the above path into the Object field of create object activity. Or you copy the path by exploring the user library object in the tree view

BUT you must open the user library in attached model previously from main menu file menu.

userLib_item_model_example.fsm

Activating the user library by selecting the user library entry, did not make the packed pallet available in a new opened model.


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