- jp ~) Tie'p di@m chuy@n deli duefng cho phep dong
e/ M;;tch hon hQ'p 5: OR trU'6'c AND
Xac l~p vao/ra
Ki hi$u 0i9 chf Chu thich S1 10.1 Cong t.k thLI'ang m& S2 10.2 Conq tac thLI'CYnq m& S3 10.3 Conq tac thU'anq m& S4 10.4 Cong tac thLI'CYng m& K
K1 Q0.1 Cuon day ngat di$n tCr
Hinh 4.21: SO' <16 m?Ch ai{)n Hinh 4.22: Bang xac l?P vao/ra
Network 1 ~~,,~ NETWORK TITLE (single line) :NE1WORK 1 / /NE1WORK TITLE (single line)
/ / 10.1 Q0.1 //NETWORK COMMENTS 10.1 Q0.1 //NETWORK COMMENTS H I ( ) ! / / IQ2 ,.,J LD 10.1 ,LD 10.2 :0 10.4 :,.,:r ,A 10.3 OLD = QO .1
Hinh 4.23. ChU'O'ng trinh vi§t trong PLC bieu dien & LAD v a STL
Mo ta: Ngo ra Q0.1 chT c6 tfn hi$u bang 1, n§u ngo vao 10.1 hoc;1c ngo vao 10.3 va ngo vao
10.2 hoc;1c 10.4 c6 tin hi$u bang 1.
Bai t~p:
Vi§t chll'ang tr1nh theo bang cau l~nh & h1nh 4.23 bang thi§t bi l~p tr1nh va chuyen vao PLC.
Thu chU'O'ng tr1nh
4.1.4 Bai t~p ll'ng d1:1ng a/ Lien k~t XOR a/ Lien k~t XOR
Hinh 4.24: Sa c1o mq1ch c1i?n
Network 1 m;~~ NETWORK TITLE (single line)
10.1 10.2 Q0.1
4-I-IT)
10.1 10.2
4 1 -1 ---ti 1
Xac lap vao/ra
Kf hi~u 0i9 chT Chu thich
S1 10.1 Nut nhan thLI'O'nq m&
S2 10.2 Nut nhan thLI'O'ng m&
H5 Q0.1 0en bao
Hinh 5.25: Bang xac l?P vao/ra
NEn/ORK 1 / /i'JEn/ORK TITLE
/ / //NET,1/ORK COMMENTS //NET,1/ORK COMMENTS / / LD IO .1 ,A IO. 2 LDN IO .1 AN I0.2 OLD Q0.1 (single line)
Hinh 4.26: ChLPang trinh vi@t trong PLC bi§u di@n & LAD v a STL
Mo ta: Ngo ra cua lo9i c6ng lien k§t nay lu6n c6 tin hi~u bang 1, khi hai ngo vao c6 gia trj gi6ng nhau (ho,'[lc 0 ho,'[lc 1 ).
Bai t~p:
Vi§t chLI'O'ng tr1nh bang thi§t bi l~p tr1nh va chuyen vao PLC. Thu chll'O'ng tr1nh.