Internet PLC Forum
General => Technical support => Topic started by: AlexMiller 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?
-
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.
-
Thank you. I shall dig into that.