Cajmccormick
Member
Hi all,
I am currently working on a project where i need the to get the Julian date from the PLC (which i have now done). But now the customer wants the 3 digit Julian DAY, so what i was thinking logic wise, was for years to come i will compare the year to the Julian date # of the beginning of that year and then just subtract the current Julian date number from that beginning that year. That being said, is there an instruction in Studio 5000 that becomes true once there is a variance of 1 in the code? But continuously doing so. For example when 2018 changes to 2019, 365 days are added to the Julian date which is then compared with that years current date.
Thanks guys
I am currently working on a project where i need the to get the Julian date from the PLC (which i have now done). But now the customer wants the 3 digit Julian DAY, so what i was thinking logic wise, was for years to come i will compare the year to the Julian date # of the beginning of that year and then just subtract the current Julian date number from that beginning that year. That being said, is there an instruction in Studio 5000 that becomes true once there is a variance of 1 in the code? But continuously doing so. For example when 2018 changes to 2019, 365 days are added to the Julian date which is then compared with that years current date.
Thanks guys