question

vincenzodm avatar image
0 Likes"
vincenzodm asked tannerp commented

Does anyone know how to enter the code that allows me to make this condition?

In source "Image1" it is not necessary to enter a fixed number in value, but a condition. I would like to insert 126 for the first six picking they do now (they simulate the first 6 days) and the value of 84 for the seventh picking (seventh day "Sunday"). Then after resume picking up 126 pallets. This for another six picking and then again 84 pallets later. and so on... Currently I am stuck because I can only picking 126 pallets. this always. Or find a different way to make this condition. Does anyone know how to do? thank you

Flexsim 16.0.1

image1.png

Other (please specify)
Other
conditional decide
5 |100000

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

Joshua S avatar image
0 Likes"
Joshua S answered tannerp rolled back

This is built for version 16, tokens will be created using your schedule, you can just copy the process flow activities and connect the start activity to where your process begins.

schedule.fsm


schedule.fsm (16.1 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.

Allister Wilson avatar image
0 Likes"
Allister Wilson answered vincenzodm commented

Maybe you could simply add a row to your schedule for each day of the week then set the schedule to repeat.

In this case, no need for any conditions, you can just set a different pick count for each day of the week.

In the below screenshot I used the days command to convert a given number of days into whatever model time unit you're using.

Also note the last line which creates no token, it marks the end of the schedule to make it repeat every 7 days.


· 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 ·

Hi @Allister Wilson the solution seems to be quite smart. But since the model (that was shared after your answer) is in FlexSim 16.0 the option to add labels in the Arrival table was not available. I think this is the reason why it is not working for @VINCENZO DM ;-)

1 Like 1 ·
Sebastian Hemmann avatar image
0 Likes"
Sebastian Hemmann answered Ben Wilson commented

Hi,

did you try to write (build) a counter that routs your tokens, depending on the number they have to different "Assign Label" activitys?

I´m quite sure it would be little more to Programm, if you want to do it in the Codeline you show in your picture. ;)

5 |100000

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