question

Sven E2 avatar image
0 Likes"
Sven E2 asked Sven E2 commented

Push Flowitems within Flowitem to List

pushtolisttoassemble.fsm

Hi,

I have a problem with my model. But I guess there is a smart solution I didn´t got so far. I want to push a flowitem (Box) inside another flowitem (tote) to a global list. What is the right push value to do this? For better understanding see the model I had attached.

FlexSim 18.0.3
global listflowitemsflowitems inside flowitems
· 4
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 tannerp commented ·

@Sven E2

If I understand correctly, you'd like to push the boxes and tote to a list as one unit.

I would recommend trying to push the flowitem that is carrying the other flowitems. In this case, the tote is carrying the boxes, so try pushing the value of the tote to the global list. If this works how I think it should, the boxes should move with the tote when the tote is referenced.

Let us know if this helps or if you have further questions.

0 Likes 0 ·
Sven E2 avatar image Sven E2 tannerp commented ·

It isn´t working in this way. I can push the tote. But after this there is just one entry on the list. I want to query a label from the boxes when I pull the items from the list. Is there another way without separate the boxes and the tote?

0 Likes 0 ·
Isaac Litster avatar image Isaac Litster commented ·

I'm not sure if I am understanding you correctly, but have you tried setting a label on exit for the Combiner_ComponentTwoInTote? This would create a label on the combined item. Is it after that combiner that you would like to push to a global list?

0 Likes 0 ·
Sven E2 avatar image Sven E2 Isaac Litster commented ·

I want to push the boxes when the tote (including the boxes) enters the BufferAssembly1 and BufferAssembly2. But for each buffer a separate global list.

1 Like 1 ·

1 Answer

tannerp avatar image
0 Likes"
tannerp answered Sven E2 commented

Okay, I understand your inquiry better. I'm trying to find the best solution. The following might be helpful.

If you'd only like to send an individual box from a tote to a list (in this example, I did it as if referencing the boxes in the totes on the BufferAssembly), reference the first box in the tote using the following code:

model().find("BufferAssembly1").subnodes[1].as(Object).subnodes[1]<br>

You can then reference the second box with this (and so on):

model().find("BufferAssembly1").subnodes[1].as(Object).subnodes[2]
· 4
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 tannerp commented ·

This is where you could reference the above.

0 Likes 0 ·
Sven E2 avatar image Sven E2 tannerp commented ·

pushtolisttoassemble-1.fsm

I tried it. It works well for the first box. But for the next it isn´t working.

// Attempt 1
return model().find("BufferAssembly1").subnodes[1].as(Object).subnodes[1];
return model().find("BufferAssembly1").subnodes[1].as(Object).subnodes[2];
return model().find("BufferAssembly1").subnodes[1].as(Object).subnodes[3];
return model().find("BufferAssembly1").subnodes[1].as(Object).subnodes[4];
// Attempt 2
return model().find("BufferAssembly1").subnodes[1].as(Object).subnodes[1]
&&model().find("BufferAssembly1").subnodes[1].as(Object).subnodes[2]
&&model().find("BufferAssembly1").subnodes[1].as(Object).subnodes[3]
&&model().find("BufferAssembly1").subnodes[1].as(Object).subnodes[4];

It works when I insert several push to list activity's as long as max. 3 boxes inside the tote.

0 Likes 0 ·
cfpb5.png (22.4 KiB)
tannerp avatar image tannerp Sven E2 commented ·

Glad it worked - at least partially. So because each box needs to be separately pushed to the list, I think it will be necessary for you to have multiple push and pull activities for each stage of process flow, just like what you've done. This will give you a chance to go in and update the logic for each one if anything you're modeling ever changes.

1 Like 1 ·
Sven E2 avatar image Sven E2 commented ·

@Tanner P

I´m glad, too. Now the model looks a bit messy (see the figure). In my real model I will have several assembly stations and the content of the tote varies from 1 to 12. If you get a smarter solution pleas let me know. But for now I´m happy, Thanks.

0 Likes 0 ·
abcwd.png (63.6 KiB)