×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

'First-In Latch'

'First-In Latch'

'First-In Latch'

(OP)
Hello All;

Looking at enhancing the PLC code for troubleshooting - using AB SLC504s for Boiler Management (control).

The system has 8 discrete inputs from various switches (Hi Boiler Pressure; Low Water Alarm; etc) When any of these inputs go TRUE the boiler shuts down. I'd like to be able to 'trap' the first input that causes the shutdown and mask out any others. The 'trap' would remain Set until a 'Reset' is performed.

I'm sure that others out there in Industry have run into this situation, and I was hoping there might be a sample of code that I could look at, rather than reinvent the wheel.

Any assistance is appreciated!

Thanks!

Jim Polanosky

RE: 'First-In Latch'

Have you looked at the PLC's function options.

They all have an S/R latching function.  That's Set/Reset.  One signal comes by and it changes state. Nothing else will ever change until the Reset input is used.

Keith Cress
kcress - http://www.flaminsystems.com

RE: 'First-In Latch'

You might check the AB support forums and search for "first out annunciator logic".  Something should turn up.

With PLCs, the problem is that this can be scan dependent, so you might get fooled by two events that happen in very close sequence.  

 

RE: 'First-In Latch'

(OP)
Thanks for the quick replies!

itsmoked:  I hadn't thought about the S-R latches - with a little code, that would probably do the trick.  By the way,  interesting 'handle' - would it have anything to do with the 'factory smoke' that's packaged with all electronic components???

dpc:  
- I'll check on the AB forums (I guess I didn't think about that since it's too obvious !!!!!)  
- Re: scan times & events:  In this application all inputs are 120VAC and the PLC scan times are on the order of 3-5ms, if I remember correctly.  Good point made, though - I'll keep it in mind!

Thanks again,

Jim Polanosky

RE: 'First-In Latch'

If this boiler were in my house, I would want it to shutdown if any of those inputs went "FALSE".

RE: 'First-In Latch'

You could probably do this by simply testing the value of the input register, say I:1.0 for example.
If all the bits were normally off, then if I:1.0 > 0, you would save the value of I:1.0 to a register such as N7:1, and set a bit to inhibit the logic from executing again until you had looked at the value in N7:1 to see what bit or bits had turned on, and then cleared the inhibit bit.
If I:1.0 happened to contain other bits that you wanted to ignore, then you could use an MVM masked move to N7:2, for example, and then test to see if N7:2 > 0, and if so save it to N7:1.

RE: 'First-In Latch'

Sequence Of Event recording is certainly a good way to go, especially if the events occur faster than the PLC scan time.

I believe that Jim is using a SLC504 though, so a 1756 I/O module might not work too well.  Perhaps someone makes an SER module for 1746 I/O?

Another idea along that line of thinking would be something like this perhaps:

http://www.monaghan-engineering.com/protime_ser.htm

A stand alone SER module.

After thinking about a little more though, if the events didn't occur faster than the scan time, I would use a FIFO to capture the events in the PLC logic.  It would only take a few rungs of logic to do.
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources