Hi, i need help with my 2nd elevator where it need to be idle at level 3 but it seems that it idle at level 1. hope someone can help.
Hi, i need help with my 2nd elevator where it need to be idle at level 3 but it seems that it idle at level 1. hope someone can help.
Hi @Jenson, was one of Joerg Vogel's or Felix Möhlmann'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 unaccept and comment back to reopen your question.
Do you mean that the elevator should start the model on the third level or that it should return to it when there are no pending requests?
In the first case, you can add a small block to a Process Flow (for example "Arrivals") that simply sets the location of the elevator to that of the third level at the start of the simulation.
I fear the second case might be a lot more complicated since the evelator banks are controlled in a unique way, compared to other task executers. You would probably have to monitor the request list and add an entry for level 3 when the list becomes empty and the elevator is currently at another level.
hi @Felix Möhlmann,
I have entered the code and it works thanks but i have another problem that occurred after I entered the code that i want the lift to be a station on floor 3 when there is no one taking the lift but currently is that when there no one taking the lift it will station at various lift ( example a patient goes to level 5 and no one else taking the lift. It will stuck at level 5 rather than then going back to level 3 )
In the attached model I use a process flow to react to the elevator becoming idle. If it is not already at the correct height, the process flow tells it to travel there.
This seems to work fine, but I can't guarantee that this won't interfere with the standard logic in weird ways at some point.
Edit:
Sorry, I just realized that the model was build in an older version. Here is the updated model in 21.0
Please remember to select the correct software version that you are using, when asking a question.
@Joerg Vogel , sorry i have search the post under travel home and find there isnt anything related to elevator in healthcare. maybe u can advised me on it or can i have a sample Final After.fsm
@Felix Möhlmann , but once no one taking the lift it will idle at level 3 but it does not take in people at the waiting time ?n
The people in the waiting line (more specifically the first one) are still waiting to acquire a location.
@Felix Möhlmann , But if that the case, how do i make lift 1 to take in people from level 3 if lift 2 is occupied. sorry to bother you
@Jenson instead of on resource available the Elevator Bank Object has got an Event called On Idle. This event is only accessible in process flow. You can use it for a single elevator bank object or a group of elevator bank objects.
A Event Driven source can create a token in process flow. You put involved object reference into a token label in the edit field "Assign Event Object To" for example as token.elevator
.
You can build a tasksequence by source code or by Process Flow activities as @Felix Möhlmann has shown.
A Tasksequence in scource code consists of a create method, one or several added tasks and finally dispatching of the created tasksequence treenode. final-after-jv.fsm
homets.addTask(TASKTYPE_TRAVELTOLOC,NULL,NULL,homeLocation.x,homeLocation.y,19.9);
you can set a variable for different home locations by a switch by case structure:
Vec3 homeLocation = elevator.location; Variant bank = elevator.up; //Datatype treenode or Object ist possible, too Array banks = ["Elevator Bank1", "Elevator Bank2"];// array of Elevator Bank names switch(banks.indexOf(bank.name)){ case 1: { homeLocation.z = 20.0; break;} default: // or case 2: for "Elevator Bank2" for more elevator banks { homeLocation.z = 10.0; // set right value break;} }// switch bank.name end homets.addTask(TASKTYPE_TRAVELTOLOC,NULL,NULL,homeLocation.x,homeLocation.y,homeLocation.z);
15 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