question

Julio R avatar image
0 Likes"
Julio R asked tannerp commented

Positioning strategy for rack

Hello,

I have code a trigger to position the items inside a rack as if every bay was a queue. It works if the Place in Bay and Place in Level logic are First Avaliable, but it looks at the last item to position the next, so I need to be able to get the last item in the bay and level that the new item is going to. I want to use the same positioning logic with a random bay and level logic.

On the Entry Trigger I have this logic, and I only need to Change the first variable "lastitem" and it will work.

Is there a simple way to get that item?

acomodo-rack.fsm

FlexSim 18.2.0
rackposition item
acomodo-rack.fsm (17.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.

1 Answer

Jeff Nordgren avatar image
2 Likes"
Jeff Nordgren answered tannerp commented
@Julio R

I believe that this is what you are after?

In Rack1, I added a label to keep track of the last flowitem to enter the rack. Then I made a couple of minor fixes to your code in the OnEntry trigger and added an OnReset trigger to reset the label. Take a look at the model and see if this is what you had in mind. Let us know if you have any problems or questions.

Thanks.

acomodo-rack-jn1.fsm


acomodo-rack.gif (13.5 MiB)
· 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.

Julio R avatar image Julio R commented ·

Hello @Jeff Nordgren,

Thank you for your response, I don´t see any difference between what I did and this model, I guess you fixed something I didn´t notice.

My question was more about keeping this logic when we use a random bay if Available like in the next example, where I took your model and changed the positioning logic to a random bay and random level. To do this we only need to know the last item in the bay the item is going to be stacked so it gets the position of this item and not the last one of the whole rack.

rack-aleatorio.fsm

0 Likes 0 ·
rack-aleatorio.fsm (18.0 KiB)
Jeff Nordgren avatar image Jeff Nordgren Julio R commented ·

@Julio R

Attached is your model with the changes that I made. The code that I changed was in the OnEntry trigger of the rack. I deleted the label on the rack as it was no longer needed. I think that was pretty much it. Take a look at the model and see if it is now doing what you are wanting it to do.

Thanks.

rack-aleatorio-jn1.fsm

1 Like 1 ·
Julio R avatar image Julio R Jeff Nordgren commented ·

Thats exactlly what I needed! Thank you.

0 Likes 0 ·
Show more comments