question

Szymon M avatar image
0 Likes"
Szymon M asked Szymon M commented

Setting itemtype depending on the simulation time

Hello,

FlexSim version - 17.2.2

My goal is to determine item type (or label) depending on the simulation time. I attached an example model, where my goal is achieved but this solution does not satisfy me, because all logic is manually written in Custom Code (see yellow DP).

As you check my model, you will see that items have item type = 1 and they used right part of conveyors system. When time > 1000, yellow DP change item type to 2 and items used only left loop. After 200 time units yellow DP set item type 1 again. Whole procedure repeats for time > 2000 (and time > 2200).

My question is - how can I build model, that will change item type only in a specific time frame, which I would be able to determine in the easiest way? itemtypedeponsimtime.fsm

I mean something like functions used in MTBF MTTR logic (I tried to customize this functionality but I have no idea how to change it for my need.)

FlexSim (other - please specify)
FlexSim (other)
itemtypesimulation time
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

·
Joshua S avatar image
1 Like"
Joshua S answered Szymon M commented

Take a look at this model, I made all the changes in the code you had on your Decision Point.

16026-itemtypedeponsimtime.fsm


· 1
5 |100000

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

Szymon M avatar image Szymon M commented ·

Thank You!

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.