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:

/**Travel to a Specific Location*/
double curxloc = xloc(current);
double curyloc = yloc(current);
double curzloc = zloc(node("NN4", model()));
int condition = content(getvarnode(current, "activetasksequence"))==0 && content(current) == 0;
if(condition)
	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.

Tee Hiett avatar image Tee Hiett commented ·

Again, thanks, Matthew. Great Help!

Tee

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.