question

Herwina Richelle Andres avatar image
0 Likes"
Herwina Richelle Andres asked Sam Stubbs converted comment to answer

Custom Wait Times for Different Activity per Resource Type

lot-flow-1-plane-customstate-2-itemtype.fsm

Hi everyone.

I am trying to set the state of a container to a custom set of states on specific periods and activity. Below is the detailed events.

1. On PRE

I need to ensure that if the resource is busy when picked, the state of PLANE17 would be WaitForOp_EAA_PRE for Operator or WaitForTech_SETUP for the technician.

2. On InPROCESS

I have added a MTBF and MTTR specific to processing state and would require the assistance of Technician. State should be OnREPAIR. Should the technician be busy when picked, state should be WaitForTech_REPAIR.

Another thing is to mimic MTBF and MTTR but rather than in units of time, it would be in units of each entity. Mean Units Between Assist (MUBA). It would stop processing and call the operator for a certain period of time before it resumes processing. That period when the operator is assisting will set the state of the plane to be WaitForOp_IAA when the operator is busy or IAA when the operator is attending the assist.

Thank you for your help!

FlexSim 7.5.4
statewait timecustom dashboard
· 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.

Herwina Richelle Andres avatar image Herwina Richelle Andres commented ·

lot-flow-1-plane-customstate-2-itemtype2-autosave.fsmHi. Thank you for your suggestions. Indeed, @Sam Stubbs has helped me in customizing the state profiles and I have been building from that. It is working as I expected it to.

I do have some clarifications though for Sam. Can you help me as to why no resume function was chosen on Down Function?

On coordinated task sequence, if I use waiting for operator should I rather setstate to wait for Tech or this already executes the repairing process and OnRepair is a more valid state?

If no resume was chose on Down Function, would it mean that the rules written on Resume Function will not be fired? Also, what's the difference between DownFunction and OnBreakdown, and Resume Function and On

Thank you!

0 Likes 0 ·
Sam Stubbs avatar image Sam Stubbs ♦ Herwina Richelle Andres commented ·

I am not certain what logic you have on the Down or Resume functions. I did not script this part of your model. I assumed that you had, if not you, then it could have been someone else who worked on your model. Sorry, I'm not sure when or why you're setting each state. I only gave you the custom states as an example.

As to the second question the "Down Function" is what you want to actually happen when the Breakdown time fires. (The default is to Stop the Object and set its state as "Down). The On Break Down trigger is what additional logic you want to fire when the object breaks down. It's the same for Resume Function / On Repair. The resume function is what you want to actually happen when the repair time is completed. The On Repair trigger is any additional logic to fire once the object is repaired.

0 Likes 0 ·
Herwina Richelle Andres avatar image Herwina Richelle Andres Sam Stubbs ♦ commented ·

Hi @Sam Stubbs .

Thank you for your feedback.

I added a breakdown activity from your last model and wanted to represent waiting for operator to WaitForTech_REPAIR and make Plane17 reflect that in the state chart.

Rather than making the code a statement, I wanted WaitForTech_REPAIR to be shown in the state chart for Plane17.

In addition, I am trying to represent breakdown state to OnREPAIR for Plane 17 via On Break Down trigger. Also, change the color of the Plane17 to red when it is being repaired. Once repair is finished, I wanted the set the color of Plane17 to green as added in On Repair trigger.

I appreciate the clarification made on the differences of Down Function and On Break Down and Resume Function and On Repair.

Thank you!

0 Likes 0 ·
Show more comments

1 Answer

·
Adrian Haws avatar image
0 Likes"
Adrian Haws answered

@Herwina Richelle Andres As far as I know, states aren't really meant to be customized. To see what different state types there are, refer to the State List. What you can do, however, is customize a state's name in a dashboard chart as suggested in this answer, or use a tracked variable or label.

If I correctly understand what you're trying to do with the MTBF/MTTR, you can do this by incrementing a tracked variable with the entry of each entity, then checking its value in an object trigger. At certain intervals the code would then be executed to simulate that breakdown. For example, you could set a certain state, then send a delayed message to resume its previous logic.

· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

@Adrian Haws is the Feature custom state profile still usable in Flexsim 7.5.4 and newer.

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Joerg Vogel commented ·

Yes. You can use custom state profiles in FlexSim 7.5.4.

Starting in 16.0, there is a new structure for stats that stores information on single nodes instead of a node hierarchy structure, but the new structure also works with custom state profiles.

This is an additional question about the custom states that Sam added to this model in another thread.

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.