This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.
The model is an example of a simple crane control for three cranes.
3 Cranes travel on one path where the cranes upload in specific areas. Some unload points overlap so two cranes have to go in the same area.
To prevent that the cranes collide some network nodes get controlled.
If a crane arrives (OnArrive) at a network node he closes the edge of annother network node. Later if he continues to travel (OnContinue) the crane opens the edge of the network node again.
Important code can be found on:
- NN5 (OnArrival, OnContinue) which controls NN3.
- NN7 (OnArrival, OnContinue) which controls NN9.
- NN3 (OnContinue) which controls NN5.
- NN9 (OnContinue) which controls NN7.
If the cranes have unload they travel back to the load loaction again (OnUnload).
If the Global Variable 'DebugMessages' is one, some screen messages will appear to give more information what is going on.
Network nodes which have a closed edge turn orange.
To make the network nodes visible hold down the 'X' key and right click on the network node NN1.
Attention:
Do not delete or rename the object Logo_FlexsimD, because otherwise the model will not work correct. Also do not rename, delete or rerank other objects.