question

jyoti G avatar image
0 Likes"
jyoti G asked David Seo answered

how to give priority order for different item types in processor

i have five item type coming in the queue now i want to give the priority that item should be processed in different manner that is item type 3 at first then item 1 then item 4 them item 5 then item 2.like this i have to give.i am attaching a simple model of three by three in the processor 2 item 3 should be processed first then item 1.how to give command in the processor. plz help me it will be very grateful.

sptmodel.fsm

FlexSim 7.7.4
priority
sptmodel.fsm (19.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

·
David Seo avatar image
0 Likes"
David Seo answered

The output sequence rule in default is FIFO.

You can sort the items OnEntry trigger for the purpose of sequencing the output not FIFO.

1) You can use a label like 'priority' instead of itemType and set the number in the 'priority' label in the item.

2) When onentry or gathering finish the items, sort on the 'priority' label in the items.

And then the items can be exit out of the queue in the sequence of the sorted order.

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.