PLC (Programmable Logic Controller) yog cov cuab yeej tswj tau dav siv hauv kev lag luam automation. Nws ua thiab ntsuas ntau yam kev tawm tswv yim tawm tswv yim raws li tus neeg siv -programmed tswj logic, tom qab ntawd tso tawm cov teeb meem tswj hwm kom ua tiav cov txheej txheem tsim khoom siv hluav taws xob. Kab lus no muab cov ncauj lus qhia ntxaws ntxaws txog cov qauv kev ua haujlwm yooj yim thiab kev ua haujlwm scanning ntawm PLCs.
I. Cov Ntsiab Cai Ua Haujlwm ntawm PLC
Lub hauv paus ntsiab lus ua haujlwm ntawm PLC feem ntau suav nrog cov kauj ruam hauv qab no:
1. Input Signal Acquisition:Lub PLC tau txais ntau yam teeb liab los ntawm thaj teb los ntawm cov khoom siv nkag, xws li cov teeb liab digital thiab cov teeb liab analog. Cov teeb liab no tau ua tiav zoo li opto- cais tawm thiab lim ua ntej hloov mus rau hauv cov teeb liab digital pom tau los ntawm PLC lub cev sab hauv.
2. Kev Ua Haujlwm:PLC cov txheej txheem thiab ntsuas cov tswv yim tawm tswv yim raws li tus neeg siv -programmed control logic. Kev ua haujlwm feem ntau suav nrog kev ua haujlwm xws li kev ua haujlwm zoo, suav lej lej, thiab hloov cov ntaub ntawv. Thaum lub sijhawm ua haujlwm, PLC tsim cov lus tswj hwm raws li cov xwm txheej sib txawv.
3. Tso zis teeb liab tswj:Lub PLC xa cov txheej txheem tswj cov lus txib mus rau qhov tso zis module. Cov zis module hloov cov teeb liab digital rau hauv cov teeb liab uas yuav tsum tau ua rau thaj chaw (xws li cov teeb liab digital, analog teeb liab, thiab lwm yam) thiab tso tawm rau cov actuators (xws li relays, servo motors, thiab lwm yam), yog li ua tiav kev tswj hwm ntawm cov txheej txheem ntau lawm.
4. Kev sib txuas lus thiab saib xyuas:PLCs muaj peev xwm sib txuas lus, ua kom cov ntaub ntawv sib pauv nrog lwm yam khoom siv (xws li lub khoos phis tawj tswj hwm, touchscreens, thiab lwm yam) los ntawm kev sib txuas lus sib txuas kom ua tiav cov chaw taws teeb saib xyuas thiab tswj. Ib txhij, PLCs tuaj yeem tso saib tiag - lub sijhawm ua haujlwm thiab cov ntaub ntawv tsis raug los ntawm lawv tus kheej cov lus qhia.
II. Cov yam ntxwv ntawm PLC Scan ua haujlwm hom
Cov yam ntxwv ntawm PLC scanning kev ua haujlwm yog feem ntau cuam tshuam hauv cov hauv qab no: Ua ntej, PLCs siv "sequential scanning, nruam looping" ua haujlwm hom. Txhua lub voj voog scanning, tseem hu ua lub sijhawm scan lossis lub voj voog ua haujlwm, pib nrog CPU ua thawj cov lus qhia. Nws mam li ua raws li tus neeg siv cov kev pab cuam kab los ntawm kab kom txog thaum ua tiav, tom qab ntawd nws rov qab mus rau thawj cov lus qhia kom pib lub voj voog scanning tshiab. Qhov thib ob, PLC qhov kev ua tiav ua raws li ib ntus scanning qauv ua raws li sab laug- mus rau - sab xis, sab saum toj - mus rau - hauv qab txoj cai.
Tsis tas li ntawd, txhua lub voj voog scan muaj peb kauj ruam: input sampling, program execution, and output refresh. PLC ua haujlwm li no mus tas li hauv qhov no. Thaum kawg, vim yog qhov nruab nrab ntawm cov qauv thiab cov tso tawm hauv nruab nrab, cov tswv yim / tawm lag luam tshwm sim, ua rau cov lus teb qeeb. Cov no yog cov yam ntxwv tseem ceeb ntawm PLC scanning ua haujlwm.
III. PLC Scanning Ua Haujlwm Hom
PLC scanning ua haujlwm hom feem ntau muab faib ua cov theem hauv qab no:
PLC scanning ua hauj lwm hom muaj peb theem tseem ceeb: cov tswv yim sampling theem, cov neeg siv qhov kev pab cuam execution theem, thiab cov zis refresh theem.
1. Nkag mus kuaj Theem
Thaum lub sij hawm input sampling theem, PLC sequentially scans thiab nyeem tag nrho cov input states thiab cov ntaub ntawv, khaws cia nyob rau hauv sib thooj units nyob rau hauv lub I / O duab cheeb tsam. Tom qab ua tiav cov tswv yim sampling, lub kaw lus hloov mus rau tus neeg siv qhov kev ua tiav thiab tso tawm cov theem tshiab. Thaum lub sij hawm ob theem no, txawm hais tias cov tswv yim hauv xeev lossis cov ntaub ntawv hloov pauv, cov chav sib txuas hauv I / O duab cheeb tsam tseem tsis hloov pauv. Yog li ntawd, yog hais tias lub tswv yim yog ib tug mem tes teeb liab, lub mem tes dav yuav tsum tshaj ib lub voj voog scan kom ntseeg tau tias cov tswv yim raug ntes nyob rau hauv tag nrho cov mob.
2. Tus Neeg Siv Kev Ua Haujlwm Phaj
Thaum lub sij hawm tus neeg siv cov kev pab cuam execution theem, lub PLC ib txwm scans tus neeg siv qhov kev pab cuam ( ntaiv daim duab) raws li nram no mus rau hauv qab. Thaum luam theej duab txhua daim duab ntaiv, nws thawj zaug luam theej duab tswj Circuit Court tsim los ntawm cov neeg nyob rau sab laug ntawm daim duab ntaiv. Nws tom qab ntawd ua cov haujlwm tsim nyog ntawm kev tswj xyuas Circuit Court tsim los ntawm cov neeg sib cuag hauv kev txiav txim ntawm sab laug mus rau sab xis thiab sab saum toj mus rau hauv qab. Raws li cov txiaj ntsig ntawm cov kev ua haujlwm zoo li no, nws hloov kho cov xwm txheej ntawm qhov sib thooj me ntsis hauv qhov system RAM cia thaj chaw rau cov laj thawj kauj, lossis hloov kho cov xwm txheej ntawm qhov sib thooj me ntsis hauv thaj chaw I / O duab rau cov zis coil, lossis txiav txim siab seb puas yuav ua tiav cov lus qhia tshwj xeeb muaj nuj nqi teev tseg los ntawm daim duab ntaiv. Ntawd yog, thaum tus neeg siv qhov kev ua tiav, tsuas yog cov xwm txheej thiab cov ntaub ntawv ntawm cov ntsiab lus nkag hauv thaj chaw I / O duab tseem tsis hloov pauv. Cov xwm txheej thiab cov ntaub ntawv ntawm lwm cov ntsiab lus tso tawm thiab cov khoom muag muag hauv thaj tsam I / O duab lossis lub kaw lus RAM yuav hloov. Tsis tas li ntawd, cov txiaj ntsig ntawm kev ua tiav ntawm cov ntaiv daim duab tso siab dua hauv pawg cuam tshuam rau cov ntaiv tom ntej uas siv cov coils lossis cov ntaub ntawv no. Hloov pauv, qhov hloov tshiab logic coil xwm txheej lossis cov ntaub ntawv los ntawm qis dua - theem ntaiv daim duab tsuas yog cuam tshuam rau sab sauv - qib ntaiv kab kos thaum lub voj voog tom ntej.
3. Tso zis Refresh Theem
Thaum ua tiav ntawm cov neeg siv qhov kev pab cuam scan, PLC nkag mus rau theem tso zis tshiab. Lub sijhawm no, CPU rov ua dua txhua qhov tso zis latches raws li cov xwm txheej sib raug thiab cov ntaub ntawv hauv cheeb tsam I / O duab, tom qab ntawd tsav cov khoom siv sib txuas los ntawm cov khoom siv hluav taws xob. Qhov no suav nrog PLC qhov tseeb tso zis.
Hauv cov ntsiab lus, lub hauv paus ntsiab lus ntawm kev ua haujlwm ntawm PLC suav nrog kev sau cov cim qhia los ntawm cov tswv yim nkag, ua haujlwm thiab ntsuas lawv raws li tus neeg siv -cov txheej txheem tswj cov txheej txheem, thiab tom qab ntawd tswj cov actuators ntawm cov khoom tso tawm kom ua tiav cov txheej txheem ntau lawm. PLC lub scanning ua haujlwm suav nrog cov theem xws li qhov system tus kheej - kuaj, input scan, program processing, output scan, kev sib txuas lus, thiab saib xyuas. Cov theem no tsim lub voj voog scan, uas PLC txuas ntxiv rov ua kom paub txog kev tswj cov txheej txheem ntau lawm.




