question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Tee Hiett commented

How can I get elevators to go to the 2nd floor when idle?

In this model, the designer would like to have both of the elevators go to the 2nd floor when idle. I cannot find a way to do this but I would like make this change for the designer.elevators-th-02-24-2017.fsm Tee

FlexSim HC 5.1.0
healthcareelevatorhealthcare hc
5 |100000

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

1 Answer

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Tee Hiett commented

Here's one way you could do it. In the On Dropoff trigger I send a delayed message to the elevator. Then in the On Message trigger I give it a travel to a location task like this:

  1. /**Travel to a Specific Location*/
  2. double curxloc = xloc(current);
  3. double curyloc = yloc(current);
  4. double curzloc = zloc(node("NN4", model()));
  5. int condition = content(getvarnode(current, "activetasksequence"))==0 && content(current) == 0;
  6. if(condition)
  7. createtraveltoloctask(current,0,curxloc,curyloc,curzloc,0,0,0);

returnelevator.fsm (313.2 KiB)
· 1
5 |100000

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