Technical data

130
W&T
4.1.2 HTTP - Controlling outputs of device
You can also use a TCP client in HTTP mode to set the outputs
using HTTP-GET commands. Here you use the expression:
GET /outputaccessX?PW=<password>&State=<value>&
X: Number of the output: 1=Port 1, 2= Port 2
password: If an Admin password is assigned, it must be ente-
red here in order to be able to set the output value. If no
password is assigned, leave this place blank (...?PW=&...)
value: Here you enter the value you want to set on the
respective output. The unit of the value corresponds to the
scale settings you configured under Config >> Ports >> Port X
>> Config.
To set a value of 50 on Channel 2 without an assigned
password, use for example the expression:
GET /outputaccess2?PW=&State=50&
Response: <Header>;<Sensor-Name>;output2;<value> <unit>
example:
„http://<IP address>/outputaccess1?PW=&State=10.5&“
Response:
„<IP address>;WEBIO-xxxxxx;Sensor 1 4-20mA;output1;10,5
Unit“
4.1.3 HTTP - Polling inputs using a ASCII command string
Similar to setting the output, both input channels can also be
polled using command strings. What is sent out depends on
the setting GET Header enable under Config >> Device >> Basic
Settings >> HTTP.