Android App - linked with Siemens PLC (Tutorial)

Поділитися
Вставка
  • Опубліковано 7 жов 2024
  • This video I will show how to create an Android application on Android Studio. The application can communicate with Siemens PLC for reading and writing data.
    (Credit) Moka Library: sourceforge.ne...
    Android Emulator Wifi Setting: developer.andr...
    ========================================
    Don't forget to click like and subscribe my channel.
    Please give me support by Paypal: www.paypal.me/...

КОМЕНТАРІ • 47

  • @basandanideepak
    @basandanideepak 4 роки тому

    IT WAS AMAZING... REALLY LOOKING FORWARD TO SEE YOUR MORE VIDEOS. THANKSSSS....

    • @ChunzPS
      @ChunzPS  4 роки тому

      Glad you enjoyed it!

  • @elbouzidiautomatisme
    @elbouzidiautomatisme 8 днів тому

    Bravo

  •  9 місяців тому +1

    I couldn't set the NenttopIlcsim and Android IP addresses. Can you post a video on this subject?

  • @akkayalarnserdar3184
    @akkayalarnserdar3184 4 роки тому

    amazing work..thank you

  • @GEEnterprises
    @GEEnterprises Місяць тому

    Hello Chunz, We tested the Siemens PLC-CPU 1214 with an Android mobile device after creating the app, but the data was not exchanged. We used TCON, TSEND, and TRCV blocks for the setup the communication which has setup initially. However, when sending the data from Android , the connection was disconnected, showing a status of 7002 in the TCON block and 80C4 in the TRCV block. Could you assist us if you have tested this in a real scenario?

  • @belalkaoukgi
    @belalkaoukgi Рік тому

    This is very cool, but will it only work on the local network or is it cloud??

  • @TheNazbul
    @TheNazbul 2 роки тому

    Nice job. How the app getting data. As far I know we don't connect internet to plc directly

  • @csabaszuromi8641
    @csabaszuromi8641 5 років тому +1

    Hello!
    Thanks for the video!
    I have some little question😊
    Am I able to write a single bit in the PLC? And only the DB area is writable?
    Thanks again!

    • @ChunzPS
      @ChunzPS  5 років тому

      Generally, only DB area is preferred to be used for reading and writing data. In case you want to control Output(Q), I suggest you should map the DB data with Output data manually.

    • @_Hello_World558
      @_Hello_World558 2 роки тому

      @@ChunzPS
      Will this moka library work with L&T PLCs?

  • @ahighpointinlowtaste.7965
    @ahighpointinlowtaste.7965 10 місяців тому

    Hello Chunz Great Video would it be possible to send me your android project or make it available in the description?

  • @TheNazbul
    @TheNazbul 2 роки тому

    You showed here simulation. How can I get data from real plc which is not near me

  • @_Hello_World558
    @_Hello_World558 2 роки тому +1

    Will this moka library work with L&T PLCs?

  • @samilsaylan224
    @samilsaylan224 2 роки тому

    Hello !
    I cant read or write any data . When I click Read Data Button data1 and data 2 seems null. I think I cant IP mapping. If I use real plc and android emulator how should i configure ip s ?

  • @lukaluka9713
    @lukaluka9713 5 років тому

    hello
    I have 2 questions about your work.What plc are you using here and is ethernet connectiom a modul which you can plug in to it or?And how did you set up connection was it accros your privet server,direct connection or it was accros some cloud?

    • @lukaluka9713
      @lukaluka9713 5 років тому

      pls respond soon its about my school project and i would really use your knowledge

    • @ChunzPS
      @ChunzPS  5 років тому

      @@lukaluka9713In this video, I used PLCSim as a simulator because I didn't have a real plc. Then, I used nettoPLCsim to map network between PLCSim IP address and localhost(127.0.0.1). In an android app, I assigned the IP address to 127.0.0.1 for connection. When the connection was established, the data was shown when clicked on read button and was written when clicked write button.

  • @engineerautomation1534
    @engineerautomation1534 3 роки тому

    if i click read all button why the result both 0 & 0?

  • @fernandogarrido7552
    @fernandogarrido7552 4 роки тому

    Great video, i have a question hope you can help me, when you write your code for the app the Ip address you write is the PLCsim Ip address or the Network address

    • @ChunzPS
      @ChunzPS  4 роки тому

      10.0.2.2 is the ip address for local host in android simulator. So, if you want to connect your android app with the actual plc, you need to change ip to the actual ip of plc

    • @fernandogarrido7552
      @fernandogarrido7552 4 роки тому +1

      @@ChunzPS okay I understand, I dont have a PLC so I also want to use PLCsim. But when you use NettoPlcsim what Ip do you use for the network

    • @ChunzPS
      @ChunzPS  4 роки тому +1

      Fernando Garrido Set it as similar as the ip of your computer.

  • @kushaldhengole8115
    @kushaldhengole8115 3 роки тому

    thank you for the video. it was needed one for me .
    Since i am an android developer i don't know much about the PIC.
    I trying to connect PLC and it connecting .
    one question i have.
    did S7AreaDB is same as tag name in plc are same ?

  • @อร่อยไม่ซ้ําจําสูตรไม่ได้-พ4ฟ

    May i ask something i have problem that i use real plc and link in pc like you but i didn't use nettoplc and when i am try to read all in emulator they show me 0 so idk how to solve this problem

    • @ChunzPS
      @ChunzPS  4 роки тому

      Please make sure that your ip address and datatype is correct.

  • @jitenvyas7462
    @jitenvyas7462 3 роки тому

    Hi,
    Is it possible with schenider plc

  • @hoanghuynhminh9056
    @hoanghuynhminh9056 4 роки тому

    can you show us how to download and add Moka7 library in android studio ?

    • @electronical100
      @electronical100 4 роки тому +2

      You just follow the link above to download the Moka7 file. After that, copy it to your project (at java folder). (Example: D:\document\PLCS71500test\app\src\main\java).

    • @_Hello_World558
      @_Hello_World558 2 роки тому

      @@electronical100
      Will this moka library work with L&T PLCs?

  • @TravellerSama
    @TravellerSama 3 роки тому

    hii,
    is it possible to make SWITCH on and off in tia portal via andriod app ?

  • @erensimsek3482
    @erensimsek3482 4 роки тому

    Hi Thanks for Video. I have a Real Siemens S7 1214 Plc I'm doing same thing as you do but when I click the Read button it says "null " What did I miss ? What do you think? Thanks :)

    • @ChunzPS
      @ChunzPS  4 роки тому

      Please make sure that you already get access to your plc. It's probably relevant to the ip address of plc you want to connect.

    • @erensimsek3482
      @erensimsek3482 4 роки тому

      @@ChunzPS Thank you for fast answer :) I'm already Automation Engineer I'm using siemens plc everytime. But this is my first android project with PLC. I have a question. Do I have to use wlan router ? Plc is only connected to my computer with ethernet cable. By the way my PLC'S IP address is "10.0.2.2". and my PC's IP address = "10.0.2.10"

    • @ChunzPS
      @ChunzPS  4 роки тому +1

      If you have a real plc, you should not use nettoplcsim but should try accessing plc directly. One question to ask. Do you use an android emulator or do you use android phone to access plc data?

    • @electronical100
      @electronical100 4 роки тому

      @@ChunzPS Hello Mr. ChunzPS, If I use an android emulator to control the real PLC, it's possible or not? (because I'm using an android emulator from the android studio and the result also is null. Thanks

    • @ChunzPS
      @ChunzPS  4 роки тому +1

      @@electronical100 I think it is possible, but you have to properly configure your network between emulator and PLC.

  • @sergimariano5842
    @sergimariano5842 5 років тому

    Hello!
    First of all thanks for your work.
    I don't know how to include moka libraries into the project, can anyone help me please?

    • @ChunzPS
      @ChunzPS  5 років тому

      Please refer to think link: snap7.sourceforge.net/moka7.html

    • @_Hello_World558
      @_Hello_World558 2 роки тому

      @@ChunzPS
      Will this moka library work with L&T PLCs?

  • @baranitharan8972
    @baranitharan8972 2 роки тому

    Hi while run the application found some error . Not able to run the application.may I have your email id please