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


FlexSim 19.0.0
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.