question

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

How to use de decide block in processo flow?

Hello Everyone

I built a model whose the transport is with AGV tugger

I think that I had a mistake in decide block in process flow.

The model works:

- The AGV load the pallet with fowitens an unload in two points, dispach area and motor line;

- before the transporte, the flowitens are combine (1st combiner, to combine 8 flowitens with label number 1. this pallet assign label number 1 on exit of combiner. the 2nd combiner to combine 4 flowitens with labels 5, 22, 320 and 4100; this pallet assign label number 22 on exit of combiner)

- the AGV loads empty pallet in dispach area and motor line, after that it leaves the empty pallet on painting station area.

- if the AGV doenst have load, it goes to parkpoint to recharge battery.

- in process flow only this application doesnt work.

someone could me help to find my mistake?

Modelo situação AGV rebocador 7.fsm

FlexSim 21.1.5
agvprocesss flowblock
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

Kavika F avatar image
0 Likes"
Kavika F answered Rafael de Assis commented

Hey @Rafael de Assis, I think one of your issues is that your decide activity "Do we have itens to load?" hasn't been setup properly.

1699048810924.png

You need to define a conditional statement. You don't have a "token.labelName", so it throws errors at 4660 seconds. Also, I don't know why you have a decide activity there if it only exits to one place.

Additionally, in your "Load itens to Motors from Painting" section of Process Flow has an "AGV Travel" activity that is using the label "token.taskSequence", but that hasn't been defined.

1699048966112.png

You either need to specify a specific AGV to use or use a "Create Task Sequence" activity before it.


1699048810924.png (21.4 KiB)
1699048966112.png (24.2 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,

my condition woul be: if it has something on list.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Rafael de Assis commented ·

Then use a pull from list activity with a timeout and specify an alternative port for the token to go to if it cannot pull from the list. If you don't want to remove the item from the list at that point check "Leave Entries on List".

1 Like 1 ·
Rafael de Assis avatar image Rafael de Assis Rafael de Assis commented ·

Hello Mr. Kavika


I repaired the error with a simple conections, with out process flow.

But I will ask to you for another ploblem. I intent to use battery recharge for opportunity. so I hadn't susccefull. could you give-me a north?


Modelo situação AGV rebocador 7.fsm

0 Likes 0 ·
Kavika F avatar image Kavika F ♦ Rafael de Assis commented ·

@Rafael de Assis , I think I know your issue.

You're acquiring a TaskExecuter and assigning it to a label "token.resource".

1699650274246.png

In your Travel activity, you put "token.agv" as the executer. That label doesn't exist though.

1699650291234.png

Similarly, in your "Start Recharging" activity, you're passing in "current", which is the Process Flow. "current" should be used in an Object Flow; however, you're in a general Process Flow with no reference to an object.

1699650332645.png

In both cases, you should replace it with "token.resource" which is the reference to the TaskExecuter.

0 Likes 0 ·
1699650274246.png (54.2 KiB)
1699650291234.png (46.2 KiB)
1699650332645.png (53.6 KiB)
Show more comments