question

ksugai avatar image
0 Likes"
ksugai asked Jeanette F commented

Preemption while loading

In this model, TE1 starts loading at 0s (its Navigator is AGV Network). At 6s, loading is preempted by 0s Delay Task. At 10s, TE1 finishes loading and its Navigator is changed to A* Navigator. After that TE1 is given tasks to move to Queue2, 3, and 4.

When I run simulation, token on the left side stopps at "Move(Queue3)" and TE1 does not move to Queue4. In the tree task9 is "ACTIVE >>> Wait for Task."

It seems strange that "Trigger: OnLoad" occurs at 16:000000s.

(If "Set AGV Navigator" activity is eliminated and TE1's navigator is A* Navigator at the beginning of the simulation, TE1 moves to Queue4.)


Image.png

Image2.png

EventLog.png

preemption while loading.fsm

FlexSim 23.0.8
loadpreemptionnavigation
eventlog.png (380.5 KiB)
image.png (127.6 KiB)
image2.png (177.2 KiB)
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

You have exceptions at 6 seconds:

time: 6.000000 exception: Exception Caught in ObjectFunction250__project_library_FlexSimObject_behaviour_eventfunctions_OnTimerEvent object: /TE1 i: /TE1>variables/coordinatedtasks/ts2/task3 class: /TE1

It seems sensible to me that the load trigger fires at 16, since the task was abandoned at 6 seconds and takes 10 seconds. However this is inconsistent - since a delay task should remember how much of the delay task is remaining when preempted. A milestone task doesn't help in this case either.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Jason Lightfoot ♦ commented ·

I removed the code that sets the navigator in the process flow and set up the TE for each navigation method and ran the model (for AGV navigation I added CP with connections). This exception only occurs when TE is using the AGV navigator.

preemption-while-loading_1.fsm

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Jeanette F ♦♦ commented ·
The Dev team has been notified of this issue and they are working on it.
0 Likes 0 ·

1 Answer

·
ksugai avatar image
0 Likes"
ksugai answered

After I changed FlexSim version from 23.0.8 to 23.0.11, the phenomenon I reported has stopped. On the other hand, error messages are displayed at 6s. Please let me know the meaning and reason of the error.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

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.