Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Abstract: Automation has changed all our day-to-day activities. It has impacted all walks of life. Probably there is no domain left
which has been untouched by automation from agricultural to space technology. As the technology is changing day in and day
out and there is a competition in manufacturing industry to reduce the time to market of all the products, so that they remain
upfront in their sectors. This paper describes about PLC (Programmable Logic Controller) and how to develop an automated
coffee/tea vending machine using PLC programming languages. It is implemented using Schneider Electric M340 PLC which is
one of the most famous PLC in the world. Launched as one of the most innovative Programmable Logic Controllers developed to
date, Modicon M340 continues to be perceived as a model basis of a modern-day automation platform, garnering recognition for
its robust quality and high-end capabilities, including improved performance, compliance with the latest networking standards,
and operational cost-efficiency. Designed for a wide range of process and machine management, it finds perfectly his place in
numerous segments such as the Food & Beverage etc.
Keywords: Automation, PLC, ladder diagram, SFC
I. INTRODUCTION
A. Automation
The word ‘Automation’ is derived from Greek words “Auto” (self) and “Matos” (moving). Automation therefore is the mechanism
for systems that “move by itself”. The dictionary defines automation as “The technique of making an apparatus, a process, or a
system operate automatically.” Automation helps in reducing the human involvement to operate tasks in hazardous environment
and that requires hard physical and mental ability. Automation also increases productivity, Quality, performance and helps on
emphassing safety in working conditions and also reduces the cost .
B. PLC
PLCs were designed and developed by Modicon. A programmable logic controller (PLC) is a specialized computer used to control
machines and processes. It therefore shares common terms with typical PCs like central processing unit (CPU), memory, software
and communications. Unlike a personal computer, the PLC is designed to survive in a rugged industrial atmosphere and to be very
flexible in how it interfaces with inputs and outputs of the real world. Programmable Logic Controller, or PLC for short, is simply a
special computer control system that continuously monitors the state of input devices and make decisions based upon the custom
program to control the state of output devices. PLC implements logic control functions by means of a program. PLC’S were
designed to replace relay logic system. They are used in many industries such as oil refineries, manufacturing lines, conveyor
systems and so on.
The components that make a PLC work can be divided into three core areas:
1) The rack and the power supply
2) The central processing unit (CPU)
3) The input/output
PLCs come in many shapes and sizes. They can be so small as to fit in your shirt pocket while more involved controls systems
require large PLC racks. The below figure shows the M340 PLC.
Ladder diagram is based on logic operation between inputs to define the logic level of outputs.
Sequential Function Chart (SFC) language: Sequential function chart (SFC) is one of the PLC programming languages defined by
the IEC 61131-3 standard. SFC is a graphical programming language, not text-based. Being a visual programming language means
that it's well suited to the task of breaking down a large and complex process into smaller pieces that are easier to see and
understand than with solely text-based programming environments.
The elements of SFC language are
1) steps
2) transitions and transition conditions
3) actions
4) links
5) branches
Step: A step is an element of SFC programs, and represents a single process within the overall process flow. For example: start a
motor. A step can be active or inactive. When a step becomes active, action blocks assigned to that step are executed.The first step
of a program is referred to as the initial step. It is unconditionally activated at the start of the program and is represented by a double
sidelines step.
Action block: Action block contains the action (an event ) which is triggered by the activation of a step. It can be:
6) One or several address of output or variable; for example %Q0.2.3 or var:=8,
7) Section of one of the IEC 61131-3 programming languages.
The symbol of an action block is as follows.
Transition: A transition is a special link that provides the ways through which the the chart can evolves between 2 or several
steps.A transition is always associated with a transition condition, called sometimes receptivity. This transition condition can be a
variable, an address, a literal or a transition section (ladder diagram) if the condition is more complex.
Link: Links are the elements that are connecting step to transition and transition to step. The y are consisting in vertical and
horizontal links. Standard signal flow in a sequence string is from top to bottom. To create a loop however, links can be made from
below to a step above. In these cases, the direction of the link is indicated with an arrow symbol.
Branches: Branches are used to create alternative or parallel structures. There are 2 types of branches :
The alternative branch offers the possibility to program branches conditionally in the control flow of the SFC structure. With
alternative branches, as many transitions follow a step under the horizontal line as there are different processes. Alternative branches
are connected by alternative junctions.
The parallel branches offers the possibility to switch a single transition leads to a parallel activation of more than one step. After this
common activation, the individual branches are processed independently from one another. Parallel branches are connected by
parallel junctions.
Step2:If user has pressed any pushbutton ,transition will happen and it moves to the next state S1 storing the preference in the
memory. To check whether coffee or tea is pressed. In a Transition section, ladder diagram is implemented as shown in fig:
Step3: Then a coin is inserted, so the SFC is moved on to next state i.e.S2
Step4: After the coin is inserted ,based on the preference (coffee or tea) stored in the memory the corresponding branch in SFC is
executed to dispense coffee or tea.In the below fig: we have considered that coffee push button is pressed,so one of the alternate
branch is being executed which is shown in green colour.
Step6: Once the beverage is delivered, it is ready to accept the new request.
IV. CONCLUSIONS
Automated Coffee Tea Vending machine is successfully implemented on Programmable Logic Controller M340.by Schneider
Electric.Sequential Functional Chart used for PLC is a graphical language which is easier to understand and implement.The main
drawback of having any automated machine is that it will ultimately lead to decrease in manpower which leads to unemployment
issues in populated countries. Another drawback is the difficulty in adaptating to an new situation that may arise when dealing with
users
V. ACKNOWLEDGMENT
The work presented in this paper has been supported by the Dr.Philippe Colonec and Dr.Mahesh. of New Horizon College of
Engineering, Bengaluru.We would like to thank them for their valuable support and encouragement.
REFERENCES
[1] K. Thramboulidis, "Using UML in Control and Automation: A Model Driven Approach", Proc. IEEE Int. Conference on Industrial informatics (INDIN'04),
2004.
[2] Maria G. Ioannides, “Design and Implementation of PLC-Based Monitoring Control System for Induction Motor”, IEEE transactions on energy conversion,
pp. 469- 476, ISSN 0885-8969, Vol. 19, No. 3, Sept. 2004.
[3] V. Vikash and H.J. Amarendra, PLC Based Sensor Operated Obstacle Detection Carriage Vehicle, International Journal of Applied Engineering Research
ISSN 0973-4562 Volume 9, Issue 7 (2014) pp. 847-851.
[4] S. Peng, M. Zhou, "Sensor-based stage Petri net modelling of PLC logic programs for discrete-event control design", Int. J. Prod. Res., vol. 41, no. 3, pp. 629-
644, 2003.
[5] Rinchen G. Dorjee, “PLC and Fuzzy Logic Control of a Variable Frequency Drive,” International journal of engineering trends and technology, Vol. 16, No. 4,
Oct 2014, 2231-5381.
[6] Sadeghvosough, Amir vosough, “PLC and its Applications,” International journal of Multidisciplinary sciences and engineering, Vol. 2, No. 8, Nov. 2011,
2045-7057.
[7] A. Zoitl, T. Strasser, C. Sunder, T. Baier, "Is IEC 61499 in harmony with IEC 61131–3", IEEE Ind. Electronics Mag., vol. 3, no. 4, pp. 49-55, Dec. 2009
[8] "IEC, Int. Standard IEC 61131-3", Programmable Controllers—Part 3: Programming Languages International Electrotechnical Commission, 2003.
[9] S. Das, S. Dutta, A. Sarkar, S. Kar, “Recognition and Disposal of Faulty Bottles in a Bottle Filling Industry Using PLC and Producing Human Machine
Interface by SCADA”, International Refereed Journal of Engineering and Science (IRJES), pp. 18-23, ISSN 2319-183X, Volume 3, Issue 5, May 2014.
[10] K. Ali, R. Ghoni, A. N. Abdalla, “Advanced Control of Hybrid-PLC System”, International conference on modelling optimization and computing, pp. 218-
225, ISSN 1877-7058, June 2012. “
[11] E. Estévez, M. Marcos, D. Orive, "Automatic generation of PLC automation projects from component-based models", The Int. Journal of Advanced
Manufacturing Technology, Springer London, Vol.35, No. 5-6, pp. 527-540, December.