<?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: Simulating breakdowns for dimension changes in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536541#M44232</link>
    <description>&lt;P&gt;If you need an different state, you can use the command setstate(current,STATE_BREAKDOWN);
Inside the bonus if-statement. You have to add block brackets after the condition. Like:&lt;/P&gt;&lt;PRE&gt;if(downtime){ 
   colorred(current); // bonus: change Processor color 
                     //if there is a setup &amp;gt; 0. 
		     //Color is set to green back in the 
		     //Setupfinish trigger 
   setstate(current,STATE_BREAKDOWN);    
}&lt;/PRE&gt;</description>
    <pubDate>Thu, 20 Oct 2016 19:04:43 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2016-10-20T19:04:43Z</dc:date>
    <item>
      <title>Simulating breakdowns for dimension changes</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536537#M44228</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.2.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;In my model, I have a scheduled source with items arriving at time 0 that have 4 different dimensions. The dimensions are assigned a label that represents if a dimension change is necessary before that dimension is processed. There are two types of changes (long and short) and if that dimension requires the change, the label is 1. If it doesn't require the change, the dimension is 0. &lt;/P&gt;
&lt;P&gt;I can get the processor to shut down based on those labels, but it shuts down after every item because they are all assigned the label, which is not what I want. Is it possible to have the processor only shut down one time before the next dimension is loaded? &lt;/P&gt;
&lt;P&gt;For example, if the last item of dimension 1 is on the processor, the processor will finish that item and then shut down for X time because the next item is a different dimension. Then after the shutdown, the item from dimension 2 is loaded. And so on for all the dimensions. &lt;/P&gt;
&lt;P&gt;Thanks for the help. &lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/3239-dimension-changes.fsm"&gt;dimension-changes.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 16:53:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536537#M44228</guid>
      <dc:creator>robert_hambright</dc:creator>
      <dc:date>2016-10-20T16:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating breakdowns for dimension changes</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536538#M44229</link>
      <description>&lt;P&gt;You can store the current state in a label in the processor. If the dimension changes, then you update the value and shut the processor down.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:04:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536538#M44229</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2016-10-20T17:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating breakdowns for dimension changes</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536539#M44230</link>
      <description>&lt;P&gt;Can you possibly demonstrate this? I understand what you are saying, but I do not know how to do it in the model. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:34:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536539#M44230</guid>
      <dc:creator>robert_hambright</dc:creator>
      <dc:date>2016-10-20T17:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating breakdowns for dimension changes</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536540#M44231</link>
      <description>&lt;P&gt;Sure, I wrote the source code in the Setup Time of the Processor&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 18:50:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536540#M44231</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2016-10-20T18:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating breakdowns for dimension changes</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536541#M44232</link>
      <description>&lt;P&gt;If you need an different state, you can use the command setstate(current,STATE_BREAKDOWN);
Inside the bonus if-statement. You have to add block brackets after the condition. Like:&lt;/P&gt;&lt;PRE&gt;if(downtime){ 
   colorred(current); // bonus: change Processor color 
                     //if there is a setup &amp;gt; 0. 
		     //Color is set to green back in the 
		     //Setupfinish trigger 
   setstate(current,STATE_BREAKDOWN);    
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:04:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536541#M44232</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2016-10-20T19:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating breakdowns for dimension changes</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536542#M44233</link>
      <description>&lt;P&gt;The state and color are helpful, thanks.&lt;/P&gt;
&lt;P&gt;Thank you. I have two questions about the code that you wrote.&lt;/P&gt;
&lt;P&gt;1. When the processor switches to Dim4 from Dim3, the downtime should be short. In your model, it did not change from long so it is going down for 50 instead of 5. It does switch correctly for Dim2 to Dim 3, but not for 3 to 4. &lt;/P&gt;
&lt;P&gt;2. I noticed that the code relies on the items alternating between long and short so that the if statements can be triggered. However, there are many more short times than long for the larger model. So how can I alter the code to account for something like 2 short downtimes in a row? I have attached an example below where I added Dim5 which is short (just like Dim4). &lt;/P&gt;
&lt;P&gt;&lt;A rel="nofollow" href="https://answers.flexsim.com/storage/temp/3244-additional-dimension-changes-jv.fsm"&gt;additional-dimension-changes-jv.fsm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks for the help&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:15:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536542#M44233</guid>
      <dc:creator>robert_hambright</dc:creator>
      <dc:date>2016-10-20T19:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating breakdowns for dimension changes</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536543#M44234</link>
      <description>&lt;P&gt;I believe I have altered it to do what I want. Thanks for the initial help to get it started!&lt;/P&gt;
&lt;P&gt;I changed the source code in your model: &lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/temp/3246-fixed-dimension-changes-jv.fsm"&gt;fixed-dimension-changes-jv.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 20:00:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/simulating-breakdowns-for-dimension-changes/m-p/13536543#M44234</guid>
      <dc:creator>robert_hambright</dc:creator>
      <dc:date>2016-10-20T20:00:52Z</dc:date>
    </item>
  </channel>
</rss>

