question

Jerry avatar image
0 Likes"
Jerry asked Jerry commented

How to make the elevator inoperative after a certain period of time

Hello.

I have a question.

Question.fsm


스크린샷48.png

In my example model, the staff move patients to different floors through three elevators.

I want to make the first elevator not working after 50 seconds at this time.

It would be better if the patient and staff who were already on board stopped after the transfer.


I tried to use it after checking that there is an MTBF/MTTR function, but it is not functioning properly.

Any advice would be appreciated.

Jerry.


FlexSim 23.2.0
elevator
· 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.

Natalie White avatar image Natalie White commented ·

Another possible approach: You can use a time table on your elevator bank to specify when your elevator is down. You'll also add conditional one-way dividers around your elevator. These will use a conditional rule that specifies whether the elevator is stopped: 1690381691713.png

I have attached an example below. You can disable the time table, reset, and run to see how this works when Elevator Bank1 does not have downtime.

This approach is also flawed. If you change your downtime so it starts any time after the beginning of the simulation, such as 8:00:01, the person will still use Elevator Bank1 instead of rerouting to Elevator Bank2. Unfortunately, this probably will not work in your model, but it is another idea for you to explore.

StoppedElevatorExample.fsm

0 Likes 0 ·
Julie Weller avatar image Julie Weller commented ·

Hi @Jerry, was one of Natalie White's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Natalie White avatar image
0 Likes"
Natalie White answered Jerry commented

There is not a good way to do this. Unfortunately, as mentioned in this post, MTBF/MTTR doesn't work for elevator banks.

There is a workaround method where you can use MTBF/MTTR to set a label that is referenced by the request list pull query of the elevator bank. The problem with this method is that while it stops the elevator from traveling between floors during its downtime, it does not stop the people from entering the elevator.

If this is helpful, I've included an example model of this and described the process below.

elevator_question.fsm

You can create a label on the elevator within the elevator bank, called "isStopped," for example. You can add an MTBF/MTTR to your model and attach the elevator bank by switching out of the healthcare environment (and back into it after). In the down function of the MTBF/MTTR properties, you'll add a line of code that changes the "isStopped" label to 1; likewise, add a line to the resume function that changes the label back to 0.

downobject.labels.assert("isStopped").value = 1;

Then, you'll need to change the Request List Pull Query of the Elevator Bank properties so it can reference this label:

1690323123554.png



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

Natalie White avatar image Natalie White commented ·
@Jerry Hope this answer is helpful!
0 Likes 0 ·
Jerry avatar image Jerry Natalie White commented ·

Hello.

I saw your answer a little late.


It's a great way, but unfortunately it wasn't the way I wanted it to be.

Thank you very much for your constant efforts to solve this problem.


Jerry.

0 Likes 0 ·

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.