question

Jeff B avatar image
0 Likes"
Jeff B asked Cliff King answered

Push items to sink based on Label value ?

prcoessflow.fsm

What's the best way to push one item from my bottom trays queue to a sink every time the parts made label value reaches 30 ? every thirty parts made by my processor, I want to sink a single queue item.

Thanks

FlexSim 18.1.0
queue
prcoessflow.fsm (4.9 MiB)
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

·
Cliff King avatar image
0 Likes"
Cliff King answered

Your model looked unfinished so I didn't know where to put the logic, but normally if you are wanting to do something "every x parts", you will end up using the modulo operator (%) in a condition. Your conditional statement would look something like this based on every 30th part output by Processor1.

if (getoutput(model().find("Processor1")) % 30 == 29){
	//do something...
}
5 |100000

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

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.