question

Giada R avatar image
0 Likes"
Giada R asked Braydn T answered

Label assignment issue on token flow

Hi ,

I have created all of elements of the warehouse (using only the process flow) and now i want to insert boxes in racks. When i execute the model, it stops on the "assign label". I don't know how to correct. I have attached the model.

MODELLO con token di partenza.fsm

The error that appears is this:

time: 10.000000 exception: FlexScript exception: label rack1 doesn't exist on token id: 11 at MODEL:/Tools/ProcessFlow/ProcessFlow/Assign Labels>variables/assignTo

time: 10.000000 exception: Error: Invalid assign to reference at assign labels activity "Assign Labels" in "ProcessFlow"

time: 10.000000 exception: FlexScript exception: label Type doesn't exist on token id: 12 at MODEL:/Tools/ProcessFlow/ProcessFlow/Decide>variables/decision

time: 10.000000 exception: Exception caught in start() of activity "Create Object in Rack1" in "ProcessFlow". Continuing throw...

time: 10.000000 exception: Exception caught in Executive::processeventinlist(). Throwing.

time: 10.000000 exception: Exception caught in Executive::steptotime(). Throwing.

time: 10.000000 exception: Exception caught in Executive::tick(). Throwing.

time: 10.000000 exception: int runthemessageloop() #4

exception: Executive::instance.tick();

time: 10.000000 exception: int runthemessageloop() #6


In addiction i have created two global tables that rapresents the bays of racks (14 bays for 6 levels and 38 channels in the rack sx and 12 free bays for 6 levels and 38 channels in the rack dx) that are totally free. I Would like to know a way to update the cells of global tables that rapresent the bays when the racks receive the boxes. How can i do it? Have you some ideas?


Thank you to all!


FlexSim 19.2.4
flexsim 19.2.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.

1 Answer

·
Braydn T avatar image
0 Likes"
Braydn T answered Braydn T commented

@Giada R

The error is because your field has two items in it. You should separate them into the two upper pieces of process flow, or assign it to "token", because both tokens don't have both labels.

I have a question: what is the point of this decide? It doesn't have two branches, so it doesn't really do anything.

You can find documentation about writing to tables here: https://docs.flexsim.com/en/20.1/Reference/Tools/GlobalTables/



decide.png (4.6 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.

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.