Setting MicroLogix 1400 real time clock

kolyur

Lifetime Supporting Member + Moderator
Join Date
Oct 2004
Location
Wooster, Ohio
Posts
1,602
I'm using the RTC in a MicroLogix 1400 and I want the operator to be able to set the date and time via an HMI (brand irrelevant). The HMI can't access RTC registers directly so I copy values to N7 registers first. When values are changed by HMI, I verify that they are within valid ranges, then copy back to RTC with CPW instruction. So far, so good.

Attempting to set a RTC value outside of the valid ranges will cause a CPU fault. The user manual claims that the RTC day-of-month value has a range of 1-31. In actuality, the range is equal to the number of days in the current month. This necessitated some extra logic to determine whether the valid date range is 28, 30, or 31 days. In addition, I have to do a leap year calculation in case February happens to have 29 days.

Everything works correctly but it wasn't near as simple as I had hoped. This PLC is part of a critical process and I can't afford the possibility of a CPU fault when someone's setting the clock. Am I missing something or is all of this necessary to allow the clock to be set externally?
 

Similar Topics

I see you can set the IP Address of the Micrologix through the LCD screen (nicely done Rockwell). Is there a way to set the IP through tags? I'd...
Replies
12
Views
9,734
Hi, Micrologix 1000 Dumb question but I can find the answer anywhere Taking the 24v DC power to the output side, can I set it to output 9v...
Replies
6
Views
1,471
Replies
1
Views
7,320
Hello I have a new Micrologix 1000 1761-L32AWA PLC and I have RSlogix 500 and RSlinx. I need step by step instructions to set up the system. I run...
Replies
6
Views
2,379
Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
27
Views
630
Back
Top Bottom