Jump to content

Recommended Posts

Posted
This is probably more of a math problem than a PLC problem. I'm looking for an equation to calculate day of week. I will eventually convert it into PLC code, but first I need an equation that works. I have found 2 or 3 different equations on the internet, but after some testing I have found that certain dates do not work in all of then. I sure I'm not the first person to pursue this, so I'm figuring that someone already has an equation that actually works. I'm really only intrested in calculating from this day forward.
Posted
For AB also in SLC format there is a sample download in the Download Code section of MRPLC http://forums.mrplc.com/index.php?act=Downl...s&CODE=02&id=15 And for Omron also: http://forums.mrplc.com/index.php?act=Downl...&CODE=02&id=444
Posted
Who in their right mind would want to let their PLC know what day of the week it is? Its bad enough that the PLC knows what time it is. But if it knows what day it is then it will choose to break down at 4:40 PM on the Firday afternoon of a holiday weekend.
Posted
I will more than likely use this in both a SLC and L5K. I just now looked up the L5K sample, and have not had a chance to try it yet, However that sample is based on en equation I tried by hand and gave me an incorrect answer for 10/10/05??? I also just downloaded the sample from MrPLC and will check it out.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...