Batch IDs
If you had a BatchID
going into a Historian tag, that BatchID
will either have a timestamp at the beginning of the batch or at the end of the batch. Different batch systems report the BatchID
as the batch is started, and other systems do not report the BatchID
until the batch is finished.
If your BatchID
is reported at the beginning of a batch, you would need to use the AfterTime option because you would want to include all data for a particular BatchID
after the time the BatchID was reported up until the next BatchID
was reported. If your BatchID
was being reported at the end of the batch, you would want to use the BeforeTime option because you would want to include all data for a particular Batch ID
before the time the Batch ID
was reported back to the previous BatchID
being reported.