106
W&T
TCP / UDP - Binary
The IO structure Send Mode
This structure is used to specify the trigger conditions with
which the Web-IO sends the state of the inputs to the user pro-
gram. There are basically three possibilities, but they can all be
combined with each other:
1. The user program polls the Web-IO by sending the READ
structure
2. The Web-IO sends the WRITE structure with the state of the
inputs at a configurable interval
3. The Web-IO sends the WRITE structure with the state of the
inputs after a state change of the configured inputs
SendMode
WORD
send_sequenz
always 0
(PC -> Web-IO)
WORD
rec_sequenz
always 0
WORD
struct_type
0x0010
WORD
length
0x000C
WORD
ea_bits
bit mask of input trigger
WORD
interval
polling interval in 100ms
The IO structure ReadCounter
The user program sends this structure to the Web-IO to request
the counter state of a certain input counter. Which input is intended
is sent in the variable
counter_index
. The Web-IO always replies
with the
COUNTER
structure.
ReadCounter
WORD
send_sequenz
always 0
(PC -> Web-IO)
WORD
rec_sequenz
always 0
WORD
struct_type
0x00B0
WORD
length
0x000A
WORD
counter_index
Input 0..11 (23 for Web-IO 24)
The IO-Structure ReadClearCounter
The application program sends this structure to the Web-IO in
order to request the counter status of a particular input counter
and then immediately set to counter to 0. Which input this
involves is transmitted in the variable
counter_index
. The Web-
IO always replies with the structure
COUNTER
.
ReadClearCounter
WORD
send_sequenz
always 0
(PC -> Web-IO)
WORD
rec_sequenz
always 0
WORD
struct_type
0x00C0
WORD
length
0x000A
WORD
counter_index
Input 0..11 (23 for Web-IO 24)
Summary of Contents for 57630
Page 8: ...8 W T Content...
Page 22: ...22 W T Assigning the IP address...
Page 44: ...44 W T configuring the network parameters...
Page 194: ...194 W T Diacnostics and testing...