question

Ilham T avatar image
0 Likes"
Ilham T asked Ilham T commented

different loading and unloading time

Good morning,

i want to make agv when carry out from queue 2 is time 15.
but the other queue is 30.

i already setting in the agv time, 30 second.
but i don't know how to make different time just in queue 2, to setting the time for just 15 second.

can someone help me?


FlexSim 19.0.0
flexsim 19.0.0agv loadagv time
1622173411020.png (57.0 KiB)
1622173487862.png (213.3 KiB)
· 2
5 |100000

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

Ilham T avatar image Ilham T commented ·
0 Likes 0 ·
test.fsm (149.2 KiB)
Eric M avatar image Eric M commented ·

Hi @Ilham T, was Felix Möhlmann's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Ilham T commented

You could use the following code for the load and unload time (paste it into the editor you open with the little paper icon next to the text field).

/**Custom Code*/
Object item = param(1);
Object current = ownerobject(c);
treenode station = param(2);

if(station == Model.find("ControlPoint20"))
{    
     return 15;
}
return 30;

This will check whether the AGV is currently positioned at ControlPoint20 (next to Queue2) and return 15s as the time if that's the case, 30s otherwise.

Alternatively, you could give all control points connected to a queue a label containing the load time and read that label when loading or unloading at that station. For example if the label was called "LoadTime", you would enter the expression "station.LoadTime" in the text field.



· 1
5 |100000

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

Ilham T avatar image Ilham T commented ·
thank you, its very helpful
0 Likes 0 ·