Warehouse Shelf Modifying Features

Hello everyone,

I’m trying to modify the functionality of the Warehouse Shelf in PM-Warehouse using VC.

The modifications I’m trying to make are when I put things in this Buffer and when I discharge them, I want to put them in or out of the place I want them.

But when I looked at Buffer Process, I couldn’t implement the movement I wanted in FeedMode and NeedMode.

I’ve tried modifying Python, but it contains multiple functions, making it difficult to debug.

As shown in the attached picture, I would like to create two attributes (IN_Port, OUT_Port) in Components to specify where the goods are received or discharged in real time.

Is there a good way to implement it?

Start from here, transport_items is the slot, i is the slot index
Red: Need
Yellow: Feed

1 Like

Hello idkfa,

I also check the code and recognize that I receive the location of the place where I put the items through the part you checked.
However, I am at a loss as to how to implement Input and Output ports by replacing i as in the picture in the text.

Manually change i before pop(i) first, you will see the difference, then you need to implement your logic here, for example, i = comp.IN_Port