question

Leo L6 avatar image
0 Likes"
Leo L6 asked Natalie White commented

Reversing Conveyors Issue

Hi,

I'm trying to create a scenario in which a conveyor is reversed during model run in order to send an item to a specific location. But, even after the conveyor has reversed the items do not flow to the intended area. Attached model: test12.fsm

Help much appreciated,

Thanks

FlexSim 22.0.16
process flowconveyorsreverse direction
test12.fsm (46.4 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.

Natalie White avatar image Natalie White commented ·

Hi @Leo L6, was Jonah K's answer helpful? If so, please click the "Accept" button at the bottom of 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jonah K avatar image
0 Likes"
Jonah K answered Jonah K edited

I found two potential fixes to your issue.

By default, a straight conveyor will send the item to the furthest downstream side transfer (in your case StraightConveyor2). It looks like changing the conveyor speed for StraightConveyor3 to -1 and sending the item to DP2 still isn't overriding this original destination route. A quick fix to this is to move StraightConveyor2 0.01 m in the -X direction (upstream). This will calculate the routing data with Conveyor3 as being the "best option" --if the conveyor has a -1 speed.

test12_Option1.fsm

A second option is to call the functions "switchDirection" and "rebuildRoutingData" with custom code.

function_s(Model.find("StraightConveyor3"), "switchDirection"
function_s(Model.find("ConveyorSystem"),  "rebuildRoutingData");

By executing these functions consecutively, you are basically resetting DP2 to be in a downstream conveyor, which will then allow you to "Send Item" without issue.

test12_Option2.fsm

I also changed the Wait for Event reference to be looking for the Sink On Entry, instead of the Decision point, and added a decide which will only send half the tokens through just to see if the items can be sent in both directions. Hope this helps.


test12-option1.fsm (48.6 KiB)
test12-option2.fsm (48.5 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.