clear-racks-manual-schedule-method.fsm@Robert Hambright
Here's an updated version of the model that takes into account your desired table structure. Because of the way the events for the arrival table appear to be created, I needed a way for all the arrivals with the same arrival time to be created all at once, otherwise it throws off the stuff I had done to clear the rack of the "old" items.
I'm reading your global table with all the arrival data and assigning labels for arrivalTime, Name, itemType, and Quantity. There is also a label called "row" that tracks what row in the global table I should read from.
The first decision that is being made is whether or not the next shipment to create is has the same arrival time as the previous shipment, if it is I don't want to take anytime waiting for the next arrival, if it's not I do a delay for the time before the next arrival (EG. waiting from the time zero arrivals to the time 1440 arrivals and so on).
Next I check to see if the transporter is busy, just like before.
Where the items are being created I loop the token back to the assign labels to move to the next row, but notice the "More Rows?" decision that basically says if I have been all the way through the table, set the row to zero and start again; thus making the schedule a repeating schedule. To make the repeating a little easier, I put an additional row in the table for time 10080 with a zero quantity so that the second lap around row 1 happens at time 10080 as well.