question

Francesco S avatar image
0 Likes"
Francesco S asked Francesco S commented

how can i put random items in a rack whit a process flow

rack-creation.fsm

hi everyone, how can I position the boxes from queue 1 to the rack, following this process flow, randomly?

thanks

FlexSim 20.1.0
boxitem flowrack flow
rack-creation.fsm (41.1 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.

1 Answer

·
Brandon Peterson avatar image
1 Like"
Brandon Peterson answered Francesco S commented

@Francesco S

To get a flowitem to move from the queue to the rack you will need to make a port connection from the queue to the rack. To get the flowitem to be placed randomly inside of the rack you will need to change the slot assignment on the rack. I would suggest using the "random" pick list option. I have attached a model that has two custom code activities at the end of your process flow that do the two steps listed above.

The third thing you will need to do is reset the model. This is the only way I have found to get the rack to open it's input port connection. The reason for this is that the rack needs to execute some default code that happens on reset before the input ports will function properly.

I hope this gets you closer to what you want to do. If not, I would suggest posting a new question based on what you are trying to do in general and see if anyone has any ideas on how to approach it differently.

Brandon

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

Brandon Peterson avatar image Brandon Peterson ♦ commented ·

For whatever reason I couldn't include the attatchment with the last response.

rack-creation-sa.fsm

1 Like 1 ·
Francesco S avatar image Francesco S commented ·

thank you, the custom code works.

0 Likes 0 ·

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.