question

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

Stop conveyor based on multiple conditions?

fsq.fsmI need to stop a conveyor if there is a item in a specific queue (IE Conveyor 1 and conveyor 2 -> Queue 1), the AGV, or the OP10 Load queue. I then need to resume sending the item to the exit transfer based on if all the locations are empty. How would I accomplish this?

FlexSim 18.2.0
conveyorflowconditional stop
fsq.fsm (80.4 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

Joshua S avatar image
2 Likes"
Joshua S answered tannerp commented

To stop the conveyor you can use a event triggered source in process flow then have a custom code where you use the built in conveyor controls

To resume the conveyor, you can use another even triggered source that fires if any of the locations empty, then you can have a custom code snippet that goes through each of the other locations check if they are empty with the following code

Object.subnodes.length==0

then have a decide activity that leads to another custom code activity that resumes the conveyor.


pic1.png (30.2 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.

Alex H4 avatar image Alex H4 commented ·

How do I link a stop item conveyor control to a specific conveyor?

Unrelated, how would I change the robot idle joint positions? When idle the robot moves its arm to a position that is abnormal. (IE in the ground)

0 Likes 0 ·
Joshua S avatar image Joshua S Alex H4 commented ·

Do you want to stop the items, or stop the entire conveyor? You can set the speed of the entire conveyor to 0.

If you want to stop the conveyor from allowing items to exit you can also close the port.

0 Likes 0 ·
pic1.png (7.2 KiB)
pic2.png (8.6 KiB)
tannerp avatar image tannerp Alex H4 commented ·

When working with robots, it can be helpful to define their motion paths and then use those to determine the robot's visuals. This image shows where you can define those:

After creating a path that I wanted the robot to reset to, I then call that action by using a "Travel to Location" activity in Process Flow. Here's a model to help show how this works:

robot-reset.fsm

0 Likes 0 ·
robot-reset.fsm (30.4 KiB)