Logix5000-Converting CurrentValue to LocalDateTime

FordTruckMan

Member
Join Date
Mar 2018
Location
USA
Posts
10
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.
 
Did you check AB site. There are lot of AddOn instructions for date and time.

Edit: Or the sample code library on the site also could help you
 
Do you need an actual day and time, or would x number of hours/min. until completion suffice?


Bubba.
 
Thanks for the replies everyone. I was able to find the process library on AB's site to download various AOIs. One of them is called T_ADD, and it will do the trick. It adds a given amount of time to a date/time value and outputs the resultant date/time value.
 

Similar Topics

Hey everyone. I have a project coming up where some Logix 5000 version 16 programs are getting jammed into new processors that will be Studio 5000...
Replies
3
Views
8,154
How can I convert an RSLogix5000 v19 program to a V20 program, i dont have a V19.0 firmware, is it possible? if yes how? hoping for your response.
Replies
2
Views
2,096
Hi, I tried to do it, I used "Traslate PLC-5/SLC 2.0" but i don´t know why it didn't work. the program get stuck in the step four "Processor...
Replies
4
Views
2,320
I need to take seconds and convert to mm:ss. Say i have a cycle that the operator of a machine wants to run for 125 seconds. He will enter 125...
Replies
3
Views
4,235
Can someone help...? In Logix5000, I am trying to convert float/real numbers to bcd. I used a TOD function to convert a binary to bcd. So if I...
Replies
3
Views
2,924
Back
Top Bottom