Klapsius
Klapsius

Reputation: 3359

Pass data from Siemens s7 1200 PLC to PHP script

Currently I'm working on project with PLC's.

I have Siemens s7 1200 PLC and I would like to pass data into another website. For example I would like to count units and send/record on database.

I know I can have website on PLC and remotely open that website from PC, It works.

But my question is:

Is it possible to have something like html form and log on to another server FROM PLC and pass parameters via GET into PHP script?

Basically I need to find a way to execute html link from PLC. [ I don't need code but just ideas if possible? ]

Upvotes: 2

Views: 3046

Answers (1)

Peter
Peter

Reputation: 21

I think that u cannot send parameters over website cause cross domain.. you should use comunication data blocks for sending parameters over WiFi or Ethernet with TCP or UDP protocol. So you can make that like this. for example: You can make a button on your PLC web server user-defined site and when will user press that button, it will be send request to the internal PLC logic and after execution can be forwards data to another web site contains PHP backend.

Upvotes: 1

Related Questions