Sign in to follow this  
Followers 0
Random23

clock byte location

4 posts in this topic

Anyone know the address for the clock?

Share this post


Link to post
Share on other sites
You don't need the addresses. Use the DATERD command to copy the real time clock into 7 data registers of your choice. Use DATEWR to copy it back if making changes.

Share this post


Link to post
Share on other sites
check SM410, 411, 412... if you are looking for "free running clock" bits any special bit or register is easily found in help of GX Developer.

Share this post


Link to post
Share on other sites
SD210 through SD213 are the clock locations, and are allocated in hexadecimal by bytes. SD210 upper YEAR (last 2 digits) SD210 lower MONTH SD211 upper DAY SD211 lower HOUR SD212 upper MINUTE SD212 lower SECOND SD213 upper YEAR (first 2 digits (19 or 20)) SD213 lower WEEKDAY (0-Sunday, 6-Saturday) But when using DATERD instruction, such as [ DATERD D100 ], the data is stored as seperate words in decimal, and the order is: D100 - Year (4 digits) D101 - Month D102 - Day D103 - Hours (24 hour mode) D104 - Minutes D105 - Seconds D106 - Day of Week (0-Sunday, 6-Saturday) If you wish to modify the clock, the format for DATEWR which updates the clock is the same as DATERD.
1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0