Asg 10 Data Processing and Software en
Asg 10 Data Processing and Software en
232
10. Data treatment Summary
and software
10
11
12
233
10. Data treatment 10.1 Definition
and software 10.2 Introduction
This section deals with the processing function discussed in the first section and
includes a description of industrial software and its interaction with automation
system processes. Unlike other sections, we shall not go into details about concepts
such as systems, programming languages, etc. Many publications are available to
the readers.
10.1 Definition
Programmable Logic Controller (PLC) is the name used for a
programmable electronic device for controlling industrial systems by
sequential processing.
It sends operators (Operating Section or OS) commands based on input
data (sensors), setpoints and a program.
A PLC is a device similar to a computer and is used for instance to
control machines on an industrial assembly line. A single PLC is enough
to do what older automation systems did with hundreds or thousands of
relays and cams. The people who program PLCs are called automated
systems engineers.
10.2 Introduction
Programmable Logic Controllers (PLCs) were first developed in the 1970s.
They were initially designed to deal with the sequential logic required to
run machines and processes. At first with, their cost confined them to
large systems. Major technological developments have radically
restructured the processing function:
- the languages have been unified and standardised; the IEC 61131-3
standard defines the different types;
- the system approach is now widespread and the diagram principle
has been superseded by function blocks;
- digital systems are now widely used to process digital values as well
as analogue values with prior analogue-to-digital conversion;
- the cost of electronic components has dropped so much that PLCs
can now be used instead of relays even in simple systems;
- the communication buses used for data exchange are a competitive
alternative to conventional wiring;
- the software technology used in offices and business are increasingly
used in industrial automation systems;
- human-machine interfaces have also progressed in becoming
programmable for greater flexibility.
234
10. Data treatment 10.3 Programming, configuration and languages
and software
b Standard languages
The International Electrotechnical Commission (IEC) has developed the
standard IEC 61131 for Programmable Logic Controllers. Part 3 of this
standard (IEC 61131-3) defines the programming languages:
IL (Instruction List) is very similar to assembler language, working in
close touch with the processor by using the arithmetical and logical unit,
its registers and accumulators;
ST (Structured Text) is similar to C language used in computing;
LD (Ladder Diagram) resembles electrical diagrams and can quickly
convert an old electromechanical relay program. This way of programming
gives a visual approach to problems;
FBD (Function Block Diagram) is a suite of blocks which can be linked
together and perform any type of function from the simplest to the most
advanced;
GRAFCET (acronym for GRAphe Fonctionnel de Commande
Etapes/Transitions or Step/Transition Control Function Chart) is an automation
system representation and analysis mode particularly well adapted to sequential
systems because it can be broken down into steps. In PLC programming,
SFC can be used in a very similar way to G (Grafcet IEC848 became an
international standard in 1988 with the name of Sequential Function Chart
(SFC)). Behind each action there is an associated program written in IL, ST,
LD or FBD.
10
235
10. Data treatment 10.4 Application categories
and software
236
10. Data treatment 10.4 Application categories
and software
b Electrician solutions
Simple solutions use a few electromechanical relays to run automation
sequences. The latest generation of small PLCs are easy to use,
competitively priced starting from a few inputs/outputs and offer new
capacities without requiring any expertise in programming.
Typical applications are in the following sectors:
- industry: simple machines and additional functions in decentralised
systems;
- buildings and services: lighting management, access, control,
premises surveillance, heating, ventilation, air-conditioning.
237
10. Data treatment 10.4 Application categories
and software
v Typical diagram
The system is developed from a Twido PLC (C Fig.6) and controlled and
viewed via a Magelis keyboard/screen. Security is ensured by an emergency
stop on the main switch.
The system is hardwired and the PLC controls the starter and the messages
from the alarm module.
238
10. Data treatment 10.4 Application categories
and software
239
10. Data treatment 10.4 Application categories
and software
v Applications
This configuration is suited to the following applications (C Fig 9).
240
10. Data treatment 10.4 Application categories
and software
v Typical diagram
To make the illustration of this solution clearer, the power section and its
supply are not shown figure 10.
In the diagrammatic illustration, the system comprises:
Hardware
- Controller Inside card installed in an Altivar 71; the speed controller is
the master on a CANopen bus;
- ATV31 and ATV71 speed controllers with built-in CANopen interface;
- Lexium05 servo-drive with built-in CANopen interface. The HMI is
managed by a Magelis XBT-GT graphic terminal and linked to the
production cell by a Modbus link;
- Advantys STB distributed input/output production cells.
Software
10
- PS1131 (CoDeSys V2.3);
- PowerSuite for ATV31, ATV71 and Lexium05;
- Vijeo-Designer V4.30 for Magelis;
- Advantys Configuration Tool V2.0.
241
10. Data treatment 10.4 Application categories
and software
v Applications
We do not intend to describe an application from end to end, but to
illustrate its working principle we will make a description of a significant
part of it.
A Premium PLC is used to control a local production cell (C Fig.12).
This is a platform made up of Advantys STB inputs/outputs, four speed
controllers and external input/output modules. Each element is connected
to a CAN bus. This implementation can easily be expanded by adding
more speed controllers and inputs/outputs. The PLC is linked to the
production cell by a Modbus/TCP bus. The controllers and motors are
powered from a 230VAC network. Another source is used for a 24VDC
supply.
v Typical diagram (C Fig.12)
List of system components:
- TSX Premium (PLC),
- Phaseo (24V supply),
- ATV31 (speed controllers),
- Advantys STB (input/output cell),
- Advantys FTB IP67 input/output module,
242
10. Data treatment 10.4 Application categories
and software
243
10. Data treatment 10.4 Application categories
and software
It also includes:
- symbolic variables independent of the physical memory;
- structured user-defined data types (DDT);
- DDT and DFB function block version management in the library;
- a library of pre-animated graphic objects for operator screens;
- read/write protection of programming data to prevent any
modification;
- function block development available in C++ with the Unity EFB
Toolkit option.
Put in libraries on a local PC or a remote server, the application objects
and their properties are used and shared by all programs and any
changes made to an object in a library is effective in the programs that
use it:
- the functional modules can be used in the application or between
projects by XML import/export;
- function blocks are instantiated by drag & drop from the library;
- all instances automatically inherit library changes (as the user
chooses);
- graphic objects for operator screens are selected and configured by
drag & drop.
A PLC simulator on PC is integrated into Unity Pro and is used to fine-
tune the application as much as possible before it is commissioned on
site. It exactly reproduces the behaviour of the target program. All the
debugging tools can be used in simulation:
- step by step program execution;
- sreak and view point;
- dynamic animations to view the status of variables and the logic in
execution.
Operating screens facilitate debugging by views representing variable
status in graphic object form: indicators, trend curves, etc.
The same as for configuration, application-specific modules have special
screens to debug them: the functions available are adapted to the type of
module implemented (discrete, analogue, counter, communication I/Os,
etc.).
Operator actions are logged and archived in a standard secured Windows
file. Hypertext links are used to link the application to all the documents
and tools required for operation and maintenance.
Diagnostics tools
Unity Pro provides a library of application diagnostic DFBs. These are
integrated into the program and, depending on their function, are used to
monitor the permanent safety conditions and the progress of the process.
A viewing window displays any system and application defects explicitly
and chronologically in real time from the source. A click on the window
opens the editor of the program where the error was triggered (search for
conditions missing at the source).
Online changes can be grouped consistently in local mode on a PC and
transferred directly to the PLC in one operation to be included in the
same cycle run.
Hypertext links integrated into the application give remote or local access
to working resources (documentation, additional tools, etc.) to cut
stopping time.
There is a full range of functions to control operations:
- unity Pro operator action log in a secured file;
- user profile with a choice of accessible functions and password
protection.
244
10. Data treatment 10.4 Application categories
and software
A Fig. 14 Screen shot of various Unity Pro vues Domain Company Product
Electrical CAD ECT Promise
Electrical CAD EPLAN EPLAN
Electrical CAD IGE-XAO SEE Electrical Expert
Electrical CAD AutoDesk AutoCAD Electrical
Electrical CAD SDProget SPAC Automazione
Process Simulation Mynah Mimic
Change Management MDT Software AutoSave
Application Generator TNI Control Build
SCADA/Reporting Iconics GENESIS BizViz Suite
SCADA EuropSupervision Panorama
SCADA Arc Informatique PCVue32
Graphical User Interface ErgoTech ErgoVU
SCADA Areal Topkapi
SCADA Afcon P-CIM
MES Tecnomatix/UGS XFactory
Historian/RtPM OSISoft PI
Web Services Anyware PLC Animator
245
10. Data treatment 10.4 Application categories
and software
246
10. Data treatment 10.4 Application categories
and software
247
10. Data treatment 10.4 Application categories
and software
248
10. Data treatment 10.4 Application categories
and software
249
10. Data treatment 10.5 UAG: Application generators
and software
250
10. Data treatment 10.5 UAG: Application generators
and software
b UAG operation
Unity Application Generator is made up of three tools (C Fig.21).
251
10. Data treatment 10.5 UAG: Application generators
and software
v Application generator
Unity Application Generator is a design and functional analysis program
generating applications for PLCs and SCADAs (C Fig. 25).
252
10. Data treatment 10.5 UAG: Application generators
and software
There are two independent tasks to generate the physical and topological
models:
- The physical model describes the process in a tree structure of elements
as shown figure 25.
- The typological model describes the hardware of the automation process,
including the PLCs, inputs/outputs, networks, PCs, etc. as shown
figure 26.
10
253
10. Data treatment 10.6 Definition of the main abbreviations used
and software
254
10
255