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 - Interactive Q & A > - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Thread Tools Display Modes
Old December 28th, 2017, 11:44 AM   #1
United States

argetsad is offline
Join Date: Jun 2017
Location: Michigan
Posts: 1
AOI Help RS LOGIX 5000 - Bit On during certain hours

I'm looking for an AOI that I can import 2 different times (let's say 1:00 AM and 4:00 PM (12 hour format)). If the current time is between these two times then it turns on a bit, if not the bit is off. So the heater is active at 1AM and not active after 4PM for that day of the week only. The next day might be active from 5pm to 7 pm. The following day different again.

I am creating a 7 day Setup for a water heater. The heater needs to be active between hours X and Y and the heater element is on when the temp is lower than the max value. I know I could use some logic to do this but I'm looking for a cleaner approach.

I'm using RSLOGIX5000, 1769-L30ER, ver 24.01, and an automation direct HMI Cmore Ver 6.31

Thanks ahead of time.
  Reply With Quote
Old December 28th, 2017, 02:45 PM   #2
United Kingdom

Aardwizz is offline
Aardwizz's Avatar
Join Date: Dec 2017
Location: Swindon
Posts: 37
Sometimes "some logic" IS the cleaner approach. If you are only going to use this AOI once to drive your one heater (but moving different times into it on different days, then you might as well just code the function. AOIs are best for reusable code.

Let's imagine this mythical AOI you're looking for:
- "1:00 AM" is a string. Are you planning on passing a string to the AOI and then parsing it out? Unlikely. That means that you'll have an Starting_HH input, Starting_MM, and Starting_PM (Bool). Same with Ending_HH, etc. The way you write you HMI interface to this will be how the PLC data will be.

- For outputs, do you just need a "BETWEEN" bit?

- For the logic, what if the Ending < Starting (i.e, Start at 11:00 PM, End at 1:00 AM)? Does the logic allow that or not?

With this, you can write your own AOI faster than it'll take to wait around for someone to hand it to. If AOI is where you want to go, which I doubt.
  Reply With Quote
Old January 5th, 2018, 01:30 PM   #3
Supporting Member

saultgeorge is offline
Join Date: Jul 2015
Location: Windsor
Posts: 48
I would write the routine for operating the water heater, and use the clock in the controller. You could then enter the start time and stop time into your routine from your HMI , and when the time equals say the start time, then use a one shot to start and then the same with stop.
Oakland County:HOME of Automation Alley
  Reply With Quote
Old January 5th, 2018, 01:46 PM   #4
Supporting Member
United Kingdom

janner_10 is online now
Join Date: Dec 2014
Location: Tewkesbury
Posts: 417
I wouldn't bother with an AOI, just read the wall clock and use LIM and EQU in a routine.
  Reply With Quote
Old January 5th, 2018, 02:05 PM   #5
United States

jstolaruk is offline
Join Date: Dec 2004
Location: Detroit, SE Michigan
Posts: 3,049
Originally Posted by janner_10 View Post
I wouldn't bother with an AOI, just read the wall clock and use LIM and EQU in a routine.
Agreed, unless you have a bunch of heaters with different ON-OFF times.
"You can live to be a hundred if you give up all the things that make you want to live to be a hundred." Woody Allen
  Reply With Quote
Old January 5th, 2018, 02:57 PM   #6
United States

RonJohn is offline
RonJohn's Avatar
Join Date: Jul 2013
Location: NE Ohio
Posts: 360
Originally Posted by janner_10 View Post
I wouldn't bother with an AOI, just read the wall clock and use LIM and EQU in a routine.
To go a step further, use a day of week AOI with the value as a pointer to elements of a start time & stop time arrays for your limit values.
  Reply With Quote
Jump to Live PLC Question and Answer Forum


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
RS Logix 5000 - any benefits of loading off CD or Rockwell Website ? Baker in Virginia LIVE PLC Questions And Answers 2 March 11th, 2017 09:52 AM
rs logix 500 to rs logix 5000 conversion deven_arvadiya LIVE PLC Questions And Answers 2 November 12th, 2011 08:40 AM
RS Logix 5000 installation on windows 7 hasan_ali LIVE PLC Questions And Answers 2 July 9th, 2010 08:53 AM
how to talk ifix 4.0 scada with rs logix 5000 programming software viaemulation5000 venkatesh s.k LIVE PLC Questions And Answers 0 June 21st, 2010 11:19 PM
Rs Logix 5000 training Maintenance Man LIVE PLC Questions And Answers 1 January 15th, 2009 12:13 AM

All times are GMT -5. The time now is 02:23 AM.