Alarm System_ Educational Example Using the Omron PLC C28K

September 29, 2017 | Author: Ionela | Category: Programmable Logic Controller, Relay, Electronics, Electronic Engineering, Technology
Share Embed Donate


Short Description

Alarm system -an example using the Omron PLC C28K To put it simply a PLC (programmable logic controller) is a small com...

Description

Alarm system: educational example using the Omron PLC C28K

1 din 6

http://dev.emcelettronica.com/print/51972

Your Electronics Open Source (http://dev.emcelettronica.com) Home > Blog > arag61's blog > Contenuti

Alarm system: educational example using the Omron PLC C28K By arag61 Created 10/06/2008 - 13:52

Programming alarm system c28k electric circuit ladder ladder logic Omron plc programmable logic controller Alarm system - an educational example using the Omron PLC (programmable logic controller)C28K Therefore a PLC (programmable logic controller)is a device, equipped with a microprocessor, destined to control electric devices, but with the advantage that the program modification is easy and speedy compared to the one of the electric circuit that should be wired again. The PLC, after elaborating the input signals by the program, can control engines, electro-valves, warning lights etc. So there are : input circuits that " adjust " the electric signals, coming from devices or systems, to the PLC voltages and currents output circuits that accomplish the inverse operation Below, as educational exercise only, an alarm system using a PLC will be illustrated. A C28K Omron PLC and a ladder diagram will be used ( of course a PLC is wasted for this job only !!!). Before starting, let’s spend some words on ladder diagram. The name is based on the observation that programs in this language resemble ladders, with two vertical "rails" and a series of horizontal "rungs" between them. Only a few graphics symbols are used in this language :

We can construct simply logic functions to control an hypothetical lamp, using multiple contacts. If we use standard binary notation for the status of the switches and lamp (0 for un-actuated or de-energized; 1 for actuated or energized), a truth table can be made to show how the logic works:

07.10.2008 08:43

Alarm system: educational example using the Omron PLC C28K

2 din 6

http://dev.emcelettronica.com/print/51972

Now the lamp will come on if either contact A or contact B is actuated, because all it takes for the lamp to be energized is to have at least one path for current from wire L1 to wire 1. What we have is a simple OR logic function, implemented with nothing more than two contacts and a lamp. We can mimic the AND logic function by wiring the two contacts in series instead of parallel:

Now the lamp energizes only if contact A and contact B are simultaneously actuated. A path exists for current from wire L1 to the lamp ( wire 2 ) if and only if both switch contacts are closed. The logical inversion function, or NOT, can be performed on a contact input simply by using a normally closed contact instead of a normally open contact:

07.10.2008 08:43

Alarm system: educational example using the Omron PLC C28K

3 din 6

http://dev.emcelettronica.com/print/51972

Now the lamp energizes if the contact is not actuated and de-energizes when the contact is actuated. Ladder logic has "contacts" that "make" or "break" "circuits" to control "coils." Each coil or contact corresponds to the status of a single bit in the programmable controller's memory. Unlike electromechanical relays, a ladder program can refer any number of times to the status of a single bit, equivalent to a relay with an indefinitely large number of contacts. So-called "contacts" may refer to physical ("hard") inputs to the programmable controller from physical devices such as pushbuttons and limit switches via an integrated or external input module, or may represent the status of internal storage bits which may be generated elsewhere in the program. Each rung of ladder language typically has one coil at the far right. Some manufacturers may allow more than one output coil on a rung. --( )---(\)---[ ]---[\]--

a a A A

regular coil, true when its rung is true "not" coil, false when its rung is true regular contact, true when its coil is true (normally false) "not" contact, false when its coil is true (normally true)

The "coil" (output of a rung) may represent a physical output which operates some device connected to the programmable controller, or may represent an internal storage bit for use elsewhere in the program. Coming back to our alarm system, we suppose to have the following components: a power supply: exit 24 Volts (DC) a PLC interface a PLC an accumulator: in case of black out a push button: to connect/disconnect the alarm system two sensor: we suppose to have 1 front door and 1 window The alarm system is constituted from:

07.10.2008 08:43

Alarm system: educational example using the Omron PLC C28K

4 din 6

http://dev.emcelettronica.com/print/51972

1 siren: acoustic alarm 1 flashing light: visual alarm 1 telephonic combiner: to call the police dept. or other people The working conditions are: alarm connection: the push button must be pressed - there are 15 seconds to exit or to disconnect the alarm system again door opening: there are 15 seconds to disconnect the alarm system window opening: there are 15 seconds to disconnect the alarm system when the alarm system is working (intrusion under way !!), it will be ON for 5 minutes. To stop it the push button must be pressed (of course the push button is not in a visible location) Below there is the program.

07.10.2008 08:43

Alarm system: educational example using the Omron PLC C28K

5 din 6

http://dev.emcelettronica.com/print/51972

07.10.2008 08:43

Alarm system: educational example using the Omron PLC C28K

6 din 6

http://dev.emcelettronica.com/print/51972

Trademarks

Source URL: http://dev.emcelettronica.com/alarm-system-educational-example-using-omron-plc-c28k

07.10.2008 08:43

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF