question

ROBERTA Z avatar image
0 Likes"
ROBERTA Z asked tannerp answered

HOW TO INSERT BOXES IN RACKS AND UPDATE RACKS'CONTENT?

Hi to everybody,

i have created a warehouse with two racks and i want to insert boxes in them.

The problem is that when i execute the model, it remains idle and it stops on the "source" of the boxes.

I don't know how to correct.


In addiction i have created two global tables that rapresents the bays of racks (14 bays for 6 levels and 38 channels in the rack sx and 12 free bays for 6 levels and 38 channels in the rack dx) that are totally free. I Would like to know a way to update the cells of global tables that rapresent the bays when the racks receive the boxes. How can i do it? Have you some ideas?

Thank you to all!

Sorry for the questions,i'm a first time-writer!

(I have attached the model)

MODELLO CON FLOW 4.fsm

WALL LIBERI.xlsx


FlexSim 19.2.4
flexsim 19.2.4
· 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.

Benjamin W2 avatar image Benjamin W2 commented ·

Hi @ROBERTA Z,

It looks like you are throwing an exception in your custom code activity called "SetName" underneath your "Source5". This activity is calling several developer use commands. What are you trying to accomplish with this activity? There may be an easier way to do it.

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

I have corrected the error that you pointed out.

The problem erases just before boxes start flowing into the racks.

If i try to build the warehouse model without the script of box flow, the warehouse is built correctly.


MODELLO CON FLOW 4.fsm

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

Hi @ROBERTA Z,

The model is still trhowing an exception, but now it is underneath "Source13" in the custom code box called "SetName". Sometimes these exceptions cause later problems down the line.

Could you explain a little more on what you are trying to accomplish with your model?

0 Likes 0 ·
Show more comments

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered

@ROBERTA Z,

The error is occurring in the Decide activity shown below. The Decide is looking for a label called "Type" on the tokens that pass through the activity, but that label does not exist on the tokens. You need to assign that label somehow. What is it that you want to check the type of? Is it checking the type of the boxes?

Also, is there a reason why you're creating all of your racks and sources in Process Flow with each model run? You know it's possible to create them permanently in your model, right? Then they don't have to be created every time you run the model.


5 |100000

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

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.