Using the Real Time Clock in Micrologix 1400

gbradley

Lifetime Supporting Member
Join Date
Apr 2002
Location
Corona, Ca.
Posts
1,637
OK let me first explain how I am doing something and then you can tell me how I can do it better.
I move the current day, Month, Hour and Minute into a register
MOV RTC:0.DAY L9:6
MOV RTC:0.MON L9:7
MOV RTC:0.HR L9:8
MOV RTC:0.MIN L9:9
I move the current count to another register
MOV L9:0 L9:10

I want the HMI to show the last 20 Resets, so that it will look like
07 May 13:27 8,356
04 May 22:13 7,301
04 May 17:27 8,806
etc...
Where the data values are:
Day Month Hour Minute
attachment.php


This requires 4 numeric displays in the HMI for the date
Or is there one numeric value in the RTC that you can you can give to the HMI?
Sort of like in Excel where 41037 = 5/8/2012

ClockVals.jpg
 
I don't know if there's a 'one numeric value' location, but as far as populating your L registers...

Instead of MOV, I would think you can just use a copy (CPW), starting at RTC:0.YR, with a length of 4, to transfer the current date and time to L9:6 thru L9:9.

Haven't tried it, so I may be wrong... :confused:

🍻

-Eric
 
I don't know if there's a 'one numeric value' location, but as far as populating your L registers...

Instead of MOV, I would think you can just use a copy (CPW), starting at RTC:0.YR, with a length of 4, to transfer the current date and time to L9:6 thru L9:9.

Haven't tried it, so I may be wrong... :confused:

🍻

-Eric
That's what I'm talking about, I'll try that Copy on Monday, no Tuesday.
I'm going to the Beach on Monday. 🍻
 
I'm going to the Beach on Monday. 🍻

Nice!! I was done your way ( Norco) this morning, with an overcast the sweet smell
of dairy farms was a little strong for this desert rat.

ESL was my favorite panel builder when I did that sort of thing. If you use them say hello to Carol for me.
 

Similar Topics

Im using Omron CPM1A plc. is there a build in clock that i can call everytime i need to log a certain incident? If not can someone send me a...
Replies
3
Views
7,110
Hi all, I am currently working on my HNC project, for which I am designing a system for my place of work, which will reverse jet my silo filters...
Replies
4
Views
5,548
I would like to know how to program a AB micrologix 1500 LSB version C to control lighting contactors in a large complex using real time set...
Replies
5
Views
5,242
I'm writing some structured text that's handling a data structure that comes from a PC. The PC structure is in the "new" LREAL 64-bit floating...
Replies
3
Views
488
Hi fellow automation people, FactoryTalk View SE V13 Network I am trying to setup a generic popup trend where I can switch it between...
Replies
0
Views
183
Back
Top Bottom