question

Kari Payton avatar image
0 Likes"
Kari Payton asked Logan Gold answered

Use stopobject to stop a group of operators.

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!

FlexSim 17.0.0
stop object
· 2
5 |100000

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

Adrian Haws avatar image Adrian Haws commented ·

@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?

0 Likes 0 ·
Kari Payton avatar image Kari Payton Adrian Haws commented ·

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.

0 Likes 0 ·
Logan Gold avatar image
3 Likes"
Logan Gold answered

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.


5 |100000

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

Adrian Haws avatar image
1 Like"
Adrian Haws answered

Kari,

The easiest way to do this would probably be to acquire the group of operators and call stopobject() on the resource.


stop-object.png (23.3 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.

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.