question

Liam Chiu avatar image
0 Likes"
Liam Chiu asked Andrew O commented

How to count the times of change painting nozzle?

I set a setup time in "color_A" as the wait time for changing colors (change painting nozzle), and I'm currently trying to count the times of change painting nozzle.

I would like to know how to set it up. I have attached a model of what I have.

Thank you for your advance.

1664772492672.png

2222.fsm

FlexSim 20.1.3
color changecountpaint
1664772492672.png (210.5 KiB)
2222.fsm (224.5 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.

Andrew O avatar image Andrew O commented ·

Hi @Liam Chiu, was Jacob W2's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jacob W2 avatar image
0 Likes"
Jacob W2 answered

Hi @Wei_cheng Chiu,

I have added the following code into the color_A processor in the model you shared. It will update a label called change on the processor everytime there is a changeover.

if (duration == case1) {
current.labels["Change"].value+=1;
}

I am also including the updated model for you to look at.

Nozzle change_JW.fsm


5 |100000

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