<?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: FLOOR STORAGE, PULL REQUIREMENT CODE [bug or not?] in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/floor-storage-pull-requirement-code-bug-or-not/m-p/13527797#M37234</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Yes, this is a bug. Your solution is good. You can also fix it using the delayednodefunction() command instead of Object.message(). Using delayednodefunction(), all of the code can be in one trigger.&lt;/P&gt;&lt;P&gt;I've updated the code for the next bugfix release. Thanks.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 30 Sep 2020 16:12:18 GMT</pubDate>
    <dc:creator>philboboADSK</dc:creator>
    <dc:date>2020-09-30T16:12:18Z</dc:date>
    <item>
      <title>FLOOR STORAGE, PULL REQUIREMENT CODE [bug or not?]</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/floor-storage-pull-requirement-code-bug-or-not/m-p/13527796#M37233</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I realize this very simple model and I noticed an unusual behavior of the FloorStorage. When the FloorStorage is full and there is the first OnExit from it, even if a flowitem is ready to enter, the slot that has become free remains free. After another OnExit both the slots are replenished. I expected that immediately after the first OnExit the slot would be filled.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="33010-1601279295656.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1503765iBB51DA1CD7AE9B3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="33010-1601279295656.png" alt="33010-1601279295656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I realize the model in a very simple way:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;drag and drop in the model a Source, a Conveyor, a FloorStorage and a Sink.&lt;/LI&gt;&lt;LI&gt;A-connection between Source and Conveyor, between Conveyor and FloorStorage and between FloorStorage and Sink.&lt;/LI&gt;&lt;LI&gt;in the Flow tab of the FloorStorage insert a MinimumDwellTime of 3000 seconds.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To avoid the situation explained above, I modified the pullrequirement code.&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/33021-errorcode-rack.fsm" target="_blank"&gt;errorcode_rack.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you can see in the pictures below, I add the exitListener treenode value only if this value doesn't exists and I add it with EVENT_LISTEN_ONCE modality in the function "eventlisten".&lt;/P&gt;&lt;P&gt;Also when the code runs the openinput command, I noticed that we need a zero time waiting to separate the OnExit and immediately after the OnEntry events. In this way, when we assign the slot to the Flowitem OnExit from Conveyor, the slot is free in the warehouse because the OnExit event in the werehouse has already occurred. Previously, the assignment took place simultaneously and the slot, being still occupied, was not assigned. I generate this zero delay sending a message to the current object in zero seconds.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="33009-1601278586593.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1503767i15B5C37602A7E7CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="33009-1601278586593.png" alt="33009-1601278586593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="33012-1601278000488.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1503768iBA7A03291F3D4882/image-size/large?v=v2&amp;amp;px=999" role="button" title="33012-1601278000488.png" alt="33012-1601278000488.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's right my reasoning? We can consider this as a bug? I attach the model to the question.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/206/phil.b.html" nodeid="206"&gt;@phil.bobo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;thanks for the support.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Sep 2020 08:01:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/floor-storage-pull-requirement-code-bug-or-not/m-p/13527796#M37233</guid>
      <dc:creator>fapicella</dc:creator>
      <dc:date>2020-09-28T08:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: FLOOR STORAGE, PULL REQUIREMENT CODE [bug or not?]</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/floor-storage-pull-requirement-code-bug-or-not/m-p/13527797#M37234</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Yes, this is a bug. Your solution is good. You can also fix it using the delayednodefunction() command instead of Object.message(). Using delayednodefunction(), all of the code can be in one trigger.&lt;/P&gt;&lt;P&gt;I've updated the code for the next bugfix release. Thanks.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Sep 2020 16:12:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/floor-storage-pull-requirement-code-bug-or-not/m-p/13527797#M37234</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2020-09-30T16:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: FLOOR STORAGE, PULL REQUIREMENT CODE [bug or not?]</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/floor-storage-pull-requirement-code-bug-or-not/m-p/13527798#M37235</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/20031/fiorenzoa.html" nodeid="20031"&gt;@Fiorenzo A&lt;/A&gt;, was phil.b's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Oct 2020 17:02:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/floor-storage-pull-requirement-code-bug-or-not/m-p/13527798#M37235</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2020-10-05T17:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: FLOOR STORAGE, PULL REQUIREMENT CODE [bug or not?]</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/floor-storage-pull-requirement-code-bug-or-not/m-p/13527799#M37236</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;yes, it is! But I forgot to accept! Now I do that!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Oct 2020 15:00:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/floor-storage-pull-requirement-code-bug-or-not/m-p/13527799#M37236</guid>
      <dc:creator>fapicella</dc:creator>
      <dc:date>2020-10-06T15:00:43Z</dc:date>
    </item>
  </channel>
</rss>

