12/8/2016 4:05 PM | |
Posts: 9 Rating:
|
Hi, I am trying to read the values in DB with S7.Net. I have Siemens S7-1214C DC/DC/DC PLC. However I didn't get any result. For example I am trying to read bool value in DB2 which is at the adress DB2.DBX0.0 with the code given in the picture. At the console I get : PLC is Available and Connected Wrongvarformat So I can verify that PLC is connected and available. There is no problem with connection. There must be something wrong with the code or Tia Portal settings. BTW I did what I had to do when using S7.Net. I mean I granted full access(no protection) for CPU. Also I permit access with PUT/GET communication. I also disabled "optimized block access" option from the DB properties. So, I "guess" I did everything I am supposed to do. The code for reading the variables in PLC is right as well I guess. Maybe my PLC is broken I don't know. I have Visual Studio 2015, .NET framework 4.5, TIA Portal V13, This is my reference : https://www.youtube.com/watch?v=tYTjNG8YL-c What may have gone wrong? Best regards, Aydin Ozcan Attachmentqqqq.docx (140 Downloads) |
Last edited by: ozcanay at: 12/8/2016 4:18:45 PM |
|
12/8/2016 5:38 PM | |
Posts: 9 Rating:
|
Hi Murat, No, I was not using PLC SIM. I was using the actual S7-1214 PLC hardware. |
12/8/2016 7:10 PM | |
Joined: 2/11/2014 Last visit: 12/13/2023 Posts: 40 Rating:
|
Could you try with PLC sim? You can test your code is correct or not. PLC Sim interface: |
12/11/2016 11:06 PM | |
Posts: 9 Rating:
|
What is firmware version? |
12/12/2016 1:36 AM | |
Posts: 9 Rating:
|
I will just try PLCSIM soon. I hope it will work. |
Follow us on