Unpacking and Packing machine, objects ID might cause bug. What to do?

Unpacking and Packing machine, objects ID might cause bug. What to do?

patricia_brenny_r
Not applicable
29 Views
4 Replies
Message 1 of 5

Unpacking and Packing machine, objects ID might cause bug. What to do?

patricia_brenny_r
Not applicable

[ FlexSim 22.2.0 ]

Hi there!

I`m creating a couple of machines that inherit from the processor and do a couple of things:

Receive a tote with boxes inside, processes these individual boxes and packs them back up on the same tote. This has worked well when careful to send the inside boxes to the machine overriding the onSend trigger.

However the problem rises from these other two behaviors:

1- Receive a tote with boxes inside, process these boxes and release them, without packing them.

2- Receive a couple of single boxes, process them and pack them in a tote.

These behaviors of packing and unpacking are absolutely necessary for the machines I`ve been asked to develop, and I realise they act like combiners and separators, but mostly as processors for they also just process and release when necessary, which is why I chose that inheritance.

I believe that when releasing these objects that came in with an ID and either got erased or created out of nowhere, I`m skipping over some handshakes from the machines ports. I`d like a workaround on that, or at least some insight into how these handshakes work so I can develop in a way that respects thembut also preserves the behaviors I have created.

Accepted solutions (1)
30 Views
4 Replies
Replies (4)
Message 2 of 5

Jeanette_Fullmer
Community Manager
Community Manager
Would you be willing to place a separator, processor and then combiner and treat it all as one machine? You can change the visual of the separator and combiner in order to make it look more like one machine.
0 Likes
Message 3 of 5

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

You are right about creation of nowhere and deleting items in a processor. But the mechanism is just your model event list. A processor creates on entry or for items in transit events for your model event list. You want to override such events, then do this from a more basic start. Please build your own processor from a basic fixed resource object. And in cases where you have to delete items rather than sending them to a sink, erase all involved events coupled to such items from the event list.

There are existing commands to work with events described in a section of command reference. I would watch a model event list to identify and copy the sequence of events when an item is created in a source or deleted in a sink and compare this with already taken place events of your customized object.

EDIT: please observe the event log tool, too.

Message 5 of 5

patricia_brenny_r
Not applicable
Thank you so much I'll definitely try this out
0 Likes