Professional Documents
Culture Documents
production plants
Programmable logic controllers (PLC) and Motion Control
(MC)
Lecture 3
WZL/Fraunhofer IPT
Agenda
1
WZL/Fraunhofer IPT
Slide 1
Circuit diagram
Signal flow
Signalfluss
Inputs
Eingnge
WZL/Fraunhofer IPT
EI11
EI22
.
.
EImm
O11
A
O22
A
Logic
network
Logiknetzwerk
.
.
Onn
A
Outputs
Ausgnge
Slide 2
Symbol
Truth table
AND
AB=F
NOT
A=F
OR
A+B=F
A
&
B
WZL/Fraunhofer IPT
A
1
B
NAND
AB=F
NOR
A+B=F
&
A
&
B
A
1
Slide 3
Meaning
F1
Never
Expression
Name
F1
F2
F3
F4
F5
F6
F7
F8
F9
F2
A and B
F3
A and not B
F4
Equal A
F5
B and not A
F6
Equal B
F7
A not equal B
XOR
F8
At least one
OR
F9
Not A nor B
NOR
F10
A equal B
XNOR
F11
Not B
F12
A or not B
F13
Not A
F14
B or not A
F15
Not one
F16
Always
Logic symbol
WZL/Fraunhofer IPT
Function
AND
NAND
Slide 4
X+1=1
X+X=1
1'
X 0=0
6'
X X=0
9'
XYZ = XY Z = X YZ
X+0=X
X + XY = X
10
XY + XZ = X Y + Z
2'
X 1=X
7'
X X+Y =X
10'
X + Y X + Z = X + YZ
X+X=X
X + Y Y = XY
11
3'
X X=X
8'
XY + Y = X + Y
11'
XY + YZ + ZX = XY + XZ
X =X
12
X + Y X + Z =XZ + XY
4'
X=X
X+Y=Y+X
13
X+Y+Z =X Y Z
5'
X Y=Y X
13'
X Y Z =X+Y+Z
WZL/Fraunhofer IPT
Associative
law
Distributive
law
De Morgan
law
Slide 5
Truth table
Inputs
WZL/Fraunhofer IPT
Outputs
F1
F2
Theorem:
(10)
F1 = ABC + A B C + C + B C + C
(10)
F1
F1
F1
F1
(6)
(2')
= ABC + A B 1+ B 1
= ABC + A B + B
= ABC + A
= BC + A
(8')
F2 = A C + B
Slide 6
Karnaugh-Veitch-map
1
4
0
3
Nr.
F=A+B
4
F1 =
Karnaugh-Veitch-map
Truth table
A + B
A
B
0
4
0
6
0
2
C
F2 =
WZL/Fraunhofer IPT
1
5
2 input variables A, B
with F1 = A OR B
Truth table
A + BC
Nr.
F1
Slide 7
Truth table
entspricht
A
0
13
B
1
15
1
14
12
1
6
0
4
1
11
D
5
0
9
WZL/Fraunhofer IPT
1
7
16
10
1
3
F3 =
BD + AD
Nr.
10
11
12
13
14
15
16
Slide 8
Complete
disjunctive normal form
Switching contacts
A
or:
Circuit diagram
B
Switching contacts
Semiconductor elements
A
F
F = BC + A
Simplified
disjunctive normal form
Truth table
&
B
B
+
WZL/Fraunhofer IPT
Slide 9
Contactconnectors
Contacts
(4 change-over
switches)
Insulated
switching bar
Switching lever
Moving
armature
Coil
connectors
A2
E
A1
( A 2 )
Link
Insulated body
Principle of a relay
(single change-over switch)
Magnetic
circuit
Coil care
Switching voltage
Symbolic
representation
WZL/Fraunhofer IPT
Slide 10
Logic symbol
Circuit diagram
R
1
S
Q
FF
Signal chart
Truth table
not def.
t
R
Semiconductor circuit
Relais circuit
+
+
R1
D3
D1
D4
R3
D2
S
t
Q
R2
R3
WZL/Fraunhofer IPT
Slide 11
D-Flip-Flop
&
Truth table
Logic symbol
&
&
&
D
Q
&
&
WZL/Fraunhofer IPT
X = Dont care
Circuit diagram
Slide 12
Logic symbol
Circuit diagram
1
T
D
T
1
Q
0
1
Q
0
WZL/Fraunhofer IPT
Slide 13
Agenda
1
WZL/Fraunhofer IPT
Slide 14
Automation
system
Control
Signal modulation
Signal processing
Signal modulation
(ampification)
&
Human leads and coordinates the informationand communicationsystem of the technical
process
Technical
task
WZL/Fraunhofer IPT
Actuator layer
Input layer
signalflow
Push Button
M
Valve
Motor
Lamp
Display
Production system
Slide 15
Robot control
CNC-control
Process
computer
Industrial PC
PLC
PC-workstation
WZL/Fraunhofer IPT
Slide 16
analogue/
digital
signals
analogue/
digital
signals
Switches
Valve
Output
ports
Input
ports
Push buttons
Photo-electric
relay
Central
processing
unit
Lamp
ROM
RAM
CPU
(Word-, Bitprocessor
EPROM
Computer
interface
Motor
Display
Power
supply
e.g. RS 485
Bus system
WZL/Fraunhofer IPT
Slide 17
hydraulic)
Composition of the control elements:
The connection (e.g. wiring) of the control elements affects the behaviour of the control
( Program) hard wired controls (HWC)
1970 tradeshow for machine tools in Chicago: presentation of the first programmable logical
control
Range of
service
IPC: Industrial-PC
PCS: Process Computer System
PLC: Programmable Logic Controller
PR: Processor
HWC: Hard Wired Controls
t
WZL/Fraunhofer IPT
Slide 18
S2
programme processing
HWC in safety critical applications
Low-level applications reduce complexity for trouble shooting
Comply with current safety rules
software
engineering
applications
WZL/Fraunhofer IPT
Slide 19
Hardware-PLC:
power supply, CPU, digital/analogue In- and Outputs
fieldbus or proprietary bus system
Slot-PLC:
Soft-PLC:
WZL/Fraunhofer IPT
SIEMENS
S7-300
Memory module
(CF-Card)
Module system
Control mode
(e.g. RUN/STOP)
Interface connection
for further devices
Device components:
Digital In-/Outputs
Analogue In-/Outputs
Positioning device
Counter device
Communication
device
Adapter for
power supply
Communication device
Industrial Ethernet
IndraControl
L40
Connection for
fieldbus (Profibus DP)
Signal state
display (LED)
Wago-System
Connection for a
programming device
Think I/O
Ethernet Profibus
digital and analogue
In-/Output component
Connection operator panel
Source: SIEMENS, BoschRexroth, Wago
WZL/Fraunhofer IPT
Slide 21
SIEMENS
S7-300
(CF-Card)
Rckwandbus
Control mode
(e.g. RUN/STOP)
Anschaltbaugruppen:
Digitale Ein-/Ausgnge
Analoge Ein-/Ausgnge
Positionierbaugruppe
Modulsystem
Zhlerbaugruppen
peripheral I/O KommunikationsInterface connection
devices
baugruppen
for further devices
PLC-Master (third-party manufacturer)
IndraControl
L40
Anschluss fr
Netzspannung
Kommunikationsbaugruppe
Industrial Ethernet
Anschluss fr
Feldbus (Profibus DP)
Signalzustandsanzeige (LED)
Wago-System
Anschluss fr
Programmiergert
Think I/O
Ethernet Profibus
Features of the
Slide 22
Digital
Inputs & Outputs
CF-Card for
PLC program
Ethernet connection
Source: Phoenix Contact
WZL/Fraunhofer IPT
Slide 23
continued
(unless the main program has been generally interrupted)
Time-controlled processing
The program cycle is interrupted by an internal time signal
continued
WZL/Fraunhofer IPT
Slide 24
I0. 0 1 2 3 4 5 6 7
Tin
PII
1. Instruction
2. Instruction
3. Instruction
Jump instruction
i: U E0.0
i+1: U E0.1
i+2: = A1.0
:
:
:
:
Ti
Ti+1
Ti+2
Tout
Program
length
Memory
size
N
TPrg Tin Ti
i 0
Last instruction
PIO
Tout
Q1. 0 1 2 3 4 5 6 7
WZL/Fraunhofer IPT
PII: process image Input
PIO: process image Output
Ladder Diagram
Functional Block D.
I1 I2 I3 Q1
I1
I2
I4
I3
I4
Q1
&
& =
>
=1
Instruction List
A
A(
AN
A
ON
)
= Q1
I1
I2
I3
I4
Structured Text
IF Bed1 THEN
Z:=-1;
ELSE
Z:= 1;
END_IF;
:
Programming device
PLCprogrammer
WZL/Fraunhofer IPT
PLCprogram
Slide 26
Nomenclature
Circuit
diagram
Ladder
Diagram (LD)
Operation
Normally
open contact
Inputs
Normally
closed contact
( )
Outputs
(relay)
Relays or
signal output
elements
( )
WZL/Fraunhofer IPT
Slide 27
Operation
Symbol
OR
AND
NOT
Bracket
Bracket
Assign
Set
Reset
WZL/Fraunhofer IPT
Instruction List
AND
AND NOT
Assign
A I1
AN I2
= Q1
AND
OR
SET
A I1
O I2
S Q1
Ladder Diagram
I1
I2
Q1
/
I1
Q1
S
I2
Slide 28
WZL/Fraunhofer IPT
Slide 29
IPC (Windows +
Computer vision)
Valve module
(pneumatic)
Laser-control
(Windows PC) +
marking laser
Industrial robot
Slide 30
WZL/Fraunhofer IPT
Slide 31
USB stick
delivery
lamp control
WZL/Fraunhofer IPT
Slide 32
monitoring and
diagnose
logical operations
interlocking
optional sequences
...
time measuring
validy checks
error handling (text or graphics)
...
Graphical user
interface shared
with NC
additional tasks
tool management
production data acquisition
...
WZL/Fraunhofer IPT
Slide 33
program
design
AN I 3.0
A
I 4.1
O
I 2.4
S
Q 3.5
Program structure
Re-usability
Design of program modules
programming
Instruction list
Ladder diagram
Function plan
Programming languages
program testing
WZL/Fraunhofer IPT
Documentation
Upgrades
Corrections
Slide 34
Software errors
Frequency
erroroccurrence
Software costs
errorelimination
Documentation
10%
35%
t
A
A:
F:
P:
T:
B:
Planning,
Design
Task definition
Function specification
Programming
Test, start-up
Operation
WZL/Fraunhofer IPT
40%
Test,
correction
15%
Programming
Slide 35
Correction of errors
in PLC software
Observe output
Control desk
PLC
Inputs
I1.1
I1.2
I1.3
I1.
Lamps
A1.0
A1.1
WZL/Fraunhofer IPT
Q1.2
Q1.3
Q1.
Elaboration of the
PLC program
Programming unit
Generation and
modification of
the PLC-program
Outputs
Slide 36
Planning and
control of the
simulation
Process
monitoring
Influencing the
simulation
Error recognition
by comparing
sequences and
specification
WZL/Fraunhofer IPT
Simulation
computer
Signal
Influencing
Machine model
Actual
process
status
PLC
Input
Output
Simulation of
control process
behaviour
Read Input
Calculate
PLC program
Wirte Output
cyclical
Application-oriented
simulation elements
Slide 37
Control system
SimbaPCI-card
Usage of original
NC-/PLC-Hardware
Simulation task: modeling
the mechatronical
behaviour of sensors and
actuators
Real time communication
(max. speed: 10 ms)
I/O-signals
Actual
axis-value
HMI
BTSS
NC
Features of a
HIL-Simulation:
plant
actuators
OP
PLC
Control components
of a machine tool
Profibus
I/O
Sensors
Slide 38
Control system
Engineering process:
Adjustment of the hardware
SimbaPCI-card
configuration
Engineering of the
mechatronical behaviour of
PLC controlled devices and
actuators
Engineering of the NC-kernel
variables to be assigned via
the HMI-interface
HMI
BTSS
NC
OP
PLC
Profibus
drag
& drop
Parameterization
Design
Model
Engineering process in the application
development system
WZL/Fraunhofer IPT
Slide 39
Simulation computer
Control system
HMI
of axis/machine movement
(NC und PLC controlled)
Many configuration options
of the operator panel to
control the peripheral
components event based
BTSS
NC
OP
PLC
Profibus
OnlineOperator
panel
WZL/Fraunhofer IPT
VRMLModel
Slide 40
Actuator and
snsor layer
Cell and
control layer
Planning layer
Shop floor control layer
Cell layer
Control layer
Actuator-Sensor layer
WZL/Fraunhofer IPT
Cross-link to other
machines
Cross-linking main
drive and feed drive
Ethernet
Fieldbus
Connection to cell
and shop floor control
Local I/O
Local PLC
(Local Intelligence)
Cross-linking binary
actuators and sensors
Slide 41
Direct link
(conventional)
Control cabinet
Conventional wiring
Single head control
In-/Outputend device
Machine
process 1
PLC
PLC
headcontrol
Bus
Reduced wiring
In-/Outputend device
process 1
in case of an error
process n
local link
(Fieldbus system)
Control cabinet
e.g. local
I/O-module
Machine
Master
PLC
Bus
PLC
Fieldbus
In-/
Outputend device process 1
Slave
PLC
process n
Easy development
Easy trouble shooting
avoidance
WZL/Fraunhofer IPT
Slide 42
IEC Standard
DIN EN Standard
DIN EN IEC Standard
DIN EN ISO/IEC Standard
DIN ISO Standard
ISO Standard
IEC Standard
ISO Standard
EN Standard
EN IEC Standard
EN ISO Standard
German Institute of
standardization
IEC 61508
machine tools
Intern./european validity
National laws
Safety umbrella
for the world ?
Area:
Slide 43
Error indication
a
b
Control 1
c
Channel 1
Comparator
a
b
Control 2
c
Channel 2
Input elements
Process
WZL/Fraunhofer IPT
Slide 44
I1
Input
Signal
L1
O1
Output
Signal
Cross
Monitoring
Monitoring
Sensor 1
I2
Input
Signal
L2
Safety gate
Output
Signal
O2
feedback
Sensor 2
spindle
Machine tool
Source: PILZ
Slide 45
Compact solution
Emergency-stop
Switch
off
Switch
on
Switch
on
k1
Secure
relay
Unlocking
k2
k3
Unlocking
K1
WZL/Fraunhofer IPT
K2
K3
Slide 46
b
c
Error indicator
Control 1
Channel 1
a
b
c
2 of 3Control 2
Voter
Channel 2
a
b
c
Control 3
Channel 3
Input elements
Process
WZL/Fraunhofer IPT
Slide 47
PLC-button analysis
A
A
SPB
AN
AN
SPB
A
AN
=
released
+
I1
I2
10
I1
I2
5
I2
I1
M1
Input 1
Input 2
Go to 10, if both buttons are pressed
Inverse input 1
Inverse input 2
Go to 5, if both buttons are released
Input 2
Inverse Input 1
Status pressed
Further processing
I1
I2
pressed
GND
WZL/Fraunhofer IPT
M10
Slide 48
+
relay 1
Output 1
Control 1
Input 1
+
relay 2
Output 2
Control 2
Input 2
relay 3
Consumer
WZL/Fraunhofer IPT
Slide 49
Zusammenfassung
WZL/Fraunhofer IPT
Slide 50