<?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: Divert flow items by condition in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/divert-flow-items-by-condition/m-p/13543242#M49519</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 Thanks for your answer...
 &lt;P&gt;In this i the condition 1 &amp;amp; 2 is working but,&lt;/P&gt;
 &lt;P&gt;In between On clear items are direct feed to processor that needs to be stopped.&lt;/P&gt;
 &lt;P&gt;can you help me out...&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sat, 26 Feb 2022 05:29:34 GMT</pubDate>
    <dc:creator>praveen_m</dc:creator>
    <dc:date>2022-02-26T05:29:34Z</dc:date>
    <item>
      <title>Divert flow items by condition</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/divert-flow-items-by-condition/m-p/13543240#M49517</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I want to divert to multiple port based on below conditions attached the model.&lt;/P&gt;
 &lt;P&gt;&lt;STRONG&gt;Conditions for DP1&lt;/STRONG&gt;&lt;/P&gt;
 &lt;P&gt;1.items direct feed to processor.&lt;/P&gt;
 &lt;P&gt;2.If the flow items is blocked the items divert items to alternate DP3 or DP4.&lt;/P&gt;
 &lt;P&gt;3.If the flow is cleared items from rack feed to processor by FIFO basis.&lt;/P&gt;
 &lt;P&gt;4.flow items should follow FIFO and Batch FIFO.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/48993-divert-items-if-conveyor-full.fsm" target="_blank"&gt;divert items if conveyor full.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Feb 2022 03:31:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/divert-flow-items-by-condition/m-p/13543240#M49517</guid>
      <dc:creator>praveen_m</dc:creator>
      <dc:date>2022-02-24T03:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Divert flow items by condition</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/divert-flow-items-by-condition/m-p/13543241#M49518</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I would remove what you have and instead put 3 photoeyes on the conveyors as outputs of the single decision point (these are ways of referencing - you're not going to close or open these ports).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1645802824166.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1509095i83A43EE91D7E9ACB/image-size/large?v=v2&amp;amp;px=999" role="button" title="1645802824166.png" alt="1645802824166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then in your decision point I would add a code snippet to the onArrival/Continue (your choice):&lt;/P&gt;&lt;PRE&gt;Array pes=current.outObjects.toArray();
Object pe;
for (int n=1;n&amp;lt;=pes.length;n++){
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;pe=pes&lt;N&gt;;
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;if (pe.stats.state().value!=PE_STATE_BLOCKED){
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Conveyor.sendItem(item,pe);
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;break;
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;}
}&lt;/N&gt;&lt;/PRE&gt;&lt;P&gt;This code scales so you could add more PEs and it will consider them in the order they are connected. If the PE is not blocked it will send the item there.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Feb 2022 15:29:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/divert-flow-items-by-condition/m-p/13543241#M49518</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-02-25T15:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Divert flow items by condition</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/divert-flow-items-by-condition/m-p/13543242#M49519</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thanks for your answer...
 &lt;P&gt;In this i the condition 1 &amp;amp; 2 is working but,&lt;/P&gt;
 &lt;P&gt;In between On clear items are direct feed to processor that needs to be stopped.&lt;/P&gt;
 &lt;P&gt;can you help me out...&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 26 Feb 2022 05:29:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/divert-flow-items-by-condition/m-p/13543242#M49519</guid>
      <dc:creator>praveen_m</dc:creator>
      <dc:date>2022-02-26T05:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Divert flow items by condition</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/divert-flow-items-by-condition/m-p/13543243#M49520</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Here's a start, but not the solution.   I've created a seqnum label on the source and two process flows to manage the hold/release of items at the merge point.  It stops when the next item in the sequence has not been released in sequence from the racks - something you'll need to consider and address.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/49077-divert-items-if-conveyor-full-jl2.fsm" target="_blank"&gt;divert-items-if-conveyor-full_jl2.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 26 Feb 2022 15:00:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/divert-flow-items-by-condition/m-p/13543243#M49520</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-02-26T15:00:48Z</dc:date>
    </item>
  </channel>
</rss>

