<?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 Conditional decide to check photo eye state in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560932#M63381</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello!&lt;/P&gt;
 &lt;P&gt;How does the line of code should read for a conditional decide to check for the photo eye state?&lt;/P&gt;
 &lt;P&gt;Photo Eye State logic:&lt;/P&gt;
 &lt;P&gt;On Clear -&amp;gt; Release child token&lt;/P&gt;
 &lt;P&gt;On Block -&amp;gt; Wait for event&lt;/P&gt;
 &lt;P&gt;TY&lt;/P&gt;
 &lt;P&gt;Happy Holidays!&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35717-pe.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504656i1765446C24304EFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="35717-pe.jpg" alt="35717-pe.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35704-pe2.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504657i5B46F613238C8DA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="35704-pe2.jpg" alt="35704-pe2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 31 Dec 2020 20:28:20 GMT</pubDate>
    <dc:creator>roberto_z2</dc:creator>
    <dc:date>2020-12-31T20:28:20Z</dc:date>
    <item>
      <title>Conditional decide to check photo eye state</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560932#M63381</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello!&lt;/P&gt;
 &lt;P&gt;How does the line of code should read for a conditional decide to check for the photo eye state?&lt;/P&gt;
 &lt;P&gt;Photo Eye State logic:&lt;/P&gt;
 &lt;P&gt;On Clear -&amp;gt; Release child token&lt;/P&gt;
 &lt;P&gt;On Block -&amp;gt; Wait for event&lt;/P&gt;
 &lt;P&gt;TY&lt;/P&gt;
 &lt;P&gt;Happy Holidays!&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35717-pe.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504656i1765446C24304EFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="35717-pe.jpg" alt="35717-pe.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35704-pe2.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504657i5B46F613238C8DA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="35704-pe2.jpg" alt="35704-pe2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 31 Dec 2020 20:28:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560932#M63381</guid>
      <dc:creator>roberto_z2</dc:creator>
      <dc:date>2020-12-31T20:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional decide to check photo eye state</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560933#M63382</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Here's an example for you, but this is similar to the default behaviour without a photoeye, and will break with simultaneous arrivals.&lt;/P&gt;&lt;P&gt;You took the sublflow from&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/95800/task-sequence-with-multiple-queues-and-one-combine.html" target="_blank"&gt; this post&lt;/A&gt; which was testing if the queue was full and waiting for an exit event.  &lt;/P&gt;&lt;P&gt;The closest test to that is to test if the photo eye is clear ("state" variable)  and if not wait for it to clear as shown in the model.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/35698-conveyorpeavailability.fsm" target="_blank"&gt;ConveyorPEavailability.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Jan 2021 14:35:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560933#M63382</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2021-01-01T14:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional decide to check photo eye state</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560934#M63383</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/27119/robertoz2.html" nodeid="27119"&gt;@Roberto Z&lt;/A&gt;, was jason.lightfoot'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>Wed, 06 Jan 2021 02:21:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560934#M63383</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2021-01-06T02:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional decide to check photo eye state</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560935#M63384</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;What does the "Move object" Do? &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Jan 2021 19:11:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560935#M63384</guid>
      <dc:creator>roberto_z2</dc:creator>
      <dc:date>2021-01-11T19:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional decide to check photo eye state</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560936#M63385</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Moves the object onto the conveyor's entry transfer.  The source doesn't release the item in this example - if it did the PE would be controlling nothing.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Jan 2021 23:15:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560936#M63385</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2021-01-11T23:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional decide to check photo eye state</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560937#M63386</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I realized that you control the source with something called process flow instances, unfortunately that was not covered in the core training &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; and in this particular simulation I consume and create flow items using the combiners which forces me to mix up process flow and port connections logic.&lt;/P&gt;
 &lt;P&gt;If you go look the process flow named "Clamp" I added a subflow named "PE1 Clear" that is meant to stop the operator from completing its task sequence in case the Photo Eye "PE1" is on block.&lt;/P&gt;
 &lt;P&gt;Can you please take a look to it and recommend what condition should I put in place to make it work? &lt;/P&gt;
 &lt;P&gt;My goal is to stop the activities downstream in a sequential manner once a bottleneck upstream gets created.&lt;/P&gt;
 &lt;P&gt;Thank you! &lt;/P&gt;
 &lt;P&gt; &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/35974-kitchen-base-trial-cell-flow-item-packaging.fsm" target="_blank"&gt;Kitchen_Base_Trial_Cell_Flow_Item_Packaging.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jan 2021 22:31:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560937#M63386</guid>
      <dc:creator>roberto_z2</dc:creator>
      <dc:date>2021-01-14T22:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional decide to check photo eye state</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560938#M63387</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/27119/robertoz2.html" nodeid="27119"&gt;@Roberto Z&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Are you updating this in order to avoid using both Process Flow and 3D? In case you are, it's important to know that here aren't any problems with mixing Process Flow and 3D logic. You just need to make sure there aren't any redundant or conflicting commands.&lt;/P&gt;&lt;P&gt;Instead of using your "PE1 Clear" subflow, you could add a trigger that listens to the Photo Eye "PE1". If "PE1" is blocked, it causes the operator to stop whatever he's working on and wait until "PE1" is clear. Just an alternate idea.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Jan 2021 17:12:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560938#M63387</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2021-01-16T17:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional decide to check photo eye state</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560939#M63388</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks for your feedback. I wasn't trying to avoid port connections despite the fact that imo controlling things with process flow is a much cleaner way of working, making it easier to catch up any mistakes and it's visually more pleasing by eliminating clutter from port connections.&lt;/P&gt;
 &lt;P&gt;I actually used your answer from &lt;A rel="nofollow noopener noreferrer" href="https://answers.flexsim.com/questions/58711/i-want-to-read-the-blocked-state-of-a-photoeye-on.html" target="_blank"&gt;this post&lt;/A&gt; to complete the simulation. This way as bottlenecks get created downstream the operators don't have any space to discharge and eventually they stop working. &lt;/P&gt;
 &lt;P&gt;Thank you again!&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/36024-kitchen-base-trial-cell-flow-item-packaging.fsm" target="_blank"&gt;Kitchen_Base_Trial_Cell_Flow_Item_Packaging.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Jan 2021 06:29:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560939#M63388</guid>
      <dc:creator>roberto_z2</dc:creator>
      <dc:date>2021-01-17T06:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional decide to check photo eye state</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560940#M63389</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Excellent! I'm glad you feel that way about Process Flow, and I'm happy you were able to figure out a good solution for this question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Jan 2021 13:36:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-to-check-photo-eye-state/m-p/13560940#M63389</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2021-01-18T13:36:07Z</dc:date>
    </item>
  </channel>
</rss>

