ATTENTIONThis 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. |
flexsim.com |
#1
|
||||
|
||||
Stop a Transporter
Hello
We are trying to make trains (transporters) move on tracks which we built by network nodes and links joining them and we have built a user event for our train to check every time tick, if the network node in front is available or not. basically we have assigned "linkstate" to the "type" of that node ( connections/connectionsout/To NN2/type)..... and in our user event for the trains, if linkstate == 1 "setstate of train to busy or blocked " - but this actually doesnt stop the train, it just sets the state to busy. we were wondering what code do we use so that if the linkstate is 1, we could make the train stop and if it is 2, we could make the train move. There should be come code we missed out, to make the train stop before setting its state to busy or blocked. thanks |
#2
|
||||
|
||||
Hi,
Setting states concerns only the statistics. The traveling of taskexecuters is controlled by the mechanism of the tasksequences. If you want a taskexecuter changes its actual behaviour, give it something else to do. The main concept is to preempt the actual tasksequence. A utilize-task stops the movement of the taskexecuter and changes the state. If you want the taskexecuter to resume, the utilize-task ends with the command freeoperators. Jörg |
The Following 2 Users Say Thank You to Jörg Vogel For This Useful Post: | ||
Sebastian Hemmann (02-28-2011) |
Thread | Thread Starter | Forum | Replies | Last Post |
Questions about control of Transporter | Hao Zhou | Q&A | 8 | 01-07-2011 03:36 AM |
How to recognize the transporter dispatched by a dispatcher? | Frans Zeng | Q&A | 1 | 05-15-2010 10:02 PM |
Question about Transporter Logic | Alberto Serra | Q&A | 3 | 10-20-2009 06:10 AM |
I run the model,the Transporter disappeared | LINWEIXU | Q&A | 2 | 08-16-2009 02:40 AM |
Make sure you stop model with the stop button before collecting state based statistics | Paul Dowling | Tips and Tricks | 2 | 06-10-2008 08:10 AM |