how can i make connection that item arrives first should move to first processor and second to the next processor and further

how can i make connection that item arrives first should move to first processor and second to the next processor and further

gilbert_jerald
Not applicable
48 Views
13 Replies
Message 1 of 14

how can i make connection that item arrives first should move to first processor and second to the next processor and further

gilbert_jerald
Not applicable

three processor or connected in series to a conveyor , how can i make connection that item arrives first should move to first processor and second to the next processor and further hear i have attached a model in starting time the item moves correctly but as time process the item does not move as per the condition. johnson-pharamaceutical-new-model.fsm

Accepted solutions (1)
49 Views
13 Replies
Replies (13)
Message 2 of 14

matt_long
Not applicable
Accepted solution

Currently your model is using a duniform() distribution on your decision point to send it to a processor. This will randomly pick a processor. What you want to do is increment your output each time an item hits the decision point. The following code will produce the output: 1 2 3 1 2 3 1 2 3 etc.

outobject(current, (getinput(current) - 1) % nrop(current) + 1)
Message 3 of 14

joshua_dunn
Not applicable

Does the % in your code act like the fmod() command?

Message 4 of 14

Brandon_Peterson
Autodesk
Autodesk

Yes, you could use fmod() the following way with the above code:

outobject(current, fmod(getinput(current) - 1, nrop(current)) + 1)
img src="https://damassets.autodesk.net/content/dam/autodesk/logos/autodesk-logo-primary-rgbblack-small_forum.png" >

Brandon Peterson
Principal Technology Consultant
>
Message 5 of 14

matt_long
Not applicable

The % is an integer mod where the fmod() is for floating point numbers.

Message 6 of 14

Brandon_Peterson
Autodesk
Autodesk

Thanks for the clarification! Is there a symbol/character for a floating point mod?

img src="https://damassets.autodesk.net/content/dam/autodesk/logos/autodesk-logo-primary-rgbblack-small_forum.png" >

Brandon Peterson
Principal Technology Consultant
>
Message 7 of 14

gilbert_jerald
Not applicable

thank you for the reply sir . now my model is running sir can u please explain the meaning of the coding which you have done sir. i am from mechanical background i don't have any idea about the coding can u please explain it sir

0 Likes
Message 8 of 14

arunTTT2P
Explorer
Explorer

Dear Gilbert,

I think you may have to learn the basics of c++/ c programming. Give importance to control structures ( if-else, switch, loops) ,functions and syntax rules.

Regards,

Arun KR

Message 9 of 14

gilbert_jerald
Not applicable

i have added third processor as a back up ,where my first too processor have the capacity to handle 133% of incoming products , by this given data the ideal time of the first two machine should be less when compare to the third processor and the amount of work done should be more for the first two machine when compare the third processor ,for that what should be the changes to be done in my model or any coding want to be change if else please send me the coding that is to be change

0 Likes
Message 10 of 14

matt_long
Not applicable

My background is mechanical as well. As a start, take a look at the FlexSim User Manual under FlexSim Coding.There is a lot of information there that will get you started and teach you about mathematical operators, math functions, syntax in FlexSim and commands.

There are some great online courses you can take, some free, some you have to pay for. lynda.com has great tutorials if you want to get more in depth. Just be aware that only some things will cross over to FlexSim.

Message 11 of 14

jeff_nordgren
Not applicable

@gilbert jerald

Would the attached model fit your needs? What is does is send the flowitems from the conveyor to the next available processor in the order of Processor5, Processor6 and then Processor7 only if both of the first processors are busy. Is this what you are looking to do?

johnson-pharamaceutical-new-model.fsm

Message 12 of 14

joerg_vogel_HsH
Mentor
Mentor

@gilbert jerald

If you insert a jam control on the conveyor and use the converyor as a buffer, you can get the distribution you want. An extra control let items wait at an exit, when the process finish time is nearly reached. The decision point sends all items to exit 3. But the photo eyes control the allocation.

Message 13 of 14

joerg_vogel_HsH
Mentor
Mentor

😉 nice solution. @phil.bobo sorry, I must comment this, that way.

0 Likes
Message 14 of 14

jeff_nordgren
Not applicable

@gilbert jerald

Here is a model that I posted for essentially the same question/problem here. And here is the model:

johnson-pharamaceutical-new-model-jn2.fsm

This is very similar in results as @Jörg Vogel posted above. But still using DPs instead of PEs. His model shows Processor7 with 17.7% and my model is 10.5% processing. Not sure which one is more accurate. You will have to decide that. The essential difference between the models is that in my model, up to the very last DP, you can still send the flowtiem to one of the first two processors, if one of them is available. Thus the lower % processing number.