question

Sara W avatar image
0 Likes"
Sara W asked José Antonio MD edited

FlexScript exception. Label does not exist

Hi everybody:

I need help about what is wrong of my Script. I want to pack several quantities of items into the pallet at the Combiner, and the quantity to pack is dependent on the itemtype on the entry.

The System Console warning me the following error:

time: 0.000000 exception: FlexScript exception: Label property Contenedor retrieved on /Combiner1/Product. Label does not exist. at MODEL:/Combiner1>variables/entrytrigger

Thank you.

modo-13.fsm

FlexSim 18.1.2
flexscripterror message
modo-13.fsm (63.4 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

·
José Antonio MD avatar image
2 Likes"
José Antonio MD answered José Antonio MD edited

Hello @Sara W,

Your problem is that the label "Contenedor" does not exist in the source "palet". The source "palet" is the input port 1 in your combiner and you run this code when something Entry in port 1, so that is the problem.

You can change the order of the input ports if this is the mistake, add the label in Source "palet", etc. Or you can try to use a GlobalTable and use the function Update Combiner Component List.

I hope I have been helpful.


solution.png (34.0 KiB)
· 4
5 |100000

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

Sara W avatar image Sara W commented ·

Hi José Antonio,

I have added a new label called "Contenedor" in the Source "palet" as you recommended me to do and it is working!

But the model does not working well at all, because I want something like: 1 pallet + N boxes of the the item "i" + 1 herramienta, not mixing items in the same palet. How can I can fix it? and how the function Update Combiner Component List works? I have never used this function before in the combiner.

And thank you.

modo-13.fsm

0 Likes 0 ·
modo-13.fsm (63.4 KiB)
captura.jpg (29.7 KiB)
José Antonio MD avatar image José Antonio MD Sara W commented ·

Hello,

The problem is that you don't select in any case an specific type of "pieza en bruto", so your combiner is selecting the first one.

Probably an easy solution for that is using more input ports and the Update Combiner Component List, I attached an example.

Basic you have to create a Global Table and according to the Type of the pallet (column) you select and specific quantity of the inputs (rows).

I hope I have been helpful.

sara-w.fsm

0 Likes 0 ·
sara-w.fsm (20.5 KiB)
Sara W avatar image Sara W José Antonio MD commented ·

Hi José,

There is an error caused by the version of FlexSim when I tried to open your file, perhaps yours is more advanced than my version (I have the FlexSim 18.1.2) , could you please send me some captures or images?

Your recommendation was very useful for me, thank you.

0 Likes 0 ·
Show more comments

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.