<?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 Define Storage Slot based on item type in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516675#M28470</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.10 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello everyone ,&lt;/P&gt;
 &lt;P&gt;In my model, I have two racks and an ASRS vehicle. I have defined ASRSs tasks using process flow.&lt;/P&gt;
 &lt;P&gt;For the storage task (unload in racks , as a station I have used the command Group("STORAGE")[duniform(1, Group("STORAGE").length, getstream(activity))] because I wanted my items to be stored randomly either on rack 1 or rack 2.&lt;/P&gt;
 &lt;P&gt;Group ('STORAGE") is racks 1 and 2.&lt;/P&gt;
 &lt;P&gt;Now I want the ASRS to store the containers in a random way but only in slots that match the item type. That's why I am looking for a command to do so.&lt;/P&gt;
 &lt;P&gt;What I did was, paint the slots, and change the Slot assignment strategy on the racks to Matching Labels.&lt;/P&gt;
 &lt;P&gt;The model runs, but after a bit stops, that's why I think I should change my randomness command in the process flow also.&lt;/P&gt;
 &lt;P&gt;Unfortunately, I cannot post my model as its confidential.&lt;/P&gt;
 &lt;P&gt;Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 08 Jun 2022 09:35:56 GMT</pubDate>
    <dc:creator>nina_a</dc:creator>
    <dc:date>2022-06-08T09:35:56Z</dc:date>
    <item>
      <title>Define Storage Slot based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516675#M28470</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.10 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello everyone ,&lt;/P&gt;
 &lt;P&gt;In my model, I have two racks and an ASRS vehicle. I have defined ASRSs tasks using process flow.&lt;/P&gt;
 &lt;P&gt;For the storage task (unload in racks , as a station I have used the command Group("STORAGE")[duniform(1, Group("STORAGE").length, getstream(activity))] because I wanted my items to be stored randomly either on rack 1 or rack 2.&lt;/P&gt;
 &lt;P&gt;Group ('STORAGE") is racks 1 and 2.&lt;/P&gt;
 &lt;P&gt;Now I want the ASRS to store the containers in a random way but only in slots that match the item type. That's why I am looking for a command to do so.&lt;/P&gt;
 &lt;P&gt;What I did was, paint the slots, and change the Slot assignment strategy on the racks to Matching Labels.&lt;/P&gt;
 &lt;P&gt;The model runs, but after a bit stops, that's why I think I should change my randomness command in the process flow also.&lt;/P&gt;
 &lt;P&gt;Unfortunately, I cannot post my model as its confidential.&lt;/P&gt;
 &lt;P&gt;Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Jun 2022 09:35:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516675#M28470</guid>
      <dc:creator>nina_a</dc:creator>
      <dc:date>2022-06-08T09:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Define Storage Slot based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516676#M28471</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;You need to query slots over your rack objects, too. You cannot set your destination of rack group before you query your slots, because therem might be a situation when you still have space but you choose the wrong rack. &lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Jun 2022 09:51:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516676#M28471</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2022-06-08T09:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Define Storage Slot based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516677#M28472</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In later versions there exists a process flow activity 'Find Slot' to do this. In 20.0 you have to use code to query the available slots.&lt;/P&gt;&lt;P&gt;'Storage.system.findSlot(queryString, 0, param1, ...)' will return a slot that matches the conditions from the query, using SQL syntax.&lt;/P&gt;&lt;PRE&gt;Storage.system.findSlot("WHERE slot.Type == $1.Type AND slot.hasSpace($1) ORDER BY RAND()", 0, token.item);&lt;/PRE&gt;&lt;P&gt;This searches for a slot where the 'Type' label matches that of the item (token.item is passed into the query with the $-syntax) and that has enough space to store the item. It orders the possible slots randomly (ORDER BY RAND()).&lt;/P&gt;&lt;P&gt;When a slot is found, you can also directly assign it to the item, which will later on overwrite the Slot Assignment Strategy of the racks when placing the item.&lt;/P&gt;&lt;P&gt;From the slot, you can also get a reference to the respective rack, to use later on in the process.&lt;/P&gt;&lt;PRE&gt;// Assign item to slot
Storage.Item storageItem = Storage.Item(token.item);
storageItem.assignedSlot = slot;
&amp;nbsp; &amp;nbsp;
// Get reference to rack
token.Rack = slot.storageObject;&lt;/PRE&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/53208-slotbytype-processflow.fsm" target="_blank"&gt;SlotByType_ProcessFlow.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Jun 2022 10:22:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516677#M28472</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-06-08T10:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Define Storage Slot based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516678#M28473</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you very much for your answer, this describes exactly what I am trying to do .
 &lt;P&gt;However because my process flow is more complex several subflows and two of them are storage request, I found it hard to implement it the decision. It basically has a problem identifying the token.rack station , although it has been defined in the script. I need to dig in it to find the problem.&lt;/P&gt;
 &lt;P&gt;Really appreciate your help !!!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Jun 2022 11:42:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516678#M28473</guid>
      <dc:creator>nina_a</dc:creator>
      <dc:date>2022-06-08T11:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Define Storage Slot based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516679#M28474</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Yeah this is exactly what seems to be the problem. It selects the wrong rack at the moment, so queries are need it . Thank you very much :)
&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Jun 2022 11:43:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/define-storage-slot-based-on-item-type/m-p/13516679#M28474</guid>
      <dc:creator>nina_a</dc:creator>
      <dc:date>2022-06-08T11:43:15Z</dc:date>
    </item>
  </channel>
</rss>

