question

rodrigue dibanda avatar image
0 Likes"
rodrigue dibanda asked Matthew Gillespie edited

How to sequence AVG as arm on a machine

-simulation-test-stage-1.fsmHello guys,

I have a big challenge.

First of all, without changing the base of my model, I would like to set the color of the tote (flow item bin) as follow :

1st tote should be in blue; 2nd tote in green and the 3rd in yellow; the source should produce the color of the tote always in this order.

After that, the blue AVG should take the blue tote, the green AGV should take the green tote and the yellow AVG should take the yellow tote.

Finaly, when I run the model I don't want two AVG in the process at the same time ( for the Unloading station particularly). When I run the model, it's work sometimes depending of the process time, but I want a condition may (close or open port) to avoid this situation.

Many thanks in advance for your helps.

FlexSim 16.2.0
agv
5 |100000

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

Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered Sam Stubbs edited

Since the AGVs are always sequential, it isn't too difficult to create a sequential color alteration on the totes. I simply set a label on the tote's source called "current_color" which ranges from 0-2. Then simply created a Color by Case function in the On Creation trigger. Then in the code of that trigger at the end I entered the following:

int c_color = getlabel(current,"current_color");
setlabel(current,"current_color",c_color+1);
if (c_color>=2)  {
	setlabel(current,"current_color",0);
}

This increments the current_color to the next color of the agv, then cycles back to 0 after 2.

As for your other concern. I never saw any of the agvs unloading at the same time. Because each area requires the completion of the one before it, in order for the next AGV to move ahead, they were always spaced when I ran 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.

rodrigue dibanda avatar image
0 Likes"
rodrigue dibanda answered

hello, thank you all , it's work perfectly.

How is it possible to display on dashboard : the Average stay time per type of color of tote ?

means : show for every color of tote the average stay time in every process.

the dashboard just shows a global stay time.

-simulation-test-stage-1.fsm


5 |100000

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

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Jeff Nordgren edited

@rodrigue dibanda

Rodrigue,

Attached is your model with the change that I made to change the colors of the totes. The code is in the Code Snippet in the OnExit trigger of Source1. Simple code, no labels no fuss.

But I'm unclear as to what you are wanting in the "Finaly" section of your request. Can you be more specific as to what you are looking for and maybe give time(s) in the model when the "problem" occurs?

simulation-test-stage-1-jn1.fsm


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.