question

Rafael de Assis avatar image
0 Likes"
Rafael de Assis asked Rafael de Assis commented

How to create a advanced setup?

Hello Everyone!

I'm simulating a work station of painting. There are some peculiars things in this process:

- There are created 5 diferents flowitens;

- gray flowitems are soft, so these flowitems are moved with an operator and this flowitens are process in processor "Pintura" and processor "Secagem", only a time;

- White flowitems are heavy, so these flowitems are moved with a crane and this flowitens are process in processor "Pintura" and "Secagem", only a time;

- Blue flowitems are heavy like white flowitems, but this flowitems are process in processor "Pintura e "Secagem", 2 times;

- Orange flowitems are heavy like white flowitems, but this flowitems are process in processor "Pintura" and "Secagem", 3 times;

- Green Flowitens are heavy like white flowitems, but this flowitems are process in processor "Pintura" and "Secagem", 4 times.

- for to obey, the flowitems change a label in some queue every time that 1 round (Processor "Pintura" and "Secagem" are concluded.

I am trying use "If Item Label Value Changes (values are set)", for this, I changed the code. I don't know what, but I doing something wrong. when some flowitens (blue, orange or green) go to second round, the simulaton doesnt recognize the label in globaltable. Modelo Avançado V17.fsm

fugure-1.jpg

figure-2.jpg

FlexSim 21.1.5
setup timesetupadvanced setup
fugure-1.jpg (11.3 KiB)
figure-2.jpg (21.4 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Rafael de Assis commented

The Setup Time option works correctly as far as I can tell. The issue in your model is that the Process Flow does not check if "Pintura" is empty before moving another item onto it. If a second item is starting to be processed, the Process Flow section below will lock the model, because the first token has acquired the "Pintor". It will never release him because the first token has stopped the processor causing a deadlock.

capture2.png

Before unloading to "Pintura", you can use a Wait for Event activity to make sure the processor is actually empty.

capture1.png


capture2.png (15.2 KiB)
capture1.png (10.9 KiB)
· 5
5 |100000

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

Rafael de Assis avatar image Rafael de Assis commented ·

Hello Mr Felix


I did in process flow this check. in figure below, I circled a wait for event..

but I tried your option with a arrow. the result was the same.

figure-3.jpg

0 Likes 0 ·
figure-3.jpg (42.8 KiB)
Felix Möhlmann avatar image Felix Möhlmann Rafael de Assis commented ·

You are right, I misread the issue. The actual problem is that the 3d-port-logic ignores the object that was placed on the processor by the Process Flow.

I would suggest to unify the logic for both input queues. This is both safer and probably in the long run also simpler than adding a bunch of checks to try and have the different input logics work correctly with each other.

In the attached model I also have Queue1 push its items to the "Caixas2" list. The "pintura" processor pulls from this list. The only difference between the queues is the transport reference. Queue1 still just uses the fixed reference as before. "bufer de entrada" is set to create a token in the Process Flow instead of dispatching a task sequence. The code is a stripped down and adjusted version of the default "Use Subflow" option.

capture1.png

This way the pull logic on "pintura" manages all inputs and there is no danger of overloading the processor.

modelo-avancado-v17-pull-fm.fsm

0 Likes 0 ·
Rafael de Assis avatar image Rafael de Assis commented ·

Mr. Felix,

Now it is working perfectly. I have one more doubt.

what means de messege below. I start this model sometimes and after 2 days os simulation, appear this messege.


figure-3.jpg

0 Likes 0 ·
figure-3.jpg (49.0 KiB)
Felix Möhlmann avatar image Felix Möhlmann Rafael de Assis commented ·

Hard to say. It's an 'internal' error that is (as far as I can tell) not caused by any wrong input of the user (at least not directly).

The message refers to the conveyor system. Did you add conveyors to the model? Sometimes saving the model adn restarting FlexSim fixes this for me. Other times replacing the conveyor section that causes the message helps (though you can't see which one is responsible, so you might have to replace all). If the error only happens sometimes and there are no detrimental effects and the model continues to run correctly, this is an error I sometimes just ignore in that case.

0 Likes 0 ·
Rafael de Assis avatar image Rafael de Assis Felix Möhlmann commented ·
OK, thank you so much!
0 Likes 0 ·