![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
![]() ![]() Join Date: Nov 2005
Location: Wisconsin
Posts: 52
|
twenty four hour reset slc 500
I am new to programming and my skills have accelerated greatly due to this website. Thanks for your responses.
Does anyone know if there is a command to reset at twenty four hour intervals in a slc 500. I need to reset totals at midnight every day. Thank you |
![]() |
![]() |
#2 |
Lifetime Supporting Member
|
If you have a SCADA system, use that for the reset (turn a bit on momentarily). It is also very easy to set the clock on a SCADA computer. If no SCADA, you can use the PLC internal time clock but would have to set the clock manually from time to time.
If you do not want to use the internal; time clock, you can use an internal pulse into a counter. There are others ways as well, particularly if the PLC has a long type of timer.
__________________
The Old Pfhaart ![]() |
![]() |
![]() |
#3 |
Member
|
Copy and paste this rung into your code:
NEQ S:39 N7:0 BST OTE B3:0/0 NXB MOV S:39 N7:0 BND N7:0 is simply any unused integer and b3/0 is the reset pulse, true for one scan.
__________________
Complacency is not an enduring condition. |
![]() |
![]() |
#4 |
Member
![]() ![]() Join Date: Nov 2005
Location: Wisconsin
Posts: 52
|
I'm sorry I just don't quite understand your message. Does this all go on one rung. Does B3/0 move S:39 to N7:0. What is the not equal for.
|
![]() |
![]() |
#5 |
Lifetime Supporting Member
|
See if this helps
S:39 is the status word for the day of the month
__________________
Mickey If you want happiness for an hour-take a nap. If you want happiness for a day-go fishing. If you want happiness for a month-getmarried. If you want happiness for a year-inherit a fortune. If you want happiness for a lifetime-help someone else. ----- Chinese Proverb |
![]() |
![]() |
#6 |
Lifetime Supporting Member
|
Greetings sheirj,
if you Copy-and-Paste PhillipW’s text string into a new rung, this is what you’ll get ... I added the comments to (hopefully) help you understand what's going on ... if you need more detail, please post again ... also ... you said that you have an SLC-500 ... both PhillipW and I are assuming (gosh I hate that word) that you have something a lot more powerful than that ... specifically, an SLC-500 does not have a realtime clock/calendar - so this approach would not work for you ... but ... I checked the other posts that you’ve made ... it looks like you’re working with an SLC-5/05 ... please try to be more specific in the future ... the model numbers DO make a difference ... one size solution does NOT fit all processors ... PS Edit ... rats! ... Mickey beat me - again ... but just by a hair ... both of our posts have the same time-stamp ... first time I've ever been that close before ... must type faster ... must type faster ...
__________________
Last edited by Ron Beaufort; January 13th, 2006 at 10:22 AM. |
![]() |
![]() |
#7 |
Lifetime Supporting Member
|
Ron,
You explained it for sheirj, I was going to let sheirj do that part. Typing is not my thing.
__________________
Mickey If you want happiness for an hour-take a nap. If you want happiness for a day-go fishing. If you want happiness for a month-getmarried. If you want happiness for a year-inherit a fortune. If you want happiness for a lifetime-help someone else. ----- Chinese Proverb |
![]() |
![]() |
#8 |
Lifetime Supporting Member
|
Greetings Mickey,
normally I don't do the "silver platter" explanation thing ... but some comments in sheirj's previous posts make me think that he's not a student looking for a free ride ... anyway ... back when I was in high school, typing was considered "women's work" ... a guy could get the daylights beat out of him in gym class for going near a typewriter ... now-a-days they call it "keyboarding" and even manly-men can do it without shame ... I'm getting better every day ...
__________________
|
![]() |
![]() |
#9 |
Member
|
Or another way:
SOR EQU S:40 0 EQU S:41 0 EQU S:42 0 OTE B3/0. In your reset rung, drop in an XIC B3/0. Then for one second at midnight the rung will go false, performing the reset.
__________________
Mark A. Crowley Automation is not a corrective action for a lack of discipline. |
![]() |
![]() |
#10 |
Member
![]() ![]() Join Date: Nov 2005
Location: Wisconsin
Posts: 52
|
Thanks again for all your help.
Ron, If you remember, you volunteered your help earlier on this same problem. I am trying to ascii read and write to a loss of weight controller. If you recall, I have to send a hex code to the controller. The maker of the controller doesn't know how to do it. i am getting closer all the time. The hex code starts with 3E31205456 etc. The way you write this is \3e\31\20\54\56 in a string file then hit enter. It will change to ascii. Now I am in controll...KOOL! No, I am not a student but I just graduated. I have less than one year to learn two water plants and greatly appreciate your help. Thanks again to all who replied. Soon I hope to be able to help someone else. Sheirj |
![]() |
![]() |
#11 |
Member
|
Sorry sheirj for not replying sooner....time zones way apart i guess.
Ron as usual has turned my somewhat brief reply into a master piece. ![]() If you see a line of code as I posted....all that you needed to do was copy it, then in RSLogix start a new blank rung, double click on the left-hand rung selector, which will open a text entry line box that you then just paste the code into. Hit enter and the ladder will be there for you.
__________________
Complacency is not an enduring condition. |
![]() |
![]() |
#12 | |
Member
|
Quote:
__________________
Mark A. Crowley Automation is not a corrective action for a lack of discipline. |
|
![]() |
![]() |
#13 |
Member
![]() ![]() Join Date: Nov 2005
Location: Wisconsin
Posts: 52
|
Thanks Philip,
I didn't know you could do that. Cool! Last edited by sheirj; January 16th, 2006 at 09:57 AM. |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SLC 500 and Panelview Communication | radarwolfe | LIVE PLC Questions And Answers | 6 | February 19th, 2016 09:53 PM |
A/b Slc 500 | Johnny Rotten | LIVE PLC Questions And Answers | 11 | September 29th, 2005 12:27 AM |
Programming RSLogix 500 for SLC 500 | WallyPrestone | LIVE PLC Questions And Answers | 4 | August 29th, 2005 08:30 AM |
SLC 500 Pogram Disappear!! | hhuong | LIVE PLC Questions And Answers | 7 | February 2nd, 2005 08:03 PM |
PLC 5 and SLC 500 | Chakija | LIVE PLC Questions And Answers | 4 | December 8th, 2004 10:51 AM |