question

Alex H4 avatar image
0 Likes"
Alex H4 asked tannerp answered

Reference flow item label inside a queue in process flow

I need to check the item type of a flow item that is in a queue. In the process flow if that item is a specific type the conveyor is stopped, as well as if there is an item inside of multiple different objects.

I also have an issue where a flow item is stopped in my "Stand2" queue that uses the same custom code as "Stand1" which does not have any issues. I do not know why the flow item is stopped because when the model runs to that point the Queue4 and OP20_Load are empty.

FlexSim 18.2.0
process flowlabelsqueue contentflow item
fsq.fsm (93.8 KiB)
· 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.

1 Answer

tannerp avatar image
0 Likes"
tannerp answered

I have been examining your code and can hopefully address that part of the issue you are having.

In your code, I assume you are checking the content of the AGV and the Robot to make sure that they are available to pass a part through the system. If this is the case, I would recommend using the "Acquire Resource" feature for the Robot and AGV. What an Acquire activity does is checks to see if the task executor is in use or assigned to other tasks. If it is, it will wait til it's completed those tasks. If not, it will assign the current task to the available task executor.

If you were to use the Acquire activity for these elements in your model, it would likely save you a lot of coding because the task executors will only work on one task at a time.

I've attached an example of using the Acquire activity with a robot/AGV system. Let me know if this helps simplify your process flow.

Model: acquire-resources-demo.fsm


5 |100000

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