question

Sebastián Cañas avatar image
0 Likes"
Sebastián Cañas asked Sebastián Cañas commented

Problem using Global Table for process time

Flexscrip exception: Invalid row number: 4 in Global Table "Decor master" at MODEL:/Decoración 1>variables/cycletime

I'm trying to set up the process time of a processor for three products using a global table. It shows me this error and I haven't been able to fix it. Apparently there's something wrong with the way I created the table.

Could anyone help me?

actividad-p03.fsm

Thanks!

FlexSim 19.2.0
global table
actividad-p03.fsm (49.0 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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Sebastián Cañas commented

You're using item.Type as the row number when getting the value from the Decor master table. The item that enters the processor when the error happens has a Type label of 4. So since you're using item.Type and the Type label is 4 the code tries to get the value of the cell in the 4th row. However, your table only has 3 rows and so you get an error.

It looks like you renamed the row headers of the table to be "Row 4", "Row 5", and "Row 6". But, if you look up a table value using a number it doesn't use the row headers at all. My advice, (if you are never going to have item types 1-3) is to change your row value from item.Type to:

item.Type - 3

that way type 4 will look up the value in row 1.

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

Sebastián Cañas avatar image Sebastián Cañas commented ·

Thank you very much @Matthew Gillespie, I've just changed it and now it's working!

0 Likes 0 ·

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.