question

Lilian Fonseca avatar image
1 Like"
Lilian Fonseca asked Brenton King answered

How to control the inputs and outputs of a production line?

firstdraft.fsm

The production line attached has two different sources, with two different flowitems that will be combined into another flowitem (different 3D shape). My problem is that when the brown box arrives on the conveyor, it should close the output of the first source as well as the movement of the robot. So, there shouldn't be any other brown boxes in the same conveyor while the first one is passing through the combiner. The brown box flow has to be resumed again as soon as the first one gets out and arrives in processor 5. Also, I need that the source 14 only generates a blue flowitem when a brown box arrives in the first conveyor. The blue flowitem has always to be the first product to arrive in the combiner. What is the best way to solve this logical issue?

FlexSim 16.0.1
combinersourceflowitemlogic
firstdraft.fsm (255.0 KiB)
· 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.

Brenton King avatar image Brenton King ♦ commented ·

What are you trying to accomplish with the first decision point? Errors pop up when running the model because you are calling stopobject(centerobject(current,1),STATE_STOPPED) but you don't have a object connected to the decision point with the center port.

0 Likes 0 ·
Lilian Fonseca avatar image Lilian Fonseca Brenton King ♦ commented ·

firstdraft.fsm@Brenton King , I was trying to use a decision point before and I forgot to delete it before I attached the file on my question. I am sorry about that. Here is the file without decision points.

0 Likes 0 ·
firstdraft.fsm (254.4 KiB)

1 Answer

·
Brenton King avatar image
2 Likes"
Brenton King answered

I really prefer the Process Flow method here because of its ability to listen for specific events. You can get the same functionality by using the senddelayedmessage command in the triggers of the objects but I prefer the readability and accessibility of the logic in PF.


5 |100000

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

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.