question

Orry avatar image
0 Likes"
Orry asked Jason Lightfoot commented

How to resume the item when stopped it

Hello

how to resume item when it was stopped


thanks





1697695273585.png 1697695307119.png

FlexSim 22.2.0
conveyors
1697695273585.png (281.6 KiB)
1697695307119.png (509.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.

CSN avatar image
0 Likes"
CSN answered Orry commented

You can use PF to resume Item.

for example, if you want to resume the item in 30 seconds, you can add a Event-Triggered Source in response to Arrival event, then add a Delay activity to wait for 30 seconds. Finally, Add a Custom Code to resume item.

1697700267754.png

The Custom Code settings are shown in the figure:

1697700462895.png


As your account is Chinese, If you have any further questions, you can directly send them to the email of the Chinese Local Distributor: [email protected] .




1697700267754.png (4.3 KiB)
1697700462895.png (53.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.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jason Lightfoot commented

The Station object stops the item automatically while it is "processing" it, so depending on what you want to achieve, you might not need to stop the item in the trigger to begin with.

There is an option to resume the item in multiple triggers of the Station, Decision Point and Photo Eye objects as well as in the Custom Code activity in Process Flow.

If you inspect the code of those options, you can see the syntax to resume the item, provided you have a reference to the item.

Object item = ...;
item.up.as(Conveyor).itemData[item].resume();
· 4
5 |100000

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

Orry avatar image Orry commented ·

I want to stop it while three processors were all occupied, not continuous to sent item to next station, so one of processors is process finished then resume item to next, but the item just stopped, I can not resume it.1697701078107.png

0 Likes 0 ·
1697701078107.png (255.8 KiB)
Felix Möhlmann avatar image Felix Möhlmann Orry commented ·

Something like that would be easiest to build in Process Flow instead of using triggers on the 3D objects.

To wait for an exit on any processor, you can put them into a group and have the activity listen to the entire group.

1697701928088.png

1697701973250.png

0 Likes 0 ·
1697701928088.png (26.3 KiB)
1697701973250.png (8.9 KiB)
Orry avatar image Orry Felix Möhlmann commented ·

Thanks for you answer, I make more decision point to stop item.

1697713276736.png

0 Likes 0 ·
1697713276736.png (290.2 KiB)
Show more comments

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.