Tải bản đầy đủ (.doc) (10 trang)

Các điểm chính khi sử dụng PLC, bộ nhớ, ngoại vi, chu kỳ quét

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (168.36 KB, 10 trang )


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 :
• 123+'(456176889:;1;98<;=>8>??0
• 1'#+!'('3@#8A'B'#+CD0
• )/#50
• =&+,-./'8- E-382+,-./FC0
• 1C!-+,-./0
C. Lý thuyÕt :
I. Bé nhí cña PLC :
0 ?2%761+!2%G H%I#JK @%L ./
#!LM'!MN# 
O0 ?2%;7618;;7618+!2%G 5@+,-./+(P 
) +,-./8K @@+#%L ./G  0
0 ?2%7>1+!2%2 K @%L ./!"#M
.#  F0?2%!CQ #)P 8R4FC-'B
)  .'Q F!-M$'STDF!MN#0
U0 VW4#X<*+4#.' +W%( Y&-Z[[8[[
'B[6[86\\[8! .' 2%]G!8
C$8R8^'.8<'#+$^'.
• %L&+!2)%8+# *2) 0
• =)%+R-F#('!2?C$5M   *_
• AFC$+R-F#('!2^'.`'B2R0
• AF^'.+R-F#('!2<'#+$^'.
• 1a)%+# *2) W4#P G3G F##
0
• *!3.%#S?C$`VR`^'.`<'#+$^'.0


• bK %!'.FDF

Oc
d0 ZK 2%X1a+'(5W4#!-ZK 2%
e # + DFaK +!F#0 FCK +'(9c
O%+'(fF#/-ZK e F#0AgR
R g+4#!O@h* #.#2%!
 05# K %DF-Z!K F#X
0 bK %!'.F
O0 bK %.#  F
0 bK % F'-
U0 bK %=$.8'#$.0
d0 bK %B4
II. ThiÕt bÞ ngo¹i vi :
0 ?2+,-./FC''+
O0 +,-./P C0
0 - E-3C!0
III. Ng«n ngò lËp tr×nh:
i@+,-./'5+'( ) *+,-./F#8!.' -
+,-./P CQ 5* +4#C@] *F+'( )
 *50
0  ) * MjF ><
•  ) *!C %(' 4(9F.'-FC(
k2 !l#C./5Lj(#@' 4!L 
./#@+,-./P /%X
O_
6176X
VW4#X
0 SF$+8G3%#!'
0 SF$+8G 3%#!'

 0 SF$+8G 3%#.F
0 SF$+8G3%#.F
9cOX
:0 SR:8G3%#!':0
m0 SRm8G3%#.Fm0
O0  ) *Y+4 89=+!FZ#+4b(F'-
.R5L ./P 9=F#X
<  
67 
><6= 
6f= 
;<HJ
0  ) e3+' Xn%F' 4
b(F'-0b'9:;1;9X
Oo
p
q

m0
:0
m00

:0
A/O ) *3' 
9F.
9'-
V
V
r


9'-
9F
V
V
;<
A/F
A/L 
./
A/
F9Lj(#@+' 4
0L ./+,-./'1
0L ./+,-./9cO
:0
:0
m0
m0
A/sL ./
IV. Chu kú quÐt vµ thêi gian quÐt
iB@+!4DF5#t!.Q.(0
=#tX
1a#t j%+!4DFfF#X
• ig++#!'
• ='`'B+W
• n"#M.F#.F
• nF'-#50
=Q Fl42#t g+!="#Eu-#232
f82!L ./8Q F F'-0
="#E@4-MG DF%FC]DF '(0
=.Q.(X1aQ@fS+!240
<'FB@!CR.'  -MvW.' .Q -F#X

• =4#!'8.FCR##FC]F0
• =.2 ) ' #30
• MMk .Q.(' #@'4
#@+R0
1)M#t"#EDFL ./ MjF X

#t
"#E
A/O#t"#EDF
V. C¸c b ¬c lËp tr×nh cho PLC :


9F
_03%&l
sL ./v w
o0V@.F3
Vv
0(C43
0s#sL ./8
! F'
9FsL 
./
0=/@#xCR##) 
 4
O04R] !'.F8
g
0Z] !'.F
U0<l +s#jsL ./
d0<&+s#jF  Mj
F 0

y0,-./ MjF 
!'

sL ./v w
c01)-z sL ./
@.F-
<#
i#
9F
9F=
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
#OA=A=OA=??O==O=
f
9Lj E-31>O<7%&DF43 #

@.' 5X
i#!' jX
• v#@
• ) h!./A=8A=O
• M
• ) h=8=O8=
i#.F j-X
• 'F'.V8VO
• 7$+$X787O
• 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
9Lj+h-.-1'#+(C'3@#P 1>O<7X

i#!' jX
• ) h=8=8=O8=8=U8=d8=y8=c
i#.F j-'B+!.$+$'B+!•'X
• 7$+$X 78787O8787U87d87y87c
• 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

9Lj E-3'#+(Cg3@#9cOX
i#!' jX
• ) hX =8=8=O8=8=U8=d8=y8=c
=8=8=O8=8=U8=d0
i#.F j-'B+!.$+$8'B+!•'X
• 7$+$X 78787O8787U87d87y87c
• i•'X <8<8<O8<8<U8<d8<y8<c0
D. C¸c bíc thùc hµnh
0 =/@##- #j'84-8{ 4w0
O0 =/@# E-3#!'%&#@8‚
#{ 4FC"#F-@.' .Q -3#61
# %L -rOUb8!3%Z-0
0 =/@# E-3#.F%&#@8‚
#{ 4FC"#F-@.' .Q -3#61
# %L -rOUb8!3%Z-0
U0 =.Q -M5#.F E-=.F'.!/#!'-M
3!'w
d0 nM(F'Q FC3#!'61# %L -8#@
/w0
y0 3ZC!' #j!&#@0MMM'
hh4- #j--Mv %Lj 4CR##@
MM')  ZC #C@'&0
c0 - #j'!43 0
_0 iBk27f
o0 iF4#!'P ,h) h#!'!N$•
'4#'.R#!'0
0=.Q -#!'3%#8'B) h!
.//2 !'v'BM@!./0
0=.Q -#!'3%MƒF4#!'#
M!N$•'4#'.R#!'0

O0Vvl!8= #j8.„z&8''#'(0
E. C©u hái cuèi bµi häc
0 ZlF# *FM#.F E-=.F'.!8
3%0
O0 M'4#.F'!'w0
0 #W /.' +h-B0
U0 =&+,-./FCK @+! /w
d0 =& E-3%CK €+! /w
y

×