Technical data

57
W&T
Subject to errors and modifications
IO-Structure ReadRegister
Sending this structure to the Web-IO causes it to send the
status of the port to the user program. The packet consists only
of these four WORDs. This structure is used only by the user
program, and the Web-IO always responds by sending the
structure AnalogRegisterState.
ReadDiagnosis WORD send_sequence always 0
(PC -> Web-IO) WORD rec_sequence always 0
WORD struct_type 0x00D1
WORD length 0x0008
IO-Structure AnalogRegisterState
The Web-IO Analog-In/Out uses this structure to lsend the
state of both ports. This structure is sent when the user pro-
gram has sent the structure ReadRegister to the Web-IO, or
when this structure was used to set an output value.
AnalogRegisterState WORD send_sequence always 0
(Web-IO <-> PC) WORD rec_sequence always 0
WORD struct_type 0x01B8
WORD length 0x0014
LONG word_anz 2
LONG Port 1 Port1 State (in 1/1000 %)
LONG Port 2 Port2 State (in 1/1000 %)
This structure is also used for sending the output value of the
port for the Web-IO Analog-In/Out. When the user program
sends this structure to the Web-IO, the Web-IO sets the outputs
according to the value sent on Port 1 and Port 2. Here the value
is not transmitted in the configured units, but rather always in
1/1000 % of the current or voltage present. An output value of
15.4mA must be sent as 77000 x 1/1000 %, or 0x012CC8.
When the Web-IO sends this structure to the user program, Port
1 and Port 2 have the value correspolnding to the input state.
Die IO-Struktur AnalogSingleRegister
This structure is used for sending the output value to a single
port of the Web-IO Analog-In/Out. The procedure is identical to
AnalogRegisterState.