question

Proxima avatar image
0 Likes"
Proxima asked Jason Lightfoot commented

change slot labels & get slot labels quantity

Currently, I am attempting to create a tiered storage system. The existing Floor Storage is set up with class-specific slots using "paint slot labels." I have the following two questions:

  1. 1. Can I use the process flow to modify the labels of a specific slot at a particular time? This would allow me to free up a spot in a certain class when it becomes full and transfer items temporarily to the next tier. For example, when the storage space for Class A is full, and Class B still has an available spot, can I modify the label of that spot to temporarily accommodate Class A items in the Class B area?


  2. 2 .I have come up with an idea that would allow tiered storage to function without changing the slot configuration. This involves placing a staging area next to the Floor Storage where items can be temporarily held when storage slots are insufficient, awaiting slot availability. How can I obtain the remaining quantity of specific slot labels within the Floor Storage to manage this approach effectively?

  3. 地板_轉移數值.fsm

FlexSim 23.2.0
slot labels
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @Proxima, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Yes you can change the values of slot labels even if they are indexed (unlike item labels).

You can query the slots of the storage system using querySlots():


Storage.system.querySlots("WHERE slot.class=1")


· 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.

Proxima avatar image Proxima commented ·

how can I achieve this?( question 1 ) I've referred to the following resources, but I'm unable to accurately retrieve the currently available slots, which is preventing me from modifying the slots accurately.

  1. Paint Slot Labels by Code
  2. Problem with Slot Labels in Warehousing Module
0 Likes 0 ·
Proxima avatar image Proxima commented ·

I'm facing an issue with the command I'm using. I'm unable to effectively retrieve the quantity corresponding to the slot label. Below is the command I placed in the "Decide" activity. How can I make the necessary corrections? Are there any other examples available for reference?
Storage.system.findSlot("WHERE Slot.Class = $1 ", 0, token.Class) > 0

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Proxima commented ·

The syntax (and case) you need is:

Storage.system.querySlots("WHERE slot.class=$1 AND slot.slotItems.length=0",0,1).length

which will tell you how many slots of class 1 are free.

0 Likes 0 ·

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.