
I/O Controller 2 Manual
HW group
www.HW-group.com
12/ 42
Quick control of inputs and outputs
This chapter shows how to read a digital input and set a digital output to a desired value. We assume
that a test board supplied with device samples is used.
The following assumes that you know how to enter the setup mode (RS-232 Setup or TCP Setup at
port 99). The respective steps were described in the previous sections.
•
Set
DIP1 = OFF
,
DIP2 = OFF,
connect the test board to the connector and turn on the
device.
•
Change to the “
UDP Setup
” tab, find the devices, and make sure that the “Enable TCP setup”
and “Enable NVT” options in the lower left-hand portion next to the MAC list are checked for
the respective device . If not, check both options and save your settings to the device.
•
Double-
click the IP address in the “UDP Setup” tab and change to the “
Test mode
” tab. The
double-click action should transfer the IP address and port to the Test tab. If this does not
happen, enter the values manually.
•
Click “Connect”. The listing at the
left-hand side displays Connecting,
followed by one or three NVT
commands in the received data. All
recognized commands are
displayed in blue.
The image shows the listing and the
configuration options of the
Hercules utility. To invoke the
menu, right-click inside the
receiving pane or the transmitting
pane.
•
At this point, click “
Read
” in the
lower right-hand corner to read the
inputs (8 switches at the test
board). Input states are indicated by
the virtual LEDs D0 to D7,
respectively. States can be inverted
with the “LED polarity” option.
•
The D0
– D7 checkboxes set the corresponding outputs. The first command sets all outputs to
defined states, subsequent commands set individual bits. Outputs can be again inverted using
the “Inversed” option.
The “Write together” option does not send commands immediately when an output is selected;
instead, outputs are set after clicking “
Write
”.
•
When “Show I/O commands” is enabled, notice the I/O Controller control sequences in the
incoming and outgoing panels. This makes it easy to test the commands.
•
Enter “FF F6” to the Send lines at the bottom, check HEX and click the corresponding Send
button
to send this command. The receiving pane should show “
<WEB51 HW 4.7 SW 2.J SN
00A608 #01>
” or something similar. You have just sent your first NVT command requesting
“Are You There” identification, and the I/O Controller replied with its HW and SW version. The
SN number consists of the last three bytes of the MAC address.
•
If the TCP connection is closed
while working (red message “
Connection refused by
remote host
”), click “Connect” to reconnect. The module uses a rather short timeout (50 s)
for manual control.
Summary of Contents for I/O Controller 2
Page 1: ...I O Controller 2 Manual HW group www HW group com 1 42 I O Controller 2 MANUAL...
Page 5: ...I O Controller 2 Manual HW group www HW group com 5 42...
Page 17: ...I O Controller 2 Manual HW group www HW group com 17 42 Network parameters TCP Setup Mode...
Page 18: ...I O Controller 2 Manual HW group www HW group com 18 42...