Author Topic: Web Service  (Read 12462 times)

AlexMiller

  • Newbie
  • *
  • Posts: 2
  • I'm a llama!
    • View Profile
Web Service
« on: March 17, 2016, 10:44:26 AM »
I am looking to write a value or values from plc memory to a web service.  I can't seem to find any way to do this in the language files given for the PLC.  

Can this be done?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Web Service
« Reply #1 on: March 17, 2016, 11:58:28 AM »
Please follow example in the C:\TRiLOGI\TL6\usr\samples\Ethernet\TimerServer.PC6 which shows you how to connect to a remote time server and receive data from the time server.

You can use the same method to make a connection to a webserver and use INPUT$(4) to receive the data stream from the server and use PRINT #4 to send HTTP GET or POST data back to the server. For web services you will need to format your data upload to the format required by the server so that it will accept your data upload.

You can also download the User Guide from: http://plclog.com/ - we have setup a portal where our PLC can log data to a remote server on the cloud. The user guide provide sample programs that interact with the PLCLOG.COM web server.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

AlexMiller

  • Newbie
  • *
  • Posts: 2
  • I'm a llama!
    • View Profile
Re:Web Service
« Reply #2 on: March 17, 2016, 12:13:27 PM »
Thank you.  I shall dig into that.