You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old January 12th, 2006, 09:22 PM   #1
sheirj
Member
United States

sheirj is offline
 
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
  Reply With Quote
Old January 12th, 2006, 10:00 PM   #2
BobB
Lifetime Supporting Member
Australia

BobB is offline
 
BobB's Avatar
 
Join Date: Jun 2002
Location: Sydney
Posts: 4,177
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

  Reply With Quote
Old January 12th, 2006, 10:16 PM   #3
PhilipW
Member
New Zealand

PhilipW is offline
 
PhilipW's Avatar
 
Join Date: Dec 2002
Location: Wellington, New Zealand. Islands on the edge of the world.
Posts: 923
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.
  Reply With Quote
Old January 13th, 2006, 08:43 AM   #4
sheirj
Member
United States

sheirj is offline
 
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.
  Reply With Quote
Old January 13th, 2006, 09:14 AM   #5
Mickey
Lifetime Supporting Member
United States

Mickey is offline
 
Mickey's Avatar
 
Join Date: May 2003
Location: Palmdale,Ca
Posts: 9,870
See if this helps
S:39 is the status word for the day of the month
Attached Files
File Type: pdf 24_HR_RESET.pdf (11.3 KB, 65 views)
__________________
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
  Reply With Quote
Old January 13th, 2006, 09:14 AM   #6
Ron Beaufort
Lifetime Supporting Member
United States

Ron Beaufort is offline
 
Ron Beaufort's Avatar
 
Join Date: Jul 2002
Location: Charleston, SC
Posts: 5,320
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 ...
__________________

2-B ?
Best regards, ----+----] [----+------------( )----
Ron | |
PLC Training Boot Camp | 2-B |
+----]/[----+

I once was lost, but now am found, was blind, but now I see.


Last edited by Ron Beaufort; January 13th, 2006 at 09:22 AM.
  Reply With Quote
Old January 13th, 2006, 09:23 AM   #7
Mickey
Lifetime Supporting Member
United States

Mickey is offline
 
Mickey's Avatar
 
Join Date: May 2003
Location: Palmdale,Ca
Posts: 9,870
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
  Reply With Quote
Old January 13th, 2006, 09:35 AM   #8
Ron Beaufort
Lifetime Supporting Member
United States

Ron Beaufort is offline
 
Ron Beaufort's Avatar
 
Join Date: Jul 2002
Location: Charleston, SC
Posts: 5,320
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 ...
__________________

2-B ?
Best regards, ----+----] [----+------------( )----
Ron | |
PLC Training Boot Camp | 2-B |
+----]/[----+

I once was lost, but now am found, was blind, but now I see.

  Reply With Quote
Old January 13th, 2006, 09:41 AM   #9
Rube
Member
United States

Rube is offline
 
Rube's Avatar
 
Join Date: Sep 2003
Location: Fort Worth, Texas
Posts: 928
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.
  Reply With Quote
Old January 13th, 2006, 04:53 PM   #10
sheirj
Member
United States

sheirj is offline
 
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
  Reply With Quote
Old January 13th, 2006, 05:08 PM   #11
PhilipW
Member
New Zealand

PhilipW is offline
 
PhilipW's Avatar
 
Join Date: Dec 2002
Location: Wellington, New Zealand. Islands on the edge of the world.
Posts: 923
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.
  Reply With Quote
Old January 15th, 2006, 11:20 AM   #12
Rube
Member
United States

Rube is offline
 
Rube's Avatar
 
Join Date: Sep 2003
Location: Fort Worth, Texas
Posts: 928
Quote:
Originally Posted by Rube
In your reset rung, drop in an XIC B3/0. Then for one second at midnight the rung will go false, performing the reset.
I should have typed XIO B3/0.
__________________
Mark A. Crowley

Automation is not a corrective action for a lack of discipline.
  Reply With Quote
Old January 16th, 2006, 08:54 AM   #13
sheirj
Member
United States

sheirj is offline
 
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 08:57 AM.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
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 28th, 2005 11:27 PM
Programming RSLogix 500 for SLC 500 WallyPrestone LIVE PLC Questions And Answers 4 August 29th, 2005 07:30 AM
SLC 500 Pogram Disappear!! hhuong LIVE PLC Questions And Answers 7 February 2nd, 2005 07:03 PM
PLC 5 and SLC 500 Chakija LIVE PLC Questions And Answers 4 December 8th, 2004 09:51 AM


All times are GMT -5. The time now is 09:37 PM.


.