question

HanHae avatar image
0 Likes"
HanHae asked Felix Möhlmann commented

unload box from pallet

i want to unload box one by one from pallet.

But there is problem in my simulation.

Please help me teachers.

unload box from pallet.fsm

FlexSim 23.0.2
palletizing
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

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

The upper block in the Process Flow shouldn't be connected to the lower block. The source you placed there already creates a token for pallets that are unloaded to the queue. The token from the upper block has wrong references ("item" there refers to a pallet in the rack) and scrambles the logic.

You only assign the first box on the pallet to a label (pickedbox) and then only run the subflow once as well. To unload all items, run the subflow as many times as there are items on the pallet (subnodes.length) and assign the box references to each subflow-token individually. You should also implement some form of restriction, so that the operator only receives one task at a time. This can be done through a resource like with the forklift.

For the subflow you have two general options:

Create all tokens together

In this case, the box references have to iterate through the subnodes of the pallet (first token gets first box, second token gets second and so on...). When you assign labels to the subflow tokens in the "Run Sub Flow" activity, you have access to the creationRank value that denotes the "number" of the token. So "token.item.subnodes[creationRank]" will refer to a different box for each subflow token.

Since all tokens are created at the same time, the restriction to one task at a time should be placed inside the subflow.

1675242343777.png

Create tokens one by one

You can also set the activity to only have one token run through the subflow at a time. In this case, since the operator will have unloaded the item before the next one is created, the box reference can (and should since the number of subnodes decreases) just always point to the first subnode.

The Acquire and Release activity can be placed around the "Run Sub Flow" activity. Otherwise a second token from the source might interfere with an ongoing task since it will create its first subflow-token immediately and so the operator might start to unload a second pallet before finishing the first.

1675242574983.png


Lastly, items have to enter a conveyor through an Entry Transfer for the conveyor to work and move them along. It is created by creating a port connection from an (newly added) object to the conveyor. Afterwards you can delete the connected object. The transfer will persist and can be used to unload items into it.

1675242836695.png

unload-box-from-pallet_fm.fsm


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

Joerg Vogel avatar image Joerg Vogel commented ·

@HanHae, better you empty a pallet packed items by last property (LiFo). Otherwise you see gaps and latter free floating items on a pallet. empty-pallet-by-last.jpg

1 Like 1 ·
HanHae avatar image HanHae Joerg Vogel commented ·

I modify your opinion.

Now my forklift pick up box of top. Thank you!!

0 Likes 0 ·
HanHae avatar image HanHae commented ·

I really appreciate your answer. Thank you.

Acutually I cant understand your answer 100%. Because I dont have basic concept.

I am learing flexsim using youtube, But there is a limit.

Can you recommand youtube channel or other way to learn?

Once again, Thank you so much your answer.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann HanHae commented ·

The core training is available as videos on FlexSim's Youtube channel (part 1).

There are also multiple tutorials as part of the online manual/documentation.

From there I would also recommend that you look at the overview about writing logic in FlexSim and basic functions. These contain information about how to access subnodes, as used in the example model, for example.

0 Likes 0 ·