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.