'Inteligenty' dom ze sterownikiem PLC

 Language:
Szukanie zaawansowane  

Aktualności:

Powrót do strony głównej: www.edom-plc.pl

Autor Wątek: Wago 750-881: write variable by http get request  (Przeczytany 7484 razy)

domocla

  • Newbie
  • *
  • Wiadomości: 6
    • Zobacz profil
Wago 750-881: write variable by http get request
« dnia: Sierpnia 21, 2017, 12:32:58 pm »

Dear all,
I am new.

I would like to send to my plc a http request to write variable of my plc ( http://user:password@ip_address/WRITEPI?ADR1=MX0.0&VALUE1=1&FORMAT1=%d ).

Honestly I find information on web but I am getting cracy because I cannot reach my goal.

Do I have to realise a web page necesserely on my plc?

Could you help me please because I am getting crazy.

Thanks.
Zapisane

Simeone

  • Jr. Member
  • **
  • Wiadomości: 98
    • Zobacz profil
Odp: Wago 750-881: write variable by http get request
« Odpowiedź #1 dnia: Sierpnia 21, 2017, 02:52:28 pm »

Hi, Did You try jQuery plugin?
Zapisane

domocla

  • Newbie
  • *
  • Wiadomości: 6
    • Zobacz profil
Odp: Wago 750-881: write variable by http get request
« Odpowiedź #2 dnia: Sierpnia 21, 2017, 03:27:55 pm »

Hi Simeone,
not yet. Thank you for your suggestion.

I have seen that with a simple file.ssi on which we declare the variable to read, we can send writepi. Do you know about it?
Zapisane

admin

  • Administrator
  • Sr. Member
  • *****
  • Wiadomości: 313
    • Zobacz profil
Odp: Wago 750-881: write variable by http get request
« Odpowiedź #3 dnia: Sierpnia 21, 2017, 07:05:20 pm »

Hi,

I think that this:

http://www.edom-plc.pl/index.php/en/more-about-plc/steering/134-ssi

and the following articles tell a bit about the subject.  You can also look at this untranslated article:

http://www.edom-plc.pl/index.php/pl/wiecej-o-plc/sterowanie/204-komunikacja-readpi-writepi-z-wykorzystaniem-web-servera

for a communication example with the use of intermediary server.

Coming back to your question - the address you have shown seems correct.  Try writing to a MB0 variable, instead of the MX0.0 one.

Good luck!
Zapisane

domocla

  • Newbie
  • *
  • Wiadomości: 6
    • Zobacz profil
Odp: Wago 750-881: write variable by http get request
« Odpowiedź #4 dnia: Sierpnia 22, 2017, 12:39:34 pm »

Thank you Admin,
it works fine. Just one question. When I send this following command by my broswer

http://PLC_ipaddress/WRITEPI?ADR1=MX0.0&VALUE1=0&FORMAT1=%d

I read this following message in browser:

Error in Referer-URL.

In your opinion can we received a response such as "command ok"?

Thanks.
Zapisane

admin

  • Administrator
  • Sr. Member
  • *****
  • Wiadomości: 313
    • Zobacz profil
Odp: Wago 750-881: write variable by http get request
« Odpowiedź #5 dnia: Sierpnia 22, 2017, 03:34:55 pm »

Hi,

I have already sent an official question to WAGO asking why the response is as it is.... I've never got the answer.  ...so you just need to learn to love it ;) I konw of now way around it.

Best regards,
Zapisane

domocla

  • Newbie
  • *
  • Wiadomości: 6
    • Zobacz profil
Odp: Wago 750-881: write variable by http get request
« Odpowiedź #6 dnia: Sierpnia 24, 2017, 11:16:28 am »

Hi,
thank you admin.

Last question: in your opinion is it possible to write with a single URL, 2 variables and not just one?

Thanks.
Zapisane

admin

  • Administrator
  • Sr. Member
  • *****
  • Wiadomości: 313
    • Zobacz profil
Zapisane

domocla

  • Newbie
  • *
  • Wiadomości: 6
    • Zobacz profil
Odp: Wago 750-881: write variable by http get request
« Odpowiedź #8 dnia: Września 05, 2017, 10:14:23 am »

Hi admin,
I thank you very much for your support.

Could you cleariy a doubt? Where can I find all this information in Wago official tech documentation?

I am happy that you help me but I cannot find this information in Wago official documentation.

Thanks.
Zapisane