question

Eric C2 avatar image
0 Likes"
Eric C2 asked Jeanette F commented

separator two ways to unload

Hi All,

I'm creating my model and at the end of the separator I want that the crane unload the items with label type 1 and 2 (boxes) and the other item with label type 3 (pallet) don't use the crane to be unload in the next queue.

I try to solve this but the crane unload all the items.

I add this to the script saying that the crane just unload items 1 and 2 but it has not effect.

Someone knows how I have to add to reach this??

I add the model, so you can see better why I'm saying. At the end I don't want that the pallet to be unload by the crane, this item don't need transport.

prueba.fsm

Thank you in advance.

FlexSim 21.0.1
flexsim 21.0.1separator unload
1.png (16.7 KiB)
prueba.fsm (32.5 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Eric C2, was Roi Sánchez's answer helpful? If so, please click the red "Accept" button at the bottom their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Roi Sánchez avatar image
1 Like"
Roi Sánchez answered Jeanette F commented

Hi @Eric C2, I guess your conditional sentence is not right. You must do the following:

if (item.Type == 1 || item.Type == 2)


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

Eric C2 avatar image Eric C2 commented ·

Ok, thank you, but if I do that then the item type 3 is not unload from the separator.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Eric C2 commented ·

Hello @Eric C2,

I would use conditional transport. This will allow the crane to transport the specified item types, but then the other type will go to the output port without transport.


1 Like 1 ·
1610997398742.png (69.1 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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