question

Ömer Faruk Y avatar image
0 Likes"
Ömer Faruk Y asked Ömer Faruk Y commented

Different processing time for item type and priority, setup time for mold change

workplace(with setup time).fsmI have a worplace and 3 different flowitems.I have 2 different processing on Processor A and processor B.First, 2 flowitems (not high priority items) processing on processor A than processor B. But high priority flowitem only processing processor B. These flow items have different processing times for each processor.Type 1 flowitem's processing time normal(12,3) on Process A. Type 2 flowitem's processing time normal(24,3) on Processor A. Type 1 and type 2 flow items processing time triangular(5,15,8) on Processor B. Type 3 flow item processing time duniform(10,19).I did use global table. I did this processing time value but ı'm not sure and I cant set priority for Processor B.Also Process B have setup time for mold change and this setup time different for each flow items changing. This setup times; while the flow item changes from 1 to 2, normal(1, 0.2) // change from 1 to 3 normal(0.8,0.1) // change from 2 to 1 normal(1,0.2) // change from 2 to 3 normal(0.5,0.05) // change from to 3 to 1 normal (0.8,0.1) // change from 3 to 2 normal(0.5,0.05). How can ı express this times and priority on flexsim.

FlexSim 21.1.4
process timesetup timemold changepriorit
· 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.

Eric M avatar image Eric M commented ·

Hi @Ömer Faruk Y, was my answer helpful? If so, please click the red "Accept" button at the bottom of the 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 ·
Ömer Faruk Y avatar image Ömer Faruk Y Eric M commented ·

Thank you so much for answer.

1 Like 1 ·

1 Answer

·
Eric M avatar image
0 Likes"
Eric M answered

Processing Times

First, assign the columns containing the distributions to be of the type FlexScript (right click column, assign data > assign FlexScript data). Then insert your desired distributions for each type and processor. Now you can change the processor's Process Time property to By Global Table Lookup and insert the reference to the table.

This works fine, but you really want a different random number stream for each processor, so each processor's time is independent of the others. To do this, I referenced Matthew Gillespie's answer here which shows how you can make sure the random number stream is being generated using the processor the item is in. I followed suggestion 1. Now, the Processors will reference the GlobalTable and determine their process time based on the item type all while using their own random number stream.

_____________________________________

Setup Times

I created a new table called SetupTimes that you can insert your desired distributions for (note: you can follow the example in row 1, column 2 for the random number stream since this table is only referencing ProcessorB). I then created some process flow that will tell the processor what value in the table to look at for its setup time.

The process flow works by creating a token when an item enters ProcessorB. Labels are created on the token that reference the processor and the "toType" which is the label of the item entering. The token then looks at the "Variable: Last Item Type" and records that in the label "fromType." The token then fires the custom code. The code records the value of the table SetupTimes based on the labels fromType and toType on the token. It then sets the "SetupTime" property of the processor using that setup time. Finally, the leaving token sets the Variable to the leaving Type so the next token can reference this for the "fromType" label.

_____________________________________

Priority

I created a new label on the items called Priority that is 1 for the pink items and 0 for the other items. I then changed the Pull Strategy of ProcessorB to pull the maximum Label Value where it looks at the label item.Priority. This means that the processor will always check the incoming item's priority label and pull the highest one first.

I know this is a lot of information, so I would suggest changing the values in the table to things like 1 or 0 to get a good feel for what is going on before you set your distributions which will make it harder to see what's happening. Let me know if you have any questions!

workplacewith-setup-time-em.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.

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.