question

Alex Gf avatar image
0 Likes"
Alex Gf asked Alex Gf commented

count the number of times that a label of an item change during the simulation?

label-count.fsm

Im currently working on a Paint Shop simulation, one of the most important data to know with the simulation its the number of color changes during the day at the shop.

I crated a label with the name of "COLOR", and i want that on a certain point at the conveyor it counts the number of times that the label COLOR changes in the item.

example...

COLOR ______________ COUNT

RED ______________ 1

YELLOW______________ 2 (Different than RED)

YELLOW_____________ 2 (Same as yellow)

RED_________________ 3

BLUE________________ 4

Is that possible?

Thanks guys!!!

Choose One
labelsitemtype
label-count.fsm (17.0 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
0 Likes"
Jeff Nordgren answered Alex Gf commented

@Alex Gf,

Attached is your model with the changes that I've made. I'm not exactly sure what you are trying to keep track of so here is what I did.

I'm keeping track of the times that the paint color (itemtype) changes from the previous paint color (at the DP). I'm not keeping track of how many of each color there were, just the number of changes. I hope that is what you had in mind. If not, maybe this sample will give you a good idea on how you can modify it to fit your needs.

label-count-jn1.fsm


label-count-jn1.fsm (105.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.

Alex Gf avatar image Alex Gf commented ·

Thats exactly what I need, thank you so much!! @Jeff Nordgren

0 Likes 0 ·