<?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 How to pickup more than 1 items using operator? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-pickup-more-than-1-items-using-operator/m-p/13534189#M42401</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I have a simple model for pickup and drop.&lt;/P&gt;
&lt;P&gt;The operator would come to the conveyor and pickup up 4 items at a time and unload all the items on the queue. I used process flow to control the operator movements. I used Lists to count the Items.&lt;/P&gt;
&lt;P&gt;However, there is some error for picking up. The label for the item is not detected by the operator.&lt;/P&gt;
&lt;P&gt;Please find the attached model below.&lt;/P&gt;
&lt;P&gt;Thank You!&lt;/P&gt;
&lt;P&gt;&lt;A id="12877" href="https://answers.flexsim.com/storage/attachments/12877-listmodel.fsm"&gt;listmodel.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2018 13:54:52 GMT</pubDate>
    <dc:creator>pinakin_k</dc:creator>
    <dc:date>2018-07-06T13:54:52Z</dc:date>
    <item>
      <title>How to pickup more than 1 items using operator?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-pickup-more-than-1-items-using-operator/m-p/13534189#M42401</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I have a simple model for pickup and drop.&lt;/P&gt;
&lt;P&gt;The operator would come to the conveyor and pickup up 4 items at a time and unload all the items on the queue. I used process flow to control the operator movements. I used Lists to count the Items.&lt;/P&gt;
&lt;P&gt;However, there is some error for picking up. The label for the item is not detected by the operator.&lt;/P&gt;
&lt;P&gt;Please find the attached model below.&lt;/P&gt;
&lt;P&gt;Thank You!&lt;/P&gt;
&lt;P&gt;&lt;A id="12877" href="https://answers.flexsim.com/storage/attachments/12877-listmodel.fsm"&gt;listmodel.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 13:54:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-pickup-more-than-1-items-using-operator/m-p/13534189#M42401</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2018-07-06T13:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to pickup more than 1 items using operator?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-pickup-more-than-1-items-using-operator/m-p/13534190#M42402</link>
      <description>&lt;P&gt;I have encountered this problem a number of times. What's happening is that your "push to list" was pushing the &lt;STRONG&gt;token&lt;/STRONG&gt; to a list and not the &lt;STRONG&gt;item.&lt;/STRONG&gt;  In order to move the item, it's important that the item is being pushed to the list. (NOTE: There are multiple ways of doing this, you just want to avoid pushing/pulling tokens instead of items.)&lt;/P&gt;&lt;P&gt;In the below image, I highlighted that &lt;STRONG&gt;Queue 2&lt;/STRONG&gt; pushes to an &lt;STRONG&gt;Item List&lt;/STRONG&gt; and then instead of using the "Load" activity, I used the "Move Object" activity so that all the items with label "token.pulled" are moved together by the same token. (The "Load" will only move one item at a time.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12881-more-than-1-item.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497276iF90E65EB8597CC2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="12881-more-than-1-item.png" alt="12881-more-than-1-item.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's a revised attached model. Let me know if you have questions.&lt;/P&gt;&lt;P&gt;&lt;A id="12883" href="https://answers.flexsim.com/storage/attachments/12883-12877-listmodel-1.fsm"&gt;12877-listmodel-1.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 14:14:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-pickup-more-than-1-items-using-operator/m-p/13534190#M42402</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2018-07-06T14:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pickup more than 1 items using operator?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-pickup-more-than-1-items-using-operator/m-p/13534191#M42403</link>
      <description>&lt;P&gt;There's a couple of things here you need to watch for.  First, you are pushing tokens to your list, not flowitems, which can't be loaded by a load task anyway.  You also didn't assign a reference to the flowitems on your tokens created by your first Event Triggered Source, which you will need if you want to load flowitems associated with those tokens.  &lt;/P&gt;&lt;P&gt;Once you've got a label like token.item that references the items, then you have two approaches you can take for your Push to List; you can either set the push value to token.item so the items are put onto the list rather than the tokens (resulting in items being put into the pulled label) or you can leave it the way it is, but it changes how you approach loading slightly.&lt;/P&gt;&lt;P&gt;Unfortunately, the Load and Unload tasks doesn't know how to work with an Array, like the pulled label.  So we need to tell the operator to load each member of you pulled array one at a time, which is best done with a Subflow.  Replace your Load task with a Run Subflow like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12882-runsubflow.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497275iAA3A2A0BA472033F/image-size/large?v=v2&amp;amp;px=999" role="button" title="12882-runsubflow.png" alt="12882-runsubflow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This will create a number of child tokens equal to the length of the pulled label, or as many children as there are elements in the array.  I've also assigned each child a Rank label that will effectively pair each child with an index in the pulled array.&lt;/P&gt;&lt;P&gt;Next set up a Load activity in between a Start and Finish activity like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12884-loadinsubflow.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497277i3630C4052E7D5C35/image-size/large?v=v2&amp;amp;px=999" role="button" title="12884-loadinsubflow.png" alt="12884-loadinsubflow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice the item to be loaded is a member of the pulled array, referenced by it's rank.  The above expression means that tokens are members of the array, and the items referenced in the tokens item labels is to be loaded, not the token itself.  If you took the approach where the Push value is token.item, then the expression would be token.pulled[token.Rank].&lt;/P&gt;&lt;P&gt;Use the same Subflow approach for unloading each item as well and you shoulf be all set.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 14:19:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-pickup-more-than-1-items-using-operator/m-p/13534191#M42403</guid>
      <dc:creator>regan_blackett</dc:creator>
      <dc:date>2018-07-06T14:19:48Z</dc:date>
    </item>
  </channel>
</rss>

