<?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 Items on ASRS in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/items-on-asrs/m-p/13481185#M754</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 7.5.4 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;There are two items on the asrs fork,i want the top one place on the side of the botom one,i use command setloc,but it is no use,would you please tell me how can i solve this problem. thanks a lot.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Nov 2018 12:33:35 GMT</pubDate>
    <dc:creator>avantasia2012</dc:creator>
    <dc:date>2018-11-22T12:33:35Z</dc:date>
    <item>
      <title>Items on ASRS</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/items-on-asrs/m-p/13481185#M754</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 7.5.4 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;There are two items on the asrs fork,i want the top one place on the side of the botom one,i use command setloc,but it is no use,would you please tell me how can i solve this problem. thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 12:33:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/items-on-asrs/m-p/13481185#M754</guid>
      <dc:creator>avantasia2012</dc:creator>
      <dc:date>2018-11-22T12:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Items on ASRS</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/items-on-asrs/m-p/13481186#M755</link>
      <description>&lt;P&gt;
	The setloc-function does not work. You can move the second loaded item into the first. Then you can set the location of the second relative to the first item. Unfortunately the ASRS-vehicle does not know how many items are loaded and will load more items than the maximum capacity. The Break To function is responsible for this behavior. You must force this function to ignore the internal counted content variable and tell the return value that there is nothing more to load when the second item is moved into the first. &lt;/P&gt;&lt;P&gt;
	"Break To" function source code:&lt;/P&gt;
&lt;PRE&gt;treenode activets = parnode(1);
treenode current = ownerobject(c);
/***popup:BreakToSame*/
/**New Tasksequences Only ++ do not break after second loaded item*/
/** Only break to task sequences that have not been started already.*/
/** Object queueing the tasksequences: */
treenode theobject = /***tag:dispatcher*//**/current/**/;
treenode tsqueue =  gettasksequencequeue( theobject );
treenode returnts = NULL;
// JV: don't load more items if the first item contains another item
if(content(first(current)) &amp;gt; 0) return tonum(returnts);
// following: origninal lines of code
for (int index = 1; index &amp;lt;= content(tsqueue) &amp;amp;&amp;amp; ! returnts; index++) { ....
&lt;/PRE&gt;&lt;P&gt;
	Onload Trigger;&lt;/P&gt;
&lt;PRE&gt;if(content(current) == 2){
	treenode firstitem = first(current);
	moveobject(item,firstitem);
	double newX = -xsize(item);
	setloc(item,newX,0,0);
}
&lt;/PRE&gt;&lt;P&gt;&lt;A id="16082" href="https://answers.flexsim.com/storage/attachments/16082-place-items-next-to-another-asrs-by-moveobject.fsm"&gt;place-items-next-to-another-asrs-by-moveobject.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 09:49:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/items-on-asrs/m-p/13481186#M755</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2018-11-29T09:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Items on ASRS</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/items-on-asrs/m-p/13481187#M756</link>
      <description>&lt;P&gt;Beware of this approach it works only in straight LIFO.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 05:55:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/items-on-asrs/m-p/13481187#M756</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2018-11-30T05:55:27Z</dc:date>
    </item>
  </channel>
</rss>

