question

Lean van der Walt avatar image
0 Likes"
Lean van der Walt asked Lean van der Walt commented

Combining two Models

I have two models that work well independently, replenish3 model and warehouse2 model. I will like two combine the models into on model by adding the logic of the one model to the other one.

The warehouse2 model generates items and stores the items in racks, before orders are generated that pull the items out of storage to be sunk. The replenish3 model works on the same concept, except that items are replenished from rack1 to rack2 when the items in rack2 reaches a certain level.

I want to add the replenish3 model to the warehouse2 model. The items would now be pulled from storage from two separate order points in the model. The items in rack2 need to be replenished from the items in the warehouse2 racks.

I have tried to copy the logic from the replenish3 model to the warehouse2 model, but i have failed miserably.

Please assist?

replenish3.fsm

warehouse2.fsm

@Brandon Peterson

Choose One
model optimization
replenish3.fsm (66.1 KiB)
warehouse2.fsm (80.7 KiB)
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

·
Sam Stubbs avatar image
2 Likes"
Sam Stubbs answered Charles W commented

So we managed to merge your two models together. We did this by first copying all the 3D objects over to the new model, followed by the Process flow. Then we also copied over the Global Tables and the Global lists (I made a second "Orders" list and named it "Orders1," and updated the areas where it was called.) We also updated the Wait For Event that was copied over, because when you copy it, the data in the event is blanked out.

I'm attaching the merged file below. If you want to merge logic from the other file, you will have to figure out where and how they are going to merge manually But at least you have the two models in one place now.

2304-replenish3-merged-with-warehouse2.fsm


· 4
5 |100000

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

Lean van der Walt avatar image Lean van der Walt commented ·

Hi Sam.

Thank you for your trouble.

I want the layout in to be like in the one in the model that I attached below.

Will it be possible to make the model work then?

warehouse5.fsm

0 Likes 0 ·
warehouse5.fsm (89.5 KiB)
Sam Stubbs avatar image Sam Stubbs ♦ Lean van der Walt commented ·

You should be able to switch around the layout as you need. You will need to manually readjust your logic in order to switch things out and reassign operators and transports. But the combined model should be compatible with those changes.

1 Like 1 ·
Lean van der Walt avatar image Lean van der Walt commented ·

Hi Sam,

Thank you for your help. I down loaded the newest update and the model works. I will play around and change the layout like I want it and adjust the model logic. Hopefully I can make it work. If I have trouble I will ask for your help again.

Thank you.

0 Likes 0 ·
Lean van der Walt avatar image Lean van der Walt commented ·

combined-model-2.fsmHi Sam,

I rearranged the entities in the model and adjusted the model logic to what I want the model to simulate. After a couple of seconds into the model this error appears: time: 2585.483614 exception: Error: Invalid assign to reference at assign labels activity "Set Bay and Level on 3D" in "ProcessFlow", and I am not able to figure out what is wrong.

Will you be able to look into the problem and assist me?

Thank you.

0 Likes 0 ·
combined-model-2.fsm (119.6 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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