![W&T 57630 Скачать руководство пользователя страница 75](http://html1.mh-extra.com/html/wandt/57630/57630_manual_3082028075.webp)
75
W&T
Controlling the Web-IO with TCP/UDP Sockets
Subject to errors and modifications:
5.5
Socket programming with command strings
Direct access via TCP or UDP sockets is possible for
communicating with the Web-IO 12+12 Digital from simple
application programs.
Data exchange between a PC and the Web-IO takes place here
by passing simple command strings:
Commands
Parameter
Description
GET /input
x
?PW=
password
&
Password must be filled
with the Administrator
password.
If no password was assigned,
enter "PW=&".
(applies to all commands!!)
Input status request
x
can be a value between 0-11 and indicates
the input.
The reply from the Web-IO is a string
beginning with "inputx;" followed by the input
status:
ON
= Signal on input and
OFF
= no signal on input
If x is completely omitted, the Web-IO returns a
bit pattern corresponding to the input signals in
hex format.
GET /counter
x
?PW=
password
&
Counter value request
x
can be a value between 0-11 and indicates
the input.
The reply from the Web-IO is a string
beginning with "
counter
x
;
". The counter
state of the selected counter is attached in
decimal format.
GET /output
x
?PW=
password
&
Output status request
x
can be a value between 0-11 and indicates
the output
The reply from the Web-IO is a string
beginning with "outputx;" followed by the output
status:
ON
= Signal on output and
OFF
= no signal on output
If x is completely omitted, the Web-IO returns a
bit pattern corresponding to the output signals
in hex format.
GET /outputaccess
x
?PW=
password
&
State=
ON
/
OFF
/
XXXX
&
ON
: Output = 1,
OFF
: Output = 0,
XXXX
: Hex value between
0000
and
0FFF
corresponding to the
output bit pattern.
Sets one or more outputs
x
can be a value between 0-11 and indicates
which output to set.
The reply from the Web-IO is a string
beginning with "
output
;" followed by a bit
pattern corresponding to the output signals in
hex format.
GET /counterclear
x
?PW=
password
&
Resets a counter to 0.
x
can be a value between 0-11 and indicates
which output to set.
The reply from the Web-IO is a string
beginning with "
counter
x
;". The new counter
state of the selected counter is attached in
decimal format.
If
x
is not specified, all 12 counters are reset to
0. In this case there is no reply.
GET /errorclear
?PW=
password
&
Clears the error report in the Web-IO.
See section
Diagnostics and Testing
5.5.1 TCP communication
First you must determine which of the 12 outputs will be made
available for access via command strings.
Содержание 57630
Страница 8: ...8 W T Content...
Страница 22: ...22 W T Assigning the IP address...
Страница 44: ...44 W T configuring the network parameters...
Страница 194: ...194 W T Diacnostics and testing...
Страница 211: ...211 W T Decalration of conformity Subject to errors and modifications 7 9 Declaration of Conformity...