FlexScript exception. Label does not exist

FlexScript exception. Label does not exist

sara_w
Not applicable
164 Views
5 Replies
Message 1 of 6

FlexScript exception. Label does not exist

sara_w
Not applicable

[ FlexSim 18.1.2 ]

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

0 Likes
Accepted solutions (1)
165 Views
5 Replies
Replies (5)
Message 2 of 6

jose_antonio_mad
Not applicable
Accepted solution

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.

19273-solution.png

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.

Message 3 of 6

sara_w
Not applicable

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

19274-captura.jpg

0 Likes
Message 4 of 6

jose_antonio_mad
Not applicable

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
Message 5 of 6

sara_w
Not applicable

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
Message 6 of 6

jose_antonio_mad
Not applicable

Hello @Sara W,

Here you have some screenshots to help you.

19286-example-1.png

19287-example-2.png19289-example-3.png

In this link you have information about this function (It's old, but the idea is the same): https://www.flexsim.com/flextips-update-combiner-components-list/

In any case, I would recommend you the last version, there are many improvements since your version. If you don't have a license for the new version, you can contact with your local distributor (FlexSim Iberia): https://www.flexsim.com/contact/#Europe

I hope I have been helpful.