You are on page 1of 4

9/10/2017 Writing alarms and interlocks in PLC programs Mesta Automation

About Contact 1on1 call License Search...

HOME PLC WPF DOWNLOADS ARCHIVE

Home / PLC / Allen Bradley / Writing alarms and interlocks in PLC programs

Popular Recent C

Modbus with C#: libraries


utilities and examples
July 4, 2012

Writing alarms and interlocks in PLC programs Communication with Siem


in A llen Bradley , PLC, PLC Programming 8 Comments 16,137 Views with C# and S7.Net plc d
January 7, 2015
While analizing the process that you have to automate you always have many conditions to respect for the safeness of the
equipments, of the operators and of the process itself. PLC-PC communication w
quick resume about data
libraries

What is an Alarm April 11, 2012

Modbus configuration ex
An alarm is a condition of non-safe state of the machine. Allen Bradley Micrologix 1
Depending on the impact on the process, it can be: June 19, 2012

Blocking Real-time Line charts with


Not blocking Dynamic Data Display
April 3, 2012

An alarm can be connected to an input sensor, but its never the sensor itself; alarms are generally stored in words (16-bits registers)
and displayed in the HMI, as well as used in the program as conditions to grant the safeness of the process.
1 ON 1 MENTORING

Mesta Automation
What is interlocked equipment on Anthropy.co.

On Anthropy, you
Interlocked equipment, like motors or valves, is an equipment that has a protection circuit (real or logic) that interdicts the activation of
1on1 mentoring w
the equipment if at least one danger condition is met. sharing with me.

Click here for more information.

Alarms with ladder logic


When i write alarms and interlocks i always use the same structure, that consists in many words where every bit corresponds to an
alarm; this structure is almost a standard for many operators panel and has many good points but some drawbacks too (a drawback is
that you can analize block of alarms comparing and masking entire words, that can be cheaper to write, but harder to understand
when reading or debugging).

This is a basic sample on how i write an alarm block:

FIND US ON FACEBOOK

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/writing-alarms-and-interlocks-in-plc-programs/#prettyPhoto 1/4
9/10/2017 Writing alarms and interlocks in PLC programs Mesta Automation

When writing alarms in this way the first segment must be always the reset block. This because even if you reset all the alarms pushing Mesta Automation
the reset button, if one fault condition is active, the alarm will be setted again few segments later, resulting in a still active alarm at the 265 likes

end of the program.

The last part is a recap of all alarms, really useful while debuggin because you can notice instantly whats going on just by watching 1
Like Page
segment.

The first bit of the word alarm has been chosen as no active alarms because usually: Be the first of your friends to like this

1. Alarms starts from number 1 and continues, so its no use to have an offset among alarms and bits
2. This bits triggers all the alarms-screens and alerts on HMI and scada.

This is just a basic explanation, but you can find a more detailed explanation about fault logic RECENT POSTS
here: http://www.contactandcoil.com/rslogix-5000-tutorial/create-fault-logic/
How to record a video w
WPF and AForge

Writing interlocked equipment in ladder logic: April 19, 2017

HMI with C# and WPF pa


Once you detected the fault conditions for your plant, you should use alarms and other conditions inside interlocks to avoid dangerous
Communicating with mul
operations.
and Modbus)
March 26, 2017
I usually write outputs logic and interlocks in this way:
HMI with C# and WPF pa
Navigation with PRISM
March 6, 2017

How fast is a PLC driver w


February 20, 2017

HMI with C# and WPF pa


started with MVVM and p
communication
February 15, 2017

Same as alarms, interlocks must be above the segment that declares the output coil condition and the interlock bit should include every
condition that stops the motor.

A common strategy that peoples uses when outputs grows in number is to have a block dedicated to interlocks that comes exactly
before the block dedicated to output, like this:

RECENT COMMENTS

Hasan: That worked. Tha


much....

mesta: Hi, have you con


NetToPlcSim ? https://ww
auto...

Mesta: Hi, have you conf


NetToPlcSim ? https://ww
When writing interlocks in this way debugging become really easy, because you can just navigate with 1 or 2 clicks of the mouse to the
auto...
cause of interlock without having to analize a lot of logic.
Hasan: Hello, I am using S
You can download a sample application for RsLogix 500 here: https://www.mesta- 7 Professional V13 (witho
automation.com/Downloads/alarms%20and%20interlocks.rar

Nana: Hallo thanks for th


j s f h tutorial , but at the risk o

READ MORE

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/writing-alarms-and-interlocks-in-plc-programs/#prettyPhoto 2/4
9/10/2017 Writing alarms and interlocks in PLC programs Mesta Automation

How fast is a PLC driver with C#? PLC-PC communication with C#: a quick PLC teleassistance and remote control
resume about data exchange libraries

8 COMMENTS

wiliam
June 26, 2012 at 10:30

what do contacts with a green background mean? Are they in the opposite state of what is visually represented. As in is an N/O
contact with a green background actually a N/C contact?
Reply

mesta
June 26, 2012 at 10:52

Green is the status of the contact: if its green, the current is flowing, if its white, the contact is open.
NO Contacts are represented like this -] [-
NC Contacts are represented like this -]/[-
Reply

NAGARAJU AMPOLU
March 21, 2014 at 03:33

hi sir,
I am working as an electrical officer/ETO in merchanty navy with dynacom tankers management. We have a hard ware problem
with the allenbradley micro logix 1400 PLC. The I/N 2 of the PLC grounded and that is for motor overload alarm.But there is an
interlock with all alarms .so we cant start the system until we remove this alarm.I cant connect cable (+24 ) in IN/2 as it was
shortd(grounded). So please tell me
1) Can I remove the interlock for this spesific alarm comming from IN/2 using MODBUS TCP
(OR)
2)can I programme IN/2 to shIft to another input port (in/19)
Reply

mesta
March 21, 2014 at 09:51

You can program the software to shift the address of the broken input, but you need the software (RsLogix 500).
You can also probably force the input by using the LCD screen, but i dont remember how. You better call Rockwell
Automation support and ask there for help.
Reply

nagaraju ampolu
March 22, 2014 at 03:44

thans for ur prompt reply sir.I allready downloaded rs logix 500. Can you tell me how to connect my pc to micrologix 1400 PLC
using ethernet and how to edid the programme by changing in put from IN/2 TO IN/18(free).
Reply

mesta
March 24, 2014 at 10:18

There are user manuals for this. Google getting started with RsLogix 500 and start from chapther 2. If you encounter
issues, please use some forums like plctalk.net, where there are experts that can help you. This website is just a personal
blog and not a sobstitute for Rockwell Assistance.
Reply

Mukul Tyagi
May 21, 2015 at 05:10

I needWe
touse cookies
create to ensure
an alarm that
which we two
does give things
you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/writing-alarms-and-interlocks-in-plc-programs/#prettyPhoto 3/4
9/10/2017 Writing alarms and interlocks in PLC programs Mesta Automation
1. send signal to a hooter and make sound , but this can be stopped by pressing a push button .
2. make an indicator lamp glow on the control panel , this should be glowing as long as the fault is not cleared .
i think the hooter will be a common hardware and will sound when some other fault arises
Reply

mesta
May 21, 2015 at 08:50

This article explains how to separate the cause of the alarm from the notification lights, sounds and HMI indicators.
If you have an alarm, you need a single bit that is 1 or 0, depending if the alarm is on or off. This bit can be resetted
depending on some conditions and it is usually activated from sensors or other equipment in fault.
This bit, togheter with other alarms bit in OR condition, permits you to to command both the light and the sound.
Something like:
IF(alarm_bit == 1) THEN alarm light = 1;
IF(one_shot(alarm_bit) == 1) THEN SET sound = 1;
IF(shutoff_sound_button pressed) RESET sound = 0;
Also using this approach you can use alarm bit to interlock equipment in case of dangerous conditions.
Reply

LEAVE A REPLY

Enter your comment here...

MOST POPULAR TAGS FOLLOW MESTA AUTOMATION

Modbus with C#: libraries, code,


utilities and examples Allen Bradley C# Collections computer vision
July 4, 2012 debugging dependency injection Fonts git HMI image
processing installer Localization Modbus navigation SUBSCRIBE TO BLOG VIA EMAIL
Communication with Siemens S7 Plc
OPC OPC test PLC PLC drivers PLC
with C# and S7.Net plc driver Enter your email address to subscribe to this
January 7, 2015 programming PLC Training SCADA Siemens receive notifications of new posts by email.
simulation simulators source code management threading
PLC-PC communication with C#: a
quick resume about data exchange
WPF WPF chart WPF Controls WPF Gauge Join 60 other subscribers

WPF Touch controls


libraries Email Address
April 11, 2012

Subscribe
Modbus configuration example for an
Allen Bradley Micrologix 1400
June 19, 2012

Copyright 2012 - 2017 Mesta Automation, All Rights Reserved

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok

https://www.mesta-automation.com/writing-alarms-and-interlocks-in-plc-programs/#prettyPhoto 4/4

You might also like