1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Giáo trình hướng dẫn lập trình PLC

49 1,9K 9

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 49
Dung lượng 1 MB

Nội dung

Hướng dẫn chi tiết các phương pháp lập trinh PLC

Q. TRLTdNG DAI HOC BlNH DLfONG KHOA: DIEN-DIENTLf 1 D r DUNG CHO SINH VIEN NGANH: DIEN - DIEN Tli Jai iieu: « Jlt/u lianli noi hS (2007) {/ieto pUBi^ dhiAfttg 01 Trang: 1 CHI/0NG 01 ^mS5Kr® ©ofioM^asK] ^ usj) ^\np=Tr[iSKD{] c^c 1.1 .CAU TRUC CUA MOT HE THONG DIEU KHIEN TLf DONG: Vdi su phdt trien khoa hoc ky-thugt hien nay, mot he thong dieu khien tu dpng dupe hinh thdnh tCf ede thdnh phdn nhu sau: ^ Cd CAU HO AT DONG : Bao gom ede thiet bj hay ede khi cu nhUsau: > Dpng CO dien. > Kich thuy Ipc, khi nen. > Valve dien tuf. > 4 CAC CAM BIEN: Nhiem vu cua ede cam bien dung thu thdp dQ lieu; ede cam bien co the thupc ede dang nhu sau: > Tiep diem hdnh trinh. > Te bdo quang dien. > Nhiet trd (Thermistor). > Cam bien phdt hien tiep can (magnetic pick-up). > -4- CAC THIET Bl LAP TRINH HAY THIET Bl NOI KET : Nhiem vu cua ede thiet bj lap trinh hay noi ket Id xiJ ly ede di} lieu ghi nhdn dupe tdf ede cam bien vd cap ede tin hieu den co cdu tien hpat dpng (ede bp Driver) de dieu khien co cd'u hoat dpng. VPi ede thiet bj lap trinh chung ta co the si} dung ede dang sau: 133 PLC (Programmable Logic Controller). £0 Bp vi dieu khien (Micro Controller). £0 Cdc mgch dien tur dieu khien, su" dung phoi hop ede mgch tuong dong (analog) vd mgch so (digital). Cdc thiet bj ket noi thifdng tim thd'y tren he thong dieu khien tp dpng cd dien trade day bao gom: £Q Relay, contactor. £0 Cdc thiet bj dung khi nen, thuy Ipc m 4- CAC CO CAU TIEN HOAT DONG (TANG DEM- DRIVER): Nhiem vu cua cdc thiet bj trong co cd'u nay Id dieu khien cdng sud't. Khi nhdn tin hieu tuf cdc thiet bj lap trinh, cdc thiet bi trong co cd'u tien hpat dpng dieu khien thay doi trgng thai hay cdc che dp cua thiet bj trong co cd'u hpat dpng . Cdc thiet bj trong tang dem hay tien hpat dpng cd the Id: contactor; bp bien tan; bp phdn chia khi nen c/tt/ tifti Luli ltatth npi hq £}ido \Jiinli Mq.p, ^Jiinh _B_ dhu&tig. 01 Trang: 2 Cd-CAU HOAT DONG DONG CO DIEN, KICH THU Y Ll/C, KHI NEN. VALVE DIEN Ttf KHAU CHAP HANH CAM BIEN HEP DIEM HANH TRINH TE BAOQUANG DIEN THERMISTOR CAM BIEN PHATHIEN T1EP CAN THU-THAP Dl/LlgU KHAU DIEU KHIEN XU LY DU LIEU THIET-B! LAP TR]NH PLC BO VI DIEU KHIEN MACH DIEN Tl) THIET-B! NOI KET RELAY THIET Bj KHI NEN; THIET Bl THU Y Ll/C CO CAU TIEN HOAT DONG (DRIVER) CONTACTOR BIEN TAN BO PHAN CHIA KHI NEN D EU KH EN CONG SUAT 1 GIAO TIER GIljA CON NGl/Ol VOT THIET Bj MAY MOC CAC BO PHAN GIAO TIEP NUT NHAN, CONTACT, MAN HINH, BAN PHIM HANDHOLE HINH 1.1: SO do mo td cdu true cua he thong tu dong. i- CAC BO PHAN GIAO TIER: Ngoai ede thdnh phdn thupc vong dieu khien kin tren, de co the thuc hien su" giao tiep gida con ngudi den ede may moo thiet bj trong he thong tif dong; chung ta phdi suf dung den ede bp giao tiep. Mot ede tdng qudt ede thiet bj hay khi cu thupc bp phdn giao tiep bao gom: > Nut nhdn, contact > Ban phim vd may tinh PC. > Man hinh co lap trinh. > Handhold (bp ban phim lap trinh ben ngoai) tfiii Lifu lu'ii hdttJi npi Ciidxy J-Ufi \Jiinh <7)JHd fzlu/tfaa 01 Trang: 3 1 rong hinh 1.1; chung ta co mot luU do mo td tifdng quan gida cdc khau thdnh phdn trong he thong dieu khien ttf dong,. Trong do, chung ta co the thdy dadc he thong dieu khien thi/c chd't bao gdm hai khdu chinh: > Khdu chap hdnh. > Khdu dieu khien. t KHAU CHAP HANH: ffl Thao tdc hay tdc dong len nguyen lieu hodc sdn phdm. ffl Khdu chd'p hdnh bao gdm cdc bo khdi dong, may cong cu, may co cho phep thi/c hien cdc qua trinh che bien sdn phdm. Chung ta co the hinh dung khdu chap hdnh qua cdc thi du sau: ❖ Dong co dien khdi dong cdc bang chuyen van chuyen. ❖ Kich khi nen dieu khien djnh hodng chuyen cdc kien hang. ❖ Kich thuy luc dam bdo dong md may dap. ❖ 4 KHAU DIEU KHIEN: £0 Khdu dieu khien co chufc ndng : ❖ Tqo ra cdc tin hieu (hay cdc Ijnh) dieu khien khdu chap hdnh. ❖ Nhdn cdc thong tin phdn hoi vd co chufc ndng phdi hop cdc thao tdc hay cdc hdnh dong. 133 Khdu dieu khien co the thtfc hien theo mot trong hai dang cdng nghe nha sau: logic ket ndi hav logic lap trinh. Ket ndi logic co the xem nhu 1 mot dang xd Iv cdc thong tin theo dang song song (dong thdi): cung mot luc chung ta co the yeu cdu thi/c hien nhieu tdc vu, hay tdc dong len nhieu thdnh phdn trong he thong (xem so do md td trong hinh 1.2). Vdi cdng nghe logic ket ndi, sU van hdnh cua he thong daoc xdc lap bang phuong phdp ndi ket gida cdc thdnh phdn dieu khien khdc nhau. Nhu 1 vdv, khi thav doi qua trinh van hdnh, chung ta bdt budc phdi thav doi sd ket ndi gida cdc thdnh phdn (thav doi ndi ket phdn cdng). Vdi cdng nghe logic lap trinh, si/ van hdnh cua he thong xdc lap theo chuong trinh djnh triidc vd thi/c thi theochu ky bdng bd vi xd ly. Khi thav doi qua trinh van hdnh cua he thdnq, chung ta cd the thav doi chiiOnq rtinh md khdnq can thav doi cdc ket ndi bd cam bien vd thiet bi tien khdi dona. LOG C KET NO DIEN RELAY KHI NEN VALVE DIEU KHIEN LOG C KET NO PLC VI DIEU KHIEN MAY TINH PC HINH 2.2: Cdc cdng nghe dieu khien <Jdi l/fiii li/'a hdttJi tipi ijiatt dliu&tuf, 01 Trang: 4 1 ^.CAU TRUC CUA MOT PLC: PLC la thugt ngQ viet tat tuf danh tuf: PROGRAMMABLE LOGIC CONTROLLER. Cdu true tdng quat cua mot PLC bao gom cac thanh phdn $au: £0 Bo nguon. ffl Bus (Tram). 133 Bo nhd. ffl Bo vi xd ly CPU. 133 Cac ngo vao va ra. -4- BO NGUON: co nhiem vu cung ca'p dien ap can thiet tCif nguon dien liTdi xoay chieu thong dung IIOV (hay 220V) hoqc nguon ap mot chieu 24V den cac board mqch dien ttf cua PLC. 4 BUS(TRAM): la tap hop cac lien ket dien theo dang song song (cac dodng lien ket nay co the dudi dang mqch in hay cap nhieu soi mot). So luong day dan ca'u tqo nen BUS phu thuoc vao tdi luOng cua cac tin hieu thong tin den BUS (khi truyen dii lieu 8 bits ta can cap co 8 soi ruot; khi truyen du lien 16 bits ta can cap 16 ruot). Ta co hai loai BUS: xoay chieu (AC) va mot chieu (DC). -4 BO NHd: Bo nhd thodng di/Oc chia thanh hai nhom chinh: ❖ BO NHd DONG (RAM : Random Access Memory) day la bp nhd khong cd djnh cac du" lieu. Cac du" lieu dope doc va ghi bdi bp vi xu" ly trong suot qua trinh PLC hpat dpng. ❖ BO NHd TiNH (ROM : Read Only Memory) day la bp nhd co cac diJ lieu co djnh; cac di} lieu nay chi dope doc bdi bp vi xd ly trong suot qua trinh PLC hoat dpng. VPi bp nhd trh (tuy theo loai ROM) ta co the co cac dang nhosau: > PROM (ROM Programmable): khong the xoa. > EPROM : bp nhd cua ROM co the xoa bdng tia epe tim. > EEPROM : bp nhd cua ROM co the xoa bdng dien. Dung lopng cua bp nhd dope bieu dien bdng so tuf hay so byte md bp nhd cd the chda ; trong do moi tuf tOdng ufng vdi 1 byte chufa 8 bits. Ddn vj do lOdng cua bp nhd thodng dope tinh theo KILO BYTE (1 KB tOdng ufng 2 10 = 1024 bytes). Cdu true ben trong bp nhd cd the md td ddn gidn nho sau (xem hinh 1.3) -4- Mudn truy xud't doc did lieu trong bp nhd, ta thpc hien trinh to sau day: > Dau tien nhdp tin hieu md dja chi can truy xud't vdo ede bus dja chi. > Phdt tin hieu chon Ipa che dp doc vdo dodng tin hieu doc/ ghi. > Khi cd day du ede tin hieu tren, bp nhd se xud't ede dO lieu dang lou trd tren cac bus did lieu. c/tt/ tifti Luli ltatth npi hq £}ido \Jiinh \Jiinh (ziti/tytui 01 Trang: 5 O s o" to 00 C5 c3 o- o a (!> ■ o- 6- ? ■ GIAI MA DIA CHI ! ! ! ! ; i ; ■ td -i -j 1 r r THfr^PFfflNiLDI T-iff+4lj|U NGO V> i BjENlMAir) n 5TC" iTI- tO \At . L___ — sis! rnnui LOGIC CHON DOC/ GHI O- -6 -O- O-O-O- -O - O- - — BUS DUf LIEU HINH 1.3: Cdu true ben trong mot bp nh6. VI Xl} LY (CPU): Thuqt ngu" CPU dapc viet tdt tuf danh tuf Central Processing Unit . Day Id bp phgn dau ndo cua PLC, nhiem vu cua CPU Id lien ket thu'dng xuyen ede chi/dng trinh dang chufa trong bp nhd. Qua trlnh hpat dpng cua CPU di/dc torn tdt ddn gidn nhUsau: > Theo chi/dng trlnh dd di/dc nap sdn, CPU kiem tra ede thong tin vd ede so lieu nhdn dude tuf ede module nhdp (input), ede cd quan dieu khien, cam bien > Phdt Ijnh dieu khien den ede cd cdu tien hpat dpng thong qua ede module xud't (output). 4 CAC NGO VAO VA RA: Khi PLC lien ket vdi ede module ben ngdai tren ede ngd vdo vd ra, ta co the phdn chia phudng phdp lien ket thdnh hai dang: > Dang logic. > Dang truyen duf lieu. Khi ede ngd vdo ra dang logic: module tren ngda vdo cho phep ghi nhdn (bdt- capture) ede trgng thai cua cam bien.; dong thdi chuyen doi tin hieu dien nhdn dude sang ede trgng thdi logic (0 hay 1). Tgi ede module tren ngd ra cho phep tdc dpng len ede cd cdu khdi dpng dddc lien ket vdi no; dong thdi ede module ngd ra co the chuyen doi ede trgng thdi logic (0 hay 1) sang ede tin hieu dien (xem hinh 1.4). c/tt/ lifiii Luli ltdtth npi hq _B_ Qhuefttg, 01 Trang: 6 PLC MODULE NGO VAO ^ Z - Capteur NGUON NUOI MODULE NGO RA VALVE DIEN TO HAY CUQN DAY CONTACTOR DATTRONG MAY NGUON NUOI HINH 1.4: Cdc ngo ra va vdo lien ket theo dang logic. Khi cdc ngo vdo vd ra lien ket theo dang truyen di) lieu; tren cdc ngo vdo hay ra ta co the thUc hien theo mot trong hai phUdng an truyen du" lieu song song hay noi tiep. TUdng ufng vdi moi phuang phdp truyen du" lieu nay, tren moi ngo vdo hay ra ta can co bo noi ket giiJa thiet bj ngoai vi vdi bo vi xiJ ly ben trong PLC. PhUohg thdc thuc hien ket noi trinh bay trong hinh 1.5. BQ NOIKET SONG SONG GIAO TIEP NGOAI VI VI Xtf LY Du LIEU DACH BQ NOIKET NOI TIEP GIAO TIEP NGOAI VI VI XU LY DU LIEU DACH HINH 1.5: Cdc bo noi ket truyen diJ lieu theo phUdng thufc song song hay noi tiep. 1 .S.NGUYEN-TAC VAN HANH CUA MOT PLC: Frude tien chung ta thong nhd't ve djnh nghia cho cdc thugt ngiJ sau: » DLf LIEU: SU bieu dien thong tin theo qui Udc dudi dang thich hdp de mot thiet bj (hay may mdc) dung lap trinh cd the hieu vd xQ ly duoc. # LINH: L|nh Id thdnh phdn cd ban cua mot chUdng trinh cho biet phep tdan hay hdnh dpng ndo do phdi thuc hien. c/tt/ tifu Lu'u ltdith ttpi hty (zlit/trtui 01 Trang: 7 » CHlJdNG TRINH: Chifdng trinh Id mot day cdc Ijnh sdp xep trgt tu theo mot chudi hdnh dong ndi tiep nhau, cdc hdnh dong nay thUc hien bdi bp vi xur ly. Khi van hdnh theo trqng thai binh thi/dng, PLC thufc hien co chu ky. # CHU KY : Chu ky van hdnh cua PLC Id khoang thdi gian giiJa hai Ian nhdp cdc tin hieu (vdt ly) d ngd vdo. » Trong mdi chu trinh hoat dong, PLC thi/c hien tudn tif 3 giai doan tdc dong: ❖ Bl/dC 1: Bp vi xd ly ghi nhdp cdc trqng thdi logic tren cdc ngd vdo vd chuyen cdc trqng thdi logic nay vdo trong bp nhd dd lieu. ❖ BUdC 2: Vi xd ly thUc hien cdc Ijnh chufa trong bp nhd chuong trinh theo tudn tu td Hnh dau tien den Ijnh cud'i cung. ChdOng trinh thdc hien vdi cdc trqng thdi ngd vdo dd di/dc ghi nhqn trong bp nhd dd lieu. Sau cung cdc ket qua cua mdi Ijnh di/Oc xud't vdo bp nhd dd lieu. ❖ BUdC 3: Vi xd ly tap hop cdc trqng thdi logic cua ket qua ngd ra (dang duoc chda trong bp nhd dd lieu) chuyen den cdc module tren ngd ra. Nguyen tdc van hdnh don gidn cua PLC duoc torn tdt trong hinh 1.6. r Bl/CfC 1 1 f BUdC 2 , i BUOC 3 DOC CAC TRANG THAI NGO VAO THl/C THI CHUONG TRiNH XUAT CAC TIN HIEU NGO RA HINH 1.6: Cdc thao tdc trong mot chu ky van hdnh cua PLC. 1.4.CAC YEU CAU DPI V6l PLC CONG NGHIEP: Frong qua trinh van hdnh, cdc yeu td dnh hadng den trqng thdi hoat dong cua PLC bao gdm 3 yeu td dnh hudng chinh nhif sau: O ANH HUdUG VAT-LY: bao gdm cdc yeu td ve nhiet dp, dp dm cua mdi trudng khdng khi vd dp rung. » ANH HUdNG DIEN: bao gdm cdc tin hieu nhieu tia vd cdc tin hieu nhieu truyen trong day dan. Cdc tin hieu nhieu trong day dan sinh ra do si? ndi ket giiJa nhieu thiet bj vdi nhau trong he thong PLC. Mudn bao ve chdng Iqi cdc dnh hudng nay chung ta can cdc bp Ipc ngadng dien dp, bp Ipc tre vd dung cdc bien dp each ly khi cap ngudn cho PLC. tfiii Ligu it/u ltdtth n$L hq £}ieto \Jilnh (dhiMttg, 01 Trang: 8 # DIED KIEN NGUON : bao gom dnh hi/dng do nguon dien ludi chinh sinh ra. Cdc su cd do nguon dnh hadng den che do hoat dong cua PLC co the liet ke nhU sou: ❖ Si/ cd mat nguon thoang qua. ❖ Si/ bien doi mufc dien dp nguon (qua dp +10% ; hay thd'p dp - 15% so vdi gid trj djnh mufc). ❖ Nhieu truyen theo dudng day. IS/I udn bdo ve cho PLC trong cdc trudng hdp nay, ta Idp ddt cdc bp Ipc nguon tri/dc khi cd'p den PLC, dong thdi su" dung kem theo bo UPS de chdng tinh trgng dien dp mat dot bien hay thd'p dp, qua dp dudi mufc qui djnh. 1 .S.HINH DANG CUA MOT SO PLC: Frong gido trinh nay, nhdm giup sinh vien co the su" dung vd lap thnh dieu khien dung PLC mot each cu the; chung tdi ch? gidi thieu hai dang PLC sau day: # MODICON TSX NANO (cua nhd san xudt TELEMECANIQUE ). » FX 2N (cua nhd sdn xudt MITSUBISHI). Tuy nhien, vdi moi nhd sdn xud't tuy thupc : muc tieu dieu khien, phgm vi dieu khien, mufc dp phufc tgp cua qua trinh dieu khien (so lUdng ngd vdo vd ngd ra tren PLC ); chung ta cd nhieu hp PLC khdc nhau: '\/ di nhd sdn xud't TE LEMECANIQUE, chung ta cd cdc hp PLC (hinh 1.7): » MODICON TSX NANO. » MODICON TSX MICRO. # MODICON TSX PREMIUM. Khi lap trinh van hdnh PLC chung ta cd the thi/c hien theo mot trong hai phUOng thufc sau: # Dung bp ngp tuf ban phim ngdai, thadng gpi Id "hand hold". # Dung may tinh PC vdi phdn mem lap trinh chuyen dung tuy tufng Ipai PLC. Cdc ky-thudt nay se dapc trinh bay trong cdc chuong sau. c/tt/ Li^u Luli ltatth npi hq £fido ^flBij fzliu'ftmf (H Trang: 9 PLC TSX Nano K3i«*«SltWV J J i'r^ II s I ±rm t' F PLC TSX M cro ft PLC TSX Nano li n m PLC TSX Premium T^AWftfK) Hand hold BE7E3B: EE OK Rase: T-^- -V T-v r^<JP -^Ox W HINH 1.7: Hinh dang cac PLC TSX cua nha sdn xudt MODICON TELEMECANIQUE cTtt/ tifti Luli ltatth n$L bt} [...]... Mitsubishi) TOAN HANG CHUfC NANG VA TAG VU PLC TSX Nano PLC FX-2N %IO.i Xi Dung de ch? cdc trang thai logic cua ngo vdo Vdt-Ly nd'i tn/c tiep vdo PLC %Q0.i Yi Dung de chi cdc trang thai logic (cupn day) tren ngo ra nd'i tn/c tiep tCf PLC %Mi Mi Dung de bieu dien cdc "cudn day" npi hay cdc tiep diem cua relay npi trong PLC Day Id cdc bit npi trong PLC Si %Si Bit npi trong PLC thi/c hien tdc vu nha relay trang... cho PLC ho FX-2N cua nhd sdn xudt Mitsubishi 2.1.3.CAC LINH CHUYEN DUNG SET VA RESET CUA PLC MITSUBISHI (HO FX-2N) ^^dc Ijnh SET vd RESET dung trong ngon ngu" Ijnh lap trinh cho cdc PLC ho FX2N cua nhd sdn xud't Mitsubishi co tdc dong vd chufc ndng gidng nhu Ijnh SET vd RESET khi lap trinh cho PLC TSX Nano Tuy nhien cdc ky hieu tdt, each bieu dien cdc Ijnh SET vd RESET tren gidn do Ladder cua PLC. .. Cjiuo ^Jilnh EEQ @Iiu&ng 03 Trang: 25 3.3 BIEU DIEN GIAN DO GRAFCET: Khi lap trinh cho PLC bdng gidn do GRAFCET tuy theo ho PLC chung ta co cdc qui tdc lap trinh khdc nhau tuy theo phdn mem chuyen dung su" dung kem theo PLC 3.3.1 LAP TRINH GRAFCET CHO PLC HO TSX MICRO HAY PREMIUM : Phdn mem chuyen dung su" dung cho ho PLC nay Id PL7-PRO V3; khi thuc hien gidn do chinh chung ta co the lap trinh tren 8... CHO PLC HO FX-2N ( MITSUBISHI I 2.1.1 CAC UNH TadNG DUONG V6i muc tieu nha dd khdo sat vd trinh bay trong muc 2.2 cho PLC ho TSX Nano, khi khdo sat cdc PLC ho FX-2N (trong luc lap trinh theo ngon ngd IL hay ngdn ngd Ladder) chung ta co cdc toan hang vd cdc Ijnh lap trinh co chufc ndng vd tdc dpng ti/Ong duong duoc torn tdt nhi/sau : BANG 1 : Cdc toan hang ti/Ong dudng, khi so sdnh giua hai loai PLC. .. td Ijnh SET vd RST cua FLO hoc FX-2N (Mitsubishi) 2.1 ^.CAC LINH CHUYEN DUNG CHO BO DINH THI CUA PLC MITSUBISHI (HO FX-2N) ^^dc bo djnh thi duoc sd dung trong PLC ho FX-2N khdng dadc phdn loai cu the (theo cdc loai ON Delay, OFF Delay ), nhu trong luc lap trinh bo djnh thi suf dung PLC ho TSX Nano Vdi PLC ho FX, bo djnh thi co cdc ddc tinh nhi/ sau: Ky hieu cua toan hang ddc trUng cho bp djnh thi...HINH 1.8 : Cdc phUdng thufc lap trinh cho PLC cTtt/ lifiii luu-hAnh ttpi Trang: 11 MlTSUBfSHI HAND HOLD TO,' WP, test yii-eR ORt — f AND in! M LO nil ANB ORB ErtD SET PLS ' MO STl STEP "Tsn rm* RST I ' PLr NOP 1 MPS MCR iRET MPD 2 a,., r/PP "SB ^ PLC FX ON CUA NHA SAN XUAT MITSUBISHI m r.- PLC MELSEC - AnS HINH 1.9 : Mot so cac dang PLC cua nha san xudt MITSUBISHI &ai Lifu Luli ltatth ttpi... se dddc in day du L Cdc chu thfch them vdo cdc trang GRAFCET dude chufa trong dd lieu do hoa cua PLC 3.4 PHlfCfNG PHAP LAP TRINH THEO GRAFCET CHO PLC HO FX-2N: Voi cdc PLC cd so' Iddng ngd vdo, ra thd'p (td 24 ngd trd xud'ng ) phddng phdp lap trinh theo GRAFCET chi cd the thdc hien tren mot so' loqi PLC cua mot so' nhd che tqo nhd MITSUBISHI ( hq FX-2N ) hoqc cua SIEMEN (nhd ho S7-200 ) Phu thuqc... tUOng di/Ong, khi so sdnh giud hai loai PLC ho TSX Nano (Telemecanique - MODICON) vd FX-2N (Mitsubishi) UNH FX-2N TSX TOAN HANG MRS MRS (Point (Point hien hdnh cua Store) Store) H co Khong co Lau cdc ket qua Khong Khong Nano FX-2N co KY HIEU TSX Nano Khdng CHUfC NANG co tdc vu tronq PLC MRS H MRD (Read) MRD (Read) Doc cdc ket qua hien hdnh cua H tdc vu tronq PLC MRD | cTtt/ Uf u Luli ltaith upL bty... LADDER dung nut nhdn ON vd OFF dieu khien contactor M tren ngo ra cua PLC co the lap trinh nhu sau: %io.o ID , , PLCTSX NANO -TSX07 21 1622 %Q0.3 LD %I0.0 S %Q0.3 LD %I0.2 R %Q0.3 END SET s %I0.2 LD , , RESET >00.3 DQ( R i 220V - AC LIKE i i i 1 END i HiNH 2.30 2.4.2 DUNG KHOI DINH THI ON DELAY TAP THANH RELAY THdl GIAN OFF DELAY : Ddi vdi, PLC ho FX-2N cua nhd sdn xud't MITSUBISHI khdi thdi gian thuoc dang... cua PLC, chung ta co the tqo duqc mot xung tin hieu tren ngo ra hoqc xung tin hieu tren bit npi (hay relay npi) cua PLC X 0001 X0001 n i n T6 M2 K3 T6 M2 ■if M2 T6 HINH 2.32 r 2.2.4 LAP TRINH TAO CHUOI XUNG : I rong doan chu'Ong trinh sau, chung ta phdi hop hai relay thdi gian On delay hinh thdnh mot chudi xung co the dieu chinh thay doi chu ky vd dp rpng xung tren ngo ra hay tren bit npi cua PLC . ^.CAU TRUC CUA MOT PLC: PLC la thugt ngQ viet tat tuf danh tuf: PROGRAMMABLE LOGIC CONTROLLER. Cdu true tdng quat cua mot PLC bao gom cac thanh . hdnh cua PLC. 1.4.CAC YEU CAU DPI V6l PLC CONG NGHIEP: Frong qua trinh van hdnh, cdc yeu td dnh hadng den trqng thdi hoat dong cua PLC bao . vd ngd ra tren PLC ); chung ta cd nhieu hp PLC khdc nhau: '/ di nhd sdn xud't TE LEMECANIQUE, chung ta cd cdc hp PLC (hinh 1.7):

Ngày đăng: 02/04/2014, 14:04

TỪ KHÓA LIÊN QUAN

TRÍCH ĐOẠN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w