Beruflich Dokumente
Kultur Dokumente
LANGUAGES
LADDER LANGUAGE
ladder relay
timing
counting
program/flow control
arithmetic
data manipulation
data transfer
special function (sequencers)
network communication
6
BOOLEAN
Some PLC manufacturers use Boolean language,
also called Boolean mnemonics, to program a
controller.
GRAFCET
Grafcet (Graphe Fonctionnel de Commande
tape Transition) is a symbolic, graphic
language, which originated in France, that
represents the control program as steps or
stages in the machine or process.
In fact, the English translation of Grafcet
means step transition function charts.
As the IEC 1131 standards sequential
function charts (SFCs), which allow several
PLC languages to be used in one control8
Grafcet translation
10
12
13
14
15
16
Ladder matrix
(a)functional block instructions
(b)Enhanced ladder format functional instructions.
17
18
19
20
EXAMINE-ON/NORMALLY OPEN
EXAMINE-OFF/NORMALLY CLOSED
21
OUTPUT COIL
22
23
ONE-SHOT
OUTPUT
24
TRANSITIONAL CONTACT
25
26
27
TIMER INSTRUCTIONS
28
29
30
31
32
COUNTER INSTRUCTIONS
33
34
35
Program/flow control
instructions
They direct the flow of operations, as
well as the execution of instructions,
within a ladder program.
They perform these functions using
branching and return instructions,
which are executed when certain
already programmed control logic
conditions occur.
36
37
38
39
40
41
42
ARITHMETIC INSTRUCTIONS
43
Arithmetic Instructions
(a) Coil
(b) contact
(c) block format.
44
45
46
47
48
49
DIAGNOSTICS
A diagnostics (DIAG) block
compares two memory blocks.
instruction
50
51
52
53
Network Send/Receive
54
BOOLEAN MNEMONICS
It is a PLC language based primarily on the
Boolean operators AND, OR, and NOT.
55
56
57
CALC1
DI
CALC
PUMP
>=1
IN1 OUT
MAN_ON
IN2
ACT
DO
START STEP
T1
STEP A
T2
STEP B
PUMP
IN2
MAN_ON
%QX2 (* FAN ON *)
N ACTION D3 D3_READY
T3
IN1 OUT
ACT
D ACTION D2 D2_READY
D ACTION D4 D4_READY
CALC1
AUTO
N ACTION D1 D1_READY
textual languages
Structured Text (ST)
VAR CONSTANT X : REAL := 53.8 ;
Z : REAL; END_VAR
VAR aFB, bFB : FB_type; END_VAR
bFB(A:=1, B:=OK);
Z := X - INT_TO_REAL (bFB.OUT1);
IF Z>57.0 THEN aFB(A:=0, B:=ERR);
ELSE aFB(A:=1, B:=Z is OK);
END_IF
58
59
(b) an IEC
1131-3 environment
60
61
62
for
63
(AI)
64
SEQUENTIAL FUNCTION
CHARTS (SFC)
Sequential functional chart, or SFC, is a
graphical language that provides a
diagrammatic representation of control
sequences in a program.
Basically, sequential function chart is a
flowchart-like
framework
that
can
organize the subprograms or subroutines
(programmed in LD, FBD, IL, and/or ST)
that form the control program.
65
Sequential function
chart of a mixing
process
67
Comparison of an
SFC diagram and a
flowchart
68
69
70
(a)Level 1 SFC
level 2 SFC
71
PROGRAMMING
NORMALLY CLOSED
TRANSITIONS
72
73
74
75
I/O NETWORKS
76
CPU
Real-Time
Clock
ROM
flash
EPROM
Ethernet
parallel bus
fieldbus
controller
field bus
buffers
analogdigital
converters
digitalanalog
converters
Digital Output
Digital
Input
signal
conditionin
g
power
amplifiers
relays
signal
conditioning
external
I/Os
78
79
81
82
83
An InterBus-S network
with a host controller
interface to a PLC
84
85
86
87
88
Profibus hierarchy
89
90
91
THE END
92