<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to immediately change the acceleration of a conveyor in trigger in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533536#M41901</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/11003/clairek.html" nodeid="11003"&gt;@Claire K&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Try the following code to change the acceleration of a conveyor:&lt;/P&gt;&lt;P&gt;setnodenum(Model.find("ConveyorSystem&amp;gt;variables/conveyorTypes/ConTypeFast/acceleration"),88);&lt;/P&gt;&lt;P&gt;Where "ConTypeFast" is the name of the Type of Conveyor.  The above code should change the acceleration of the ConTypeFast conveyor to 88.  Maybe this will work for you?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 19:35:50 GMT</pubDate>
    <dc:creator>jeff_nordgren</dc:creator>
    <dc:date>2019-05-09T19:35:50Z</dc:date>
    <item>
      <title>How to immediately change the acceleration of a conveyor in trigger</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533535#M41900</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;We need to change the acceleration parameters of a section of conveyor based on parameters such as "number of items on", or "items blocking a Photo Eye". I can use the Conveyor.targetSpeed function to change the speed, and that has an immediate effect, but the Conveyor.acceleration function is Read-only, so I can't change it that way. If I try to use the tree address to change it I get an error message too.&lt;/P&gt;&lt;P&gt;The data we have is only expressed in terms of acceleration, so we would really like to use that instead.&lt;/P&gt;&lt;P&gt;I tried setting up two Conveyor Types: "ConTypeFast" and "ConTypeSlow" and then using this code to change  the Conveyors Type:&lt;/P&gt;&lt;PRE&gt;Variant newtype = Model.find("ConveyorSystem&amp;gt;variables/conveyorTypes/ConTypeSlow");
	Model.find("Conveyor1&amp;gt;variables/type").value = newtype;
// Change conveyorType to Slow


Variant checktype1 = Model.find("Conveyor1&amp;gt;variables/type").value;
//check parameter has changed
&lt;/PRE&gt;&lt;P&gt; The logic is successful, in that the parameter is changed correctly and the conveyor visual immediately changes to the new type, but the speed and acceleration does not change. Even if you manually stop the run, change the conveyor type, and restart the run, the display changes but the speeds do not, until you do a Reset.&lt;/P&gt;&lt;P&gt;There is a similar question from 2017 about this, where the logic above is recommended, but no mention is made of it not being activated immediately. I also cannot find any mention of it in the manual.&lt;/P&gt;&lt;P&gt;In AGV logic you have a similar "agvType" parameter. When you change it, the AGV changes speed/accel almost immediately, (sometimes waiting until it reaches the destination CP), so why is the conveyor behavior different?&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;I am attaching a sample model..&lt;A id="19054" href="https://answers.flexsim.com/storage/attachments/19054-change-conveyor-type.fsm"&gt;change-conveyor-type.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 14:51:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533535#M41900</guid>
      <dc:creator>clairekruppGhafari</dc:creator>
      <dc:date>2019-05-09T14:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to immediately change the acceleration of a conveyor in trigger</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533536#M41901</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/11003/clairek.html" nodeid="11003"&gt;@Claire K&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Try the following code to change the acceleration of a conveyor:&lt;/P&gt;&lt;P&gt;setnodenum(Model.find("ConveyorSystem&amp;gt;variables/conveyorTypes/ConTypeFast/acceleration"),88);&lt;/P&gt;&lt;P&gt;Where "ConTypeFast" is the name of the Type of Conveyor.  The above code should change the acceleration of the ConTypeFast conveyor to 88.  Maybe this will work for you?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 19:35:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533536#M41901</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2019-05-09T19:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to immediately change the acceleration of a conveyor in trigger</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533537#M41902</link>
      <description>&lt;P&gt;I will give it a try, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 19:58:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533537#M41902</guid>
      <dc:creator>clairekruppGhafari</dc:creator>
      <dc:date>2019-05-09T19:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to immediately change the acceleration of a conveyor in trigger</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533538#M41903</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/187/jeff.n.html" nodeid="187"&gt;@Jeff Nordgren&lt;/A&gt; it does change the acceleration of the Conveyor Type, but the conveyor ignores the change until I do a Reset, just as the other things I tried!&lt;/P&gt;&lt;P&gt;I will have to make do with changing the Target Speed and figure out what ending speed will correspond to the correct acceleration/deceleration. &lt;/P&gt;&lt;P&gt;Is there any documentation on the equation used to determine how much acceleration or deceleration is applied? Is it based on getting to the target speed within a certain time, or is it based on distance?&lt;/P&gt;&lt;P&gt;Another couple questions: &lt;/P&gt;&lt;P&gt;a) if two adjacent conveyors have different speeds, does the item change to the new speed instantaneously?&lt;/P&gt;&lt;P&gt;b) if a conveyor is empty for a while, will it eventually stop moving?&lt;/P&gt;&lt;P&gt;thanks for your help,&lt;/P&gt;&lt;P&gt;Claire&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:46:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533538#M41903</guid>
      <dc:creator>clairekruppGhafari</dc:creator>
      <dc:date>2019-05-10T20:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to immediately change the acceleration of a conveyor in trigger</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533539#M41904</link>
      <description>&lt;P style="margin-left: 20px;"&gt;&amp;gt; In AGV logic you have a similar "agvType" parameter. When you change it, the AGV changes speed/accel almost immediately, (sometimes waiting until it reaches the destination CP), so why is the conveyor behavior different?&lt;/P&gt;&lt;P&gt;AGVs are a single object that performs travel tasks to get from place to place. Its acceleration, deceleration, and speed settings are used at each moment when it starts a travel task. A conveyor has multiple items on it that are all traveling. In reality those are two different types of objects with two different types of behavior. In the simulation, they are also two different types of objects with two different types of behavior. They behave differently because they &lt;EM&gt;are &lt;/EM&gt;different.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&amp;gt; The data we have is only expressed in terms of acceleration, so we would really like to use that instead.&lt;/P&gt;&lt;P&gt;This doesn't make sense. What sort of data do you have? How do you have data about a conveyor that doesn't have its speed? Conveyors have speed. If you change their speed, then they accelerate or decelerate to the new speed. That's how real conveyors work, and that's how FlexSim conveyor objects work.&lt;/P&gt;&lt;P&gt;A conveyor has a current speed. If you change the target speed to a higher value, then it will change its speed at its acceleration rate until the current speed is equal to the target speed. If you change the target speed to a lower value, then it will change its speed at its deceleration rate until the current speed is equal to the target speed.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&amp;gt; if two adjacent conveyors have different speeds, does the item change to the new speed instantaneously?&lt;/P&gt;&lt;P&gt;Assuming that by "adjacent" you mean two conveyors that are inline instead of side-by-side (parallel), then the item changes speed based on the settings on the Transfer object that connects the two conveyors. By default, during the transition between the two conveyors, it uses the speed of the Receiving Conveyor, but this behavior can be customized in the Transfer's properties to also be the Sending conveyor, Faster, Slower, or the conveyor under the item's center.&lt;/P&gt;&lt;P&gt;Yes, at the time that the speed driver of the item changes, the item's speed will change instantaneously. The moment when that change happens is controlled via the setting explained above which determines the speed of the item during the transition between the conveyors.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&amp;gt; Is there any documentation on the equation used to determine how much acceleration or deceleration is applied? Is it based on getting to the target speed within a certain time, or is it based on distance?&lt;/P&gt;&lt;P&gt;Acceleration and deceleration are defined in terms of distance units per time unit per time unit. It is based on time and applied based on changing the current speed to the target speed using the rate defined in acceleration or deceleration. It is not based on item distance. There are no distances involved other than the distance unit used to define speeds and rates. It changes one speed to another speed over time using the acceleration/deceleration rates.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&amp;gt; if a conveyor is empty for a while, will it eventually stop moving?&lt;/P&gt;&lt;P&gt;No. A conveyor will continue moving at whatever speed it is currently moving. It only changes speed if you tell it to change speed. Whether any items are on it or not is irrelevant.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 18:53:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-immediately-change-the-acceleration-of-a-conveyor-in/m-p/13533539#M41904</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2019-05-13T18:53:58Z</dc:date>
    </item>
  </channel>
</rss>

