question

David Seo avatar image
0 Likes"
David Seo asked David Seo commented

how to control the items flow on conveyors

I want to know how to stop and resume the items on conveyor using DP and PhotoEye.

I want to go on continue the second white item after stopping above picture.

The second white item should stop before one blank space for the process finished item passing.

After the second item stopping, it should resume on message from the cleared photoeye.

But it did not resume to go continue.

How to control it?

Thanks.

conveyorflow.fsm

FlexSim 17.2.2
how to stop and resume the items on conveyorthe
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

·
Raja Sekaran avatar image
1 Like"
Raja Sekaran answered David Seo commented

Hi @david.seo,

In PET_StopGo Photo eye type >> On Clear trigger >> Send a message to the center object of the photo eye. Then use the below code in On message trigger of the DPType_PassIn2 to resume the item.

Object item = current.activeItem;
Conveyor.Item conveyorItem = conveyor.itemData[item];
Object involved = current.activeItem;
involved.up.as(Conveyor).itemData[item].resume();

Thanks.


capture1.png (33.6 KiB)
capture2.png (59.6 KiB)
· 5
5 |100000

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

Raja Sekaran avatar image Raja Sekaran commented ·

Hi @david.seo, Did I answer your question or Did I misunderstand something?

0 Likes 0 ·
David Seo avatar image David Seo commented ·

@Raja Sekaran

Thank you for your replying.

But the model added you answer and it did not show any difference to me.

Did you test your answer in the model? If you had it, please upload it here.

0 Likes 0 ·
Raja Sekaran avatar image Raja Sekaran David Seo commented ·

@david.seo, I test it out. It works well for me.

0 Likes 0 ·
Raja Sekaran avatar image Raja Sekaran David Seo commented ·

Hi @david.seo,

Here is the sample model for resume the item on the conveyor. conveyorresumeitem.fsm

0 Likes 0 ·
David Seo avatar image David Seo Raja Sekaran commented ·

Thank you @Raja Sekaran . I fixed it as your guide.

1 Like 1 ·

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.