adccommunitymod (AutomationDirect) asked a question.

setting on / off times in plc using the rtc

Created Date: April 21,2009

Created By: milo11

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I was wondering if anybody has writen a program to use dl06 as a light timer over a month duration


  • adccommunitymod (AutomationDirect)

    Created Date: April 21,2009

    Created by: milldrone

    I was wondering if anybody has writen a program to use dl06 as a light timer over a month duration

    Kristjan H has given you some good advice.

    It is unclear to me if you want to use a "month " with the differing number of days in each month or if you want a specific number of hours That is longer than a month.

    Each is doable with the use of the proper Vmem.

    V7766 = number of seconds on the real time clock 0-59

    V7767 = number of minutes on the real time clock 0-59

    V7770 = number of hours on the real time clock 0-23

    V7771 = number of the day of the week 1 = Sunday

    V7772 = day of the month 01 - 31

    V7773 = number of the month 01 - 12

    V7774 = contains the year 00 - 99

    Oh and don't forget to set the PLC clock!

    Click on PLC, setup, calendar,

    If the time period is long enough and a power outage is a possibility and problem. Consider using some of the info on this thread over at PLCs.net

    http://www.plctalk.net/qanda/showthread.php?t=43960&highlight=rollover

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: April 21,2009

    Created by: milo11

    I was wondering if anybody has writen a program to use dl06 as a light timer over a month duration