question

Kim Jh avatar image
1 Like"
Kim Jh asked Joerg Vogel commented

How to model the automatic doors such as photos?

Choose One
kinematicsmodeling
5 |100000

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

Sam Stubbs avatar image
1 Like"
Sam Stubbs answered

Have you already gone through the Kinematics tutorial in the manual? If not, it's a great place to start. You can find the online link here.

There's more examples of kinematics in practice here.

And finally here is a list of all the commands associated with kinematics.

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
1 Like"
Joerg Vogel answered Joerg Vogel commented

The whole mechanic can't be simulates. If the size of thin basic fixed resource is adjusted such doors are possible in a model. The size is changed in the draw trigger. The door closes in 2 seconds then the size value depends on the start time of change. The start time is set in a label. The difference of start time and current simulation run time divided by the 2 seconds and multiplied with the value size of the closed door gives the current size of the object. Any time difference greater than 2 seconds sets the size to maximum. If the opens again set the size vice versa to the minimum size.

If the door should have a translucent window the door is build by two objects.

Other possible approaches are the animation creator under general tab of the object's properties or the change of the location of a constant size object. Then the door should be hidden in the above wall of the building.


high-speed-door.gif (143.7 KiB)
high-speed-door.fsm (19.9 KiB)
· 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.

sara S2 avatar image sara S2 commented ·

Hello @Jörg Vogel !

I used the above automatic door in my model. But, I have a problem: the door opens only one time (at the beginning of the simulation) it does not open for each generated box that must be transported by the transporter. Please help me to solve this.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel sara S2 commented ·

@sara S2, the door opens on a message. The door closes on the next message. If you need more often the opening / closing you need to send a pair of messages.

The opening / closing of the door lasts 2 seconds. You need a time gap of 2 seconds at least between these two messages.

0 Likes 0 ·
Francisco P3 avatar image Francisco P3 commented ·

Hello @Jörg Vogel,

Thanks for sharing that door! How/where would the coding needs to be changed for the door to change STATE when open and closed? I was trying using the

if(current.doorheight = 4.0){setstate(current,28);}

But did not worked. I am a newbie on flexsim. I wanted the door to be STATE #4 when closed, and #28 when opened.

Thanks again.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Francisco P3 commented ·

There is for case 1: a code block in On Message trigger of the Basic Fixed Resource of the door. There you can insert your condition and set the state depending on the value of local variable szDoor. But you have to test it on your on which values you must set the states.

1 Like 1 ·