FordTruckMan
Member
I am trying to determine a "projected completion date and time" for a batch process based on the process start time, and the total recipe time.
I am using logix 5000, v30.01 professional. Here is an example of the typical scenario: Customer starts batch at 11pm, runs for 26 hours and 35 minutes. During the batch, he wants to see the date and time the batch will complete on his PanelView. There are 4 batches that could be running per system, he wants to see which one will be ending next.
I got as far as using GSV CurrentValue of WallClockTime, and adding my recipe time(in microseconds) to that value, but I can't see to figure out how to convert that value back into a legible date and time. I have searched for epoch time conversions and haven't had any luck. Maybe I am not using the right terms? I am still a novice at this, any assistance would be greatly appreciated.
I am using logix 5000, v30.01 professional. Here is an example of the typical scenario: Customer starts batch at 11pm, runs for 26 hours and 35 minutes. During the batch, he wants to see the date and time the batch will complete on his PanelView. There are 4 batches that could be running per system, he wants to see which one will be ending next.
I got as far as using GSV CurrentValue of WallClockTime, and adding my recipe time(in microseconds) to that value, but I can't see to figure out how to convert that value back into a legible date and time. I have searched for epoch time conversions and haven't had any luck. Maybe I am not using the right terms? I am still a novice at this, any assistance would be greatly appreciated.