question

cai A avatar image
0 Likes"
cai A asked cai A commented

the problem of taskexecuter and agv(3)

I have some problems of my model hope all of you can help me to solve my problems.Thank you!

(1) I want let the taskexecuter go to any connect point wait for 3 seconds and then get upload and unload(For example:go to queue1 stop 3 seconds and then upload 14 boxes and then go to sink1 wait 3 seconds and then unload 14 boxes and then go to queue2 and so on.)

(2) I want let the sink4 unload by labels but it can't unload quantity that I want.(For example:I want unload for 8 boxes in sink4 but it just unload for 1 box)

our-model.fsm

FlexSim 18.2.0
agvunloadtaskexecuteruploadconnect point
our-model.fsm (47.9 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.

Joshua S avatar image Joshua S commented ·

Load and Unload activities are really just the 2 activities Travel and Move Object in 1 activity, except that unload only allows you to unload 1 item. rather than using the Unload activity, use travel to activity, then you can use the Move Object activity which can allow you to unload an array of items, for isntance the entire contents of the taskexecuter. To move an array of subnodes, use this line.

Model.find("TaskExecuter1").subnodes.toArray()
0 Likes 0 ·

1 Answer

gilbert jerald avatar image
0 Likes"
gilbert jerald answered cai A commented

@cai A

Hi,

The attached model I have made the change on your model that meet your 2 requirements.

I have used process flow Delay activity to make the AGV wait at control points when loading and unloading for 10 sec.

I have pushed all the unloading control point to a list and make the AGV, to make use of the list to unload the item in the required sink with respect to unload quantity.

support-agv3.fsm

Note; You can change the time 10 sec to as per your requirement.

Thanks


support-agv3.fsm (54.8 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.

cai A avatar image cai A commented ·

Thanks you for your helps.You have already sovled all of my problems.

If I have any problem that I will post new article in Q&A.

0 Likes 0 ·
cai A avatar image cai A commented ·

I have some problem of my model,hope you can help me solve these problems

I want let the taskexecuter upload and unload different parameter in first and second round travel.

(For example: in first round travel upload and unload by assign to the label that I set,but when go to the next round travel upload and unload in different quantity by assign to the label that I set.)

(For example: in first round travel upload in queue1 for 14 boxes unload in sink1 for 10 boxes and then upload in queue2 for 14 boxes unload in sink2 for 8 boxes and so on,but when go to the next round travel upload in queue1 for 10 boxes unload in sink1 for 8 boxes and then upload in queue2 for 13 boxes unload in sink2 for 10 boxes and so on.)

Is that impossible?our-model.fsm

0 Likes 0 ·
our-model.fsm (54.6 KiB)