Timer in hour

I'm not as fluent in CX as other PLCs, but I do have CX Programmer and have done a few Omron systems. Standard timers do not have hour time bases available and I'm pretty sure that there is not an hour timer FB available. You can use a standard timer and calculate hours however.

What exactly is it you are trying to do? Some of the Omron Guru's may be more helpful, but knowing what you are trying to do will be helpful in getting a solution for you.
 
I want to activate a coldwater machine that the thermocouple is scrap. It's a test before searching pieces.
 
Here is one way to do it on a CJ1 processor!
W1.0 turns on for one scan every hour.
You can use this bit as an input to a counter or just increment a word to your desired time value using [++ instruction].
 
Last edited:
Can i do that with a cqm1 processor? And i don't really understand the instructions you've taken to do that, can you explain more please? Thank you!
 
I am not familiar with the CQM1 processor.
It must have an internal PLC Date Clock for the program to work. From memory I believe the PLC memory cassette contains the clock function.

The program works as follows:-
Auxiliary word A352 is the DAY|HOUR value of the PLC clock in a CJ1 processor [AR17 in a CQM1]. This changes value ONCE per hour.

The second rung stores the last DAY|HOUR value in a word of memory [In this case W0].

When the DAY|HOUR of the PLC clock changes the first rung becomes true and triggers W1.0 for one scan.
 
This technique works in any processor, but of course the details of syntax and implementation vary.

Set up a timer for a one minute (60 second) pre-set with the required enabling logic. The output of the timer trips a counter, which then counts up every minute. Use the output of the timer to reset itself. This makes the timer zero out and begin timing another minute.

Set the counter pre-set to the number of minutes (hours x 60) requried. When the counter hits the preset time in minutes it will enable its output, and you are good to go.
 
I am not familiar with the CQM1 processor.
It must have an internal PLC Date Clock for the program to work. From memory I believe the PLC memory cassette contains the clock function.


the memory cassette does provide the RTC
 
This technique works in any processor, but of course the details of syntax and implementation vary.

Set up a timer for a one minute (60 second) pre-set with the required enabling logic. The output of the timer trips a counter, which then counts up every minute. Use the output of the timer to reset itself. This makes the timer zero out and begin timing another minute.

Set the counter pre-set to the number of minutes (hours x 60) requried. When the counter hits the preset time in minutes it will enable its output, and you are good to go.

Can you explain that by ladder logic?
 
Here it is in Allen Bradly logic. The preset for this example is 20 minutes. For five hours you would obviously set the preset to 300 minutes.

Note that timer T4:5 sets on one scan, and resets itself on the next scan. I suppose that may induce an error of a few milliseconds each cycle, but if your desired time base is hours that shouldn't matter much. I've use the same basic technique on AutomationDirect.com, A-B, GE, Modicon, and Siemens.
 
It just for fun that i would resolve this and it's not my way to make money i'm just a simple mechanics that i would upgrade my competence by practicing sometimes simple PLC's programs
 

Similar Topics

I am using a CompactLogix. I need to know whether it has been at least 24 hours since a certain event happened. I want to use the wallclock so the...
Replies
16
Views
4,655
Hello everyone, i have searched this forum and looked here for advice before but this time i wasn't able to find an exact answer for what i'm...
Replies
14
Views
10,414
Hi there, I have an SLC503 that I'd like to control an external contact with. Basically I'd like to assert my local contact on the 503 every 12...
Replies
14
Views
7,171
hello I have a system to program in which there are two HVAC's.Always one is standby and the other is running.The HVAC RUN command is given from...
Replies
4
Views
2,265
Need help a source code to make timer display into hour:min descending from a time of delay 1 sec base timer. Thanks
Replies
22
Views
5,909
Back
Top Bottom