Turn On/Off Ttl Output From Another Programming Language - CAI Networks WebControl PLC User Manual

Programmable logic controller
Table of Contents

Advertisement

TM
WebControl
PLC User Guide Version 3.02.17f
2-2Q: How to read temperature or sensor ROM code from command line in Linux?
2-2A: Use wget http://webcontrol-ip/gett1.cgi to read the temp sensor T1, and use
wget http://webcontrol-ip/gett1rc.cgi to read the sensor T1 ROM code.
2-3Q: What can cause my temperature sensor not display correctly?
2-3A: Use solid copper wire for your 1-wire bus, for example, CAT5 cable. Reduce
any unnecessary length of the wire. Do not hook up unsupported parts to the 1-wire
bus, since they may generate 1-wire signal causing trouble.
2-4Q: I run a long cable between the DS18B20 and WebControl, sensor does not
work?
2-4A: According to Maxim-IC, if using a long cable connecting between the sensor
and host controller, it may require to add a pull-up resistor 4.7k from 1-wire bus (DQ
pin on DS18B20) to the 5V supply near the far end of the 1-wire bus. Please check
out
Maxim-IC
AppNote148. You do not have to add external power, if you do not
experience any problem.

6.7 Turn on/off TTL output from another programming language

3-1Q: I want to turn on/off TTL output from Visual Basic, can I do it?
3-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, or your application sending
encrypted user ID/password in the same HTTP call. 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/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, varid from 1 to 8:
http://192.168.1.15/api/setvar.cgi?varid=1&value=23456789
from 3.02.17 firmware, WebControl supports manually set a UROM value from
outside, uromid from 1 to 4:
http://192.168.1.15/api/seturom.cgi?uromid=1&value=23456789
Copyright(c) 2008,-2013 CAI Networks, Inc.
46

Advertisement

Table of Contents
loading

Table of Contents