What is the "pass to" condition of the dispatcher section of a robot used for? I would need to know what parameter I need to act on to tell the robot which combiner to serve.
What is the "pass to" condition of the dispatcher section of a robot used for? I would need to know what parameter I need to act on to tell the robot which combiner to serve.
In our manual you will find this information
"The return value of the Pass To field should be the output port that the dispatcher will pass the task sequence to. If 0 is returned, the task sequence will automatically queue up according to the defined Queue Strategy until the task sequence can be passed to an available dispatcher or task executer. If a value greater than 0 is returned, the task sequence will be sent immediately to the returned port number. If a value of -1 is returned, then the dispatcher does nothing, but rather assumes all dispatch logic is done within the Pass To function using the TaskSequence.move() and TaskSequence.dispatch() methods. "
If I write such an "if" condition in the "pass to" code, can I tell the robot which output port to serve?
TaskSequence taskSequence = param(1);
Dispatcher current = ownerobject(c);
if (Model.parameters.numCombiner == 1){
return 3;
}else{
return 2;
}
In my model Combiner1 is the output port number 2 of the robot1. The combiner named "Impacchettamento" is the output port number 3
I think you are misunderstanding. "dispatcher will pass the task sequence to " The task sequence is coming form Queue1 and the dispatcher is deciding which task executer will fulfill the task sequence. So, the combiner has already been chosen by that point. Its the queue output logic that you need to look at to adjust.
Sorry for the misunderstanding, but how can I direct the robot's movement to one or the other combiner?
14 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