Cov txheej txheem:
- Kauj ruam 1: Taw qhia
- Kauj Ruam 2: Nqe lus piav txog Pawg Thawj Coj:
- Kauj Ruam 3: Cov Txheej Txheem Dab Tsi? SFC thiab Xeev Daim Duab
- Kauj Ruam 4: Ua Haujlwm Nrog Arduino IDE 1.6.X
- Kauj Ruam 5: Ua Haujlwm Nrog YAKINDU
- Kauj Ruam 6: Saib Xyuas Nws Nrog AdvancedHMI
- Kauj Ruam 7: Saib Xyuas Nws Nrog Unigo Evolution
- Kauj Ruam 8: Xaus
Video: Arduino PLC 32 I/O+State Machine+SCADA lossis HMI: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Ntau txoj hauv kev rau txoj haujlwm, tswj hwm thiab saib xyuas cov txheej txheem kev lag luam nrog arduino.
Kauj ruam 1: Taw qhia
Hauv cov lus qhia no kuv yuav nrog:
2 txoj hauv kev los ua haujlwm rau arduino txuas nrog rau lub tshuab suav nrog suav nrog khawm, hloov thiab LEDs
1- Thawj txoj hauv kev nrog arduino 1.6.x IDE siv SM lub tsev qiv ntawv (Lub Xeev Tshuab)
2-Txoj kev thib ob siv Yakindu, lub xeev digram tus kws tshaj lij tsim tsim nrog dab noj hnub ib puag ncig: koj kos koj lub tshuab hauv xeev, thiab nws tsim cov cai hloov mus rau Arduino board.
Koom nrog
2 txoj hauv kev saib xyuas lub tshuab nrog SCADA lossis virtual HMI khiav:
1- hauv Android 4.4: Unigo Evolution, app dawb uas tsis muaj cov lej nkaus xwb cov khoom tso rau ntawm lub vijtsam thiab modbus TCP
2-hauv Windows 8: txoj haujlwm pub dawb AdvancedHMI uas xav tau Visual Studio 2013, tsis muaj tus lej thiab cov khoom tso rau ntawm lub vijtsam thiab modbus TCP
Yog li koj kos koj cov kab ke ua haujlwm nrog SFC (hauv kev siv lub tshuab ua haujlwm: Cov Qauv Ua Ntej), koj txhais nws hauv lub xeev daim duab (ze dua), koj ua haujlwm nws (Yakindu lossis Arduino SM lib) thiab tom qab ntawd koj saib xyuas nws nrog SCADA (Unigo) android lossis AdvancedHMI Windows).
Kauj Ruam 2: Nqe lus piav txog Pawg Thawj Coj:
Lub schematic:
Kuv siv Arduino UNO board, tsis yog clone vim Yakindu tsis tuaj yeem xa ib qho program twg rau clone tsuas yog UNO thiab Mega board.
Kuv tuaj yeem muaj 32 digital I/O nrog 2 SPI nthuav dav zoo li MCP23S17 (2x16 I/O) thiab 2 ntau qhov sib piv 12 ntsis tso tawm (analog tiag tiag tsis PWM lim) nrog 2 SPI DAC zoo li MCP4921.
Kuv tsis tau kos daim thaiv thaiv ethernet tab sis koj xav tau nws los saib xyuas koj lub kaw lus: yog li tus pin 4, 10, 11, 12 thiab 13 yuav tsum tsis txhob siv rau lwm yam thiab pom tseeb tus pin 0 thiab 1 rau RX TX nkaus xwb.
Cov duab ntawm pawg thawj coj saib tiag:
8 lub pob nyem tsim nyog:
- 4 rau phau ntawv hom: ib qho rau lub teeb ntawm txhua tus coj
- 1 rau qhov xwm txheej nres: yog tias raug thawb, koj nyob rau hauv ib txwm muaj, tso tawm: xwm txheej ceev
- 1 rau hom tsis siv neeg uas tso tawm lub teeb ua ntu zus ntawm thiab tawm ntawm txhua tus coj, yog tias tso tawm: phau ntawv hom, los tswj txhua tus coj uas tsis muaj ib ntu
- 1 rau RUN hauv hom tsis siv neeg
- 1 rau STOP hauv hom tsis siv neeg
4 coj los sim txhua yam koj xav tau (txuas, valve …)
Kuv muab lub npe ntawm txhua cov nyees khawm thiab coj kuv siv hauv cov haujlwm.
Kauj Ruam 3: Cov Txheej Txheem Dab Tsi? SFC thiab Xeev Daim Duab
Kuv tau ua SFC yooj yim heev los piav qhia tias lub kaw lus yuav tsum ua li cas.
3 SFC xav tau:
- SFCsecu mus rau lossis tawm hom xwm txheej ceev, nws yog tus tswv SFC uas tso lwm tus
- SFC pib phau ntawv pib los ntawm SFCsecu, koj tuaj yeem mus txog qhov tsis siv neeg lossis hom kev ua haujlwm
- SFC khiav nres, luam theej duab thiab cim tau yog tias leej twg thawb DCY (RUN) lossis FCY (STOP)
Cov SFC no tau ua pseudo-multistaking.
Tom qab ntawd kuv txhais lawv rau hauv daim duab hauv xeev:
- tus tswv tshuab (Thaum Muaj Xwm Ceev) tso 2 lwm tus qhev
- tus qhev rau kev tshuaj xyuas thiab cim DCY thiab FCY
- tus qhev kom mus txog qhov tsis siv neeg lossis phau ntawv hom
Lwm qhov: thaum koj thawb DCY koj tuaj yeem tsav qhov sib piv tso tawm nrog lub tshuab txiav tawm ntawm lub ntsej muag, thaum koj thawb FCY qhov sib piv tawm los poob rau 0V.
Daim duab hauv xeev pab koj rau program arduino.
Kauj Ruam 4: Ua Haujlwm Nrog Arduino IDE 1.6. X
Kuv muab txoj cai rau koj los txhais cov kab lus yav dhau los. Kuv xav tau 3 qhov ntxiv libs kuv muab rau koj ib yam.
Koj kuj tseem yuav xav tau lub rooj lus chaw nyob kom nkag siab cov pins koj siv rau dab tsi thiab modbus sau npe qhov chaw nyob sib xws.
Kauj Ruam 5: Ua Haujlwm Nrog YAKINDU
Ua ntej rub tawm qhov haujlwm dawb version 2.9 (tsis yog pro) ntawm:
www.itemis.com/en/yakindu/state-machine/
Tom qab ntawv ua raws cov ntawv qhia: muaj qee qhov kev hloov pauv piv rau lub sijhawm kawg kuv rub tawm qhov program, tsuas yog rau cov npe ntawm qhov sib txawv ntawm "xxxconnector.cpp" cov ntawv kom tiav.
Cov duab: daim duab ntawm lub xeev lub tshuab, saib ntawm daim nplaub tshev hauv qhov haujlwm thiab nws cov tsev qiv ntawv txawv teb chaws los ntawm arduino, saib "xxxconnector.cpp" txhawm rau ua kom sib txuas sib txuas ntawm kev hloov pauv/lub xeev thiab cov tswv yim tiag/tawm ntawm board lossis ntawm SCADAs.
Kuv muab koj txoj haujlwm koj tsuas yog yuav tsum tau ntshuam hauv koj qhov chaw pib ua haujlwm.
Kuj tau muab: cov libs xav tau los ntshuam rau Yakindu thiab qee qhov kev hloov pauv los piav qhia hauv kev qhia.
Kauj Ruam 6: Saib Xyuas Nws Nrog AdvancedHMI
Thawj rub tawm Visual studio Express 2013 lossis ntau dua ntawm:
www.microsoft.com/fr-fr/download/details.a…
Tom qab ntawv rub tawm AdvancedHMI qhov haujlwm ntawm:
sourceforge.net/projects/advancedhmi/?SetF…
Kuv muab koj cov duab ntawm SCADA kuv kos (nrog rau qhov sib xws modbus sau npe chaw nyob) thiab ua haujlwm yam tsis muaj tus lej, txoj haujlwm hloov kho thiab qhia me ntsis.
Kauj Ruam 7: Saib Xyuas Nws Nrog Unigo Evolution
Koj xav tau Android devide nrog Android 4.4 (kit kat) thiab 7 nti npo.
Kuv muab koj cov duab ntawm SCADA Kuv kos (thiab sib xws modbus sau npe chaw nyob) thiab cov lus qhia luv kom siv Unigo, tsis xav tau tus lej xav tau, daim nplaub tshev uas muaj cov duab ntawm cov teeb pom kev zoo thiab cov nyees khawm tso rau hauv UniGOPictures nplaub tshev tsim ntawm koj sab hauv SD los ntawm app, thiab txoj haujlwm.
Kauj Ruam 8: Xaus
Nws yog txoj haujlwm loj los ua ke 2 txoj hauv kev sib txawv ntawm txoj haujlwm thiab 2 txoj kev sib txawv ntawm kev saib xyuas. Nws nyuaj ntawm qhov pib siv rau txhua txoj hauv kev. Tab sis tam sim no nws ua haujlwm thiab nkag siab ib zaug, tam sim no koj tuaj yeem tswj cov kab ke nyuaj dua.
Ua tsaug ntau rau ntau qhov kev qhia thoob ntiaj teb, rau Archie (AdvancedHMI), rau RenéB2 (Yakindu) thiab rau Mikael Andersson (Unigo Evolution) thiab rau arduino cov tsev qiv ntawv txhim kho uas tso cai rau kuv ua xws li "thev naus laus zis-cua daj cua dub" txoj haujlwm.
Sans eux j'aurais peut soutre souffert d'un sentiment d'incomplétude infinie pour l'éternité. Ua tsaug rau ib tsoom phooj ywg.
Zoo siab qhia.