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/...
IT WAS AMAZING... REALLY LOOKING FORWARD TO SEE YOUR MORE VIDEOS. THANKSSSS....
Glad you enjoyed it!
Bravo
I couldn't set the NenttopIlcsim and Android IP addresses. Can you post a video on this subject?
amazing work..thank you
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?
This is very cool, but will it only work on the local network or is it cloud??
Nice job. How the app getting data. As far I know we don't connect internet to plc directly
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!
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.
@@ChunzPS
Will this moka library work with L&T PLCs?
Hello Chunz Great Video would it be possible to send me your android project or make it available in the description?
You showed here simulation. How can I get data from real plc which is not near me
Will this moka library work with L&T PLCs?
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 ?
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?
pls respond soon its about my school project and i would really use your knowledge
@@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.
if i click read all button why the result both 0 & 0?
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
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
@@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
Fernando Garrido Set it as similar as the ip of your computer.
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 ?
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
Please make sure that your ip address and datatype is correct.
Hi,
Is it possible with schenider plc
can you show us how to download and add Moka7 library in android studio ?
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).
@@electronical100
Will this moka library work with L&T PLCs?
hii,
is it possible to make SWITCH on and off in tia portal via andriod app ?
Sure.
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 :)
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.
@@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"
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?
@@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
@@electronical100 I think it is possible, but you have to properly configure your network between emulator and PLC.
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?
Please refer to think link: snap7.sourceforge.net/moka7.html
@@ChunzPS
Will this moka library work with L&T PLCs?
Hi while run the application found some error . Not able to run the application.may I have your email id please