question

Clara avatar image
0 Likes"
Clara asked Clara commented

Processor States

Good morning,

I have an AGV line with control points, and every control point is a processor that works with the AGV over it.

In order to make the processor work with the agv over it, i had to create a flux (image attached).

The processor has 3 states (idle, processing and breakdown), i need that, when AGV exits 'Run Sub Flow' and it can't advance, its state switches to 'blocked' instead of 'idle'.

The flux you can see in the attached image moves the AGV to the processor, waits until it finishes processing and moves the AGV back to the control point.
imagen1.jpgimagen2.jpg

FlexSim 24.0.2
processor state
imagen1.jpg (36.0 KiB)
imagen2.jpg (125.0 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

José Antonio MD avatar image
0 Likes"
José Antonio MD answered Clara commented

Hello @Clara ,

As I see that you are already using ProcessFlow, I recommend using a CutomCode activity (you can change the state of the object to the value you want).

1716542300184.png

As in general you have to make sure that the previous action is finished, if necessary you can use a Breathe before.

1716542376761.png

I hope I have been helpful.


1716542300184.png (24.1 KiB)
1716542376761.png (15.1 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.

Clara avatar image Clara commented ·

Thanks for the response,

It still isn't working like i need though. I need that, when the AGV can't advance because there is another one before him, the processor is 'blocked', but if the AGV does advance and until another AGV arrives, i need the state to be 'idle'.

0 Likes 0 ·
José Antonio MD avatar image José Antonio MD Clara commented ·

Hello @Clara,

Here is an example: 24.0. ForoExample_States.fsm.

I think the systems works as you want if you use the CustomCode and WaitForEvent activities. In the example I have made you a model with AGVs like the one you propose and it changes the state in the Deallocated. In the end the only thing you will have to control is when the AGV starts the travel to return the state to IDLE .As we don't have the real example, I have done it with the deallocated action, but linking it to whatever you need will work without a problem.

I hope I have been helpful.

0 Likes 0 ·
Clara avatar image Clara José Antonio MD commented ·
Thank you so much, it works perfectly!
0 Likes 0 ·