Sign in to follow this  
Followers 0
buzzmethru

Omron CPM1a Retentitive Timers

12 posts in this topic

RETAIN1.SWP Hi, Im wondering if any of you experts would be willing to help me a bit' with the following problems I'm having trying to get this right... I am trying to control two elements (home made desoldering tank) and I need to stop the timers (done via stats) and then then restart them from the point that they stopped... I have tried various instructions and, so far this is the closest I have come to getting it working. Unfortunatley (for me, and maybe you) I cannot seem to get 'timer#3' to retain the remaining value of 'timer#1'. It may be simple... maybe not... I may have it completly wrong... that's why Im here to ask for help from you guys... i have included an image file detailing what Im trying to do along with a very incomplete *.swp file . Hope you can help. Thanks in advance d

Share this post


Link to post
Share on other sites
Not sure that i understand well your points 4 and 5, but if so, i would advice you to, instead of timers, use 1 sec pulses (255.02) to increase or decrease a DM (INC or DEC instruction) then compare the value of that DM to the number you want. Edited by pfort

Share this post


Link to post
Share on other sites
Hi thanks for the reply... I don't think that I explained what I want to achieve clearly, so, I've tidied up the program a little bit. (still doesn't work tho) What I need is: Main SW will Start Timer 1 (5 minutes) IF Main SW drops out then Timer 1 will stop IF say 1 minute remains on Timer 1 THEN next time Main SW closes the remainder of the timer will complete with the remaining time only. END. I cannot seem to get the remainder of Timer 1 to stay in memory... and 'dump' to Timer 3. Hopefully a solution is available, it's getting quite frustrating... PS: I have tried your suggestion of using a pulse to read timer remainder when Main SW drops out. I've been unable to implement it correctly. Thanks. DELAY2.SWP Edited by buzzmethru

Share this post


Link to post
Share on other sites
I still dont understand very well but here is how i suggest to replace your timer with 1 sec clock pulses.

Share this post


Link to post
Share on other sites
MRP_3.SWP Hi Thanks for your reply and help... your program is a much more elegant way of doing things. However, I've already run into some issues trying to implement your suggestions... 1. The input at 000.01 (ON switch) will be on for several hours at a time. If DM0000 (or DM0001) increments above #9999 then the outputs shut off and the sequence starts again. This is not suitable... How can this be overcome? 2. The times need to be 5 minutes on the first 'timer' and 15 minutes on the second 'timer'. 3. The input at 000.02 (OFF switch) will swing from an on condition to a 'no connection' condition several times before making it back to a signal at 000.01. This is causing output relay (10.02) to come on and off through timer 1. What I want to happen is as soon as there is an input at 000.02, have the program do the following: a. Turn off output at 10.01 and begin a delay (5minutes) before turning off output 10.02. b. This can happen only once. Should not happen again until there has been an ON condition (000.01) I hope I have explained myself clearly enough. Thank you again for taking the time to help me. regards MRP_3.SWP

Share this post


Link to post
Share on other sites
MRP_4.SWP Hi, Thank you for your help and taking the time to point out my errors. I'm almost there now. I've included my latest attempt at trying to get this right. Below is where I'm struggling... It all seems to center around the run-on (delay off) routine I'm trying to get it right... Problem: If signal at 000.02 is removed then timer1 (TIM001) (Delay Off) doesn't complete. ie. Output 10.02 remains ON. If signal at 000.02 is activated then timer1 (TIM001) starts each time. This needs to happen only once. 000.01 ON: 5 minute delay and 10.00 comes on. (done) 15 minute delay and 10.02 comes on. (done) 000.01 OFF: No change to above conditions. (done) 000.02 ON: 10.00 goes off immediately. (done) <Problems begin below here> 10.02 goes off after 5 minute delay. Even if, say, 000.02 goes OFF the timer must continue to run it's course before 10.02 goes off. This can only happen once only. ie it can happen only once in between an ON signal at 000.01 . As I've said above I am having problems with the delay_off timer routine only now. Regards MRP_4.SWP

Share this post


Link to post
Share on other sites
It seem that you not only need help with timers, but with basic logic and structure. Maybe its my poor english, but i have difficult to figure out what you want to do. Here is how i see it, (correct me if i am wrong) and questions about things seem to be missing: 1: You want to start heater1 5 minutes after input 0.01 is ON. 2: You want that timer be cumulative in case the input 0.01 goes OFF before that 5 min. 3: After that 5 min you want to energize heater 1 (output 10.01) Question: Then, if the input 0.01 goes OFF, what do you want heater 1 to do? 4: 15 minutes after that 5 min you want to energize heater 2 (output 10.02) Question: At that moment do you want heater 1 to continue? 5: 5 minutes after the OFF signal (Input 0.02) you want to shut down heater 2 Question: If input 0.01 goes ON before the 5 min, what do you want to do? Your ON and OFF signals seem unusual to me. Your drawing say you have a DTST switch ( so impossible to have input 0.01 and input 0.02 at the same time) but from your explanations i understand that you could have both signals at the same time. Am i correct? Edited by pfort

Share this post


Link to post
Share on other sites
Hi, Thanks for the reply, here is my answers to your questions.. Thanks for taking the time to reply and your help so far Regards

Share this post


Link to post
Share on other sites
There is how i would do it, based from how i understud what you want to do. Some points were not clear so you will have to make some ajustments. You will notice i used counters instead of increment and compare DM's, i forgot to suggest this alternative the other day. HTRS.SWP Edited by pfort

Share this post


Link to post
Share on other sites
Hi pfort, Thanks very much for taking the time to help me with this... Your program is great, although it behaves the same as ' MRP_4.SWP' ... however it has given me a better understanding into some of the Omron commands available and how to (sucessfully) implement them. I have been running MRP_4.swp with a few tweaks as you quite rightly pointed out. It's almost complete... I'm going to use an external input to move contents of DM0000 and Dm0001 around , to balance out the 'duty' of both elements... thanks a lot Best regards bmt

Share this post


Link to post
Share on other sites
Hi buzzmethru, you are welcome!

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