<?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 can I accurately send items to a specific slot on the rack? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585845#M82800</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;"Bay", "Level" and "Slot" are not defined at that point in the code. I only copied part of the source's code to highlight the relevant part: Determining the bay, level and slot ID and assigning the slot to the item.&lt;P&gt;I assumed you'd use labels to assign the items to specific slots, not use random number distributions.&lt;/P&gt;&lt;P&gt;The "transportdispatcher" variable node is also currently not toggled as FlexScript in your model.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 26 Apr 2024 13:44:38 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2024-04-26T13:44:38Z</dc:date>
    <item>
      <title>How can I accurately send items to a specific slot on the rack?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585842#M82797</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;&lt;SPAN id="isPasted" style="font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(13, 13, 13); color: rgb(13, 13, 13); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, ;"&gt;I use the following code to define how items in the queue are processed and transported to the rack, but TASKTYPE_UNLOAD can only specify the transfer to the rack without explicitly specifying the transfer to a specific slot on the rack. How can I modify this code to accurately send items to a specific slot on the rack?&lt;/SPAN&gt;&lt;/P&gt;
 &lt;PRE&gt;&lt;SPAN id="isPasted"&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\
\n\
/***popup:PushToList:listType=TaskSequence*/\n\
/**Push to Task Sequence List*/\n\
/***tag:showAdvanced*//**1*/\n\
\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\
taskSequence.addTask(TASKTYPE_TRAVEL, destination, NULL);\n\
taskSequence.addTask(TASKTYPE_UNLOAD, item, destination, opipno(current,port));\n\
string listName = \"TSList1\";\n\
List(listName).push(taskSequence, 0);\n\
current.centerObjects[1].message(0.01,current);\n\
}\n\
return 0;\n\
");&lt;/SPAN&gt;&lt;/PRE&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/82149-model.fsm" target="_blank"&gt;model.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN id="isPasted"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Apr 2024 07:27:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585842#M82797</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-04-26T07:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accurately send items to a specific slot on the rack?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585843#M82798</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You already have code for the source that feeds directly into the rack to assign a random slot to the exiting item.&lt;/P&gt;&lt;PRE&gt;int i = duniform(1, Bay, 1);\n\&lt;BR /&gt;int j = duniform(1, Level, 1);\n\
int k = duniform(1, Slot, 1);\n\
Storage.Item(item).as(Storage.Item).assignedSlot = current.outObjects[1].as(Storage.Object).getSlot(i, j, k);\n\&lt;/PRE&gt;&lt;P&gt;You can do the same for the items transported by ASRS.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Apr 2024 08:14:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585843#M82798</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-04-26T08:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accurately send items to a specific slot on the rack?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585844#M82799</link>
      <description>&lt;DIV class="fr-view clearfix"&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\
\n\
/***popup:PushToList:listType=TaskSequence*/\n\
/**Push to Task Sequence List*/\n\
/***tag:showAdvanced*//**1*/\n\
\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\
taskSequence.addTask(TASKTYPE_TRAVEL, destination, NULL);\n\
int i = duniform(1, Bay, 1);\n\
int j = duniform(1, Level, 1);\n\
int k = duniform(1, Slot, 1);\n\
Storage.Item(item).as(Storage.Item).assignedSlot = current.outObjects[1].as(Storage.Object).getSlot(i, j, k);\n\
taskSequence.addTask(TASKTYPE_UNLOAD, item, destination, opipno(current,port));\n\
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;SPAN id="isPasted" style="color: rgb(13, 13, 13); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;I've tried this code before, but I couldn't simulate the model successfully. &lt;SPAN id="isPasted" style="color: rgb(13, 13, 13); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;It stops when it tries to execute the action of placing items from the queue into the rack.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(13, 13, 13); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;&lt;SPAN style="color: rgb(13, 13, 13); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/82163-model.fsm" target="_blank"&gt;model.fsm&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Apr 2024 13:37:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585844#M82799</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-04-26T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accurately send items to a specific slot on the rack?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585845#M82800</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;"Bay", "Level" and "Slot" are not defined at that point in the code. I only copied part of the source's code to highlight the relevant part: Determining the bay, level and slot ID and assigning the slot to the item.&lt;P&gt;I assumed you'd use labels to assign the items to specific slots, not use random number distributions.&lt;/P&gt;&lt;P&gt;The "transportdispatcher" variable node is also currently not toggled as FlexScript in your model.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Apr 2024 13:44:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585845#M82800</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-04-26T13:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accurately send items to a specific slot on the rack?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585846#M82801</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Is there a way to define "Bay", "Level" and "Slot" in this code?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 27 Apr 2024 15:28:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585846#M82801</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-04-27T15:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accurately send items to a specific slot on the rack?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585847#M82802</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Of course you can define those variables in the code. You can also use different names or labels.&lt;P&gt;As I said, you already have working code in place for the source, so I don't understand what you are struggling with to adapt that code for the queue.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Apr 2024 06:10:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585847#M82802</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-04-29T06:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accurately send items to a specific slot on the rack?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585848#M82803</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I found my mistake, sorry for causing you trouble, thank you for your reply.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Apr 2024 07:54:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-accurately-send-items-to-a-specific-slot-on-the-rack/m-p/13585848#M82803</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-04-29T07:54:17Z</dc:date>
    </item>
  </channel>
</rss>

