HW Group IP Relay HWg-ER02b User manual

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
1/ 42
IP Relay HWg-ER02b
Manual
EN 600 552

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
2/ 42
Package contents
A complete shipment contains the following items:
IP Relay HWg-ER02b
Printed manual + datasheet
Safety information
The device complies with regulations and industrial standards in force in the Czech Republic and the
European Union. The device has been tested and is supplied in working order. To keep the device in
this condition, it is necessary to adhere to the following safety and maintenance instructions.
Never remove the device cover if the relay terminals are connected to the electrical network!
Using the device in a manner other than prescribed by the manufacturer may cause its
safeguards to fail!
The power supply outlet or disconnection point must be freely accessible.
The device must not be used in particular under any of the following conditions:
The device is noticeably damaged
The device does not function properly
Unfastened parts can move inside the device
The device has been exposed to moisture or rain
The device has been serviced by unauthorized personnel
The power adapter or power supply cable are noticeably damaged
If the device is used in a manner other than designed for, the protection provided by the device may fail.
The local electrical system must include a power switch or a circuit breaker and overcurrent protection.
The manufacturer warrants the device only if it is powered by the supplied power adapter or an
approved power supply.
If you have any problems with installing or operating the device, please contact technical support:
HW group s.r.o.
http://www.hw-group.com
Email: support@HWg.cz
U Pily 3
143 00 Praha 4
Czech Republic
Tel. +420 222 511 918
When contacting technical support, please keep at hand the exact type of your device (at the type
plate) and, if possible, the firmware version (see later in this manual).

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
3/ 42
IP Relay HWg-ER02b
Ethernet relay, DIN rail, Web interface.
The Ethernet relay features 2x DI (dry contact input), a full RS-232/485 serial port, and 2x DO (relay
output, 230V/16A). It is controlled over the web or Modbus/TCP.
Relay outputs can directly switch 230V/16A AC mains, dry
contact inputs can be used e.g. for buttons. The device
features a full RS-232/485 serial port for connecting
e.g. a RFID or barcode reader. Industrial model, fits
on a DIN rail.
Two devices can be connected against each
other (Box-2-Box mode) to extend the digital
and RS232 signals over a computer network.
Basic features
Ethernet: RJ45 (100BASE-T / 100 Mbit/s)
Inputs: 2 digital (dry contact) inputs
Outputs: 2 NO/NC digital (relay) outputs, rated 230V/16A
Serial interface: 1x full RS-232 or RS-485 serial port
Full RS-232 serial port: RxD, TxD, GND, CTS, RTS, DSR, DTR, RI, CD / 115.200 Bd.
Configuration: Web, Telnet
Box-2-Box mode: Two units can be connected back-to-back over the network and tunnel
the I/O and the serial port.
M2M protocols: http, Modbus/TCP, Telnet, TCP Server, TCP Client/Server
Support for programmers: HWg-SDK
Mechanical: 145 x 90 x 45 mm, wall-mountable, fits on a DIN rail
Free HW VSP software: Virtual serial port for Windows (NT service, x64 systems). Supports
up to 100 remote serial ports. HW VSP is the world's most popular virtual serial port for
Windows!
Serial interface features:
- Communication speed configurable from 300...115200 Bd
- Handshake (CTS/RTS, Xon/Xoff, none)
- Full serial port (Cannon DB9M - RxD, TxD, CTS, RTS, DSR, DTR, RI, CD, GND)
- Support for 7th to 9th parity bit (9th parity bit transferred over the Ethernet)
- Remote serial port is RFC2217 compatible
- Support for TCP/IP terminal, TELNET - NVT type (Network Virtual Terminal)

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
4/ 42
Product description
DIP switch
1) RS-232 setup mode
2) RS-485 enabled
3-4) RS-485 termination enabled
Relay outputs
2x NO-COM-NC
RS-232
Full serial port (9 wires)
RS-485
Relay outputs
2x NO-COM-NC relay output
Power
Green terminal block and
the jack are in parallel
Digital inputs
2x dry contact input
Ethernet 100 Mbit
Power LED

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
5/ 42
NO
+
-
COM
POWER OUT
12V
Relay outputs
NO and NC labels apply to Off (0) state, or device turned off
When the output is On (1), a “Normally Open” (NO) relay contact is closed
LEDs: Closed contact is indicated by a LED
Isolation: The double-throw contact is electrically isolated from the rest of the device
ID range: Outputs use ID addresses from 1 to 2
Digital (dry contact) inputs
Digital input terminals may be connected to voltage-free contacts or the GND pin. The inputs are
electrically connected to the 12V power supply. Never connect the inputs to 48V!
Unconnected inputs read as “0 (Off)”.
Active inputs read as “1 (On)”.
Supported sensors: Any contact without external voltage (dry contact)
Polling period: 200 ms
Range of sensor IDs: Inputs use ID addresses from 1 to 2
NO NC

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
6/ 42
Technical specifications
Ethernet port
Interface
RJ45 (100BASE-Tx)
Supported protocols
IP: ARP, TCP/IP, (HTTP, Modbus over TCP, NVT, RFC2217), UDP/IP
Network modes
TCP/IP server, TCP/IP client/server, UDP/IP
Serial port
RS-232 connector
Cannon 9 - DB9M
RS-232 interface
RxD, TxD, RTS, CTS, DTR, DSR, CD, RI, GND (full serial port)
Data bits / Stop bits
7, 8 or 9 / 1 or 2
Speed / Parity
50 –115 200 Bd / Parity options: None / Odd / Even / Mark / Space
RS-485 connector
2-pin terminal block (A > B)
RS-485 isolation
RS-485 not optocoupled to the device’s power supply
Galvanic isolated RS-232/485 to Ethernet (1.000 V)
RS-485 termination
Jumper DIP3+4 (2x On = 120Ω for A-B, 2x 470Ω to 5V power)
Digital Inputs
Type
2x Dry Contact
Sensitivity / Max. distance
1 (On) = 0 –500 Ω / up to 50m
Digital Outputs
Type
2x Relay contacts (NC-COM-NO) –Power up state (no state restart memory)
Max. load
max. 250V / 16A AC / max. 24V / 16A DC
Environment parameters
Temperature
Operating: -5 to 75 °C (23 to 167 °F) / Storage: -25 to 85 °C (-13 to 185 °F)
Relative humidity
5 to 95 % (non-condensing)
LEDs
+ POWER (green)
GREEN –power supply turned on
+ LINK & Activity (green)
GREEN - Ethernet connection
+ RxD/TxD (green/red)
Green –RS-232/RS485 receiving activity
Red –RS-232/RS485 transmission activity
+ RS-485 (green)
RS-485 Active
+ Relay 1, 2 (yellow)
Relay closed (1)
+ Digital Inputs (green)
Digital Input closed (1)
DIP switches
DIP1 - RS-232 Setup
ON = RS-232 Setup mode (9600 8N1) –Ethernet interface disabled!
OFF = Ethernet mode
DIP2
Enable RS-485 (RS-232 disabled)
DIP3, DIP4
RS-485 termination
Other parameters
Supply voltage
12-30 V/ 150 mA DC (coaxial connector (barrel) & terminal block in parallel)
Dimensions / Mass
145 x 90 x 45 [mm] / 225 g
Mount
Wall / DIN rail
EMC
FCC Part 15, Class B, CE - EN 55022, EN 55024, EN 61000

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
7/ 42
Connectors
RS-232
1
CD
<--
Carrier Detect
2
TxD
-->
Transmit Data
3
RxD
<--
Receive Data
4
DTR
-->
Data Terminal Ready
5
GND
---
System Ground
6
DSR
<--
Data Set Ready
7
CTS
<--
Clear to Send
8
RTS
-->
Request to Send
9
RI
<--
Ring Indicator
RS-485
1
A
<->
A > B
2
B
<->
A > B

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
8/ 42
DIP 1
SETUP
DIP 2
RS-485
Function
ON
OFF
RS-232 Setup mode (9600 8N1) Ethernet is disabled
OFF
OFF
Serial port in the RS-232 mode
OFF
ON
Serial port in the RS-485 mode (RS-232 is inactive)
- check the &R and &H parameters (recommended: &R3 &H1)
DIP 3
DIP 4
Function
OFF
OFF
RS-485 unterminated
ON
ON
RS-485 terminated
LEDs:
Power –green..................................... External power connected
LINK –amber.................................... Ethernet interface activity
Status –green..................................... Device starting up, firmware upgrade
Setup –red......................................... Device in serial Setup mode
INx –green..................................... Input x is closed
OUTx –red......................................... Output x is closed
120Ω
470Ω
470Ω
+5V

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
9/ 42
How to use the device
Configuring the IP address
1) Install the HWg-Config (UDP Config) utility [at our website or on the DVD].
2) Set DIP1 and DIP2 to OFF.
3) Connect the device to the Ethernet.
4) Connect the power to the device (plug in the adapter).
5) If the power is OK, the green Power LED lights up.
6) If Ethernet works, the LINK LED lights up, and blinks when data is transferred.
7) Run HWg-Config (or the older version, UDP config) and configure:
Double-click to configure the device
Your LAN settings
This device does NOT support DHCP
Manually configure:
- IP address
- Subnet mask
- Gateway
Click “Apply Changes” to save the changes.
1
2
Open in the web browser
Click the underlined IP address to browse to
the WEB interface.
3
Note:
If the device is not visible on your PC, it may
be connected to a different LAN segment.
Connect the LAN cable from the device to
the same switch where your PC is
connected.

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
10/ 42
Configuring the device over WWW
In the HWg-Config tab, click the correct MAC address and press Open in the WEB browser.
You need to log in to access the configuration.
The default credentials are “admin” + “1234”.
Default login:
admin
1234

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
11/ 42
Controlling DI and DO over the WEB
Relay outputs are controlled individually by clicking the switch icons, or by entering a decimal value
and clicking Send.

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
12/ 42
System + firmware upgrade
The System page lets you change the admin's password and back-up or restore configuration.
The Firmware Upgrade link in the left-hand menu allows you to upload firmware to the device over
the web interface.
Firmware upgrade
Load default configuration

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
13/ 42
Setting up without WWW (TCP Setup)
Use the Hercules utility:
Change to the “TCP Client” tab and enter the configured IP address. Set the TCP port to 99.
Click “Connect”. The listing on the left displays the “WEB51>” prompt. Click inside this pane
and press ENTER. The window displays the current configuration.
To set a parameter, enter the
corresponding letter and the desired
value (for example “I192.168.6.8” to
set the device IP address). To
show the help for a command, enter
the command and a question mark,
and press ENTER –for example,
“I? <Enter>“. All the settings are
described in detail later in this
manual.
After setting the parameters, use R
for Reboot and press “Disconnect”
to disconnect from the device. The
device restarts.
Note: TCP Setup can be disabled
with the “Enable TCP setup” option.
When unchecked, the device
refuses connections to port 99.
Setting up the device using a RS-232 terminal
If you do not have Windows or our Hercules utility available, you can set up the device over RS-232
using any terminal.
Set DIP1 = ON, DIP2 = OFF.
Connect RS-232 (port 1) to a PC using the
supplied LapLink cable.
Open your favorite terminal program (e.g.
Hyperterminal), choose the correct serial
port and configure it to 9600 8N1.
Connect the power adapter to the
electrical outlet and to the device.
If the power is OK, the green Power LED
should light up.
If the serial cable and terminal program
are working, the text menu for configuring
the device appears.
Continue by following the steps as in the previous
case.

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
14/ 42
Controlling I/O using NVT
Use the Hercules utility:
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 the receiving or
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 IP Relay 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 IP Relay 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.

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
15/ 42
Setting up the device –Frequently Asked Questions
Ethernet no longer works but LINK is lit.
Perhaps the device was left in the “RS-232 Setup” mode that is activated by setting DIP1 = ON? In
this mode, the Ethernet does not respond. Set DIP1 = OFF and restart the device by disconnecting
the power supply for at least 3 seconds.
RS-485 communication does not work.
Make sure that termination resistors (120 –470 Ohms) are present at the line or at the
connector.
When using a RS485 converter, configure &I1 or &I2 and remember to turn on HALF DUPLEX
using &H1.
I need to supply power to a RS-232 application.
If you don’t need to control data flow (HW handshake) but need to power a device connected to the
serial port (max. 5 –10 mA), power your application from the RTS output (pin 7 at the RS-232
connector). Use the &R0 parameter (&R:RS485/RS422 control) in the setup mode to connect +8 V
to +12 V to this pin. I cannot control digital inputs and outputs.
Digital inputs and outputs cannot be controlled. RS-232 data work fine.
Most likely, “NVT” is disabled. Check this at the “UDP Setup” tab in the Hercules utility, in the TCP
Setup, or in the RS-232 Setup.
5-second timeout is too short to work with, is it possible to do something about it?
Yes, enable “Keep connection” in the Setup. IP Relay then sends a command every 6 seconds that
appears as “NVT: NOP” in the receiving pane. The connection does not timeout.

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
16/ 42
HW VSP –Virtual Serial Port
Virtual Serial Port driver is a software tool that adds a virtual serial port (e.g. COM5) to the operating
system and redirects data from this port via the Ethernet network to another hardware interface.
HW VSP Singleport –Virtual Serial Port (Windows) for one device only
HW VSP Multiport –Virtual Serial Port (Windows) for up to 100 remote serial ports
The driver works in Windows XP, Vista, Windows 7, Windows 2003 Server, Windows 2008
Server, including 64-bit versions.
If the device supports RFC 2217 (NVT), you can set the remote serial port parameters (speed,
parity, stop bits).
The communication can be recorded to a LOG file for easier debugging.
Getting started
Set up the IP address of the remote serial port device using “UDP setup” or “Hercules”.
Install HW VSP (from the DVD or from our website) and run it.
1
2
3

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
17/ 42
Detailed VSP Settings
Log enabled
The VSP driver logs the virtual serial port activity to “C:\serialport.log”.
Create port on start VSP
Automatically creates virtual ports when the driver is started. To create virtual ports at
Windows startup, the “Start VSP on boot” box must be checked, too.
TCP Server Mode
Activates VSP as a TCP/IP server. The driver then behaves as a TCP Client/Server device –
the first side to receive any data switches to Client mode and establishes the connection.
The incoming TCP server port is configured at the main “Virtual SP” tab. We recommend
using port numbers higher than 1025.
Hide on startup
Hides VSP to to the system tray. The VSP icon is accessible near the clock.
Don't create port if ping fail
Before creating the virtual serial port, tests if the device IP address responds.
Connect to Device even if VirtualCOM is closed
If the virtual serial port is not in use by any application, checking this box can lead to losing
some received data from the remote device.
Strict Baudrate Emulation
Limits the application-to-VSP and TCP-to-VSP transfer rate according to the baudrate of the
open serial port.
1
2

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
18/ 42
Configuring the IP Relay –Command description
The description of the settings combines WWW-based configuration and TCP/Serial setup. Some
functions are only available in Serial/TCP setup (TEA security settings, QUIT mode).
Status
Overview of the basic device parameters.

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
19/ 42
Network parameters

IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
20/ 42
(IP attempting to access ANDN ) = W
Access is granted if the above condition is
true. AND represents bitwise multiplication.
MAC Address 00:0A:59:00:95:6C
MAC address is a unique device address in the Ethernet network and it is always factory-preset. You
can find it on the label inside the device. Using this address, individual devices can be distinguished
for example in the UDP section of the setup program.
The address respects restoring of the default configuration with the “D0” command.
I: Address 192.168.6.15
Configures the IP address of the converter.
J: Port 23
Configures the converter's communication port –
from 1 to 65535.
Port 99 is reserved for TCP Setup, if supported
by the particular model and enabled in the setup.
M: Mask 255.255.255.0
IP network mask applicable in the local network.
Communication with all devices outside of the local
network (as determined by the IP address and
network mask) is directed through the gateway.
G: Gateway 192.168.6.254
Address of the Gateway that enables access to
external networks (outside of the IP range defined
by the converter's IP address and the mask).
====== In IP Setup ======
W: Address 0.0.0.0
IP address of a network or a computer that is allowed to communicate with the device. This value must be
the result of a bitwise AND of the remote IP address and the restriction mask (option N), otherwise the
device does not react.
N: Mask 0.0.0.0
This mask restricts addresses that are allowed to communicate with the device. Security can be
enhanced by setting a fixed address or a suitable restrictive mask that disallows communication with
unauthorized parties.
X: Port 0.0
Y: Port Mask 0.0
Restricts the range of TCP ports that can
communicate with the device.
MASK, IP address and Gateway functions:
An Ethernet device communicates:
Within a local Ethernet network: No
Gateway is used or needed. However, IP
addresses of both sides must be within the
configured mask. For example, a mask of
255.255.255.0 means that the IP addresses
can only differ in the last byte.
Outside of the local network –through the
Gateway, which itself must have an IP
address within the range delimited by the
mask.
In addition to this basic configuration, it is
possible to restrict the range of IP addresses
allowed to communicate with the converter in
“In IP Setup”. For debugging, we therefore
recommend to keep this parameter set to
0.0.0.0.
Table of contents
Other HW Group I/O System manuals
Popular I/O System manuals by other brands

Sony
Sony DSBK-170 installation instructions

National Instruments
National Instruments 9215E Operating instructions and specifications

Ursalink
Ursalink UC1152 user guide

EDA
EDA CM4 Software installation guide

3cityElectronics
3cityElectronics FERMIO-EM Quick user guide

ICP DAS USA
ICP DAS USA PCI-82x Series user manual