Cov txheej txheem:

Raspberry Pi Raws IEC 61131-3 Tshaj Plaws PLC: 6 Cov Kauj Ruam
Raspberry Pi Raws IEC 61131-3 Tshaj Plaws PLC: 6 Cov Kauj Ruam

Video: Raspberry Pi Raws IEC 61131-3 Tshaj Plaws PLC: 6 Cov Kauj Ruam

Video: Raspberry Pi Raws IEC 61131-3 Tshaj Plaws PLC: 6 Cov Kauj Ruam
Video: IEC 61131-3 Virtual Machine I/O Demonstration 2024, Hlis ntuj nqeg
Anonim
Raspberry Pi Raws IEC 61131-3 Tshaj Plaws PLC
Raspberry Pi Raws IEC 61131-3 Tshaj Plaws PLC

IEC 61131 yog de-facto tus qauv rau PLC lub cajmeem. Lub sijhawm runtime version rau Raspberry Pi kuj tseem muaj - piv txwv li CODESYS los ntawm lub tuam txhab 3S -Smart Software Solutions. Lawv muab lub sijhawm ua lag luam khiav lag luam rau Raspberry Pi, tab sis nws yuav ua haujlwm yam tsis muaj kev them nyiaj raws li qhov demo version rau 120 feeb ua ntej lawv tso tseg …

Lub tswv yim ntawm cov lus qhia no yog kom paub qhov pheej yig tiag tiag IEC 61131-3 tshaj PLC raws li RPI thiab CODESYS lub hom phiaj. Zoo li lub PLC tiag tiag peb yuav tso Raspberry Pi pawg thawj coj nrog kev txhim kho pawg thawj coj saib nyob rau hauv qhov chaw ua haujlwm ruaj khov kom muaj "kev lag luam" zoo li. Thaum kawg peb yuav muaj PLC khiav tus tswv EtherCAT hauv CODESYS runtime yuav luag tsis muaj nyiaj hlo li.

Kauj ruam 1: Kho vajtse thiab Software

Image
Image
PCB los ua ke
PCB los ua ke

Kho vajtse

  • Raspberry Pi 3B
  • RasPiBox Qhib Ntxiv (Cov qauv txheem)
  • daim npav microSD

Software

  • Raspbian Jessie lite
  • CODESYS Kev Txhim Kho
  • CODESYS tswj rau Raspberry PI

Cov cuab yeej

  • cam khwb cia hlau
  • multimeter
  • ntsia hlau
  • qee cov laug

Kauj ruam 2: PCB los ua ke

Peb pib nrog kev sib dhos ntawm pcb. Thov ua raws cov lus qhia ntawm phau ntawv PDF.

Kauj Ruam 3: Xeem Pcb

Test lub Pcb
Test lub Pcb

Peb yuav tsum ntsuas lub pcb ua ntej peb tuaj yeem nce Raspberry Pi. Koj yuav tsum txuas lub zog siv (9… 35V DC) rau lub pcb lub davhlau ya nyob twg. Thov txheeb xyuas nrog lub ntsuas hluav taws xob 5V muab hluav taws xob rau RPI.

Tam sim no koj tuaj yeem txuas lub pcb los ntawm kev xa hluav taws xob thiab nce Pi raws li hauv daim duab saum toj no.

Kauj Ruam 4: Mount Sab saum toj Plhaub

Mount Sab saum toj Plhaub
Mount Sab saum toj Plhaub

Nws yog lub sijhawm los teeb lub plhaub sab saum toj tam sim no. Zoo li me me din rail PLC tam sim no.

Kauj Ruam 5: Txhim Kho Cov Txheej Txheem Ua Haujlwm

Nruab qhov Operating System
Nruab qhov Operating System

Peb yuav tsum teeb tsa Raspbian ntawm SD-card siv cov lus qhia los ntawm Raspberry Pi webpage ua ntej.

Koj tuaj yeem ua raws cov lus qhia no.

Tsis txhob hnov qab theej ib daim ntawv uas tsis muaj npe nrog lub npe "SSH" hauv cov hauv paus hauv paus ntawm daim npav SD kom muaj kev nkag mus hla SSH (Putty) tom qab.

Kauj Ruam 6: Nruab CodeSYS

Nruab CodeSYS
Nruab CodeSYS

1.) Pls download CODESYS Tswj rau Raspberry Pi SL ua ntej. Cov dawb version txwv rau 120min runtime (koj yuav tsum rov pib RPI kom muaj 120 feeb ntxiv). Koj tuaj yeem yuav cov khoom lag luam rau 35 € yam tsis muaj kev txwv.

2.) Pls download CODESYS Kev Tsim Kho Txheej Txheem tam sim no. Koj yuav xav tau cov software no los sau tom qab cov haujlwm rau PLC ntawm koj lub PC.

3.) Txhim Kho Txoj Kev Txhim Kho ntawm koj lub PC. Tsis txhob hnov qab teeb tsa CODESYS_Control_for_Raspberry_PI.package ntawm tus thawj tswj pob: „Cov cuab yeej - Tus Thawj Tswj Pob" „Nruab"

4.) Rov Pib Codesys ntawm koj lub PC tam sim no

5.) Thauj khoom CODESYS Runtime hauv Raspberry Pi "Cuab Yeej" "Hloov Kho Raspberry Pi"

Lub sijhawm yuav siv sijhawm 120 feeb tam sim no. Txhawm rau rov pib dua nws koj tuaj yeem siv tsab ntawv no:

/etc/init.d/codesyscontrol start/etc/init.d/codesyscontrol nres

Pom zoo: