question

Rocio A avatar image
0 Likes"
Rocio A asked Jeanette F commented

Error in a Gravitatory Rack with process flow

Hello,

I have a model that has 4 cells. Each cell is made up of a RackKitPiezas, an RackKitVacio, a Combiner (really a queue), a Carrro (really a queue), a PalletVoluminoso and an RackSalida. A Kit goes into the RackKitPiezas. At that moment the operator takes the piece from the PalletVoluminoso and puts it in the Combiner. Afterwards, the operator goes to the RackKitPiezas and picks up the Kit and takes it to the Carro. There it takes the pieces that are in the Kit and puts them in the Combiner where I finally end up with the PalletVoluminoso piece (it simulates that I do a join as in a combiner).

The part is then processed and when it is finished the operator takes it to the RackSalida. Then he goes to the Carro and there he takes the Tote (Empty Kit) and takes it to RackKitVacio. But when this happens I get the following error:

time: 56.000000 exception: FlexScript exception: Array index out of bounds at MODEL:/Tools/ProcessFlow/Proceso/Assign Operario, Carro, Combiner, RackSalida y PalletVoluminoso>labels/2/2 at line 7

time: 56.000000 exception: FlexScript exception: Array index out of bounds at MODEL:/Tools/ProcessFlow/Proceso/Assign Operario, Carro, Combiner, RackSalida y PalletVoluminoso>labels/3/2 at line 7

time: 56.000000 exception: FlexScript exception: Array index out of bounds at MODEL:/Tools/ProcessFlow/Proceso/Assign Operario, Carro, Combiner, RackSalida y PalletVoluminoso>labels/4/2 at line 7

time: 56.000000 exception: FlexScript exception: Array index out of bounds at MODEL:/Tools/ProcessFlow/Proceso/Assign Operario, Carro, Combiner, RackSalida y PalletVoluminoso>labels/5/2 at line 7

time: 56.000000 exception: FlexScript exception: Array index out of bounds at MODEL:/Tools/ProcessFlow/Proceso/Assign Operario, Carro, Combiner, RackSalida y PalletVoluminoso>labels/6/2 at line 7

If instead of RackKitVacios which is a gravitational RacK I put a queue it doesn't give an error...so I understand that the error is in the way of connecting the RackKitPiezas and RackKitVacio.

Could you help me?

Thank you in advance.

I attach the file

Prueba.fsm

FlexSim 24.1.1
process flowrackscentralobjectsgravitatory rack
prueba.fsm (934.7 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.

Hi @Rocio A, was one of Rocio A's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Rocio A commented

outofbound-error.jpg

Token label "RackKitPiezas" has got a refference to "/RackKitVacio1". This object has got a unique centerport connection. So any other reference to a higher port number is causing an error out of bounds.


· 3
5 |100000

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

Rocio A avatar image Rocio A commented ·

Hello @Joerg Vogel ,


I don't understand what you're telling me. The token that is in Acquire resource has these labels...


1731482742711.pngin the RackKitPiezas label, /RackKitVacios1_4 does not appear.

Thank you in advance.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Rocio A commented ·

In the model you uploaded the group "RackKitPiezas" (which the Event-Triggered Source listens to) also contains the "RackKitVazio" objects. Those do not have the 5 centerport connections that the logic expects. Hence you are getting an "index out of bounds" error.

1731503101417.png

0 Likes 0 ·
1731503101417.png (7.8 KiB)
Rocio A avatar image Rocio A Felix Möhlmann commented ·
Thank You @Felix Möhlmann
0 Likes 0 ·