ATTENTION

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.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 02-23-2011
Nischith Kashyap's Avatar
Nischith Kashyap Nischith Kashyap is offline
Flexsim User
 
Join Date: Nov 2010
Location: Wollongong, Australia
Posts: 51
Downloads: 26
Uploads: 0
Thanks: 19
Thanked 0 Times in 0 Posts
Rep Power: 118
Nischith Kashyap is on a distinguished road
Default 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  
Old 02-24-2011
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.