Sign in to follow this  
Followers 0
308guru

Setting the time/date in FX1N

4 posts in this topic

I'd like to set the time & date in my FX1N so I can use it for some operations. I was looking at D8013-D8019 and they are not correct. How do I set the current time and date? Couldn't find any instruction in the programming manual. Thanks.

Share this post


Link to post
Share on other sites
You have to move the current time and values into D register D 8013 T0 D8019 EG - ! X0 !----------------------------------!------( M8015 ) !------[PLF M0 ] ----! M0 !---!------------------------{MOV K30 D8013 ] !------------------------[MOV K20 D8014 ] !------------------------[MOV K10 D8015 ] ETC This moves 10:20 : 30 into the time registers. IF you have the programming manual , these is an example in ( Assigning System Devices page 9-3 ) You can also use TWR ( FNC 167 ) found in section 14 in Applied Instructions Regards SONA

Share this post


Link to post
Share on other sites
Thanks for the help. Just did it and worked as expected.

Share this post


Link to post
Share on other sites
Actually there are functions predefined for this. In the manual, section 5.14 Real Time ClockControl - FNC 160 to FNC 169. See TRD (read realtime clock) and TWR (write to realtime clock).

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