question

Suhas H2 avatar image
0 Likes"
Suhas H2 asked Joerg Vogel commented

Create a part on the rack during Initialization logic

I want to create few number of parts on the racks in the initialiazation logic using code. I have tried using commands like Createinstance() and Createcopy() but in vain. Please help me with an example code or a model.

Thanks in advance!!

FlexSim 19.1.0
rackobject creationinitialization logic
· 3
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

Please add a source to the model, then you change the arrival style to Arrival Schedule of this source. You set the quantity in the table for the Arrival Time 0 to the wished initial content of the rack. The purpose of this source is just to fill the rack a time 0.

0 Likes 0 ·
Suhas H2 avatar image Suhas H2 Joerg Vogel commented ·

Whether can we create the part on racks using code. I agree for this condition we can use 'Source' and the option you suggested. There are other places, like for storing so many parts on racks would consume memory and also make the model slow. So let me know how to create a part using code.

0 Likes 0 ·
Benjamin W2 avatar image Benjamin W2 commented ·

Hi @Suhas H2,

Did Joerg's answer solve your problem? If so, can you accept his answer? If not, how else can we help?

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

The example of createcopy tells you in the manual the use of it.

This copy variant add a node to object acting as container. But there isn’t any further action for placing the item into a rack.
If you have a created item somewhere in your model, you can copy and insert it into an object. Then the copied item initiate the standard OnReceive actions like place in bay and place in level of a rack. The command is insertcopy.

· 2
5 |100000

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

Suhas H2 avatar image Suhas H2 commented ·

Thanks for the reply @Jörg Vogel!!!

I was actually modelling a warehousing were i have an assembly of part(Product) which have more than 50 parts on a pallet. Thousands of such Product while hang the system and also slowdown my model. To eliminate this problem I thought of destroying the Product when i am storing it into the racks. Creating them again when i am retrieving it again from the racks. For mimicking this action i will need to know the procedure to create this Product when my ASRS approaches the rack. Please help me with example model to create this.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Suhas H2 commented ·

I am sorry, I can’t help you in this module, I am still learning to create a warehouse rack by myself. But you find the article here, which contains a demo model. Therein is a process, that creates an initial stock. I assumed you have built a classic rack, because you set at your question FlexSim Version 19.1.

But I recommend not to create pallets with thousands of products on them just to destroy them again. You can put your products data into labels at the pallet. If you receive the pallet from the rack, then you can create the products instantly.
A really easy approach creates all needed types of items in several sources just once and places them in queues somewhere far away in the model. Whenever you need such a product type you use the insertcopy command to place a product copy from the queues onto a pallet.
You fill visually the rack with shapes of filled pallets of drawsurrogate objects. You must create such shapes outside of FlexSim. You set the location of the drawsurrogate object that it looks like the slot is filled. If you carry the pallet by an ASRS vehicle you create OnLoad the filled pallet and hide the shape of the drawsurrogate object in the rack

similar to the code in the above picture.

1 Like 1 ·

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.