Sign in to follow this  
Followers 0
Conor

RTC MicroLogix 1100 Series B

9 posts in this topic

Hi guys, I was just trying to use the RTC function to monitor the watchdog on a Micrologix 1100. I have but in the following, but it won't verify. XIC RTC:0.SEC TON T4:0 1.0 5 0 What am I doing wrong? Thanks, Conor

Share this post


Link to post
Share on other sites
XIC is a bit instruction while RTC:0.SEC is a word. If this is incorrect someone will be along to fix me. Hope this helps

Share this post


Link to post
Share on other sites
RTFM Thanks Bob. Ok, if this is word can some explain how I would be able to monitor the whole word to see if its value is changing every second, please Edited by Conor

Share this post


Link to post
Share on other sites
use a comparative instruction (EQU, NEQ, GRT, GEQ, LES, LEQ)

Share this post


Link to post
Share on other sites
I think I remember something about the Micrologix RTC's second value only updating every 2 seconds.

Share this post


Link to post
Share on other sites
You're right, update is 2 sec. For get a one second update you could use STI interrupt. Set interrupt at 1 sec. For your application, I can suggest you to reset the timer in STI routine (RES T4:0) and put your timer in continuous routine Lad2 by default (T4:0 1.0 5). That it, the timer sould never reach the DN bit because is reseted at 1 sec rate. Wish I help

Share this post


Link to post
Share on other sites
Thanks slcman, just tried that out and it is exactly what I was looking for

Share this post


Link to post
Share on other sites
Just wondering if you could post your working example. Thanks

Share this post


Link to post
Share on other sites
Hi mhowasso, See attachment. I changed the time base on T4:0 to milliseconds just so I could see the timer getting reset Conor DCCFLOWS.RSS Edited by Conor
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