question

Xu Chunqi avatar image
0 Likes"
Xu Chunqi asked Xu Chunqi commented

Contextdragconnection AGV and CP

accumulatedv1924.fsmHi, when I use contextdragconnection command to disconnect the first agv and it's currentCP, I hope the next agv will go on with it's task, but it didnot.

Once I wonder if it was because of the accumulated path , but when I turned it to non-accumulated path , it didnot work either.

Here is the demo, can you help me to solve this problem,thank you very much.

FlexSim 19.2.4
contextdragconnection agv
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

tannerp avatar image
0 Likes"
tannerp answered Xu Chunqi commented

Hi @Shiny Xu,

I took a look at your demo model. Thank you for uploading an example of your question.

The contextdragconnection code you are using works great with the function_s command when you're building a model, but you probably should not use this code when the model is running. The reason is that FlexSim runs by discrete events. What this means is that the objects don't move or evaluate their condition continuously. If they did, then TaskExecuter3 would look ahead and see that there is a space for him that just opened up after TaskExecuter2 was disconnected. But right now, there is nothing telling the other TaskExecuters or the AGV Network that TaskExecuter2 left the network and it needs to re-evaluate everything. Does that make sense?

In your model, you can have the other two TaskExecuters move after the first one is disconnected by accessing the active task sequence in TaskExecuter3 and destroying it, then sending a new task to TaskExecuter3. I have an example attached, but again, I do not recommend this.

My suggestion would be to create a parking spot for the AGV to move out of the way rather than disconnecting it entirely from the system.

Example: destroy-ts.fsm


destroy-ts.fsm (66.7 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.

Xu Chunqi avatar image Xu Chunqi commented ·

I understand, thank you for your anwser. I will try to give it a parking spot.

0 Likes 0 ·