question

Cheuk Hin Lee avatar image
0 Likes"
Cheuk Hin Lee asked Cheuk Hin Lee commented

How can I vary the speed of an AGV into some normal?

How can I vary the speed of an AGV into some normal distribution each time when it completes a loop/cycle?

I would like the AGV to travel in different speed in each cycle.

However, normal function cannot be typed in the AGV network properties (for example in Empty/Forward/Straight).

May I know is there any way I can vary the speed of AGV?

Thank you very much!

Choose One
agv network properties
1.png (63.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

Arun Kr avatar image
1 Like"
Arun Kr answered Cheuk Hin Lee commented

Dear @Cheuk Hin Lee,

Use way points to change the speed, when the AGV completes a cycle.

In the way point trigger, you can try the script like this..

treenode SpeedNode = model().find("AGVNetwork>variables/agvTypes/DefaultAGV/speeds/Straight/Empty");
SpeedNode.value = normal(5,2);

Basically, I have used the sampler to get the reference of the speed node. You can use your required speed node.

Regards,

Arun KR


script.png (98.0 KiB)
· 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.

Cheuk Hin Lee avatar image Cheuk Hin Lee commented ·

Hi @Arun KR,

Thank you very much for the helping hand!

I would like to set the speed to be normally distributed like on the upper picture. However, this is not allowed in Flexsim. I would love to do this as I want all AGVs have slightly different speed but traveling in the same loop/path.

I will try the way-point-trigger you suggested! Thank you very much! You are so kind.

Cheers,

Hin

1 Like 1 ·
capture.jpg (23.4 KiB)