If it is not in the environment of the Internet, Kepserver can be used as the middleware, and the PC can read and write data to PLC in OPCUA protocol, but OPCUA is not suitable for Internet.
If the HTTP protocol is used, the communication middleware LECPServer is recommended, and the usage method is as follows.
http://www.lecpserver.com:3001/#/node_read_write
The key code is as follows
$.post("http://lecpserver_url:port",{"action":"plc_read_node", "node":"NODES.PanMC.X0000"}, function(success, rtval){
// return the data of node address X0000
console.log(success, rtval);
});