question

Caraiman C avatar image
0 Likes"
Caraiman C asked Tomasz MG answered

Hi! I would like to set a time for loading and unloading the operator.

Hi! I would like to set a time for loading and unloading the operator for a certain group of processors (pp-uri) and another time for loading and unloading for another group of processors (vp-uri, tp_1, cp_1). How could I do this on my simulation model? Thank you in advance for your help!

cercetare-ultim-3.fsm

FlexSim 19.0.0
operatorflexsim 19.0.0loading-unloading
5 |100000

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

Tomasz MG avatar image
1 Like"
Tomasz MG answered Alexandra D commented

Hi

You can create table with both times for each group of machines (row number = group).

1623745500092.png

Then put the labels on machines from which row they should take value.

1623745393843.png

Then before blocks load and unload in process flow put Custom Code with one of this line:

setvarnum(Model.find("Operator_P1"), "loadtime",Table("GlobalTable1")[token.machine.row_number][1]);
setvarnum(Model.find("Operator_P1"), "unloadtime",Table("GlobalTable1")[token.machine.row_number][2]);

So the value of label on the machine will be a row number of table

You can find it in operator tree in variables. Select it with sampler chose first option and change get for set

1623745881767.png

Good Luck :)




1623745393843.png (40.8 KiB)
1623745500092.png (7.4 KiB)
1623745740357.png (43.3 KiB)
1623745793229.png (43.3 KiB)
1623745856818.png (43.3 KiB)
1623745881767.png (43.3 KiB)
· 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.

Caraiman C avatar image Caraiman C commented ·
I tried to apply the steps you described, but I couldn't. Could you look at my loaded model now to see what I did wrong or what doesn't work? I don't have much experience. Please help me!
cercetare-ultim-3.fsm
0 Likes 0 ·
Alexandra D avatar image Alexandra D commented ·

I have the same problem. Could you be more explicit, please. I also don't have much experience with using software, but I try to learn.

0 Likes 0 ·
Tomasz MG avatar image
0 Likes"
Tomasz MG answered

Do this in the Custom Code block in Process Flow

1623835985223.png

But You need to have label row_number at every 3D Object from which you load or to which you unload



1623835823317.png (23.7 KiB)
1623835968127.png (17.2 KiB)
1623835985223.png (17.2 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.

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.