PLC control remote settings?

Iseee

New Member
Hi,

How to settings TTL outputs setting page "plc control enabled/disabled" on another web page?

Thanks
 
Take a look here :
 
http://www.cainetworks.com/products/webcontrol/webcontrol-faq.html
 
+7 Turn on/off TTL output from another programming language
7-1Q: I want to turn on/off TTL output from Visual Basic, can I do it?
7-1A: You can reference how the browser does it and emulate that in your VB or script. Please make sure to disable login in the "Network Setup" screen. For security purpose, please specify the IP address in the access list. Depends on the IP address and which TTL you want to control by programming language, you may refer to these two browser URL lines:

http://192.168.1.15/setoutps.cgi?0000W11=TTL1+ON to turn on, http://192.168.1.15/setoutps.cgi?0000W10=TTL1+OFF to turn off.

In PLC firmware, you can also do this by issuing the following commands:

http://192.168.1.15/api/setttloutput.cgi?output=1&state=1 to turn on, http://192.168.1.15/api/setttloutput.cgi?output=1&state=0 to turn off.

and to manually set a VAR value from outside:

http://192.168.1.15/api/setvar.cgi?varid=1&value=23456789

Command line browser wget can be used to do manually control. The above lines maybe need in double quotes to work.
 
 
Thank you. I've already known these. I would like to edit these data on the picture.
 
 
Iseee said:
plc_www.kepfeltoltes.hu_.jpg
 

plc_www.kepfeltoltes.hu_.jpg
 
There is no direct cgi code provided for making those changed individually on that page. However, if you are good in CGI coding, you can analyze how browser sending the information to the WC board, and do that in the same way.  Basically, each page's data is encoded into hex ASCII code then send to the board. There is a URL in the web browser to let board know which page the data is from.  User ID and password are base 64 encrypted, can be send in together to avoid asking login manually.
 
If you install a Wireshark software on PC and watch the IE browser communicate with WC, you can see everything being send back and forth. 
By changing a field value, you can easily see what to send in will have what result.
 
Back
Top