<?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 Round Robin if Available from a Conveyor DP in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/round-robin-if-available-from-a-conveyor-dp/m-p/13520931#M31850</link>
    <description>&lt;P&gt;Hello, if you
have a DP on a conveyor and you would like to send to others conveyors DPs
based on a round robin if available logic related to the each conveyor
content... what is the best way to accomplish it? Me I've an example? Why this
rule isn´t a standard option?&lt;/P&gt;&lt;P&gt;For conveyors I
was able to code a Round Robin logic and to code a separate First Available
one, but not together.&lt;/P&gt;&lt;P&gt;When all the
destinations are full, I need to send a First Available but I don't know how to
get that destination port number and store it for using it the next time...&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 00:36:25 GMT</pubDate>
    <dc:creator>jorge_toucet</dc:creator>
    <dc:date>2017-05-30T00:36:25Z</dc:date>
    <item>
      <title>Round Robin if Available from a Conveyor DP</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/round-robin-if-available-from-a-conveyor-dp/m-p/13520931#M31850</link>
      <description>&lt;P&gt;Hello, if you
have a DP on a conveyor and you would like to send to others conveyors DPs
based on a round robin if available logic related to the each conveyor
content... what is the best way to accomplish it? Me I've an example? Why this
rule isn´t a standard option?&lt;/P&gt;&lt;P&gt;For conveyors I
was able to code a Round Robin logic and to code a separate First Available
one, but not together.&lt;/P&gt;&lt;P&gt;When all the
destinations are full, I need to send a First Available but I don't know how to
get that destination port number and store it for using it the next time...&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 00:36:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/round-robin-if-available-from-a-conveyor-dp/m-p/13520931#M31850</guid>
      <dc:creator>jorge_toucet</dc:creator>
      <dc:date>2017-05-30T00:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Round Robin if Available from a Conveyor DP</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/round-robin-if-available-from-a-conveyor-dp/m-p/13520932#M31851</link>
      <description>&lt;P&gt;I think I've been able to achieve what you're looking for. So, to answer your question, the reason why "RR if available" is not an option for DPs is because Conveyors are more complicated than your usual port logic.   How do you determine if something is Unavailable?  With port logic, you just need to check if the port is open, but conveyors send items via conveyor logic, not necessarily through ports.   So instead you need another criteria.&lt;/P&gt;&lt;P&gt;So this is what I came up with.   I added a "count" label, and a "stopItems" binary label on the DPs.  And then I just arbitrarily assigned a count value and some code to some of the DPs checking if the count (or number of items that has passed) reaches a certain point, to set the stopItems label to 1.&lt;/P&gt;&lt;P&gt;Then in the first DP's logic, I just copied the "RR if Available" code from another object, but instead of checking if the Output Ports are open or close, it checks if the stopItems label is 1 or 0.  And then it sends the item accordingly.&lt;/P&gt;&lt;P&gt;Here is my example model:&lt;/P&gt;&lt;P&gt;&lt;A id="6889" href="https://answers.flexsim.com/storage/attachments/6889-rrifavailableconveyor.fsm"&gt;rrifavailableconveyor.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 14:10:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/round-robin-if-available-from-a-conveyor-dp/m-p/13520932#M31851</guid>
      <dc:creator>sam_stubbsYXX86</dc:creator>
      <dc:date>2017-05-31T14:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Round Robin if Available from a Conveyor DP</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/round-robin-if-available-from-a-conveyor-dp/m-p/13520933#M31852</link>
      <description>&lt;P&gt;Thank you very much Sam for your help&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 14:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/round-robin-if-available-from-a-conveyor-dp/m-p/13520933#M31852</guid>
      <dc:creator>jorge_toucet</dc:creator>
      <dc:date>2017-05-31T14:49:59Z</dc:date>
    </item>
  </channel>
</rss>

