slc 5/05 Julian Date

mollyputzer

Member
Join Date
Apr 2006
Location
Waldo Wi.
Posts
10
In my plant, all production requires a Julian date code. I am looking for logic that converts the built in calandar in a Julian date for data logging.

Thanks
 
mollyputzer said:
I need this in logix 500, I do not have the softwere for plc 5's
Thank you for the response

Sorry, my bad. I forget that not everyone that has Logix500 has Logix5. Here, I converted the PLC5 program file for you.

This is the same thing as what mgvol posted (adjusted for a SLC500), however, it also contains the look up table included in the technote file, which is essential for the calculation. Without the lookup table data the calculation won't work. The routine only needs to execute once a day.

This routine gives you the day of the year. Now technically, the Julian date changes at noon, not midnight. If you are using this convention then use a compare and a single shot to call the date subroutine only once at noon. If you are using a true Julian date then you need the number of days that have passed since Jan 1 4713 BCE. For that you can start with the Julian date of Jan 1 2006, which is 2453737, and add that as an offset and use a look up table for each years offset after that.
 
Last edited:

Similar Topics

Hi Guys, I trying to see if anyone has been able to get the Julian Date logic for the SLC family. I have found this thread ...
Replies
2
Views
5,500
Any of you guru's out there ever write logic for a Julian Date generator for a SLC-5/04 instruction set format. I need to send this via an ASCII...
Replies
2
Views
2,671
I’m attempting to send a temperature from a SLC-5/02 to an EZiMarquee display. The vendor said to use a MSG instruction to send the data to the...
Replies
1
Views
55
Hello all. I have a few SLCs in my plant and of late we've seen a weird issue: The system will be running normally and then randomly the outputs...
Replies
2
Views
69
I am working on setting up a Prosoft Datalogger model PLX51-DLplus-232. This unit will be collecting data from a SLC 5/05 on the DB9 port set to...
Replies
3
Views
93
Back
Top Bottom