AB system clock

wdd0422

Member
Join Date
Nov 2003
Posts
100
I don't do much AB programming. (One of the few I guess) I'm using a Micro 1200. I did search here, the help files and the internet but did not find what I'm looking for. What I'd like to do is fire a output at a certain time each day. I usually do this with a compare instruction and the system clock. Can someone kindly give me an example of how this is done with AB?

Thanks in advance
 
Use EQU for hr, min, sec and then series them ahead of your OTE.

RTC:0.HR = Hour
RTC:0.MIN = MIN
RTC:0.SEC = SEC

(don't enter the = or anything after for the address)

Hope this helps get you where you need to be. I have a pic but its not hosted online.

This was done on a ML1100.

Kraken Fan #69
 
Last edited:
LOL I originally tried creating an set of EQU boxes that had 8:15 set in them and thats what the line "this will trigger your OTE at 8:15 was about. The forum didn't keep the formatting so I deleted it but left the line in by mistake. My bad.

Kraken Fan #69
 

Similar Topics

HEllo! Where do it setup the clock? Couldn´t find anything useful in General-->Time of day besides daylight saving time. And when i have set the...
Replies
9
Views
1,235
Hello everyone one. I'm using M340 with simulation mode (actually I still don't have the cpu to test the software). I've made a simple counter...
Replies
4
Views
488
I took an online course but don't remember covering this. How do I access the system clock in a compare instruction? I want to turn on an output...
Replies
1
Views
505
I am using a Studio 5000 with an Allen Bradley CompactLogix 1769-L24ER-QB1B controller. Im wondering how I can use the system clock to be able to...
Replies
10
Views
2,411
hello everyone, I'm trying to set the system clock on my plc for daylight savings time so the operator does not need to adjust himself twice a...
Replies
1
Views
2,410
Back
Top Bottom