question

yoni A avatar image
0 Likes"
yoni A asked Jeff Nordgren commented

changing color in coveyor station

I have a station in a conveyor that is painting in batches:

black 1900 units, Blue= 1800 untis, Red: 1350 units, Gray: 900 units

how do I tell the station to change from black to blue when it reaches 1900 units, and then to red after 11800 units and then to gray after 1350, and then come back to black after 900 units

FlexSim 18.2.2
color change
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
1 Like"
Jeff Nordgren answered Jeff Nordgren commented

@yoni A,

Attached is a sample model that does what you describe. The number of units changed (so the model doesn't run a long time) but you can change the number of units for each color in the Label tab of Station1. Would something like this work for you?

Thanks.

conveyor-station-color-change-jn1.fsm


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

yoni A avatar image yoni A commented ·

how would the label work when you have four conveyor stations in parallel, so all stations stop the black color when the total is reached by all four stations, and the same for the other colors @Jeff Nordgren

0 Likes 0 ·
yoni A avatar image yoni A yoni A commented ·

Hi jeff, thanks for the first reply, did you see that last comment, how to make it work when you have 4 processor in different conveyors @Jeff Nordgren robot-paint.png

0 Likes 0 ·
robot-paint.png (307.7 KiB)
Jeff Nordgren avatar image Jeff Nordgren yoni A commented ·
@yoni A

Sorry, I didn't see your previous comment.

Attached is my sample model with 4 more conveyors added. Instead of using labels on the Stations, I used Global Variables instead. I added the four Global Variables (Black, Blue, Red and Gray) then added code in the OnModelReset to reset the variables values. Then in each Station, in the OnEntry trigger, I call a User Command (ColorCheck) which keeps track of how many colors have been produced and what color the flowitem needs to be.

Would something like this work for your situation? If not, maybe you could share your model with what needs to happen.

Thanks.

conveyor-station-color-change-jn2.fsm

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.