question

Daniele S avatar image
0 Likes"
Daniele S asked Kari Payton commented

Set color by case

Hello,

How can I set the color of an part?

I have a processor and I would change the color of the part (on exit of the processor) according to a percentage. Red for the 95% of components, Orange for the remaining 5%. So I want assign a label to that object according to the color because, at the end, I have to perform a separation.

Thanks for the support

Daniele

simulation-model-with-batches-color.fsm

FlexSim 17.0.12
label assignmentcolor changecolor
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
0 Likes"
Kari Payton answered Kari Payton commented

@Daniele S change the value on your "Set Color by Case" trigger to item.Type.


set-color-by-case.png (314.8 KiB)
· 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.

Daniele S avatar image Daniele S commented ·

thank you :)

But the question is a bit different.

In this way I have changed only the color, and no kind of label had been assigned to the object.

For example: Suppose that now I have two processors; one for the polishing and a second one for the washing operation. Each process has a fixed percentage of wastes (which is known). Each waste exits from the processor with a different color with respect a ''good'' component. Red is the color I choose for wastes from the first machine (Cerclage) and Acqua for the second one (Lessiviel).

Whenever a component enters inside the second machine, its color is changed. So, at the end, on the final batch, I will never find a red component. This happens because, if it was red, its color is changed in yellow or Acqua.

How can I solve this problem?

simulation-model-with-batches-4-12m03.fsm

0 Likes 0 ·
Kari Payton avatar image Kari Payton Daniele S commented ·

So you want to keep the red ones from changing? I don't understand the issue.

0 Likes 0 ·
Daniele S avatar image Daniele S Kari Payton commented ·

I want to keep the red color.

Briefly: I want to see the damaged component during the entire process.

If the component is damaged at the first station, it is colored with red (because I choose the red color for the first station). If another process damages the same component, i will change its color (according to the color I of that workstation). If the component is not damaged, it does not change color

0 Likes 0 ·
Show more comments
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

You can assign instead of a single label value an array. Each time you change the value of a color, you add a value to the array in front of the array. At the end of the process you evaluate the array.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Daniele S avatar image Daniele S commented ·

Could you give an example (with Flexsim)

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel commented ·

Here is a sample. Please look into the triggers of the objects.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.