question

larkint8328 avatar image
0 Likes"
larkint8328 asked Carter Walch commented

group 4 items on conveyor

Hello,

I am making a model and the output of a saw sends 4 sheets out, the only issue is when they're put onto the conveyor there is this gap between them 1690214813155.png

I used a decision point to translate the boxes next to each other but I also want the second set to be right behind the first set is there a better way to go about doing this?

My assumption is because the items enter 1 at a time and one is moved forward that is the reason why this issue is occurring.

4items.fsm

FlexSim 23.1.2
conveyorseperatorgrouping
1690214813155.png (57.8 KiB)
4items.fsm (42.2 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

Carter Walch avatar image
0 Likes"
Carter Walch answered Carter Walch commented

Hi @larkint8328 ,

4items.fsm

By adding a couple if statements into the code of the DP triggers, you can specify the logic you want to get the items exactly where you want.

groupitems.gif

Note: Be cautious in doing this because the items are not actually grouped together, they are still in the order they arrived and will be processed in that order

The issue before was that we moved items 1 and 3 forward one unit, and 2 and 4 were moved up next to them. However, item 3 should have moved two units to be right behind item1. The if statements allow us to specify what to do for each object that arrives at DP1.

if (getinput(current)==4){
x += xsize(item);
}

...

if (getinput(current)==3){
x = xsize(item);
}



groupitems.gif (1.1 MiB)
4items.fsm (42.7 KiB)
· 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.

Carter Walch avatar image Carter Walch commented ·

Instead of editing the code in the triggers of Translate Item, you can have 4 separate translate item triggers (one for each item). This is demonstrated in this model:

4items.fsm

1690223374409.png1690223389951.png

0 Likes 0 ·
1690223374409.png (25.3 KiB)
1690223389951.png (26.3 KiB)
4items.fsm (42.7 KiB)