question

Kevin-Hsiang avatar image
0 Likes"
Kevin-Hsiang asked Kevin-Hsiang commented

How to generate the lable value from 1 to 100 (must be non-repetitive)?

Hello,

In this model of FloorStorage Process1, I want to generate the non-repetitive integer lable from 1 to 100 to the FloorStorage.

This model is simulated the AGV carts to the specific rack, so the each rack have to be independence. The rack is generated by lable(named: Type) value.

Now I using the duniform(1, 100, getstream(activity)) to set lable value, but the lable value will be repetitive.

is there any smart way to do this operation?

kivasystem_one PickSta.fsm

1645191829316.png------

To go a step fuhrer, If the non-repetitve lable value can be generated to FloorStorage, is it could be assigned the lable value by sequence to FloorStorage.

The goal is below:

value-by-sequence.png

Hope that my question will help other FloWorks users as well.

Regards,

Kevin

FlexSim 22.0.0
create objectfloorstorageset lable
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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Kevin-Hsiang commented

You can use the "tokenIndex" value from the schedule source. When creating 324 tokens, the indexes will be numbered from 1 - 324, so you can directly use them as type value.

Then, to get them ordered into the floor storage, you can set it's Slot Assignment Strategy to "First Slot With Space". This means the floor storage will put the first item in the first storable slot, the second in the second and so on. Because the order of slots goes bay1/lvl1 -> bay1/lvl2 -> ... bay2/lvl1 ... they start in the lower left, count up in y-direction and then move to the next bay. This is rotated by 180 degrees compared to your picture, so you can either rotate the storage or (what I did in the attached model) assign the types in reverse order (325 - token.CreationRank).

Finally, I use the "On Slot Entry" trigger on the storage to write that value to a slot label when the items enters so you can reference find the correct slot to move the item back into after taking it out.

kivasystem-one-picksta_1.fsm


· 6
5 |100000

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

Kevin-Hsiang avatar image Kevin-Hsiang commented ·

I have tried your operation again, and explained easy to understand. It's very useful.

Thanks for help!

0 Likes 0 ·
Kevin-Hsiang avatar image Kevin-Hsiang commented ·

Excuse me,

About the model previously attached , some error happend. I'm trying to fixed and understand that, but it's can't work.

When I run model for more times, Sometimes this message up: "FloorStorage1No slot was assigned to item"

1645200773968.png

Is kiva process rule bug? or the slot is conflicted that no storage spaces to put item?

Maybe the model's process flow has a complicated problem, you can just tell me why.

thanks for help.

0 Likes 0 ·
1645200773968.png (1.3 MiB)
Felix Möhlmann avatar image Felix Möhlmann Kevin-Hsiang commented ·
Have you made changes to the model. I'm not getting any errors when running it. If so it would be good if you could re-upload the model. It's difficult to determine the cause of the error otherwise.
0 Likes 0 ·
Kevin-Hsiang avatar image Kevin-Hsiang Felix Möhlmann commented ·

Hello, I only change the value of global table(named: AssignedToRack), no errors at the first run, then I reset model to run more times, Sometimes this message up: "FloorStorage1No slot was assigned to item" like the photo below:

1645246971134.png


Here is the model

kivasystem-one-picksta-2.fsm

0 Likes 0 ·
Show more comments

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.