question

mhf423 avatar image
0 Likes"
mhf423 asked Paula LG edited

Exception Errors in FlexScript

Hi everyone,


I have a model and it seems like everything is working, however, there seems to be some exceptions in the Flexscript.

I have tried debugging it for quite some time but I can't fix it.

sample.fsm


Any help is much appreciated! :)

FlexSim 24.1.0
flexscriptflexsim24
sample.fsm (63.5 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

Paula LG avatar image
0 Likes"
Paula LG answered Paula LG edited

Hi,

The issue you're facing is that all your items have a label named "Seq" that has a value of 0. That label is used by CNC_Machine to determine the process time, so every time an item enters the processor you get an exception telling you that there's no row number zero on the table you're trying to read the process time from.

Since the process time can't be calculated, your items are processed a total of zero seconds and stay on the processor only until the next operator can load them and bring them to the sink.

I hope it helps!

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

mhf423 avatar image mhf423 commented ·

Thanks for your reply! When I tried changing the sequence to 1, it gets stuck.

1737635464121.png

Could you help me resolve this sequence issue?

sample.fsm



0 Likes 0 ·
1737635464121.png (94.3 KiB)
sample.fsm (57.4 KiB)
Paula LG avatar image Paula LG mhf423 commented ·

What do you mean by it gets stuck? I tried running the updated model you attached and found no issues.

0 Likes 0 ·
mhf423 avatar image mhf423 Paula LG commented ·
Apologies. For some reason, the operators were not moving when I tried running it yesterday
0 Likes 0 ·
Show more comments