
adccommunitymod (AutomationDirect) asked a question.
Setting date on DL05 with D0-01MC
Created Date: December 27,2013
Created By: smcmains
**** 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'm having problems setting the date from within the ladder. I have an HMI that I'm using to store the date into a v-memory location and a bit (C21) to set. The time is not a problem, I have it mastered but I cannot figure out the date. Please help.... Thanks, Steve
Created Date: December 28,2013
Created by: LWgreys
The module's memory overlaps the DL05 memory and becomes the default memory. So just write to the clock memory values directly.
On page 3-30 'system V-memory ' of the User Manual shows these memory locations of the clock and date:
V7766 Contains the number of seconds on the clock (00-59)
V7767 Contains the number of minutes on the clock (00-59)
V7770 Contains the number of hours on the clock (00-23)
V7771 Contains the day of the week (Mon., Tues., Wed., etc.)
V7772 Contains the day of the month (01, 02, etc.)
V7773 Contains the month (01 to 12)
V7774 Contains the year (00 to 99)
Created Date: December 28,2013
Created by: smcmains
Unfortunately those memory locations are read only.
Created Date: December 28,2013
Created by: bcarlton
In the DL05 manual find the DATE and TIME instructions (near the end of the manual - chapter 10 in the edition I have)
Note that the data presented to be written to the date or time registers IS NOT in the same format as those registers. In each of the instructions the data is packed into 4 bytes (two words). Each instruction shows the structure of the two words.
The instruction notes show using a constant but the data could be set up by manipulating data entered from a display. It will just take a little experimenting.
Created Date: December 31,2013
Created by: LWgreys
Your right about the Read Only memory. Didn't see it until the end of the manual in Chapter 10 after the Appendixes (PDF file Vol2).
Created Date: December 27,2013
Created by: smcmains
I'm having problems setting the date from within the ladder. I have an HMI that I'm using to store the date into a v-memory location and a bit (C21) to set. The time is not a problem, I have it mastered but I cannot figure out the date. Please help....
Thanks,
Steve