question

Yiyu C avatar image
0 Likes"
Yiyu C asked Yiyu C commented

the second load task in a task sequence didn't work

I want a task executer to move boxs from a place to three other places, so I created a task sequence which includes tasks like travel-load-travel-unload-travel-load-travel-unload-travel-load-travel-unload ,but when the task sequence go on to the second load task , it didn't work and remind me that the task is invalid. I checked the tree and find out that it failed to find something to load but I don't know how to fix it.

code.jpg

error.jpg

test.fsm


loadtasksequencetaskexecutor
code.jpg (72.8 KiB)
error.jpg (14.3 KiB)
test.fsm (26.2 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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Yiyu C commented

Your task sequence is telling the task executer to load the item which got previously unloaded to a sink and thus destroyed.

It looks like you want to have the task executer move all items from the first source (Source5) before moving on to the next. This can be done better by using preemption and task priority or a process flow.

· 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.

Thank a lot!!! I can realize one TE load from one place to other places now by using the output port properly. But actually , I want the task executer to, for example, TE1 load at source 1 unload at queue 1, then load at source 2 unload at queue 2; at the meantime, TE2 load at source 2 unload at queue 1, then load at source 1 unload at queue 2. And the execution order is important. Now I'm confused T~T

0 Likes 0 ·

Like I suggested, a synchornized task sequence like this can be done relatively easily in a process flow, by using 'Synchronize' activities that have the task executers wait for each other.

syncTasksProcessFlow_fm.fsm

https://docs.flexsim.com/en/19.0/Tutorials/TaskLogic/Tutorial2CoordinatedTasks/CoordinatedTasksOverview/CoordinatedTasksOverview.html

0 Likes 0 ·
Yiyu C avatar image Yiyu C Felix Möhlmann ·

Thanks!!!!!!!!!!!

0 Likes 0 ·

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.