Jump to content

Recommended Posts

Good Afternoon

I have been scratching my head on this one for a while now, but havent solved it.

I understand the logic of what I want to do, but the code beats me


I need to send a 3 digit Julian Date from the PLC to a Serial device.

I understand how to send from the screen, thats the easy bit

However its he Math required to set the Julian date


I want the Julian Date to be visible on the screen, but not changeable (I know not to set as keyboard input )


The Julian date is simply the number of days that have elapsed this year


ie the difference between Jan 1 2014 and today, thats the math involved.

However on Jan 1 2015 it will be Julian date of 001....Has to change automatically

Thats the bit I cant figure out both the Math and the auto change


any suggestions?






Link to comment
Share on other sites

Hello Dave


Atached is a Visilogic example that I tested with a V350.

Today at 20-9-2014 it gives me a result of 263 into MI2 and if I understand you correctly that is what you want to accomplish?


The only thing that has to be taken care of is that the controller has the correct date and time and the logic will do the rest.


Hope it helps you?


Kind regards


Julian Date.vlp

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...