question

ShabDz avatar image
0 Likes"
ShabDz asked jing.c commented

Change conveyor color based on the number of items on that

How can I change the color of a conveyor based on the number of items on that? For instance, in the attached model, I want the conveyor color changed to red when it's carrying more than 4 items. I would appreciate any help.

conveyor-color.fsm

FlexSim 17.0.13
conveyor properties
111111.png (29.0 KiB)
conveyor-color.fsm (18.3 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

jing.c avatar image
4 Likes"
jing.c answered jing.c commented

hi @Amir About

You can change the node control the color of conveyor, and the path is MODEL:/Conveyor1>variables/localType/drawColor

I attached the modified model.

If the conveyor type is not "custom", you should find the node in MODEL:/ConveyorSystem>variables/conveyorTypes/ConveyorType1

conveyor-colorbychjv17.fsm


· 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.