question

georgia M2 avatar image
0 Likes"
georgia M2 asked Mischa Spelt commented

Source FlexScript Code

new-ideas-cv.fsm

Hey I'm pretty new to FlexSim and I have a question.

How can i make the source create items from an excel file, constantly and randomly?

Thank you,

Georgia

Choose One
flexscriptconveyorsystemsource code
new-ideas-cv.fsm (80.8 KiB)
· 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.

Sebastian Hemmann avatar image Sebastian Hemmann commented ·

Could you please explain more exactly what you are looking for and why?

0 Likes 0 ·

1 Answer

·
Mischa Spelt avatar image
0 Likes"
Mischa Spelt answered Mischa Spelt commented

Have you considered using the Arrival Table or Arrival Sequence options?

· 4
5 |100000

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

Mischa Spelt avatar image Mischa Spelt commented ·

Also, instead of having 6 "Send to item" actions on each decision point, you can replace them with a single condition of "item.Type <= 6" on the first one, "item.Type <= 12" on the second, etc.

0 Likes 0 ·
georgia M2 avatar image georgia M2 commented ·

thank you i will try that !

0 Likes 0 ·
georgia M2 avatar image georgia M2 commented ·

worked :) Thank you!!

is it possible to write an expression such as item.type >5 && item.type >2 for example ?

0 Likes 0 ·
Mischa Spelt avatar image Mischa Spelt georgia M2 commented ·

Sure @georgia M2, you can use the operators >, >=, < and <= for comparisons, and && and || for and and or. However, in this case that is not necessary because all items with types less then 6 will get sent off by the first decision point, so items arriving at the decision point are guaranteed to have item type at least 7. By the way, note that the the item type label is called item.Type (with a capital)

1 Like 1 ·

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.