S7-1200 WEB SERVER

Hello guys, I am trying to access the DBs of my plc using an external web client, I have already enabled the web server of my plc and I have activated the tag access boxes in my DB, I am using firmware version 4.5, I have already made the plc access an external server using a GET to obtain certain data in JSON format, but now I want to do what I explained before, I have not been able to do it, does anyone know how I could access certain DBs or tags using an external web client? either to read or write values in those tags.

Regards!.


Phto_1.jpgPhto_2.jpg
 
Hello guys, I already got it, First we must request the login method so that the plc returns an authentication token, then request to write/read data according to our needs and passing that token as an authentication parameter in the header, I attached imagesPLCTALK_1.pngPLCTALK_2.png
 

Attachments

  • PLCTALK_3.png
    PLCTALK_3.png
    51.9 KB · Views: 11
  • PLCTALK_4.png
    PLCTALK_4.png
    64.2 KB · Views: 11
It is postman, I understand that no, postman should work with all web services, whether local or with internet access, basically they are queries sent by the https protocol so any device that has an embedded web server or your local server or your own computer, as is the case with the plc 1200 (embedded web api) could receive requests from this client or any other such as Insomnia
 
It is postman, I understand that no, postman should work with all web services, whether local or with internet access, basically they are queries sent by the https protocol so any device that has an embedded web server or your local server or your own computer, as is the case with the plc 1200 (embedded web api) could receive requests from this client or any other such as Insomnia
Thanks, that makes sense. I thought postman was a web app but I see now that you install it locally.
 

Similar Topics

Hi, Does anybody have a practical solution for accessing the webserver in an S7-1200 remotely? My S7 is located on a piece of heavy lifting...
6
Replies
4,391
Views
Hi, I have a Siemens S7-1200 PLC with a CP1243-7 module connected and configured using Telecontrol Server Basic V3.0. I am trying to access...
0
Replies
2,571
Views
I am working on a project on an s7-1200 with an hmi, but I am looking to remove the HMI and substitute its functionality using the User-Defined...
2
Replies
2,651
Views
Hello all, I am currently running a program from an S7-1200 and I am using TIA Portal v17. I have created a user-defined web page to eliminate...
1
Replies
3,960
Views
Hello all, I've been working on a siemens PLC system using an S7-1200 and a KTP400 Basic HMI. Essentially this system takes in some setup...
3
Replies
4,792
Views
Top