Understanding Programmable Logic Controllers
Understanding Programmable Logic Controllers
Table of Contents
1. OBJECTIVE........................................................................................................................................................ 2
2. INTRODUCTION.................................................................................................................................................. 2
3. HARDWARE-UL PLC-ULUI ............................................................................................................................. 3
5.1 Introduction9
5.2 Classic automation panels................................................................................................................. 10
5.3 Automation panels with programmable logic controllers............................................................... 12
5.4 The stages of designing automatic control systems........................................................ ........................... 13
5.5 General aspects regarding the construction and operation of PLCof the................................................................ ....... 13
5.6 The first programmable automaton........................................................................................................................ 14
5.7 Components of programmable controllers............................................................ .15
5.8 Central processing unit– CPU16
5.9 Memory16
5.10 Programming of programmable controllers................................................................. 16
5.11 Power Supply.............................................................. ................................................................. ..... 17
5.12 Inputs of the programmable automaton.............................................................. ................................................. 17
5.13 Outputs of the programmable controller................................................................................................................ 17
5.14 Extension of the number of inputs / outputs......................................................... ................................................. 17
6. ARCHITECTURE OF PROGRAMMABLE AUTOMATA.................................................................................. 18
6.1 Generalities18
6.2 Why OMRON?............................................................................................................................................. 18
6.3 OMRON CPM1A PLC controller
2. INTRODUCTION
Flexibility.A PLC can control many different operations, andthe changes are made
at the software levelandthey are easier to implement than hardware modifications.
Cost [Link]
advantage of PLCs comes from the ability of numerical systems to
performs multiple complex functions at a lower cost.
solve difficult problems by dividing them into a number of smaller and easier problems
resolved.
The figure presents the most important functional components that can be included in
PLC configuration-uries.
Power supply;
2. Processor module;
3. Input modules;
4. Output modules;
5. The programming unit;
6. The PID controller unit;
7. The data communications unit.
The processor module can be considered a central processing unit (or CPU). It contains
a microprocessor, or a read-only memory unit (ROM), a memory unit
with random access (RAM) and an I/O (input/output) interface (see figure ? C.18). The information
The storage in ROM is permanent. It is set once and then cannot be modified.
The information stored in RAM is temporary. It can be modified at any time and is
lost when the processor module loses power.
The operating system of the PLC (OS) is stored in ROM (OS is a program that serves
the same scope as DOS or Windows on a computer). The user program can be stored in
RAM or in one of the following non-volatile memory chips:
Programmable memory that can be read and erased (EPROM).Can be scheduled from May
often erasing the old program with ultraviolet light.
Non-volatile random access memory (NVRAM). It can be programmed multiple times, but
Unlike regular RAM, the contents of NVRAM are not lost when the memory is not powered.
I am being fedă.
The data used by the PLC is stored in RAM. This data is organized into sections that
depends on the nature of the data. Each section is defined by a capital letter that is used as
part of the location address in that memory section. Memory sections include, but not
are limited to the following:
The image standsthe entrances (I).Store the state (1 or 0) of the inputs from the switches and from
ON/OFF signals from the process.
The image of the stateof the exits (O).Store the binary data (1 or 0) that will activate or deactivate.
ON/OFF devices in process.
The state of the timer(TStore the time base, the present value, the accumulated value
the status bits of the timer in the user program.
The state of the counter (C).Store the presence value, the accumulated value, and the bits of
look at the counters in the user program.
Numerical data (N).Store the data used for number conversions, etc.
Functions (F).Store the state and data used by other functions in the user's program.
The processor has two operating modes, PROGRAM and RUN. In PROGRAM mode
the processor allows the user to make changes in the program. The processor has several
status indicators that provide information to the programmer or operator. In RUN mode
the processor repeats the following cycle of four sequences under the control of the operating system:
3.3 Input Modules
There are two types of input modules, discrete and analog. Most PLC inputs
The inputs are of a discrete type, providing closed and open inputs from push-button contacts.
by pressing, from limit switches, various ON/OFF type sensors, etc. They can be used
this module is for input in both alternating current and direct current,depending onfrom the source of
power supply used on the input switch.
A typical input module has 4, 8, 16, or 32 input terminals, plus one terminal.
like a mass terminal. One terminal of the input module is connected to one side of
a contact from the process. The other part of the contact is connected to the hot terminal of the source
power supply in direct current or alternating current. The common bus terminal of the source of
the power supply is connected to the common terminal of the input module and the input module
furnishthe state of entryon the detection circuit.
The input module converts each input into a logic level voltage and isolates it.
the PLC circuit inputs. The input module converts an open contact into a voltage
from logic level 0 (0V), it converts a closed contact into a logic level 1 voltage (5V).
As the processor scans the inputs, it reads the logic levels of all the inputs and
store the logical levels in the image sectionăcontacts closed are
store as 1 logic, and open contacts as 0 [Link] image can only indicate if a
the contact is open or closed; it cannot indicate whether the entry contact is NO or NC.
Since most PLC inputs are discrete,can also be used andintrăthe analogical ones
for the control and acquisition of data. In continuous process control systems the majority of
process variables are analog and must be converted into a digital form for entry into
a digital processor. The analog input module performs this function with the help of a
analog digital converter.
This section presents a simple program through a structured diagram for a PLC.
To perform a step-by-step analysis of the PLC's operation as if the respective program were running.
Figure 2a shows the schematic diagram, and figure 2b shows the structured diagram of a
circuit for controlling a pneumatic cylinder. The light switch was introduced to
illustrates a secondary control function without unnecessarily complicating the circuit. First stage
the structured diagram includes start, stop, and hold contacts in a configuration
a conventional plus a normally closed limit switch and a control relay coil. The second
The step includes a normally open relay contact and the solenoid for the pneumatic cylinder.
The third step consists of a switch and a light source.
Figure 2c shows the input, processing, and output units of a PLC used to
controls the pneumatic cylinder andlight signaling. The boxes (1,2,3 and 4) in the module of
input IM:1 contains the signal conditioning that converts the inputs into logical voltage levels.
Four lines connect the input boxes to the memory cells that hold the state inside.ăof the rilor
those little boxes. The top right cell of the memory section of the input image is connected
the
entry box 1, and it is identified as memory cell IM:1-1. Moving to the left
The memory cell IM:1-1 includes the cells IM:1-2, IM:1-3, and IM:1-4. The zero in the memory cell
IM:1-1 shows that the START switch connected to terminal 1 is open. 1 from the cells of
memories IM:1-2 and IM:1-3 show that the STOP switch and the limit switch LS1 are closed. Zero
in memory cell IM:1-4 the rate as SW1 is open. The image enterscountriesshow the contacts
connect to IM:2 if IM:3 are closed, but it cannot indicate if they are contacts (NC)
Deactivate, or contact (NO) activate.
The boxes (1, 2, 3, and 4) in the OM:1 output module contain the switching circuits that
use the logic level tensions from the image memory cellsexitto switch
the program is actually the control relay, CR1, which activates solenoid a. The first stage in
the program is equivalent to the first two steps in the structured diagram.
The structured diagram language imposes a number of restrictions on the programs, and
Restrictions vary depending on manufacturers. Typical limitations include the following:
The exit must be at the end on the right side of the step.
2. Power must flow from left to right, up or down.
3. Power must never flow from right to left.
The number of series contacts is limited to 11 (or another number set by the manufacturer).
The number of parallel contacts is limited to 7 (or another number specified by the manufacturer).
A step can have only one exit.
7. The singular exit must be at the top line on a step.
In the programming language of the structured diagram, the symbols of open contacts and
they are actually programming instructions. They tell the computer how to interpret 1
from 0 in the memory cell of image ientrancefor each contact. The normal contact symbol
open - NO(┤├inform the PLC to interpret a 1 as true (TRUE) and a 0 as
false (FALSE). If the PLC finds a path of true contacts from L1 to the output, the output is
activated (ON) and a 1 is placed in the image memory cellexitfind. If a way is found
false, the output is disabled (OFF), and a 0 is placed in the image memory cell ieşleave.
The NO contact symbol can be used with both NO physical switches and NC ones.
if the results are what we expected them to be. A NO physical switch is rated at
the true value (TRUE) if it is activated and the false value (FALSE) if it is not
A physical NC switch is rated true if it is not actuated and at
false (FALSE) if it is activated. When the STOP switch is not activated, its image is a
1, if this is evaluated as true (TRUE), which is correct. When the STOP switch is
activate, its image is a 0, and it is evaluated as false (FALSE), as it should be. This
the analysis applies to the switch LS1.
In a PLC program, the normally closed contact symbol is different, and its use can
leads to a double negative effect that can cause considerable confusion (without mentioning results
The NC contact symbol (-|/|-) informs the PLC to interpret a 1 from a cell of
entry image as false (FALSE), and a 0 as true (TRUE). If we use a physical switch
With an NC contact symbol, the NO switch is evaluated as if it were an NC switch.
If we use a physical NC switch with a NO contact symbol, the NC switch is evaluated
it's like a NO switch.
When a PLC is in the operating mode (RUN), the processor repeats the following cycle
four steps:
1. Entry scanning (Input scan).Store a new image of the entry conditions.
[Link] scanning (Scan program).Capture the new image of the exit conditions.
[Link] [Link] the new image of the exit conditions
output devices.
[Link] [Link] communications and other tasks.
The following discussion will refer to the operation of four cycles of a PLC with the configuration and
Cycle 2:START, SW1, STOP, and LS1 are all closed.
Cycle 3:START is open, SW1, STOP, and LS1 are all closed.
Cycle [Link] and LS1 are open, STOP and SW1 are closed.
A multitude of observations are evident from the operation of a PLC. The first, the order
operations can be important because the PLC evaluates the program one step at a time
The second, there is a small delay between the action of an input device and the change
the output devices. This delay can be as large as the time of
running a cycle by the PLC.
5.1 Introduction
with the measuring instruments and sensors in the automation process, it will need to allow
it commands the entire process and what is important is to communicate the states to the operator
the process through visual and sound signals and/or through a-a communication network to a computer
local. These characteristics allow for the exploitation of automation ata high degree of flexibility, through
the easier change and monitoring of the basic parameters of the process.
Each component in the process control system plays a specific role, in accordance with
its importance. For example, without any senzor, PLC-the urine could not know the mode of variation in
time of the main parameters of the process (consider input parameters). In systems
automate, PLC-The valves are the central part of the control or automation system.
Of the rIn the past, a control panel was used for managing a single process and not
it can be adapted to the requirements of the new working technologies. Ina word, the panels of
conventional automation proves to be inflexible, as the improvement of parametersteaser of
the operation of the automation system was accomplished by changing the operating topology of
of the panel and even of some component parts (which is actually costly). A typical example of a panel
The conventional automation is presented in fig.2.
In fIn the image, you will notice a fairly wide number of cables and electrical conductors, relays (of
time, intermediates...) and other elements from a-an automation panel from that period.
The automation panel in Fig. 2 is not very complex as they arethere were some panels
conventional at that time, but I believe you can imagine a much more complex one!
The most important disadvantages of conventional automation panels are:
With the invention of the programmable automat,They have changed a lot in the design of the systems
of automated control. Several advantages have emerged. For example, in Fig. 3, a
modern automation panel with programmable logic controller (PLC).
Compared to a classic automation panel, the required number of conductors
it is reduced by 80%;
The consumption is greatly reduced because the PLC-it consumes much less than the relays
from the conventional automation panel;
The error detection function in the programmable logic controller is very fast and very
easy to use;
The change of operating sequences within the application is different from process to
prand can be done very easily by replacing or modifying the written program in
the programmable automaton with the help of a PC (this action does not require changing
conductors or rewiring of the control panelas it was happening at
classic automation panels– it is only about the interconnection of devices
necessary for the PLC inputs and/or outputs-the)
The automation panels with PLC require some spare parts;
This is much cheaper compared to a classical automation [Link], because being
equipped with a large number of entries-outputs, a large number of peripherals can be connected
when complex functions are desired to be achieved;
Repositioning a PLC is done much faster and easier than any relay.
electromechanical or timing.
1. A 'fixed' applications:some applications do not need a programmable controller due to the degree
5.4 The stages of designing automated control systems
aFirst, you will need to adopt a tool or system that you want to-you automate.
Sistemul automatizat poate să fie o maşină sau un proces mai mult sau mai puţin complex. La
the system inputs will require you to connect input devices (sensors and/or transducers)
that will need to transmit the corresponding signals to a programmable logic controller (PLC). As
response to these signals, PLC-ul sends a signal, as a result, to an external device
(also known as execution), which monitors the operation of the system or process according to the diagram.
of desired operation. This diagram may contain one or more operational cycles
of the process.
b). Secondly, it willyou must specify all input and output tools that will be
connect to the programmable controller. The input devices are various switches, sensors
of temperature, pressure and other types of transducers. Output devices canfi: bobine, valve
electromagnetic, motors, relays, light and sound instruments, etc. Following the identification
all inputs and outputs, after which they can be very easily implemented in the program
PLC-The allocation of inputs and outputs is an important step in achieving one's own-said the
of the program. To facilitate their identification, each entry and exit is given a name
in correlation with the function taken over or performed by the programmable logic controller.
c). This stage consists of developing the program that is to be implemented in memory.
programmable automaton. The simplest method consists of developing the program in the environment
ladder diagram. But to do this you will need to first choose an automatic device
programmable and an application development program that allows work in ladder diagram mode.
Usually, any manufacturer of programmable logic controllers offers its own software solution for
PLC programmingYou will not be able to use software from a manufacturer to program.
a PLC from another manufacturer. Also, the incompatibility of the interconnection solution comes into play here.
of the equipment (PC-PLC), different from manufacturer to manufacturer of programmable controllers.
After the program is completed, it is written inin PLC memory-usually. In case of
complex industrial processes, before being implemented in automation, after it is
programmed, the PLC is tested on an independent stand. On this stand, issues are detected.
any eventual errors and then eliminated. This method is primarily encountered in the case of
prototype automations.
5.5 Generalities regarding the construction and operation of PLC-uri
The industry has begun to recognize the need for improvement and increasing productivity in
the period of the 60s and 70s. Flexibility also became a major concern (the ability
to quickly change the process states and remedy the disruption has become a very requirement
important for customer satisfaction).
Try to imagine an automated production line from the '60s, '70s. This
automation contains a fairly large number of electrical cables for the control of automation
and in many cases, covers a large area. The classic automation panel contains a number
significantly bad electric relaysmagnetic that performs the work of the entire system. However, the method
The classic wiring of the panel or automation panels involves the presence of personnel
The biggest problem of this control scheme was the electromagnetic relays.
Mechanical instruments are the most prone todue to the moving components.
If a relay failed, the electrician had to check or examine the entire system.
(the entire system had to be stopped until the cause of the malfunction was identified and removed). So, another
the problem of this type of automation was the relatively long downtime of operation
the system in case of malfunction. In addition, if there was a desire to change the operating cycles of
the system (even a minor change), this was done at great costs andlarge losses
of time until the system was functional again.
It is not that hard to imagine what could happen if an engineer made a few mistakes.
minor during the implementation of the project. It is also imaginable what will happen if
eThe electrician would make mistakes in a few points of the automation system wiring. In the end, you can...
imagine a few defective components. After that, to find out if the system works, it will
we need to test its functionality. Since mistakes were initially slipped into the project, including
of execution, surely the automation system will not work. Therefore, this solution
The 'classic' execution of automated systems was very much prone to the conception of a batch.
of automation panels with many defective samples. The introduction of programmable automation has
eliminate this disadvantage from the start.
"General Motors" was the first company to recognize the need to replace the wiring technique.
classic automation [Link] replacement of old wiring technologies of the panels
automation has increased competition among car manufacturers by raising productivity and
qualities. Not only the automotive industry benefited from the new technology. Flexibility,
cheap and easy maintenance, as well as the possibility of quickly changing production cycles of
has become a crucial necessity in the current evolution of the market economy.
The idea of the company 'General Motors' consisted of implementing wired logic in a
microcalculactor, logic that replaced the classical relay wiring technique. In most of
applications, the microcomputer is based on solutions with 8 or 16-bit microcontrollers, depending on
the complexity of the automation system. So, the computer was going to takethe place of the blocks or
automation panels with numerous relays. Any change in the operating cycles or
Production can be easily modified by changing... the program written in the programmable logic controller.
So, currently, changing the control scheme is much more convenient.
Everything was fine until the implementation of the technology, when a new problem arose and
the same as to-I ask the electricians to accept and to-and understand the functioning of the system
of automation with the new devices. Systemsthey are usually complex and require
the knowledge of certain programming techniques. It was a big question mark whether
electricians could to-and to acquire programming techniques in addition to the initial duties of
service. The Hydromatic Division of GeneralEngines recognized the necessity of implementing the new one.
technologies and thus laid the foundation for the first project with a programmable automation (there were a few more)
companies in the world that have created devices capable of controlling industrial processes, but
"Gould Modicon" developed the first device that complies withthese specifications. The key to success
the point was that learning a programming language was not necessary for programming.
Programming is done in a language similar to classic monophase schemes (ladder diagram),
with their specific characteristics. For this reason, electricians and technicians could very easily learn
programming because the logical schema drawn in the program was very similar to the schema
classic.
Initially, PLC-the s-called PC Controllers or programmable controllers. This name refers to
withoften referred to as a personal computer (PC). To eliminate this
confusion, the name 'PC' was assigned only to personal computers while the controllers
programmable s-called 'programmable logic controllers' or simply: PLC.
At the beginning PLC-the pipes were simple devices. At their entrances were connected
switches, digital sensors, etc., and at the outputs, the starting and stopping of the operation of others is controlled.
devices. When did the first PLCs appear?-these were not capable of conremove processes
more complex, such as: temperature control, position, pressure, etc. However, once
Over the years, PLC has also emerged.-paths that were able to perform these functions. In
Currently, programmable automata are capableto control very complex processes, including
position control. The method of achieving and programming them has been significantly improved. They have been
designed special modules attached to PLC-they can extend the operational range of this.
example in thisThis is the communication module, which allows the interconnection of multiple
programmable automation. Currently, it is very hard to imagine a process that is not
controlled by a programmable controller!
The PLC isit is currently an industrial system with a microcontroller (initially it was called a processor in
place of the microcontroller) which consists of a-the
specific hardware and software part and
adapted to function in industrial environments. The block diagram is presented in fig.4. Attention
special attention must be given to the galvanic separation of the microcontroller from the power side and
execution from the industrial environment.
The components may vary in number from one specimen to another, but the elements found in
the following are general:
1. The central unit: represents the most important part of the programmable automation and is
made up of 3 important parts: processor, memory and power supply. Through
this practically ensures the management of the entire process;
The central processing unit (CPU) is the brain of the programmable logic controller. The CPU isin a way
usually a microcontroller. In the past, these microcontrollers were 8-bit, such as 8051, and
Currently, there are 16-bit or 32-bit microcontrollers. In branded programmable controllers,
such as Siemens, Hitachi, and Fujitsu, you will find differentmicrocontroller ipur produced by
different companies, such as Motorola. The communication module is attached to one of the ports
of the microcontroller. Programmable controllers have different routines for memory checking, this
for safety reasons. Generally speaking, the general processing unit performs
a whole series of routines for checking the technical status of the PLC-of. For signaling
different errors or operating states of the PLC-uen are equipped with optical indicators (diodes
luminescent or LEDs.
5.9 Memory
System memory - currently of FLASH type -is used by the programmable machine for
the storage of the program used for automation control. Before being written into memory, the program
it needs to be compiled, with the help ofanother program with which the logic of automation was written in
leader diagram. Reprogramming or rewriting memory is usually done with the help of
of a serial cable.
The used memory is divided into different blocks with different functions. Certain parts of the memory
they are used to record the states of the ports (input or output). Each state of memory
it is stored through-a bit: 1 or 0. Each input or output corresponds to a bit in memory.
Other parts of the memory store the variables used by the program. For example,
the other advantages it brings, allows for monitoring the automation process from
distance, including checking the PLC status-of.
Almost every program for car programmingProgrammable controllers include various options
useful as: switching from ON to OFF for inputs and outputs, real-time program simulation
These options are necessary for determining errors or functioning
defects of the program. PThe programmer can add comments, names of inputs and outputs,
very useful in maintaining the system. For example, adding comments helps electricians
and technicians to understand much better the control scheme outlined in the programming environment.e
ladder diagram. These comments are very helpful for the maintenance and troubleshooting of automation.
The power supply serves to provide electrical energy to the programmable controller.
Most PLCs-wires work with tensionsof 24Vdc or 230Vac. Some automats
programmable is powered through-a separate module. PLC-urinals with power supply
the large programmable automatons are separate. To determine the electric power of the source
to feed we will need to know consumptionul PLC-determined largely by
the power requirements of the outputs. The power supply must meet certain requirements for
electromagnetic compatibility, for example: to be immune to electromagnetic disturbances,
corrosive mediafound predominantly in the industrial environment.
The intelligence of an automation system largely depends on the capability of the machine.
programmable to read the signal coming from various sensors and input devices. Keys,
kepad-switches with and without self-holding are some of the elements that made
the connection between man and machine. On the other hand, to check the parts that are in motion,
to check the pressure or fluid level, you will need transducers that
it transmits a unified signal at their output (0...5V or 4...20mA), recognized by the automation
programmable. There are different methods to obtain a sensor. For example, you could use a
optocoupler or a transformer.
6.1 Generalities
I remind you that this article addresses the overall construction and operation of PLC.-uri. In
at this point, due to the multitude of programmable automation devices available on the market, it is impossible to
we describe the architecture of each PLC in detail. There is no space forThis is not the purpose of this article.
plus, the block schema is approximately the same, each PLC manufacturing company-making uri
variations alongside this. Therefore, in this section of the article, I will take as a reference
only one model of PLC. The other types of PLCs, sold by other companies, are
more or less identical to this, the principle of operation remains the same.
Why not? It's a large company that produces at a high standard of quality, machines.
programmable, like other renowned companies in the field, such as Siemens, Mitsubishi or
Hitachi. Today we can say with certainty that the programmable logic controllers produced by these
companies are excellent devices for achieving high-precision automation and
quality. However, for a specific application, we must adopt and know the characteristics
of the PLC.
The programmable controller is adopted only after it-a outlined the schema of c-give "classic" and it
know exactly the number of inputs/outputs and sensors or transducers needed. In order to
create some examples that are much easier to understand and apply in practice, I chose, for description,
the programmable controller produced by OMRON company, micro class CPM1A. The adjective 'micro'
it signifies the existence of a minimum number of options attached to the programmable machine. But even
the model we will discuss in the following is sufficient for
the understanding of the operation and practical implementation of programmable logic controllers.
The presented programmable controller is only 8 cm tall and is vertically divided into two parts: a
part with a 230/24Vdc converter and another with CPU- the memory, betweendigital circuits and output relays
relevant. If you remove the plastic part from the left side, you will discover
the RS232 connector, that is, the serial interface with the PC-This interface is used for
programming of the programmable controller cuathe computer's help. When you install PLC-the no
6.4 ExitOMRON CPM1A programmable controller specifications
Except for the output transistor in NPN or PNP configuration, the programmable controller can
there are relays at the outputs. By having relays at the outputs of the programmable automation, connections can be made
Much easier external devices. The CPM1A model contains exactly these relays at the output.
CPM1A has a total of 4 relays whose contacts are found at the output terminals of
programmable controller. In reality, the internal diagram of a PLC output-the owl looks like in figure 6.
Once the optocoupler is activated by the transition of the microcontroller output to logic zero, the coil
the relay is powered and contacts A and B close. In our case, contacts A and B can
close or interrupt an external circuit. So the state of these contacts is determined by
the state of the microcontroller output ports. Figure 7 illustrates the case where the port
the output corresponds to a certain sequence of binary digits, noted as IR010. As was also the case and
the individual programming of microcontrollers and in the case of PLC-we will have to set the state
output ports at the beginning of the program writing. Using ladder programming of the PLC-of
we can veryit is easy to define the input and output states. If you do not define the output state, it can
It happens that when you activate the programmable machine, it starts off,
example, a motor, when in fact it should have waited to receive a command on an input like
to do this.
6.5 Inputs of the OMRON CPM1A programmable controller
Various sensors, keys, switches, and other similar elements can be connected to the PLC inputs.-
To be able to connect the mentioned sensors to the PLC inputs.-we will have to use a
power supply that activates the input circuits. It is necessary to do this.
because the input ports of the microcontroller that equips the PLC-they are galvanically isolated,
with the help of some optocouplers, by hairproper tea from c-give the programmable automaton. How
to activate an optocoupler we need an external voltage source, for
the proper functioning of the input sensors, we will need to intersperse these sensors along the route
feed to enteroptocouplers. The simplest method is to use the source of
24Vdc voltage of the PLCSuch a method is shown in figure 9.
If a sensor has a higher current, then another external source can be used for
its feeding or in other words, an adaptation will need to be made.
Over time, ever since the emergence of PLC-of, s-they presented several solutions for
programming of programmable automata -the most popular solution being programming in "ladder"
"diagram". Accordingly, at present, the majority of programmable controllers are programmed in
"ladder diagram" (relay scheme), which is nothing other than the drawing of a scheme.e
classic relay control but with a unique symbolism. This mode of programming was much
easier to understand for both electricians and technicians, because the symbols of the devices and
their contacts were very similar to those in classic automation schemes.
The ladder diagram consists of-a vertical line, which you can find on the left side of the program,
and one or more horizontal lines, on which, for example, the input contacts are arranged,
output and certain logical programming elements (fig. 11). The line on the left is called 'bus
bar" and the horizontal line is the instruction line. The elements are arranged on the instruction line.
logic of the program (normally closed contacts, normally open contacts, logic gates, contactors, etc.).
Combining several coneslogical elements in line, it is possible to determine which instruction
it will be executed and finally which output element it can command.
Most instructions can be carried out with the help of a single operand while others can be executed with multiple ones.
[Link] operand can be a binary digit from a-a certain location in memory or a
number. In a previous example, I presented operand 0 from memory location IR000. In
Fig. 12 shows an example of a program in ladder diagram where the relay IR010.00 is
activated when the microcontroller input is in '00'. The condition can be active (ON) or inactive
(OFF). The condition can practically simulate a switch. When the switch is closed, the relay is
acted and vice versa. If we use a switch without self-holding, when we press the first
oară comutatorul, releul va fi acţionat, iar când vom apasa a doua oară comutatorul, releul va
return to the initial position.
This is just a simple example. An alarm system can be very well implemented in-
a dwelling. For example, the condition can be represented by the doors at the entrance to the house. You can
consider these doors as switches connected to the PLC inputs- If the alarm is
the army and a door is opened unauthorized, the corresponding switch conditions the related entry
a PLC-turn on the "ON" and the corresponding output will attain that state. A circuit can thus be activated.
alarm sound.
In the example below, a simple program is outlined. The example consists ofa device of
input (switch) and one output (light bulb). The input 000.00 represents the execution condition of
instructions 010.00. If we cancel the entry or in other words 'turn off the switch', the output
the switch will change and turn on the bulb. For the proper functioning of the program, it will
we need to close the corresponding instruction through a-another program line 'END'.
8. BIBLIOGRAPHY
[1] - Nelson, V.P., Nagle, [Link] Logic Circuit Analysis and DesignPrentice Hall,
NJ, 1995.
[2] - Petruzella, [Link] Logic Controllers, Second ed., McGraw Hill, New
York, 1996.
[3] -Mange, [Link] Systems. An Introduction to Firmware Theory,
Chapman & Hall, London, 1992.
[4] -Moses, [Link] Automation. Design. Applications,Ed. MatrixRom, Bucharest,
2004.
[5]Hugh JackAutomating Manufacturing Systems with PLCs, (Version 5.0, May 4,
2007)