question

gilbert jerald avatar image
3 Likes"
gilbert jerald asked Adrian Haws commented

Send pallet and two groups of 5 boxes to 3 different queues from a separator

a pallet consist of 10 items this movies from a processor to a separator,then the separator to three queue, the problem is that i want to send the pallet to one queue and 5 box to one queue,and remaining 5 box to another queue what is the separator and flow option to be given for doing this separation work

Choose One
combinerseparatorsend to port
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Adrian Haws avatar image
3 Likes"
Adrian Haws answered Adrian Haws commented

You can do this by editing the code within the "Default Separator Option" for "Send to Port" in the Separator. In the Code Editor replace lines 10-18 with the following:

  1. if(getvarnum(current,"unpack")) {
  2. if(getrank(item) == 1)
  3. return containerport;
  4. else if (content(current) >= 7)
  5. return contentport;
  6. else
  7. return 3;
  8. }
  9. else
  10. return 0;

The default option simply sends the pallet to the first output port and the remaining items to the second output port. The changes we made in the code simply tell it to send to the third port once 5 items have left.

See attached example model.


· 7
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.