Picking and Tasksequences
Hi,
i Have a really dumb problem. I'm tryng to do a simulation where an operator pick one box from 4 different queues and then the operator must unload all the 4 items to a Queue.
I have created this tasksequence:
Just to clarify, current=Operator
treenode tarea= createemptytasksequence(current,0,0);
for(int i=1;i<=4;i++){
inserttask(tarea,TASKTYPE_TRAVEL,outobject(node("/Queue15",model()),i));
inserttask(tarea,TASKTYPE_MOVEOBJECT,last(outobjec t(node("/Queue15",model()),i)),current)
inserttask(tarea,TASKTYPE_DELAY,NULL,NULL,5);
}
inserttask(tarea,TASKTYPE_TRAVEL,node("/Queue16",model()));
inserttask(tarea,TASKTYPE_UNLOAD,????,node("/Queue16",model()));
dispatchtasksequence(tarea);
But i don't know how to reference the boxes that are now in the operator. I've tried first(current), last(current) but it doesn't work because when Flexsim creates the Tasksequence the boxes aren't in the operator.
Any advices??
Thanks in advance
