question

Doris C avatar image
0 Likes"
Doris C asked Benjamin W2 commented

How to use Decide in process flow

Hellow, i'm testing some system that's Decide.

But it doesn't move as i think it will.

I want to know if I set it up wrong.

I will upload the file together. Thank you very much for your reply. WSETEC_1.fsm

FlexSim 19.2.4
processflowflexsim 19.2.4decide
wsetec-1.fsm (69.2 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

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Benjamin W2 commented

@doris.c,

First, the Finish block in Process Flow is only used together with the Start PF block. They are used to start/end a "subroutine" (Sub Flow) Run Sub Flow block. So they do nothing in your model as you had it set up. I removed those blocks and replaced it with a Sink block, which just provides and "exit" for tokens in PF.

It's also not a good practice to have multiple PF blocks with the same name. It can make it very difficult to debug a PF when there are multiple blocks with the same name. Because the error message (when you get one) displays the PF block name that the error occurred in. But if you have multiple PF blocks with that name, it could be very difficult to tell which PF block caused the error.

The first Travel block in legs 4, 5 and 6 coming from the Decide block, don't the Destination field filled in. So those are going to give you an error when running the model, just an FYI.

I'm guessing that you intention here is to send the token to one of the six output ports based on a label on each AGV called "Type". That is what the code is in the Send Token To field.

token.agv.Type

That means, get the label called "Type" on the object that is referenced by "token.agv". You're getting errors because none of your AGVs have the label "Type" on them. You have 18 AGVs so I took a guess that you want the Type label on each AGV to go from 1 through 6 and then start over for the next six as well as the last six. I added those labels in the attached model. That seemed to be the biggest problem, not having labels on the AGVs that you were referencing.

Take a look at the attached model and see if this is what you were intending how the model should work. If you have any questions or problems, please don't hesitate to contact us.

Thanks.

wsetec-1-JN1.fsm


wsetec-1-jn1.fsm (67.7 KiB)
· 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.

Doris C avatar image Doris C commented ·

it's working now! very thanks.

but i don't understand some your answer. that's part is this "That means, get the label called "Type" on the object that is referenced by "token.agv"."

how did get the label called "Type" on the object that is referenced by "token.agv ???

I use a translator because I am not good at English. I'm sorry if I made a mistake.

finaly Thank you very much for solving the problem.

0 Likes 0 ·
Doris C avatar image Doris C commented ·

And there's one more question.
There are a total of 6 routes that I send agv now. Is there a way to send agv uniformly?wsetec-1-jn1.fsm

0 Likes 0 ·
wsetec-1-jn1.fsm (69.3 KiB)
Benjamin W2 avatar image Benjamin W2 Doris C commented ·

Select the "Round Robin" option in the dropdown:

0 Likes 0 ·
1599082499458.png (19.5 KiB)