![W&T 57630 Скачать руководство пользователя страница 76](http://html1.mh-extra.com/html/wandt/57630/57630_manual_3082028076.webp)
76
W&T
Controlling the Web-IO with TCP/UDP Sockets
Select in the navigation tree
Config >> Device >> Output Mode
m
Required access rights:
Administrator
All the outputs that will be used must be activated for
HTTP
(factory default).
If you have changed the output modes, click on the
Temporary
Storage
button and then on the
Save and activate all temporary
settings
link. Clicking on the
Save
button saves all your settings.
The Web-IO now functions as a TCP server, which results in a
three-part program sequence regardless of which programming
language is used:
1. Opening of the TCP connection
The application always functions as a client and opens the TCP
connection.
The socket interface of the Web-IO is based to a great extent on
HTTP protocol. This means that the
listen port
is fixed as
TCP-
Port 80
.
1
As a protection against blocked TCP connections, the
Web-IO has a timer set for Port 80 which automatically
breaks the connection 30 seconds after it is opened if no
syntactically correct commands have been received. After a
connection has been successfully opened, the application should
therefore always send for example an output query to the Web-IO.
2. Communication between Web-IO and application
Normal communication takes place in polling mode. This means:
the client application uses the command strings to request the
desired values and set the outputs.
Содержание 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...