question

Jia W avatar image
0 Likes"
Jia W asked Jason Lightfoot commented

How to make the Transporter go to random connect racks to collect goods?

Proto.fsm

I wanted to ask if there is a way to make the transporter to collect random amount of good from different racks that are being connected and put it at the queue

FlexSim 20.1.3
flexsim 20.1.3warehouse
proto.fsm (209.5 KiB)
proto.fsm (209.5 KiB)
· 7
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

There is a method called findItem in storage system. It uses SQL clauses. There you can set a RANDOM clause. That will choose randomly from all matching attributes an item to collect it from the system. You need only create a loop in a logic. The repeating steps are randomly which defines the amount.

Or you get an array of all matching items of the system by queryItems. You choose from this array an random amount of items to collect them from the racks.

Each of those items stores the data of rack object, metrics of slot address and location. You can use these to build individual tasksequences.

1 Like 1 ·
Jia W avatar image Jia W Joerg Vogel commented ·

May i know where can i find the storage system ? i am very new to this application hence i have no clue on where the settings are at

0 Likes 0 ·
Steven Hamoen avatar image Steven Hamoen Jia W commented ·

@Jia W Or if you mean the storage system object. That can be found in the Toolbox and is automatically created if you drag in a rack

1 Like 1 ·
storagesystem.png (22.5 KiB)
Show more comments
Show more comments
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot edited

The easiest way is to use a process flow like this:

The assign labels has options for warehousing to allow you to find an item in a slot (slot item) across the whole storage system space - and so you can just choose to ORDER BY RAND() in the sql field.

the other labels are to set a destination and find the actual item to pick up (it's not the same as the storage slot item -even though they represent the same thing ).

I've attached a demonstration to your model.

proto_jl_corrected.fsm



1611589195932.png (13.4 KiB)
1611589305243.png (14.6 KiB)
1611589320835.png (12.6 KiB)
1611846818537.png (14.8 KiB)
1611846933760.png (12.7 KiB)
1611846964634.png (18.6 KiB)
· 5
5 |100000

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

Jia W avatar image Jia W commented ·

Alright i will try to make an example and see if it works

0 Likes 0 ·
Jia W avatar image Jia W commented ·

is there a way to repeat the process ?


0 Likes 0 ·
Jia W avatar image Jia W commented ·

After testing out the transporter is still not going to random racks to collect the boxes. Is there a way to make the transporter collecting a number of boxes ( e.g. 10 items from random racks before going to queue ) Testing.fsm

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Jia W commented ·

You've started a new question for this here but don't seem to have used this answer.

0 Likes 0 ·
Jia W avatar image Jia W Jason Lightfoot ♦ commented ·

i've tried to recreate it however it does not collect randomly from the 3 racks that i set from a testing model

Testing.fsm

0 Likes 0 ·
testing.fsm (57.1 KiB)
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Jason Lightfoot commented

Ok, there seems to be a mismatch with the clause. Here is the right clause

ORDER BY RAND()

Then there is a problem, that the Process Flow is not relevant for your model at all, because you still use Fixed Resource mechanisms to transport items. I attached a repaired version.

Then there are some upper case and lower case errors in spelling of labels at the token.

And Sometimes it is necessary to let the transport travel to an object, that is holding the slot where the item to carry stays.

Repaired_transport_by_random_item.fsm


· 7
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Thanks Jorg, not sure from where I picked up the incorrect keyword.

0 Likes 0 ·
Jia W avatar image Jia W commented ·

Hello i don't get the setting that you have changed perhaps you could attached a picture bellow

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Jia W commented ·

Hi, Jason had done this already in his answer. Second picture: The clause for Query 1 is new.

1 Like 1 ·
Jia W avatar image Jia W Joerg Vogel commented ·

so i have to follow the process flow mapping even though i have a fix sources?

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.