Is there a way to stop a group of operators in process flow. I was attempting to use something like stopobject(), but no success. I want to stop operators in process B when the crane is being used in process A.
Thanks!
Is there a way to stop a group of operators in process flow. I was attempting to use something like stopobject(), but no success. I want to stop operators in process B when the crane is being used in process A.
Thanks!
@Kari Payton Are you basically trying to simulate a breakdown (like with an MTBF/MTTR) based on an event-specifically when the crane is being used? Or do you want the operators to finish their current task and not accept new tasks while the crane is operating?
Hi @Adrian Haws Yes trying to simulate it like a breakdown. Pause the operators while the crane is moving, then resume after crane finishes moving.
You can use the groupnummembers() and groupmember() commands along with a Sub Flow, where the Sub Flow uses a Custom Code activity that in turn utilizes the Stop Object picklist option. All you would need is the name of the group since both activities reference a group by name.
You can look at the attached model (groups-stopobject-example.fsm) as an example. I use an Assign Labels activity to keep track of the name of the group (called Operators) on a token label (called groupName). In both Run Sub Flow activities, I use the groupName label with the groupnummembers() command to determine the quantity of child tokens to create in the Sub Flow. I also create a label on each child token called rank where each child token's rank should match up with a member of the group (the first child token should reference the first Operator in the group, the second child token with the second Operator, etc.).
In the first Sub Flow, the Stop Object picklist is used. The groupmember() command references which member of the group to stop using the groupName label and the rank label. The second Sub Flow uses the Resume Object picklist option, but the same command and labels are used with it.
So a parent token is created every time a flowitem enters the Processor. That parent token kicks off the Stop Object Sub Flow to stop all Operators in the Operators group. Then a Wait for Event activity waits until the flowitem leaves the Processor before the parent token kicks off the Resume Object Sub Flow to resume all Operators in the group.
Kari,
The easiest way to do this would probably be to acquire the group of operators and call stopobject() on the resource.
5 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved