question

Cody F avatar image
0 Likes"
Cody F asked Matthew Gillespie commented

Release tokens incrementally vs at once within a row of schedule source?

My desired schedule for running AGVs is as follows:

  1. 7:15am-11am they go from machine1 to main machine, needing an item created every 120s
  2. 11-11:15am downtime
  3. 11:15-3pm they go from machine2 to main machine, needing an item created every 120s
  4. 3pm-7pm downtime
  5. 7:15pm-11pm they go from machine1 to main machine, needing an item created every 120s
  6. 11-11:15pm downtime
  7. 11:15-3am they go from machine2 to main machine, needing an item created every 120s
  8. 3am-7:15am downtime

So for example: from 7:15am-11am I need ~112 total items created, but only 1 item can be created every 120s. I set the quantity of tokens to be created to 112, but that creates and releases all tokens at 7:15am. Can I have the timeframe 7:15-11am create a token every 120 seconds instead of releasing all tokens at 7:15am?

FlexSim 21.0.2
sourceflexsim 21.0.2source schedule
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

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Matthew Gillespie commented

@Cody F You should try using the Date Time Source with the Arrival Spacing set to Evenly Spaced

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

Cody F avatar image Cody F commented ·

@Matthew Gillespie Thank you, I was able to get the timing down properly with that but I am still struggling with something with the table now as it pertains to the label feature.

When I created the table in the Date Time Source, I added a label to each row so I can say if created at this time it gets a 1 and then created at a different time it gets a 2. I am looking at this label in a conditional decide to see what side of my process flow to send the token, which will then create an item in the correct conveyor and start my AGV cycle. However, after the first 3 tokens go properly in the process flow, the fourth token at ~7:20am somehow goes to the wrong side of the conditional decide. There shouldn't be an tokens going this way until 11:15am in the model. I can't figure out what I have wrong or need to add to fix this from happening. Can you offer some assistance please?

UploadModel.fsm

0 Likes 0 ·
uploadmodel.fsm (7.3 MiB)
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Cody F commented ·

@Cody F

The last row isn't working correctly because the end time is before the start time. You should split the last row into two different rows with one from 00:00 to 02:59 and one from 23:15 to 23:59, like this:

1 Like 1 ·
1620757984737.png (8.2 KiB)