question

Ale avatar image
1 Like"
Ale asked Raja Sekaran edited

Pull from list error

item-type.fsm

I'm trying to grab the same color boxes from queue2 to queue8. What I'm having issue is with the partition field in queue2 (flow tab). when I add the item.Type to the partition field the tokens are not pushed to the list anymore. How can I fix this?

FlexSim 17.2.1
list pull
item-type.fsm (113.8 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.

Kari Payton avatar image Kari Payton commented ·

@Ale i don't have full solution to your issues, but I noticed there isn't a Type label on the boxes in queue2 when I run the model. The boxes need a label before you can use it as a partition ID.

3 Likes 3 ·
Raja Sekaran avatar image
3 Likes"
Raja Sekaran answered Raja Sekaran edited

Hi, @Ale,

I have reattached the model with some changes in process flow activity. In the attached model, I have set label as "itemno" in the process flow then updated the label value based on the value of "itemnum" from the entering token. Check the quick properties for the labels associated with that token and process flow.

"itemno" >> label associated with the process flow.

"itemnum" >> label associated with entering the token.

itemtypev1.fsm

Thanks,


capture2.png (42.2 KiB)
itemtypev1.fsm (40.4 KiB)
· 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.

Ale avatar image Ale commented ·

Thank you so much!

1 Like 1 ·
Ale avatar image Ale Ale commented ·

@Raja Sekaran How did you get the value for the label below? did you used the sampler? and then just type the "Tool/ProcessFlow/ProcessFlow"?

Thanks!

0 Likes 0 ·
4hoks.png (27.1 KiB)
Raja Sekaran avatar image Raja Sekaran Ale commented ·

Used sampler to get the value for the label. "itemno" label is associated with processflow not with token. You can get this label value using sampler. Check the quick properties window (process flow).

1 Like 1 ·
Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Ale commented

@Ale

The problem is as @Kari Payton described. You do NOT have a label on the flowitem itself called Type. (see @Sam Stubbs answer). You have one on the token but not on the flowitem. I've modified your model (attached) with two changes that I've made. In the Create Object Process Flow object, I create a label on the created flowitem called Type using the Type that you already assigned to the token. That takes care of the problem in the Send To Port in Queue2. I changed that to item.Type.

The other problem after fixing that one that I noticed is that you were getting an error in the Move Object block where you are were using token.Color (I believe). But on the token there is no Color label. But I think you were just trying to use this label as the item. So I changed it to token.item rather than token.Color. It seems to work, at least it doesn't give any errors. So take a look at the model and see if it now works as you would like it to work.

If you have any questions or problems, please let us know.

Thanks.

item-type-jn1.fsm


item-type-jn1.fsm (115.1 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.

Ale avatar image Ale commented ·

@Jeff Nordgren Thanks for the model. The whole purpose is to grab from queue2 all the available boxes from the same type at once and drop them to the final queue. The label that I want to use is already defined in the schedule source (it determines what type of box it is) .

The model is still grabbing one box at a time and carrying the rest of the boxes with him as he loads and unloads the other items to the different queues.

0 Likes 0 ·
br01u.png (34.5 KiB)
igxll.png (23.4 KiB)
Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered Ale commented

Your problem is that your queue is pushing boxes to the list, not tokens. So you just add the item.Type to the partition ID in the push to list on your queue. Then you just need to make sure to add the Type label from your token to the box, so that it can be queried. So when you create the item in process flow, just make sure you add the Type label from your token to the box as well.

item-type-2.fsm


item-type-2.fsm (36.8 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.