The operator in charge of staging dollies in outbound buffers is teleporting for some reason. It is visually strange but the worst part is that it alters cycle times. Here's the code Im using when the AGV arrives to the unload station:
/**Custom Code*/ Object item = param(1); Object current = ownerobject(c); int port = param(2); Object CONTROL = model().find("OUTBOUND_CONTROL"); //its a dispatcher that controls staging buffer list by connecting to their output ports Object OPERATOR = CONTROL.centerObjects[current.OPERATOR]; int FROM = current.FROM; //label that states lowest buffer number this station serves int TO = current.TO; //label that states hisghest buffer number this station serves int CONTENTS = item.subnodes.length; //agv cage contents current.output.close(); if(CONTENTS==0) //release to next station { sendmessage(current,current,10); } else //create a task to unload { treenode ts = createemptytasksequence(OPERATOR,0,0); for(int index = CONTENTS; index >=1; index--) { if(item.subnodes[index].BUFFER >= FROM && item.subnodes[index].BUFFER <= TO) //correct range of buffers { inserttask(ts,TASKTYPE_TRAVEL,current,NULL); inserttask(ts,TASKTYPE_LOAD,item.subnodes[index],OPERATOR,1); inserttask(ts,TASKTYPE_BREAK,NULL,NULL); inserttask(ts,TASKTYPE_TRAVEL,CONTROL.outObjects[item.subnodes[index].BUFFER],NULL); inserttask(ts,TASKTYPE_UNLOAD,item.subnodes[index],CONTROL.outObjects[item.subnodes[index].BUFFER],1); inserttask(ts,TASKTYPE_BREAK,NULL,NULL); } if(index == 1) { inserttask(ts,TASKTYPE_SENDMESSAGE,current,current,10,0,0,2); } } dispatchtasksequence(ts); }