Вы находитесь на странице: 1из 224

‫‪P.L.C.

‬‬
‫الجزء األول‬

‫ريمون كمال‬
1
Controllore a logica programmabile P. Bani 2
Siemens Programmable Controller Manual 3

2011

P.L.C.





PLC 

plcbook@hotmail.com
PLC 

PLC 

PLC 

PLC 

PLC 

PLC 

5
PLC

Programmable Logic Control PLC

8635 general motors -

8641 8641

8646 8642

6
PLC
PLC

PLC

PLC

analog

7
0111

85482 Kbps
PLC

8
x x

9
PLC

10
PLC unit

CPU PLC
output input

PLC

PLC PLC

timers control
counters

11
PLC

PLC

power supply
(step down transformer)
(rectifier)

:PLC (power supply)


220V AC
(power supply)
rectifier PLC

12
(power supply)
balance

C.P.U. "Central Processing Unit"


PLC
.

0.6ms 12KB CPU 313 


0.3ms 24KB CPU 314 

memory -
volatile memory PLC -

13
input and output modules

. PLC

. PLC

+ _

-
PLC
PLC -

14

15
Push Buttons

Limit Switches

16
Proximity Switches

Photocell Switches

17
Float Switches

Pressure Switches

18
Thermo states

Contactors

19
Static relays

Solenoid Valves

20
Indication Lamps

Horns

21
Thermo Couple

Tacho generator

22
Driver
mv – ma – v – Ω

Damper motor
mv – ma – v –

23
memory

CPU PLC
PLC

volatile memory -
PLC
(battery, plug)

permanent -
PLC memory

24
PLC

bipolar junction transistor

:(Positive Negative Positive)PNP -


PNP PLC
M

:(Negative Positive Negative)NPN -


NPN PLC
L+

25
PLC PNP NPN PLC
(PNP)

PLC (NPN)

NPN PNP PLC


PLC output input
PLC

PLC L
M
PLC

PLC

26
Digital & Analog

Digital

digital

digital input
YES TRUE ON
(NO FALSE OFF

digital output
YES TRUE ON
(NO FALSE OFF


27
Analog

Analog

Analog input

Analog output

28

word -

29
Transistor or Relay

Transistor

output transistor PLC


: output relay

24V DC output
0.5A 0.36A

30
Relay

output relay PLC


: output transistor

output
24V DC, 220V AC, 110VAC , 12V DC
2.5A 2A

31
output relay output transistor
relay interface

Relay interface
PLC PLC

coil
contact

Coil
PLC ١
PLC ٢
Contact
١
٢
32
PLC
PLC
PLC

PLC
PLC

33
output transistor PLC -

output relay PLC -

34
.

PLC
PLC

PLC

solenoid PLC

solid state relay PLC

35
PLC

CPU

CPU
PLC CPU

36
PNP PLC
NPN

PNP

NPN

37
PLC
relay transistor

Transistor
output transistor
DC transistor
24V DC

Relay
output relay
RLY relay

PLC
(24V DC – 220V AC - ……..V DC - …….V AC)

38
PLC

DC/DC/DC - AC/DC/RLY

:DC/DC/DC .

CPU DC -
DC -
DC -
DC DC

39
DC/DC/DC

:AC/DC/RLY .

CPU AC
DC
RLY

40
AC/DC/RLY DC/DC/DC -
DC/DC/DC output transistor -
AC/DC/RLY output relay -

41
PLC

input optical coupler PLC

PLC

42
PLC

43
PLC

PLC
.Analog adjustment
-
٥

Extension module

44
Indicators

Run - Stop - S.F.

RUN -
run PLC run

STOP -
stop PLC stop

SYSTEM FAULT -
PLC system fault

stop S.F.
PLC
run

45
Mode Switch PLC
PLC
Run - Stop - Terminal

:RUN -
run PLC run

:STOP -
stop PLC stop

:TERMINAL -
PLC terminal
run stop

46
:Analog adjustment

:Programming Cable -
PLC
PPI (Point to Point Interface)
PLC

9.6Kbps -
19.2Kbps
187.5Kbps -

9.6Kb 9.6Kbps -
19.2Kb 19.2Kbps -

47
(Data exchange Indicator) S7 200
PPI - Tx - Rx

PPI -
Point to Point Interface PPI
computer PLC
Tx -
Transfer Data Tx
PLC
Rx -
Receive Data Rx
PLC

Battery
PLC

48
Lithium
- 3.6V -

(ampere curve) -

(ampere curve) -

Memory
PLC

volatile memory PLC -


non volatile memory PLC -

49
-
Random Access Memory RAM

-
Read Only Memory ROM

ROM -

EPROM - EEPROM - FLASH MEMORY

50
-

Electrical Programmable Read Only Memory EPROM

-
EPROM

Erasable Electrical Programmable Read Only Memory EEPROM

-
EPROM

-
51
EPROM
erase
memory cartridge

FLASH MEMORY

PLC

PLC

-
FLASH MEMORY EEPROM EPROM
RAM

52
Extension Module -

-
EM221
EM222
EM223 -
EM223 -
EM223

-
EM231
EM232
EM235 -

53
PLCS

PLC CPU 224 -


PLC
PLC CPU 214 -
PLC

PLC

PLC

PLC

Computer - HMI

54
Computer
PLC
PLC

(Human Machine Interface)

55
PLC (CPU 224 PLC -
CPU PLC (CPU 224 XP)
CPU 224 XP 224

CPU 224 XP CPU 224

56
57
PLC 

PLC 

59
PLC

PLC BIT
1

PLC BYTE
8 bits
1 0 1 0 0 0 1 1

PLC WORD
16 bits 2 bytes

0 1 1 1 0 1 0 0 1 0 0 1 0 1 1 1

PLC D.WORD
32 bits 4 bytes 2 words

1 1 1 0 0 1 0 1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 0 0 1 0 0 1 0 1 1 1

........................ ,BIT 4, BIT 3, BIT 2, BIT 1, BIT 0 


 BYTE 0, BYTE 1, BYTE 2, BYTE 3, ………………………
 WORD 0, WORD 2, WORD 4, WORD 6, …………..
 D.WORD 0, D.WORD 4, D.WORD 8, D.WORD 12

60
bit bit
Dword word byte
bits

(Byte 0) (Byte 1)

1 0 1 0 0 0 1 1 1 0 1 0 0 0 1 1

(Word 0)

(Byte 2) (Byte 3)

0 0 1 1 0 0 1 1 1 0 1 0 1 0 0 1

(Word 2)

61
(Word 0) (Word 2)

(Double word0)

(Byte 500) (Byte 501)

1 0 1 0 0 0 1 1 1 0 1 0 0 0 1 1

(Word 500)

(Byte 502) (Byte 504)

0 0 1 1 0 0 1 1 1 0 1 0 1 0 0 1

(Word 502)

62
(Word 500) (Word 502)

Double word500

Byte 4 Byte 5 Byte 6 Byte 7

Word 4 Word 6

Double word 4

Byte 12 Byte 13 Byte 14 Byte 15

Word 12 Word 14

Double word 12

63
byte

bit0.7 bit0.6 bit0.5 bit0.4 bit0.3 bit0.2 bit0.1 bit0.0

Byte 0

bit11.7 bit11.6 bit11.5 bit11.4 bit11.3 bit11.2 bit11.1 bit11.0

Byte 11

61

bit bit 
byte bit b2.0 bit byte
byte bit b5.6

byte byte 
byte byte bits
byte 0 bytes
byte 1 byte

64
word word 
word word bits
words
word 2 word word 0
byte 3 bits word 2
byte2

D.word 
D.word bits D.word
D.word
D.word D.word0 D.words
D.word4
byte3 bits D.word0
word0 word2 byte0 byte1 byte2

65
PLC

binary -
decimal -
hexadecimal -
BCD -
real -
floating point -
ASCII -

binary

(10010111)2

binary

 BIT.
 BYTE.
 WORD.
 DOUBLE WORD.

66
decimal

(55)10

decimal

 BYTE.
 WORD.
 DOUBLE WORD.

hexadecimal -

D C B A , ,
F E

(6A2F)16

hexadecimal

 BYTE.
 WORD.
 DOUBLE WORD.

67
Binary Code Decimal -

0 0 1 1

BCD

 BYTE.
 WORD.
 DOUBLE WORD.

real -

52.14

REAL

 DOUBLE WORD.

68
floating point -

+5.2120000 + E 1

FLOATING

 DOUBLE WORD.

American Standard Code for Information


Interchange

PLC

69
70
binary format 

format 
decimal

PLC

binary decimal 

binary decimal
:100
100 / 2 = 50 ‫الباقى‬ 0
50 / 2 = 25 ‫الباقى‬ 0
25 / 2 = 12 ‫الباقى‬ 1
12 / 2 = 6 ‫الباقى‬ 0 (100)10 = (1100100)2
6/2=3 ‫الباقى‬ 0
3/2=1 ‫الباقى‬ 1
1 ‫الباقى‬ 1

71
‫‪:‬‬

‫‪100‬‬ ‫‪2‬‬ ‫‪0‬‬


‫‪50‬‬ ‫‪2‬‬ ‫‪0‬‬
‫‪25‬‬ ‫‪2‬‬ ‫‪1‬‬
‫‪12‬‬ ‫‪2‬‬ ‫‪0‬‬
‫‪6‬‬ ‫‪2‬‬ ‫‪0‬‬
‫‪3‬‬ ‫‪2‬‬ ‫‪1‬‬
‫‪1‬‬ ‫‪2‬‬ ‫‪1‬‬

‫‪255 10‬‬
‫‪255 / 2 = 127‬‬ ‫الباقى‬ ‫‪1‬‬
‫‪127 / 2 = 63‬‬ ‫الباقى‬ ‫‪1‬‬
‫‪63 / 2 = 31‬‬ ‫الباقى‬ ‫‪1‬‬
‫‪31 / 2 = 15‬‬ ‫الباقى‬ ‫‪1‬‬ ‫‪(255)10 = (11111111)2‬‬
‫‪15 / 2 = 7‬‬ ‫الباقى‬ ‫‪1‬‬
‫‪7/2=3‬‬ ‫الباقى‬ ‫‪1‬‬
‫‪3/2=1‬‬ ‫الباقى‬ ‫‪1‬‬
‫‪1‬‬ ‫‪1‬‬
‫‪:‬‬
‫‪255‬‬ ‫‪2‬‬ ‫‪1‬‬
‫‪127‬‬ ‫‪2‬‬ ‫‪1‬‬
‫‪63‬‬ ‫‪2‬‬ ‫‪1‬‬
‫‪31‬‬ ‫‪2‬‬ ‫‪1‬‬
‫‪15‬‬ ‫‪2‬‬ ‫‪1‬‬
‫‪7‬‬ ‫‪2‬‬ ‫‪1‬‬
‫‪3‬‬ ‫‪2‬‬ ‫‪1‬‬
‫‪1‬‬ ‫‪2‬‬ ‫‪1‬‬

‫‪72‬‬
binary decimal

Binary numbers
DECIAML BINARY DECIMAL BINNARY
 000000000  00110011

 00000010  00110100

 00000011  00110101

 00000100  00110110

 00000101  00110111

 00000110  00111000

 00000111  00111001

 00001000  00111010

 00001001  00111011

 00001010  00111100

 00001011  00111101

 00001100  00111110

 00001101  00111111

 00001110  01000000

 00001111  01000001

 00010000  01000010

 00010001  01000011

 00010010  01000100

73
decimal binary 
1 20 bit0 bit
bits
27 26 25 24 23 22 21 20

128 64 32 16 8 4 2 1

255 byte

bit decimal binary

11011100 2 -
11001110 2 -
01001111 2 -

11011100 2

1 1 0 1 1 1 0 0

27 26 25 24 23 22 21 20

128 64 0 16 8 4 0 0

220 byte

74
11001110 2

0 0 0 0 1 1 1 0

27 26 25 24 23 22 21 20

128 64 0 0 8 4 2 0

206 byte

01001111 2

0 1 0 0 1 1 1 1

27 26 25 24 23 22 21 20

0 64 0 0 8 4 2 1

79 byte

75
hexadecimal decimal 

16 hexadecimal decimal
100 :‫ رقم‬-
50 :‫ رقم‬-

111
100 / 16 = 6 ‫الباقى‬ 4
6 = 6 ‫الباقى‬ 6 (100) = (64)
10 16

:
100 16 4
6 6

01
50 / 16 = 3 ‫الباقى‬ 2
3 = 3 ‫الباقى‬ 3 (50) = (32)
10 16

:
50 16 2
3 3

76
decimal hexadecimal 
16 decimal hexadecimal
:101A ‫ رقم‬-
:A0F ‫ رقم‬-

101A

1 0 1 A

163 162 161 160

4096 0 16 10

4122

200F

2 0 0 F

163 162 161 160

8192 0 0 15

8207

77
binary hexadecimal 
binary hexadecimal
:1A ‫ رقم‬-
:AF ‫ رقم‬-

1A
1 A

23 22 21 20 23 22 21 20

0 0 0 1 1 0 1 0

: byte

00011010

AF
A F

23 22 21 20 23 22 21 20

1 0 1 0 1 1 1 1

: byte

10101111

78
hexadecimal binary 

decimal binary
hexadecimal

:(11001010)2 ‫ رقم‬-
:(00010111)2 ‫ رقم‬-

1 1 0 0 1 0 1 0

23 22 21 20 23 22 21 20 (11001010)2

12 10

hexadecimal

(CA)16

0 0 0 1 0 1 1 1
(00010111)2
3 2 1 0 3 2 1 0
2 2 2 2 2 2 2 2

1 7

hexadecimal

(17)16

79
floating point real 

real

+4549,107 ‫ رقم‬-
-719,17 ‫ رقم‬-

+4549,107

+4549,107

+ 4 , 5 4 9 1 0 7 + E 3

103 +4,549107

-719,17 ‫رقم‬

-719,17

- 7 , 1 9 1 7 + E 2

102 -7,1917

80
real floating point 

floating point

+4,549107+E3 ‫ رقم‬-
-6,11107+E3 ‫ رقم‬-

+4,549107+E3

+ 4 , 5 4 9 1 0 7 + E 3

+4549,107
3
10 +4,549107

-6,11107+E3

- 6 , 1 1 1 0 7 + E 3

-6111,07
3
10 -6,11107

81
Integer Math

Unsigned 
bits

byte 
1 1 1 1 1 1 1 1

27 26 25 24 23 22 21 20

128 64 32 16 8 4 2 1

255 byte

byte 
0 0 0 0 0 0 0 0

27 26 25 24 23 22 21 20

0 0 0 0 0 0 0 0

byte

82
byte 22 
0 0 0 1 0 1 1 0

27 26 25 24 23 22 21 20

0 0 0 16 0 4 2 0

22 byte

Signed 
bit bits

bit

byte 
0 1 1 1 1 1 1 1

+ 26 25 24 23 22 21 20

+ 64 32 16 8 4 2 1

+127 byte

83
byte 
0 0 0 0 0 0 0 0

+ 26 25 24 23 22 21 20

+ 0 0 0 0 0 0 0

+0 byte

byte +22 
0 0 0 1 0 1 1 0

+ 26 25 24 23 22 21 20

+ 0 0 16 0 4 2 0

+22 byte

bit

84
byte 
1 1 1 1 1 1 1 1

-27 26 25 24 23 22 21 20

-128 64 32 16 8 4 2 1

-1 byte

byte 
1 0 0 0 0 0 0 0

-27 26 25 24 23 22 21 20

-128 0 0 0 0 0 0 0

-128 byte

byte 22 
1 1 1 0 1 0 1 0

-27 26 25 24 23 22 21 20

-128 64 32 0 8 0 2 0

-22 byte

85

computer PLC 

communication 

PG/PC interface 

acccess path 

PPI 

local connection 

PLC 

PLC 

87

setup 

88

 next

yes 

89
 browse

next 

90

PLC

PLC
(USB) PLC (Series)

91
92
COMMUNICATIONS

Local
PLC Remote
PLC Type
Save setting
Interface
Protocol
CPU processor Mode
PLC Highest Station

HMI PLC Supports

93
PLC Baud Rate
Search all baud rates
PLC
Set PG/PC
communication
PLC PC/PPI cable

Double click to refresh

Set PG/PC interface

94
ACCCESS PATH

:PLC -

Properties -

Select -

SET PG/PC Help


Cancel
Ok

95
PPI

PLC Station Parameters


PLC Address
Timeout
PLC Advanced PPI
PLC Multiple master network
PLC Transmission rate

96
PLC Highest station address

Ok
Default
Cancel
SET Help
PG/PC

LOCAL CONNECTION

97
USB Connection to
COM
PLC Modem connection
Ok
Default
Cancel
Help
SET PG/PC INTERFACE

98
Compile Compile all

compile compile all


Total Errors 

99
PLC Stop

PLC computer Download

100
PLC computer

CPU
CPU

CPU CPU

PLC
help

CPU RUN CPU


STOP RUN

PLC Run

101
PLC 

(LAD) 

(FBD) 

(STL) 

cycle time 

scan time 

ladder 

103
PLC

(Ladder Diagram Method)


(Function Block Diagram)
(Statement List)

LAD Ladder Diagram Method


FBD Function Block Diagram
STL Statement List

LADDER 

FBD 

STL 

104
Ibit0.7 Ibit0.6 Ibit0.5 Ibit0.4 Ibit0.3 Ibit0.2 Ibit0.1 Ibit0.0

I Byte 0

Ibit1.7 Ibit1.6 Ibit1.5 Ibit1.4 Ibit1.3 Ibit1.2 Ibit1.1 Ibit1.0

I Byte 1

Qbit0.7 Qbit0.6 Qbit0.5 Qbit0.4 Qbit0.3 Qbit0.2 Qbit0.1 Qbit0.0

Q Byte 0

105
Qbit1.7 Qbit1.6 Qbit1.5 Qbit1.4 Qbit1.3 Qbit1.2 Qbit1.1 Qbit1.0

Q Byte 1

(Ladder Diagram Method)

I0.3 S1

I1.7 S2

Q1.1 H1

106
:LADDER ‫شكل عام للبرمجة بلغة الـ‬ 

(Function Block Diagram) 

107
OR

AND

NOT

FBD 

108
(Statement List) 

AND A

OR O

NOT N

109
STL 

Ladder Diagram Method

PLC

PLC

PLC

110
contact inputs

normally open

normally close

normally close

normally open

overload

111
I0.1 & I0.2

I0.0 & I0.1 & I0.2

112
I0.1

113
I0.1 & I0.2

PLC
Cycle time 
Scan time 

Cycle time

PLC
Network
Network

1ms 0.3ms

114
Scan time
PLC
(Read input)
(Execute program)
(Update output)

Scan time = Cycle time x Program size [Kbps]

L
S1

K1M

115
I0.1/S1 n.o.

Q0.0/K1M

110 I0.1
Q0.0 I0.1

116

L
S1 K1M

S2
K1M

I0.2/S1 n.o.
I0.0/S2 n.c.

Q0.6/K1M

117
110 I0.1
I0.0
Q0.0 I0.1
Q0.0 I0.0

118

S1 K1M

S2

S3

K1M

I0.5/S1 n.o.
I0.6/S2 n.c.
I0.7/S3 n.c.

Q0.4/K1M

119
110 I0.5
I0.6
I0.7
Q0.0 I0.5
Q0.0 I0.7 I0.6

120
K2M K1M 
L

S1 K1M S2 K2M

S3 S4

K2M
K1M K2M

I0.1 / S1 n.o.
I0.2 / S2 n.o.
I0.3 / S3 n.c.
I0.4 / S4 n.c.

Q0.2 / K1M
Q0.4 / K2M

121
I0.2 I0.1
110
I0.4 I0.3
Q0.2 I0.1
Q0.4 I0.2
Q0.4 Q0.2

122
K2M K1M 
L

S1 K1M S2 K2M

S3 S4

K2M
K1M K2M

I0.1 / S1 n.o.
I0.2 / S2 n.o.
I0.3 / S3 n.c.
I0.4 / S4 n.c.

Q0.2 / K1M
Q0.4 / K2M

123
I0.2 I0.1
110
I0.4 I0.3
Q0.2 I0.1
Q0.4
Q0.4 I0.2

Q0.4 Q0.2

124

L S3

OL

S2 K2M S1 K1M

K1M K2M

K1M K2M

I0.1 / S1 n.o.
I0.2 / S2 n.o.
I1.1 / S3 n.c.
I1.2 / OL n.c.

Q0.2 / K1M
Q0.4 / K2M

125
I0.2 I0.1
110
I1.2 I1.1
Q0.2 I0.1
Q0.4 I0.2

Q0.4 Q0.2

126

PLC

S1
S2

S3 S4 S5 S6

I0.0 I0.1

Q0.2

I0.0 / S1 n.c.
I0.0 / S2 n.c.
I0.0 / S3 n.c.
I0.1 / S4 n.o.
I0.1 / S5 n.o.
I0.1 / S6 n.o.

Q0.2 / K1M

127
I0.1
110
I0.0
Q0.2 I0.1
Q0.2 I0.0

128

PLC

S1

S2
S3 S4 S5 S6

I0.0 I0.1

Q0.2

I0.0 / S1 n.o.
I0.0 / S2 n.o.
I0.0 / S3 n.o.
I0.1 / S4 n.c.
I0.1 / S5 n.c.
I0.1 / S6 n.c.

Q0.2 / K1M

129
I0.1
110
I0.0

I0.0
Q0.2
PLC I0.1
Q0.2

130
PLC

I0.1 / S1 n.o.
I0.2 / S2 n.o.
I1.1 / S3 n.c.
I1.2 / S4 n.c.

131
I0.2
Network CYCLE
Q0.4 Network1 (n) Cycle
Q0.4 Network2

Q0.4 Network1 Cycle


Network2 (n+1)

I0.2
Network CYCLE
Q0.4 Network1 Cycle
Q0.4 Network2 (n+3000)
Q0.4 Network1 Cycle
Network2 (n+3001)

I1.1
I0.2 I0.1
I1.1

Q0.2 PLC
Q0.4 Q0.2 Q0.4
Q0.4 Q0.2

132
Markers
PLC marker

markers

Mbit0.7 Mbit0.6 Mbit0.5 Mbit0.4 Mbit0.3 Mbit0.2 Mbit0.1 Mbit0.0

M Byte 0

Mbit9.7 Mbit9.6 Mbit9.5 Mbit9.4 Mbit9.3 Mbit9.2 Mbit9.1 Mbit9.0

M Byte 9

133

I0.1/S1 n.o.
I0.2/S2 n.o.

Q0.0/K1M

I0.2
PLC marker
marker
Set/Reset marker

134
Network1
marker I0.1 M0.4 I0.1

Network2
Q0.0 Cycle M0.4

135
Positive edge

Pulse catch on to off.

Positive Edge.

Positive Transition.

Positive Pulse.

positive edge
cycle positive edge
positive edge time

136
Negative edge

Pulse catch off to on.

Negative edge.

Negative pulse.

Negative transition.

Negative edge
Negative edge
Negative edge
Negative edge cycle time

137
138
negative edge positive edge

positive edge

negative edge

negative edge

139
positive edge

I0.0
negative edge positive edge

I0.0

140
Set/Reset

Set

Reset

Set

output Set

Reset

output Reset

141
Q0.2 Q0.1 Q0.0 I0.1 

Q0.2 Q0.1 Q0.0 I0.0 

142
set/reset output output

output output
set/reset

output output
reset set
output
output
Reset Set

output
output

143

I0.1/S1 n.o.
I0.2/S2 n.o.

Q0.0/K1M

Network1
Q0.0 Set I0.1
Q0.0 Set

Network2
Q0.0 Reset I0.2
Q0.0 Reset

144
145

I0.1/S1 n.o.
I0.2/S2 n.o.
I0.3/S3 n.o.
I0.4/S4 n.o.

Q0.1/K1M
Q0.2/K2M

Network1
Q0.2 Q0.1 Set I0.2 I0.1
Q0.1 Set

Network2
Q0.2 Q0.1 Reset I0.4 I0.3
Q0.1 Reset

146
Reset Reset

147
Set/Reset

I0.1/S1 n.o.
I0.2/S2 n.o.
I0.3/S3 n.o.

Q0.1/K1M
Q0.2/K2M

Network1
Q0.1 Set I0.1
Q0.1 Q0.1 Set
Q0.2

Network2
Q0.1 Reset I0.3
Q0.1 Reset

148
Network3
Q0.2 Set I0.2
Q0.2 Q0.2 Set
Q0.1
Network4
Q0.2 Reset I0.3
Q0.2 Reset

149
Network1
Q0.1 Set I0.1
Q0.1 Q0.1 Set
Q0.2

Network2
Q0.2 Set I0.2
Q0.2 Q0.2 Set
Q0.1

Network3
Q0.2 Q0.1 Reset I0.3
Reset
150
PLC 

TON 

TOF 

TONR 

CPU 224 

CPU 214 

151
PLC
(Timer On Delay)TON
(Timer Off Delay)TOF
(Retentive Timer On Delay)TONR

TON/TOF

T32 ; T96 ms TON/TOF


sec.

T33  T36 ; ms TON/TOF


T97  T100 sec.

T37  T63 ; ms TON/TOF


T101  T255 sec.

152
TONR

T0 ; T64 ms TONR

T1  T4 ; T65  T68 ms TONR

T5  T31 ; T69  T95 ms TONR

 Integer

16bits  Word

 Signed

word
86723
CPU214 TOF -

153
T32 TON
ms

T102 TON
ms

T97 TOF
ms

T255 TOF
ms

T0 TONR
ms

T5 TONR
ms

154
TON

TOF

155
TONR

reset

156
TON

I0.0/S1 n.o.

T37 TON

Q0.0/K1M

157
T37 I0.0
I0.0 T37 Q0.0

TOF

I0.0/S1 n.o.

T33 TOF

Q0.0/K1M

158
T33 I0.0
Q0.0 T33

159
TONR

Timer reset

I0.0/S1 n.o.

T37 TONR

Q0.0/K1M

T1 I0.0
reset T1 Q0.0
I0.1

160
161
Timers

TON

TOF

TONR

TON 

I0.0/S1 n.c.
I0.1/S2 n.o.

T32 TON

Q0.1/K1M
Q0.2/K2M

162
Network1
Q0.1 111 I0.0 I0.1

Network2
T32 Q0.1 cycle
Network3
Q0.2 Network3 CPU

163
TOF 

I2.0/S1 n.c.
I2.2/S2 n.c.
I3.1/S3 n.o.

T100 TOF

Q0.5/K1M
Q4.4/K2M

Network1
Q4.4 111 I2.0 I3.1

Network2
T100 Q4.4 cycle
Q4.4
Network3
Network3 CPU Q4.4
Q0.2

164
165
TONR 

I0.0/S1 n.c.
I1.0/S2 n.c.
I1.1/S3 n.o.

T0 TONR

Q2.2/K1M
Q2.4/K2M

Network1
Q2.2 111 I1.0 I1.1

Network2
T0 Q2.2 cycle
Network3
Q2.4 Network3 CPU
Network4
Reset I0.0

166
I0.0 Positive edge 
reset
T0 Q2.2 
T0 Q2.2
Q2.2

167
PLC 

CTU 

CTD 

CTUD 

CPU 224 

CPU 214 

169
PLC

(Counter Up) CTU


(Counter Down) CTD
(Counter Up and Down) CTUD

170
CTU/CTD/CTUD(CPU 224)

C0  C255 + CTU
C0  C255 + CTD
C0  C255 + CTUD

CTU/CTD/CTUD(CPU 214)

C0  C47 + CTU
CTD
C48  C127 + CTUD

 Integer

 Word
16bits
 Signed

171
word

C10 CTU

C29 CTD

CTUD
C100

172
R CTU

CTU

173
CTD
LD

CTD

CTUD

174
CTUD

CTU

175
I0.0/S1 n.o.
I0.2/S1 n.o.

C44 CTU

Q0.0/K1M

I0.0
Q0.0 C44
I0.2

176
CTD

I0.0/S1 n.o.
I0.1/S1 n.o.

C1 CTD

Q0.0/K1M

177
I0.0
Q0.0 C1
I0.1

178
CTUD

I0.0/S1 n.o.
I0.1/S1 n.o.

C48 CTUD

Q0.0/K1M

179
I0.1 I0.0
I0.0
Q0.0 C44
I0.2

180
counters

CTU

CTD

CTUD

CTU 

I0.0/S1 n.c.
I0.1/S2 n.o.
I0.3/S3 n.c.
I0.5/S4 n.o.

C12 CTU

Q0.0/K1M
Q0.1/K2M
181
Network1
Q0.0 111 I0.0 I0.1

Network2
C12 Q0.0 cycle

182
Network3
Network3 CPU
Q0.1

CTD 

I0.0/S1 n.c.
I0.1/S2 n.o.
I0.3/S3 n.c.
I0.5/S4 n.o.

C33 CTD

Q0.0/K1M
Q0.1/K2M

Network1
Q0.0 111 I0.0 I0.1

183
Network2
C12 Q0.0 cycle
Network3
Network3 CPU
Q0.1

184
CTUD 

I0.0/S1 n.c.
I0.1/S2 n.o.
I0.3/S3 n.c.
I0.5/S4 n.o.
I0.6/S5 n.o.

C200 CTUD

Q0.1/H1
Q0.2/H2

Network1
111 I0.0 I0.1
I0.0 I0.2 C200
C200 111

Network2

185
Network3

186
PLC 

bit 

byte 

word 

Dword 

bit 

PLC 

187
variables

PLC

variables

bit - byte - word - Dword

PLC V(BIT)
1

PLC V(BYTE)
8 bits
1 0 1 0 0 0 1 1

PLC V(WORD)
16 bits 2 bytes
0 1 1 1 0 1 0 0 1 0 0 1 0 1 1 1

PLC V(D.WORD)
32 bits 4 bytes 2 words

1 1 1 0 0 1 0 1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 0 0 1 0 0 1 0 1 1 1

188
..................VBIT 4, VBIT 3, VBIT 2, VBIT 1, VBIT0 
 VBYTE 0, VBYTE 1, VBYTE 2, VBYTE 3, …………………….
 VWORD 0, VWORD 2, VWORD 4, VWORD 6, ………….
 VD.WORD 0, VD.WORD 4, VD.WORD 8, VD.WORD 12

bits
D.words words bytes

V (Byte 4) V (Byte 5)

1 0 1 0 0 0 1 1 1 0 1 0 0 0 1 1

V (Word 4)

189
V (Byte 6) V (Byte 7)

0 0 1 1 0 0 1 1 1 0 1 0 1 0 0 1

V (Word 6)

V (Word 4) V (Word 6)

V (Double word4)

64

Vbit
V0.3 , V0.2 , V0.1 , V0.0 -
VD.word VWord VByte
- VB2 , VB1 , VB0
- VW4 , VW2 , VW0
- VD8 , VD4 , VD0

190
:‫ مثل الـريليه‬Vbit ‫ مثال باستخدام الـ‬

I0.0/S1 n.c.
I0.1/S2 n.o.

V0.0 bit

Q0.2/K1M

S2 R1 R1

S1

R1 K1M

191
Network1
RELAY MARKER V0.0 I0.1

Network2
Q0.2 V0.0

192
Vword -

I0.0/S1 n.o.

VW0 word

Q0.0/K1M
Q0.1/K2M

Network1
T200 I0.0

Network2
Q0.0

Network3
Q0.1

193
-

I0.0
-

194
PLC 

CPU 214 

CPU 224 

Byte 

Word 

Dword 

195
Compare

CPU214 CPU224
CPU 224 CPU 214

√ √

√ ---------

√ √

√ ---------

√ √

√ ---------

196
Equal to

Greater than
or equal

197
Less than or
equal

Not equal to

Greater than

198
Less than

PLC

Byte
Byte Byte

Word
Word Word

D.Word
D.Word D.Word

199
D.Word
D.Word Real

D.Word
Byte
Byte String

Byte

VB MB QB IB
AC SMB
VB MB QB IB
AC SMB

VW MW QW IW
C T AC SMW
VW MW QW IW
AIW C T AC SMW
AQW

200
VD MD QD ID
AC SMD
VD MD QD ID
AC SMD

VD MD QD ID
AC SMD
VD MD QD ID
AC SMD

VB MB QB IB
AC SMB
VB MB QB IB
AC SMB

IB
IW
ID
QB
201
QW
QD
MB
MW
MD
byte VB
word VW
Dword VD
SMB
SMW
SMD
AC

202

I0.0/S1 n.c.
I0.1/S1 n.o.

T50 I
T50 I

Q0.4/K1M
Q0.7/K1M

Network1
T50 I0.1

Network2
Q0.4

Network3
Q0.7

203
204

I0.1/S1 n.c.

T33 < I
T33 < I
T33 > I

Q0.4/K1M
Q0.7/K1M

Network1
T33 I0.1

Network2
Q0.4 I0.1

Network3
Q0.7

205
206

I1.1/S1 n.o.

T32 > I
T32 < I
T32 < I
T32 < I

Q0.2/K1M
Q3.1/K1M

Network1
T32 I1.1

Network2
Q0.2 I1.1

207
Network3
Q3.1

208
PLC 

byte 

byte 

word 

word 

Dword 

Dword 

Dword 

209
MOVE

MOVE 

210
Word Byte BLKMOVE 
D.word

BLKMOVE MOVE 

Byte

Byte
Byte

Byte

Word

Word

211
Word

Word

D.Word

D.Word Dword

D.Word

D.Word

D.Word Real

D.Word

212
Byte

Byte

Byte Byte

Byte

Byte

Word

Word

Word Word

213
Word

Word

DWord

DWord

DWord Dword

DWord

DWord

214
QB IB
AC SMB VB MB IN

QB
AC SMB VB MB
OUT
QW IW
AC SMW VW MW IN

SMW VW MW QW
AC
OUT
QD ID
AC SMD VD MD IN

QD
AC SMD VD MD
OUT
QD ID
AC SMD VD MD IN

QD
AC SMD VD MD
OUT

215
SMB VB MB QB IB
AC IN

QB
AC SMB VB MB
OUT
٢٥٥ ‫ إلى‬١ ‫من‬ N

VW MW QW IW
AC SMW IN

SMW VW MW QW
AC
OUT
٢٥٥ ‫ إلى‬١ ‫من‬ N

SMD VD MD QD ID
AC IN

QD
AC SMD VD MD
OUT
٢٥٥ ‫ إلى‬١ ‫من‬ N

216
I0.0/S1 n.c.
I0.1/S2 n.o.
I1.1/S3 n.o.
I1.2/S4 n.o.
I1.3/S5 n.o.

T32 TON

MOV_W Word
MOV_W Word
MOV_W Word

Q0.0/K1M

217
218
Network1
Q0.0 I0.1

T32

Network2
T32

Network3
VW8 I1.1

Network4
VW8 I1.2

Network5
VW8 I1.2

219
5
6 PLC
9
12 PLC
14
25 PLC
32
36 PLC
42 PLC
45
46
47
47
48
49
53
54 PLC

59
66
61
65
66 binary
67 decimal
67 hexadecimal
68 BCD
68 Real
69 floating point
69 American Standard Code
71
82 Integer
81
82 signed

87
88
91 PLC
93 communication
98 download

163
164
165
166 LAD
167 FBD
169 STL
116
115
133 marker
134
136 positive edge
137 negative edge
141 set/reset
144 set/reset

151
152
152
157 TON
158 TOF
166 TONR

169
176
171
175 CTU
177 CTD
179 CTUD

187
188
191 bit
193 word

195
196
197
262

269
216
211
217







41 41 41 





P.L.C. 
P.L.C. 

Вам также может понравиться