question

Mehdi avatar image
0 Likes"
Mehdi asked Jeanette F commented

Can't do multiple sequences on a loading scheme

Hello,


I have a problem with my flexsim model when it comes to Queue1, as you can see in my process flow, I want to load every single piece that's found there.

It successfully loads the first one, but when it comes to the ones after I get this error :
1706635720894.png

This is my load sequence :
1706635783194.png

And this is my wait for event when the piece comes to Queue1:

1706635827994.png

Thanks in advance.

FlexSim_Bug.fsm

FlexSim 23.2.1
agvloadqueuesagv load
1706635720894.png (9.6 KiB)
1706635783194.png (10.9 KiB)
1706635827994.png (10.8 KiB)
flexsim-bug.fsm (260.2 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Mehdi, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

The token loops back to the travel activity without getting a new item "Ass1". The previous item has since been joined with another item on the combiner and does not exist anymore.

There are also many other compiler and runtime errors (mostly about missing labels) that you should fix.

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

Mehdi avatar image Mehdi commented ·

After further investigation I've arrived to the same conclusion, however I have no idea how to fix this.

I tried assigning the item that joins the queue the second my agv picks up the one before to Ass1 but this leads to depositing that one in the queue.

For the compiler and runtime errors, I have no idea where it comes from and how do I even start to fix them but as long as my program is running it is not bothering me.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Mehdi commented ·

Lists can help a lot with connecting the 3d model to a Process Flow. Have the queue push all entering items to a global list (there is an option for that in "Send to Port"). Then the token does not wait for an item to enter the queue but instead pulls an item from the list every time. Then do this as well for all the other item types too. (Instead of multiple lists you can use partitions.)

flexsim-bug_1.fsm

The errors should bother you though. Just because it looks as thoug the model is still working, the errors might lead to wrong behaviour that is not obvious at first glance. Leaving unresolved errors in your (unless you exactly know that they happen due to a bug in the program and do not harm your model) is never a good idea.

Once you learn how to read the error message, they become quite easy to fix in most cases.

1706698491218.png

This tells you that something is wrong on line 10 of the entry trigger code of Queue1. Looking at the trigger, one can notice that the label name "ASS1" was entered without quotation marks, so the complier interprets this as a variable (that does not exist) instead of a string.

1706698616322.png

All of these tell you that the labels "Besoin_10" or "Besoin_11" were not present on pallets when the "Send to Port" option of the object "_" was evaluated.

0 Likes 0 ·
1706698491218.png (8.6 KiB)
1706698616322.png (28.0 KiB)
flexsim-bug-1.fsm (208.9 KiB)