Kanban-System

I would like to implement the following Kanban-System in my simulation.

I looked into the Kanban-Tools from Plant Simulation, but I'm not so sure about them as I can't see their codes.

The logic basically is that when ParallelProc 1 pulls MUs from the supermarket, kanbans cards tell the transporter 3 ( respectively a buffer to simplify it) to pull the same amount of MUs from the supermarket 2.

I think I partly got it and can make use of it in my case, namely using a similar code in the exit control of the supermarket/buffer to create kanban cards. It should have the same effect as if kanban cards get triggered by the pull control of SingleProc 1, shouldn't it?

However, I have a couple of questions to see if I understood your simulation correctly:

1.)How does the table cl look like? Do you get the information "partName" from there or where does it come from? (c.p. code of the "init" method)

1.) Do you create Kanban orders based on the table sequence?
--create KANBAN orders
sequNumber:=sequNumber+1;
part:=sequence[1,sequNumber];

2.) Once you created an order (source --> drain), do you want to check for the part in your storage first? Thus, if you find it a Kanban card gets removed from the bin and moved to the kanbanBuffer?What if I don't want to move the bin/part, but would like to let the next SingleProc pull that part instead?
--look for the part in the bins in the finalStorage
cl.setCursor(1,1);
found:=cl.findAttr("partName",part);
if found then
bin:=cl[cl.cursorX,1];
--remove the KANBAN
bin.pe(1,1).cont.move(kanbanBuffer);
--move the bin to the drain
bin.move(PartDrain);
--update the inventory
inventory[1,part]:=inventory[1,part]-1;
else
debug;
end;
end;

My problem is that I don't want to move/push the bin, but let the next SingleProc in line pull the bin/MU.

in your exit-control (rear) Supermarkt-montage you need only to remove the kanban-cards from the bins:

@.pe(1,1).cont.move(Kanban_Puffer2);

to use a pull control in bearbeitung is absolutely wrong. The production should be triggered by the kanban cards in kanban-buffer2 (no cards, no production!!). If there is a kanban card, wait for free capacity, move one bin in direction bearbeitung; you need to change in this case the kanban cards: send the kanban card from the bin to Kanban_buffer1 and move the card from Kanban_puffer2 to the bin (you need it later again). All this you should do in the exit control of kanban_buffer2 (so you dont need an exit control in supermarkt bearbeitung).