<?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: How to make the ASRS place items in the racks on both the left and right sides? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597605#M91990</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Got it. Now I have another question. I have set the TransportRef for both racks, but the items placed on the rack in the front cannot be taken down. What could be the problem? (Originally, it was supposed to perform extraction or placement actions according to the 0, 1 array displayed in the output console.)&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/84499-model.fsm" target="_blank"&gt;model.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 05 Jul 2024 06:58:36 GMT</pubDate>
    <dc:creator>j08j</dc:creator>
    <dc:date>2024-07-05T06:58:36Z</dc:date>
    <item>
      <title>How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597601#M91986</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;If I have two racks as different destinations, how can I modify the code to make the ASRS travel to either of the racks?&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1720107085211.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524547i25FEF35F42308615/image-size/large?v=v2&amp;amp;px=999" role="button" title="1720107085211.png" alt="1720107085211.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;PRE&gt;queue.setProperty("TransportRef", "Object current = ownerobject(c);\n\
Object item = param(1);\n\
int port = param(2);\n\
Object destination = param(3);\n\
double priority = param(4);\n\
int preempt = param(5);\n\
&lt;STRONG&gt;Object destination1 = current.outObjects[2];\n\&lt;/STRONG&gt;
\n\
if (true) {\n\
TaskSequence taskSequence = TaskSequence.create(assertattribute(current, \"stored\", 0), priority, preempt);\n\
\n\
taskSequence.addTask(TASKTYPE_TRAVEL, current, NULL);\n\
taskSequence.addTask(TASKTYPE_LOAD, item, current, port);\n\
taskSequence.addTask(TASKTYPE_BREAK, NULL, NULL);\n\
&lt;STRONG&gt;taskSequence.addTask(TASKTYPE_TRAVEL, destination, NULL);\n\
taskSequence.addTask(TASKTYPE_UNLOAD, item, destination, opipno(current,port));\n\&lt;/STRONG&gt;
string listName = \"TSList1\";\n\
List(listName).push(taskSequence, 0);\n\
current.centerObjects[1].message(0.01, current);\n\
}\n\
return 0;\n\
");&lt;/PRE&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Jul 2024 17:55:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597601#M91986</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-07-04T17:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597602#M91987</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The "Use Transport" code you show here already gets the destination passed into it. You have to modify the "Send to Port" option of the queue because that is where the routing happens.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:01:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597602#M91987</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-05T06:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597603#M91988</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I see, but even though I have set the queue's "send to port" to "random port", it still only sends items to one of the racks.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1720150618266.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524536iDB8C4A82EB85E121/image-size/large?v=v2&amp;amp;px=999" role="button" title="1720150618266.png" alt="1720150618266.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/84498-model.fsm" target="_blank"&gt;model.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:27:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597603#M91988</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-07-05T06:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597604#M91989</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;It does send the fourth and fifth item to the other rack. But since that rack does not have the "Use Transport" option set the items move to the sink immediately.&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:40:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597604#M91989</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-05T06:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597605#M91990</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Got it. Now I have another question. I have set the TransportRef for both racks, but the items placed on the rack in the front cannot be taken down. What could be the problem? (Originally, it was supposed to perform extraction or placement actions according to the 0, 1 array displayed in the output console.)&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/84499-model.fsm" target="_blank"&gt;model.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:58:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597605#M91990</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-07-05T06:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597606#M91991</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The "bound" list field is only 0 if the load task happens at the first rack in the model. (Both racks have the same name, "Model.find("Rack")" will always find the first one.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1720164233984.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524541iD0957E7CF9CBE2A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1720164233984.png" alt="1720164233984.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would suggest to set "bound" based on a label on the origin or destination object. Using names for such things will quickly lead to such errors when changes are made to the model.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 07:25:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597606#M91991</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-05T07:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597607#M91992</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Is it something like this?&lt;/P&gt;
 &lt;PRE&gt;/**Custom Code*/
Variant value = param(1);
Variant puller = param(2);
treenode entry = param(3);
double pushTime = param(4);
Object destination = param(5);
if(value.as(TaskSequence).tasks[2].involved2 == destination) return 0;
return 1;
&lt;/PRE&gt;
 &lt;P&gt;But it seems to have some syntax errors.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 07:45:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597607#M91992</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-07-05T07:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597608#M91993</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Where would the fifth parameter assigned to "destination" come from? I mean something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1720166292730.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524543iBF698B680DAC3209/image-size/large?v=v2&amp;amp;px=999" role="button" title="1720166292730.png" alt="1720166292730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With "Bound" being a label on the queue and racks with a value of either 1 (queue - inbound) or 0 (racks - outbound).&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 07:59:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597608#M91993</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-05T07:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597609#M91994</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;It shows the following error:&lt;/P&gt;
 &lt;P&gt;time: 2.651519 exception: FlexScript exception: Label property Bound retrieved on /Queue. Label does not exist. at MODEL:/Tools/GlobalLists/TSList1&amp;gt;variables/fields/bound/expression&lt;/P&gt;
 &lt;P&gt;I understand what you mean, but I have no idea how to modify the code.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 08:19:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597609#M91994</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-07-05T08:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597610#M91995</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;You do have to first add the label to the objects before this expression will work.&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 08:38:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597610#M91995</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-05T08:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597611#M91996</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Do you mean adding asrs's label1 to the queue as well?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 08:53:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597611#M91996</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-07-05T08:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597612#M91997</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;No, I mean adding a label called "Bound" to the racks and the queue. Where the ones on the rack have the value 0 and the one on the queue has the value 1.&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 09:53:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597612#M91997</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-05T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the ASRS place items in the racks on both the left and right sides?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597613#M91998</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;It works smoothly now! Thank you so much for helping me with so many questions.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 10:00:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-the-asrs-place-items-in-the-racks-on-both-the-left/m-p/13597613#M91998</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-07-05T10:00:11Z</dc:date>
    </item>
  </channel>
</rss>

