Professional Documents
Culture Documents
Introduction .............................................................................. 2
PLCs ..........................................................................................4
Number Systems ..................................................................... 8
Terminology ...........................................................................14
Basic Requirements ............................................................... 23
S7-200 Micro PLCs ................................................................. 28
Connecting External Devices ................................................ 39
Programming A PLC ..............................................................41
Discrete Inputs/Outputs......................................................... 52
Analog Inputs and Outputs ................................................... 65
Timers .....................................................................................68
Counters .................................................................................75
High-Speed Instructions ........................................................ 80
Review Answers ....................................................................84
Final Exam ..............................................................................85
Introduction
PLCs
Input
Module
CPU
Central Processing
Unit
Programming
Device
Output
Module
Operator
Interface
Hard-wired control
OL T1
OL T2
OL T3
L1
460 VAC L2
L3
Motor
OL
M
1
CR
24 VAC
Stop
Start
CR
CR
PLCs
Advantages
Siemens PLCs
S7-200
Number Systems
Binary system
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
10
1, 10, 100, 1000, ...
0, 1
2
Powers of base 2 (1, 2, 4, 8, 16, ...)
27
128
26
64
25
32
24
16
23
8
22
4
21
2
20
1
Converting binary
to decimal
2)
3)
64
32
16
8
+ 16
24
64
32
16
8
+ 32
40
Byte
Word
Logic 0, logic 1
BCD
10
Decimal
Numbers
0
1
2
3
4
5
6
7
8
9
BCD
Numbers
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
Hexadecimal
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
16
Powers of base 16 (1, 16, 256, 4096 ...)
The ten digits of the decimal system are used for the first ten
digits of the hexadecimal system. The first six letters of the
alphabet are used for the remaining six digits.
A = 10
B = 11
C = 12
D = 13
E = 14
F = 15
16
16 = 1
1
16 = 16
B = 11
161
160
11 x 1 = 11
2 x 16 = 32
43
11
Conversion of numbers
12
BCD
Binary
1
1
1
1
1
111
111
1000
1 1111
1 1111
10 0000
0
1
10
11
100
101
110
111
1000
1001
1010
1011
1100
1101
1110
1111
0000
0001
0010
0011
0100
.
.
1110
1111
0000
.
.
1110
1111
0000
0001
0001
0001
0101
0101
0101
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
0001 0000
0001 0001
0001 0010
0001 0011
0001 0100
0001 0101
0001 0110
0001 0111
0001 1000
0001 1001
0010 0000
.
.
0010 0110
0010 0111
0010 1000
.
.
0001 0000
0001 0001
0001 0010
Hexadecimal
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
10
11
12
13
14
.
.
7E
7F
80
.
.
1FE
1FF
200
Review 1
1.
a. ______
b. ______
d. ______
c. ______
e. ______
2.
3.
4.
____________
BCD
____________
Hexadecimal
____________
13
Terminology
Actuators
14
Discrete input
15
Analog inputs
PLC
Inputs
Discrete outputs
Light
PLC
Outputs
16
Analog outputs
CPU
I0.4
I0.1
Q0.0
Q0.1
I0.5
17
Ladder logic
STEP 2000
Basics of
Control
Components
I0.0
I0.1
Q0.0
Output Element
or Instruction
Network 1
I0.4
Network 2
I0.5
18
Q0.1
Statement list
Programming
PLC scan
Read
Inputs
PLC Scan
Update
Outputs
Diagnostics,
Communications
19
Software
Hardware
Memory size
20
1 K Memory
1 K Memory
1 K Memory
1 Bit
2 Bits
3 Bits
1 Byte
2 Bytes
3 Bytes
1 Word
2 Words
3 Words
1024 Bits
1024 Bytes
1024 Words
RAM
ROM
EPROM
Firmware
21
Putting it together
22
Basic Requirements
PLC
PLC
Programming Device
Programming Software
Connector Cable
23
Programming devices
24
Software
Programming
Device Cable
25
26
Review 2
1.
2.
3.
4.
5.
6.
7.
8.
9.
PLC
Programming Device
Programming Software
Connector Cable
Printer
27
Output Points
Input Points
S7-200 models
Programming
Port
There are two S7-200 CPU types: S7-212 and S7-214. The
S7-212 has 8 inputs and 6 outputs and the S7-214 has 14
inputs and 10 outputs. There are three power supply
configurations for each CPU type.
Power Supply
28
Output
S7-214
29
Mode switch
Expansion modules
Bus Expansion
Port Cover
Bus Connector
30
Expansion Module
(Optional)
Available expansion
Status indicators
31
Installing
Output
32
I/O numbering
Q 0.0
Q 0.1
Q 0.2
Q 0.3
Q 0.4
Q 0.5
Q 0.6
Q 0.7
33
Inputs
Input Devices
Connected Here
Pushbutton
Switch
34
Input simulator
Light
Output Devices
Wired Here
Relay
35
Optional connector
Field Wiring
Fan-Out
Connector
Connector
Post
36
Reference sources
37
Review 3
1.
2.
38
Mode Switch
Memory Cartridge Receptacle
Programming Port
Status Indicators
3.
4.
5.
6.
7.
8.
9.