C¸c ®iÓm chÝnh khi sö dông PLC
bé nhí, ngo¹i vi, Chu kú quÐt
A. Môc ®Ých yªu cÇu
•
• !"#$%& '(! ) *+,-./0
B. ChuÈn bi :
• 123+'(456176889:;1;98<;=>8>??0
• 1'#+!'('3@#8A'B'#+CD0
• )/#50
• =&+,-./'8- E-382+,-./FC0
• 1C!-+,-./0
C. Lý thuyÕt :
I. Bé nhí cña PLC :
0 ?2%761+!2%G H%I#JK @%L ./
#!LM'!MN#
O0 ?2%;7618;;7618+!2%G 5@+,-./+(P
) +,-./8K @@+#%L ./G 0
0 ?2%7>1+!2%2 K @%L ./!"#M
.# F0?2%!CQ #)P 8R4FC-'B
) .'Q F!-M$'STDF!MN#0
U0 VW4#X<*+4#.' +W%( Y&-Z[[8[[
'B[6[86\\[8! .' 2%]G!8
C$8R8^'.8<'#+$^'.
• %L&+!2)%8+# *2) 0
• =)%+R-F#('!2?C$5M *_
• AFC$+R-F#('!2^'.`'B2R0
• AF^'.+R-F#('!2<'#+$^'.
• 1a)%+# *2) W4#P G3G F##
0
• *!3.%#S?C$`VR`^'.`<'#+$^'.0
• bK %!'.FDF
Oc
d0 ZK 2%X1a+'(5W4#!-ZK 2%
e # + DFaK +!F#0 FCK +'(9c
O%+'(fF#/-ZK e F#0AgR
R g+4#!O@h* #.#2%!
05# K %DF-Z!K F#X
0 bK %!'.F
O0 bK %.# F
0 bK % F'-
U0 bK %=$.8'#$.0
d0 bK %B4
II. ThiÕt bÞ ngo¹i vi :
0 ?2+,-./FC''+
O0 +,-./P C0
0 - E-3C!0
III. Ng«n ngò lËp tr×nh:
i@+,-./'5+'( ) *+,-./F#8!.' -
+,-./P CQ 5* +4#C@] *F+'( )
*50
0 ) * MjF ><
• ) *!C %(' 4(9F.'-FC(
k2 !l#C./5Lj(#@' 4!L
./#@+,-./P /%X
O_
6176X
VW4#X
0 SF$+8G3%#!'
0 SF$+8G 3%#!'
0 SF$+8G 3%#.F
0 SF$+8G3%#.F
9cOX
:0 SR:8G3%#!':0
m0 SRm8G3%#.Fm0
O0 ) *Y+4 89=+!FZ#+4b(F'-
.R5L ./P 9=F#X
<
67
><6=
6f=
;<HJ
0 ) e3+' Xn%F' 4
b(F'-0b'9:;1;9X
Oo
p
q
m0
:0
m00
:0
A/O ) *3'
9F.
9'-
V
V
r
9'-
9F
V
V
;<
A/F
A/L
./
A/
F9Lj(#@+' 4
0L ./+,-./'1
0L ./+,-./9cO
:0
:0
m0
m0
A/sL ./
IV. Chu kú quÐt vµ thêi gian quÐt
iB@+!4DF5#t!.Q.(0
=#tX
1a#t j%+!4DFfF#X
• ig++#!'
• ='`'B+W
• n"#M.F#.F
• nF'-#50
=Q Fl42#t g+!="#Eu-#232
f82!L ./8Q F F'-0
="#E@4-MG DF%FC]DF '(0
=.Q.(X1aQ@fS+!240
<'FB@!CR.' -MvW.' .Q -F#X
• =4#!'8.FCR##FC]F0
• =.2 ) ' #30
• MMk .Q.(' #@'4
#@+R0
1)M#t"#EDFL ./ MjF X
#t
"#E
A/O#t"#EDF
V. C¸c b ¬c lËp tr×nh cho PLC :
9F
_03%&l
sL ./v w
o0V@.F3
Vv
0(C43
0s#sL ./8
! F'
9FsL
./
0=/@#xCR##)
4
O04R] !'.F8
g
0Z] !'.F
U0<l +s#jsL ./
d0<&+s#jF Mj
F 0
y0,-./ MjF
!'
sL ./v w
c01)-z sL ./
@.F-
<#
i#
9F
9F=
Một số l u khi thực hiện các b ớc lập trình cho PLC:
Bớc 1 :=/@#xCR##) 4.' %!C Q+,-./-M/
@#xCR##) 4!-M]N# CR##{#/
.' lB! QB! S"#FZCR##{
CR##@l44B.F/Q )
R#+R0
Bớc 2:4RCD] !'.F8] l.*8-.@
43 00!g53#!'.F+%L'BP $'CR##0
Bớc 3 :Z] !'.F' #CRhR#ZD #CRh@
#,4'4+,-./8$'|@.F-4+aF#X
Phân cổng vào ra theo chức năng yêu cầuX#!'32
F'8#!'>F+' 8#!'+' 8-Mv %#!'G
DF
Phân cổng vào ra có dụng ý:$'R g8'B$'./l2 @
, M 4#'DF0}$'|-4+a
!}+,-./0
Bớc 7X(C)-z @.FL ./
M('.F,-4#L llF!'#!'
~$"#M#.F.R!.R-)-z 09'%+W
#C0
Bớc 8,9 :3%&l8-M@.Fhh- E-3000
$'v Lj #CR+W8MM'- #j-l4v 00
MM'hh4- #j--Mv %Lj #CR+W00
CR##@MM') ZC #C@'&0
Bớc 10 :(C'!243 $'%F#X
iMM'hh43 3v
iMM'hh43 L8#+lE(C0
(Ch-0
(Cl2 0
(Cl2 '!43 0
Bớc 11:?! F'8#L ./8X
=l4! F'$'v D4(C@.F8(C
48#C@ F') 48DM'./8M'!00!
-RF F! F'$'CR##0
O
• #L ./8%( \+$8€%;\7618=!+4#0
1. S¬ ®å l¾p r¸p PLC víi c¸c thiÕt bÞ cña hÖ ®iÒu khiÓn :
1>
O<7
CH0 COM + 00 01 02 03 04 05 06 07 08 09 10 11
rOU
CH10 00 01 02 03 04 05 06 07
Com Com Com Com Com Com Com Com
rOUb
b
V VO 7 7O V VU
#OA=A=OA=??O==O=
f
9Lj E-31>O<7%&DF43 #
@.' 5X
i#!' jX
• v#@
• ) h!./A=8A=O
• M
• ) h=8=O8=
i#.F j-X
• 'F'.V8VO
• 7$+$X787O
• i•'<8<O000
4. S¬ ®å l¾p r¸p Modul d¹y häc PLC tèi thiÓu b»ng PLC CPM1A:
U
1>
O<7
CH0 COM 00 01 02 03 04 05 06 07 08 09 10 11
rOU
CH10 00 01 02 03 04 05 06 07
Com Com Com Com Com Com Com Com
rOUb
b
7 7 7O 7U 7U 7d 7y 7c
9Lj+h-.-1'#+(C'3@#P 1>O<7X
i#!' jX
• ) h=8=8=O8=8=U8=d8=y8=c
i#.F j-'B+!.$+$'B+!•'X
• 7$+$X 78787O8787U87d87y87c
• i•'X <8<8<O8<8<U8<d8<y8<c0
6. S¬ ®å l¾p r¸p Modul d¹y häc tèi thiÓu b»ng PLC - S7-200-CPU215:
d
9Lj E-3'#+(Cg3@#9cOX
i#!' jX
• ) hX =8=8=O8=8=U8=d8=y8=c
=8=8=O8=8=U8=d0
i#.F j-'B+!.$+$8'B+!•'X
• 7$+$X 78787O8787U87d87y87c
• i•'X <8<8<O8<8<U8<d8<y8<c0
D. C¸c bíc thùc hµnh
0 =/@##- #j'84-8{ 4w0
O0 =/@# E-3#!'%&#@8‚
#{ 4FC"#F-@.' .Q -3#61
# %L -rOUb8!3%Z-0
0 =/@# E-3#.F%&#@8‚
#{ 4FC"#F-@.' .Q -3#61
# %L -rOUb8!3%Z-0
U0 =.Q -M5#.F E-=.F'.!/#!'-M
3!'w
d0 nM(F'Q FC3#!'61# %L -8#@
/w0
y0 3ZC!' #j!&#@0MMM'
hh4- #j--Mv %Lj 4CR##@
MM') ZC #C@'&0
c0 - #j'!43 0
_0 iBk27f
o0 iF4#!'P ,h) h#!'!N$•
'4#'.R#!'0
0=.Q -#!'3%#8'B) h!
.//2 !'v'BM@!./0
0=.Q -#!'3%MƒF4#!'#
M!N$•'4#'.R#!'0
O0Vvl!8= #j8.„z&8''#'(0
E. C©u hái cuèi bµi häc
0 ZlF# *FM#.F E-=.F'.!8
3%0
O0 M'4#.F'!'w0
0 #W /.' +h-B0
U0 =&+,-./FCK @+! /w
d0 =& E-3%CK €+! /w
y