Cov txheej txheem:

UCL - Txuas Node -liab mus rau Siemens PLC Siv KEPserver: 7 Cov Kauj Ruam
UCL - Txuas Node -liab mus rau Siemens PLC Siv KEPserver: 7 Cov Kauj Ruam

Video: UCL - Txuas Node -liab mus rau Siemens PLC Siv KEPserver: 7 Cov Kauj Ruam

Video: UCL - Txuas Node -liab mus rau Siemens PLC Siv KEPserver: 7 Cov Kauj Ruam
Video: Students Explain European Studies and How it's Taught 2024, Kaum ib hlis
Anonim
UCL - Txuas Node -liab mus rau Siemens PLC Siv KEPserver
UCL - Txuas Node -liab mus rau Siemens PLC Siv KEPserver

Yuav tsum muaj

Node-red:

KEPserver:

Kauj Ruam 1: Kauj Ruam 1: Teeb KEPserver

Kauj Ruam 1: Teeb KEPserver
Kauj Ruam 1: Teeb KEPserver

Thawj zaug teeb tsa IoT Gareway hauv KEPserver. Tsuas yog tsim tus neeg sawv cev tshiab hauv IoT Gateway.

Tus neeg sawv cev tshiab yuav tsum yog REST server

Teeb lub network adapter rau hauv zos thiab xaiv chaw nres nkoj. Nco tseg qhov chaw nyob hauv xiav vim qhov no yog qhov twg los nyeem siv node-liab.

Kauj Ruam 2: Kauj Ruam 1, 1: Teeb KEPserver

Kauj Ruam 1, 1: Teeb KEPserver
Kauj Ruam 1, 1: Teeb KEPserver

Teeb lub network adapter rau hauv zos thiab xaiv chaw nres nkoj. Nco ntsoov qhov chaw nyob hauv xiav vim qhov no yog qhov twg los nyeem siv node-liab.

KEPserver tam sim no tau teeb tsa.

Kauj Ruam 3: Kauj Ruam 2: Nyeem Cov Ntaub Ntawv Siv Node-liab

Kauj Ruam 2: Nyeem Cov Ntaub Ntawv Siv Node-liab
Kauj Ruam 2: Nyeem Cov Ntaub Ntawv Siv Node-liab

Ntxig HTTP thov hauv qhov liab.

Qhov kev thov HTTP xav tau teeb tsa kom xa rov qab JSON cov khoom.

Qhov URL zoo ib yam li tau sau tseg ua ntej, txawm li cas los xij nws xav tau me ntsis ntxiv. https://127.0.0.1:55555/iotgateway//read?ids= "Channel name". "Lub npe ntaus ntawv". “Tag lub npe”

Nyeem tus nqi no yuav muab koj cov ntaub ntawv hauv JSON hom.

Kauj Ruam 4: Kauj Ruam 3: Teeb Koj Lub Siemens PLC

Kauj Ruam 3: Teeb Koj Lub Siemens PLC
Kauj Ruam 3: Teeb Koj Lub Siemens PLC
Kauj Ruam 3: Teeb Koj Lub Siemens PLC
Kauj Ruam 3: Teeb Koj Lub Siemens PLC

Ua ntej txhawm rau sib txuas lus rau KEP teeb "tso tso/tau" qhov tseeb ntawm koj li PLC. Qhov teeb tsa no tuaj yeem pom hauv qab "cov cuab yeej thiab network", los ntawm kev xaiv PLC thiab saib hauv cov khoom.

Txuag cov ntaub ntawv koj xav tau hauv DB. Teeb DB li tsis tau xaiv. Txhua tus nqi yuav tsum tam sim no muaj tus nqi "offset". Nov yog qhov chaw nyob KEP server nyeem.

Tam sim no PLC tau npaj los sib tham nrog KEPserver.

Kauj Ruam 5: Kauj Ruam 4: Teeb Koj Lub UR5 Caj Npab

Kauj Ruam 4: Teeb Koj Lub Caj Npab UR5
Kauj Ruam 4: Teeb Koj Lub Caj Npab UR5
Kauj Ruam 4: Teeb Koj Lub Caj Npab UR5
Kauj Ruam 4: Teeb Koj Lub Caj Npab UR5

GDS cov ntaub ntawv rau koj li UR5, thiab cov lus qhia ntxaws ntxiv rau kev teeb tsa, tuaj yeem pom hauv qhov txuas hauv qab no

www.universal-robots.com/how-tos-and-faqs/…

Qhov luv version yog thawj zaug teeb tsa GDS cov ntaub ntawv. Muaj tom qab ntog hauv "URIODev1" hauv kev saib sab saud. Nias cov ntawv xiav thiab muab nws lub PLC. Xaiv URIODev1 thiab hauv lub cuab yeej saib ntxiv txhua tus qauv hauv kev txiav txim.

Ntawm UR5 pab kom "PROFINET IO Device". Nws tuaj yeem pom nyob hauv "Installation".

tau ua tiav qhov phiaj xwm siemens tau suav nrog. Txoj haujlwm nyeem qhov kev taw qhia thiab qhov ntsuas ntawm txhua qhov sib koom ua ke.

Kauj Ruam 6: Kauj Ruam 5: Nyeem Cov Ntaub Ntawv Siv KEPserver

Kauj Ruam 5: Nyeem Cov Ntaub Ntawv Siv KEPserver
Kauj Ruam 5: Nyeem Cov Ntaub Ntawv Siv KEPserver
Kauj Ruam 5: Nyeem Cov Ntaub Ntawv Siv KEPserver
Kauj Ruam 5: Nyeem Cov Ntaub Ntawv Siv KEPserver

KEPserver tuaj yeem nyeem cov ntaub ntawv los ntawm cov ntaub ntawv tsis raug xaiv hauv TIA portal. Hauv qhov program suav nrog DB nrog qee cov ntaub ntawv. Ua ntej teeb tsa PLC hauv KEPserver. Qhov no ua tiav los ntawm kev ntxiv "channel tshiab" hauv KEP hauv qab "txuas". Hauv "channel wizard" xaiv "siemens TCP/IP Ethernet". Lub npe channel thiab lub npe ntaus ntawv yog dab tsi tau nyeem hauv ntawm-liab. Cias tso tus so ntawm qhov chaw raws li lawv yog.

Cov duab suav nrog qhia cov syntax ntawm KEP lossis, thiab qhov sib txawv ib nrab "Joint_Temp_0" yog KEP nyeem dab tsi siv cov teeb tsa ntawd.

Kauj Ruam 7: Kauj Ruam 6: Tshem Daim Ntawv Cim Npe Channel mus rau IoT Gateway

Kauj Ruam 6: Tshem Daim Ntawv Cim Npe rau IoT Gateway
Kauj Ruam 6: Tshem Daim Ntawv Cim Npe rau IoT Gateway
Kauj Ruam 6: Tshem Daim Ntawv Cim Npe rau IoT Gateway
Kauj Ruam 6: Tshem Daim Ntawv Cim Npe rau IoT Gateway

Nyob rau sab saum toj ntawm koj KEPserver muaj lub luag haujlwm "Ntxiv ntau yam khoom". Kos koj IoT server thiab nias lub pob no. Hauv qhov browser cim npe xaiv koj lub cuab yeej teeb tsa, thiab ntxiv cov cim npe raws li xav tau. Lub npe ntawm daim ntawv cim npe yog ntu kawg ntawm qhov chaw nyob-liab nyeem. Ib qho yooj yim yooj yim khiav-daim ntawv tau suav nrog qhia cov ntaub ntawv.

Pom zoo: