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.
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.
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.
"Break To" function source code:
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)) > 0) return tonum(returnts); // following: origninal lines of code for (int index = 1; index <= content(tsqueue) && ! returnts; index++) { ....
Onload Trigger;
if(content(current) == 2){ treenode firstitem = first(current); moveobject(item,firstitem); double newX = -xsize(item); setloc(item,newX,0,0); }
6 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved