question

Artur K avatar image
0 Likes"
Artur K asked Artur K edited

Push/pull strategy for items on pallet

Hello, I am trying to use lists to simulate my model. I need to unload by the robot items from pallet (18 items) which comes onto Conveyor1 and load them singly onto new pallet on Conveyor 2. I 've got problem, because Robot loads every second box (starting from box no.2) not from the Conveyor1 but from the pallet on Conveyor2 (it takes box that has been recently loaded on the target pallet). Where I made a mistake or what should I add to get correct solution?

pushpullproblem.fsm

FlexSim 19.2.4
push and pull list
pushpullproblem.fsm (59.3 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.

tannerp avatar image
1 Like"
tannerp answered Artur K commented

Hi @Artur K,

I simplified your push logic in this model to just be a single bit of code in the Custom Code activity. Let me know if you have any questions about the highlighted portion I added:

As for the unloading logic, you can add in stop/start logic for the conveyor station with Custom Code activities similar to what you had in the other Process Flow. Adding those allowed the loading/unloading to be handled properly as you described. Hopefully this helps.

push-pull-problem-updated.fsm


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

Artur K avatar image Artur K commented ·

Hi @tanner.p,

evreything is clear for me, thanks a lot for your time and help!

0 Likes 0 ·
Regan Blackett avatar image
2 Likes"
Regan Blackett answered Artur K edited

I think all you would need to do to get your model working they way you want is to do the following three things:

1) change the push value from:

token.paleta.first

to

token.paleta.subnodes.toArray()

That will push all the boxes in the pallet to the list.

2) go to your list properties and add an expression field named 'Rank' that says:

value.rank

This will tell you where boxes are located within the pallet, lower ranks at the bottom of the pallet.

3) change your Pull from List Query to say:

ORDER BY Rank DESC

This will tell the robot to pull boxes starting from the top and working its way down. This will also allow you to eliminate the Decide activity in your process flow, as the token won't leave the Push to List activity until the pallet has it's last box pulled.

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

Artur K avatar image Artur K commented ·

Hi @Regan Blackett,

your solution also meets my expectations - thanks a lot!

I've just implemented your suggestions and my model works fine!

0 Likes 0 ·