Xytronix Research & Design WebRelay User manual

Revision: 3.1 - June 8, 2007
a division of...
Xytronix Research & Design, Inc.
North Logan, Utah, USA
(c) 2005-2007 Xytronix Research & Design, Inc.
Covers: X-WR-1R12-1I5-5
X-WR-1R12-1I5-I
X-WR-1R12-1I24-I
X-WR-1R12-1I5-E
WebRelay
TM
Users Manual
TM

Revision 3.1 WebRelayTM Users Manual
Contents
Trademark and Copyright Information
Warranty
FCC Statement
Installation Guidelines (Read efore Installing)
Section 1: Introduction
1.1 Features
1.2 WebRelayTM Models Available
1.3 Connectors & Indicators
1.4 Example Configurations and Applications
1.4.1 Single WebRelayTM Device (IP Network Control Only)
1.4.2 Single WebRelayTM Device (Voltage and/or IP Network Control)
1.4.3 Dual WebRelayTM Devices (No Computer Required for Operation)
1.4.4 Multiple WebRelayTM Operation (No Computer Required for Operation)
1.4.5 WebRelayTM Used for Reboot (Wired in series with Power)
1.4.6 WebRelayTM Used for Reboot (Wired to Reset)
1.4.7 WebRelayTM Used for Reboot (Wired in parallel with Power Switch)
Section 2: Installation and Setup
2.1 Mounting
2.1.1 Wall Mounting
2.1.2 DIN-Rail Mounting
2.2 Connection
2.2.1 Power Supply Connection
2.2.2 Network Connection
2.2.3 Relay Connection
2.2.4 Optically-Isolated Input Connection
2.3 Establishing Communications for Setup
2.3.1 Option 1: Assign a temporary IP address to WebRelayTM
2.3.2 Option 2: Assign a temporary IP address to configuration computer
2.3.3 Open Configuration Web Page
2.4 Web- ased Setup
2.4.1 Main Setup Page
2.4.2 Network Setup Page
2.4.3 Password Setup Page
2.4.4 Relay/Input Setup Page
2.4.5 Control Page Setup (When Relay Mode is set to Standard)
2.4.6 Control Page Setup (When Relay Mode is set to Automatic Reboot)
Section 3: Operation
3.1 rowser Operation (Standard Relay Mode)
3.2 rowser Operation (Automatic Reboot Relay Mode)
3.3 XML Operation
3.4 Modbus Operation
3.4.1 Read Coils (Modbus Function Code 01 (0x01))
3.4.2 Read Discrete Inputs (Modbus Function Code 02 (0x02))
3.4.3 Write Single Coil (Modbus Function Code 05 (0x05))
3.4.4 Write Multiple Registers (Modbus Function Code 16 (0x10))
Xytronix Research & Design, Inc. page 1

Revision 3.1 WebRelayTM Users Manual
Appendix A: Restoring Factory Default Settings
Appendix : Specifications
Appendix C: Mechanical Information
Appendix D: Open TCP Legal Notice
Xytronix Research & Design, Inc. page 2

Revision 3.1 WebRelayTM Users Manual
Trademark and Copyright Information
This document is Copyright ©2005-2007 by Xytronix Research & Design, Inc. All rights reserved.
WebRelayTM and Control yWebTM are Trademarks of Xytronix Research & Design, Inc. 2005-2007.
Portions of the software used in WebRelayTM are open source and appropriate copyright and legal notices are listed at
the end of this manual. All other parts of the software are property of Xytronix Research & Design, Inc. ©2005-
2007. The hardware design, schematics, PC layout, concept, graphics, users manual, etc., are property of Xytronix
Research & Design, Inc. ©2005-2007. WebRelayTM may not be opened, dis-assembled, copied or reverse
engineered.
No part of this manual may be reproduced or transmitted in any form or by any means, electronic or mechanical,
including photocopying or scanning, for any purpose other than the personal use by the purchaser of this product.
Xytronix Research & Design, Inc., assumes no responsibility for any errors that may appear in this document.
Whereas effort has been made to make the information in this document as useful and accurate as possible, Xytronix
Research & Design, Inc. assumes no responsibility for the application, usefulness, or completeness of the information
contained herein. Under no circumstance will Xytronix Research & Design, Inc. be responsible or liable for any
damages or losses including direct, indirect, special, incidental, or consequential damages or losses arising from
either the use of any information contained within this manual or the use of any products or services referenced in
this manual.
Xytronix Research & Design, Inc. reserves the right to change any product’s features, specifications, documentation,
warranties, fee schedules, and conditions at any time and without notice.
Warranty
This Xytronix Research & Design, Inc. product has a warranty against defects in material and workmanship for a
period of one year from the date of shipment. During the warranty period, Xytronix Research & Design, Inc. will, at
its option, either repair or replace products that prove to be defective. This warranty is extended to the original
purchaser of the equipment only.
For warranty service or repair, the product must be properly packaged, and returned to Xytronix Research & Design,
Inc. The purchaser shall prepay all charges for shipping to Xytronix Research & Design, Inc., and Xytronix Research
& Design, Inc. will pay the shipping charges to return the product to the purchaser as long as the product is shipped
within the United States. If the product is shipped outside of the United States, the purchaser shall pay all shipping
charges, duties, and taxes.
Limitation
The foregoing warranty shall not apply to defects or damage resulting from improper use or misuse, unauthorized
repair, tampering, modification, improper connection, or operation outside the electrical/environmental specifications
for the product. Further, the warranty does not cover Acts of God, such as fire, flood, hurricanes, and tornadoes.
This warranty does not cover damage to property, equipment, direct, indirect, consequential, or incidental damage
(including damage for loss of business profit, business interruption, loss of data, and the like) arising out of the use or
misuse of this product. UNDER NO CIRCUMSTANCES WILL THE LIA ILITY OF XYTRONIX RESEARCH &
DESIGN, INC. TO THE PURCHASER OR ANY OTHER PARTY EXCEED THE ORIGINAL PURCHASE
PRICE OF THE PRODUCT, REGARDLESS OF THE FORM OF THE CLAIM. No other warranty is expressed or
implied. Xytronix Research & Design, Inc. specifically disclaims the implied warranties or merchantability and
fitness for a particular purpose. Some jurisdictions may not allow the exclusion of limitation of liability for
consequential or incidental damage.
Xytronix Research & Design, Inc. page 3

Revision 3.1 WebRelayTM Users Manual
FCC Statement
This device complies with Part 15 of the FCC Rules. Operation is subject to
the following two conditions:
• This device may not cause harmful interference.
• This device must accept any interference received, including interference that may cause undesired operation.
Warning: This equipment has been tested and found to comply with the limits
for a Class (Class A for POE models) digital device, pursuant to Part 15 of the FCC Rules. These limits
are designed to provide reasonable protection. This equipment generates, uses and can radiate radio frequency energy
and, if not installed and used in accordance with the instructions, may cause interference to radio communications.
However, there is no guarantee that interference will not occur in a particular installation. If this equipment does
cause harmful interference to radio or television reception, which can be determined by turning the equipment off and
on, the user is encouraged to try to correct the interference by one or more of the following measures:
• Reorient or relocate the receiving antenna.
• Increase the separation between the equipment and receiver.
• Connect the equipment into an outlet on a circuit different from that to
which the receiver is connected.
• Consult the dealer or an experienced radio/TV technician for help.
Notice: Changes or modification not expressly approved by the party
responsible for compliance could void the user’s authority to operate the
equipment.
Installation Guidelines (Read efore Installing)
- Do not open the WebRelayTM enclosure. This will void the warranty.
- This unit must be installed by qualified personnel.
- This unit must not be installed directly outdoors.
- This unit must not be used for medical, life saving purposes, or for any purpose where its failure could cause serious
injury or the loss of life.
Notes about security:
y design, WebRelayTM is very secure. It does not support terminal or file transfer programs such as telnet, ftp, ssh,
etc. This means that it is not possible for someone to ‘break in’ to WebRelayTM and access other devices on your local
network. WebRelayTM does not support remote firmware updates which means that it is not possible for someone to
remotely install malicious software. The simplicity of WebRelayTM makes it a very secure device. As with any
device to be installed on a network, there are some security precautions that should be observed. If WebRelayTM is
installed on the Internet, it is recommended that passwords be enabled for the control page. Make sure secure
passwords are used. Passwords should be at least 8 characters in length and should be a combination of upper case
letters, lower case letters, and numbers. Don’t use passwords that would be easy to guess. For additional security, a
firewall may be used to limit access only to selected IP addresses. Another option may be to set up a Virtual Private
Network (VPN) between the network where WebRelayTM resides and the client machine (web browser, second
WebRelayTM, etc.).
Final installation note. This Control yWebTM product supports connection to 10Mbps and 100Mbps networks.
Although 100Mbps networks are faster, the amount of data transferred to and from this device is very minimal and
little if any performance increase will be gained by setting it to 100Mbps. There are advantages however, to operate
this device at 10Mbps. At 10Mbps, less power is required, the unit runs cooler, and the lifetime of the product will be
extended.
Xytronix Research & Design, Inc. page 4

Revision 3.1 WebRelayTM Users Manual
Section 1: Introduction
WebRelayTM is an electro-mechanical relay with a built in web server. It can be controlled and/or monitored over any
IP network including private networks, IP-based industrial control networks, and the Internet. Users can operate
WebRelayTM using a web browser or a custom application. Computers, PLCs, or automation controllers may control
and monitor WebRelayTM without user intervention. This works by sending text commands over the network and
reading XML status pages from WebRelayTM, or by using Modbus/TCP protocol. WebRelayTM can also be operated
by using the optically isolated input. The optically isolated input can be configured to turn the relay on/off, pulse the
relay, toggle the relay, latch the relay (for alarming), etc. The input can also be used to control a relay at a remote
location or to simply monitor the status of a digital signal.
WebRelayTM has many applications and is only limited by imagination. It works very well as a stand-alone device that
can be controlled using a web browser or as a convenient way to add I/O to a computer. It can be used in industrial
applications to control motors, lights, coils, pumps, valves, etc. It can also be used to monitor switches, sensors, and
control voltages.
In addition, WebRelayTM is designed to function as a high-end reboot controller and offers many reboot options. It
can be used to remotely reboot servers, computers, satellite modems, and other devices over the Internet, or it can be
configured to automatically reboot devices when they fail to respond to pings that are sent from WebRelayTM. There
are three ways that WebRelayTM can be wired to a device for reboot. First, WebRelayTM can be wired in series with
the power source of the device and simply switch the power on and off. Second, WebRelayTM can be wired in parallel
with the power switch of the device. This is useful for devices that will not automatically start operating when power
is applied. These devices require a user to press a power switch before the device will boot. The third option is to
connect WebRelayTM to the reset circuit of a device. In this configuration, WebRelayTM does not power down the
device, but simply causes the device to reset. All three reboot methods have different requirements in physical
connection and relay timing.
1.1 Features
WebRelayTM is very simple but has many features. Some features include...
•No programming required.
•Easy to use as a stand alone device or as part of a large control system.
•uilt-in web server provides simple, web based configuration and control.
•Control page can be customized with appropriate text and buttons.
•10/100 Ethernet connectivity.
•12 Amp/120VAC relay for direct connection to load.
•Removable terminal connectors (included) simplifies wiring and service.
•Custom applications can control WebRelayTM with simple text commands and read XML formatted status.
•Modbus/TCP protocol support provides inter-interoperability with devices/software from other
manufacturers.
•Password protection.
•Selectable TCP ports.
•uilt-in automatic reboot controller.
•Optically-isolated input can be used for status monitoring, local relay control, or remote relay control.
•On/Off or pulse mode.
•Reboot Counter (XML readable only).
Xytronix Research & Design, Inc. page 5

Revision 3.1 WebRelayTM Users Manual
1.2 WebRelayTM Models Available
WebRelayTM is currently available in four models. There are only two differences between the four models. One
difference is the power supply requirements and the other difference is the input voltage range on the optically-
isolated input.
Part Number Power Supply Requirements Optically-Isolated Input Voltage Range
X-WR-1R12-1I5-5 5VDC 3-12VDC
X-WR-1R12-1I5-I 9-28VDC 3-12VDC
X-WR-1R12-1I24-I 9-28VDC 11-28VDC
X-WR-1R12-1I5-E Power Over Ethernet or 5VDC 3-12VDC
1.3 Connectors & Indicators
WebRelayTM has two removable terminal connectors and an Ethernet connector. One terminal connector is a large, 3-
terminal connector which is used to connect the load to the relay. The other terminal connector is a smaller, 5-
terminal connector which is used to provide power to the internal web server, connect the optically isolated input, and
provide a 5VDC output.
There are four LED indicators on WebRelayTM labeled INPUT (green), RELAY (green), LINK (green), and ACT
(amber). Note that the LINK and ACT LEDs are located on the Ethernet connector. The INPUT LED indicates that
there is a voltage applied to the optically-isolated input. The RELAY LED indicates that the internal relay coil is
energized. When the relay coil is energized, the NO (Nornally Open) contact is closed and the NC (Normally
Closed) contact is open. The load device that is connected to the relay contacts may be on or off when the coil is
energized depending on how its wired. LINK means WebRelayTM is properly connected to an Ethernet network. It
also indicates that the unit is properly powered. The ACT LED flashes when activity is detected on the network.
1.4 Example Configurations and Applications
WebRelayTM is very versatile and can be used in many applications. Several basic installation schemes are illustrated
in this section.
Xytronix Research & Design, Inc. page 6
Input Indicator Light (Voltage applied to Input)
Relay Indicator Light (Relay coil energized)
VIN Terminals (Connect DC Power upply Here)
Optically-Isolated Input Terminals
5 Volt Output Terminal
Relay Terminals
(Common, Normally Open, Normally Closed)
Ethernet Connector
Network
Linked
Light
Network
Activity
Light
Removable
Terminal
Connectors

Revision 3.1 WebRelayTM Users Manual
1.4.1 Single WebRelayTM Device (IP Network Control Only)
The illustration below shows a simple example of using WebRelayTM to control a device over an IP
network. The device to be controlled is wired in series with the relay contacts. Note that a fuse or circuit
breaker is shown to limit current overload. This configuration is used for control of a device using a web
browser or a control script/application running on a computer.
1.4.2 Single WebRelayTM Device (Voltage and/or IP Network Control)
This configuration offers both network and local control. In the example, the light shown on the right can
be controlled locally using a mechanical switch, or remotely over the IP network. The mechanical switch
controls a 5 volt signal that is applied to the optically-isolated input. Each time the 5 volt signal changes
(turns on or off), WebRelayTM changes the state of the relay.
Xytronix Research & Design, Inc. page 7
Computer, PLC, or Automation Controller
IP
Network
WebRelay
COM
NO
Power Supply
(Powers WebRelay)
(5VDC or 9- 8VDC)
+5VDC
GND
Power Source
(For device to be controlled)
Device to be
Controlled
Fuse or
Circuit Breaker
Vin+
Vin-
Computer, PLC, or Controller
IP
Network
WebRelay
COM
NO
11 1
Power Supply
(Powers WebRelay)
(5VDC or 9- 8VDC)
+5VDC
Power Source
(For device to be controlled)
Device to be
Controlled
Fuse or
Circuit Breaker
Vin+
Vin-
Switch (or sensor)
for Local Control
In-
In+
+5V Out

Revision 3.1 WebRelayTM Users Manual
1.4.3 Dual WebRelayTM Devices (No Computer Required for Operation)
This configuration is used to control devices remotely without a browser, or to extend a digital signal to a
remote location on the network. A control voltage applied to one unit controls the relay contacts of another
unit at a remote location.
This configuration has may uses. It allows a switch to be placed very far away from the device that it
controls.
For security applications, the switch in the example could be replaced with a sensor, and the device to be
controlled could be a buzzer or chime. A business owner, for example, could set up a sensor at his/her
office and a chime at his/her home. The chime at the home would announce each time the sensor detects
entry to the office (which may be miles away). When the chime indicates office entry late at night, the
business owner can take appropriate action.
Xytronix Research & Design, Inc. page 8
WebRelay
11 1
Power Supply
(Powers WebRelay)
(5VDC or 9- 8VDC)
+5VDC
Vin+
Vin-
Switch (or sensor)
In-
In+
+5V Out
IP
Network
Device to be
Controlled
WebRelay
COM
NO
11 1
Power Supply
(Powers WebRelay)
(5VDC or 9- 8VDC)
+5VDC
Power Source
(For device to be controlled)
Fuse or
Circuit Breaker
Vin+
Vin-

Revision 3.1 WebRelayTM Users Manual
Another way this configuration is useful is to extend the output of a PLC (Programmable Logic Controller)
in a factory to control a motor in another building. The output of the PLC is connected to the input of one
WebRelayTM, and the motor is connected to the relay contacts of a second WebRelayTM. This allows any
PLC to control devices across an IP network.
1.4.4 Multiple WebRelayTM Operation (No Computer Required for Operation)
For some applications, it is useful to for one WebRelayTM to control multiple WebRelays at remote
locations. There is not a way to configure a single WebRelayTM to control multiple WebRelays directly, but
it is possible to set up multiple WebRelays in a daisy-chain mode so that one WebRelayTM controls a second
WebRelayTM which, in turn controls a third WebRelayTM and so on. In the illustration below, each
WebRelayTM is numbered (1, 2, 3, and 4). A mechanical switch controls WebRelayTM 1, and
WebRelayTM 1 controls WebRelayTM 2, which controls WebRelayTM 3, which controls WebRelayTM 4. This
daisy-chain mode is set up by configuring the Relay options in WebRelays 1, 2 and 3 to “remote command
Xytronix Research & Design, Inc. page 9
WebRelay
11 1
Power Supply
(Powers WebRelay)
(5VDC or 9- 8VDC)
+5VDC
Vin+
Vin-
In+
IP
Network
Device to be
Controlled
WebRelay
COM
NO
11 1
Power Supply
(Powers WebRelay)
(5VDC or 9- 8VDC)
+5VDC
Power Source
(For device to be controlled)
Fuse or
Circuit Breaker
Vin+
Vin-
Programmable Logic Controller
(PLC)
Digital Output
Gnd
R -232
AN1
AN2
AN3
AN4
AN5
Power
AF1
AF3
Warn
R -232
AN1
AN2
AN3
AN4
AN5
Digital IN
Digital OUT
Power
Digital IN
Digital OUT
Power
Power
AF1
AF3
Warn
In-
WebRelay 1
11
IP
Network
Control Switch
Device To Be Controlled
Device To Be Controlled
Device To Be Controlled
WebRelay
WebRelay 3
WebRelay 4

Revision 3.1 WebRelayTM Users Manual
equals local relay”. Note that the relay contacts of each WebRelayTM will be set to the same state as the
contacts of the WebRelayTM that is configured to control it and not necessarily to the state of the switch. In
other words, if the switch is 'ON' but a user changes the state of WebRelayTM 3 to 'OFF' by changing the
relay in the web page, WebRelayTM 4 will be changed to the 'OFF' state also. Note also that in this example,
WebRelays 2, 3, and 4 are each controlling load devices and WebRelayTM 1 is not, but a load could be
connected to WebRelayTM 1 as well.
1.4.5 WebRelayTM Used for Reboot (Wired in series with Power)
The illustration below shows one example of how WebRelayTM can be used to reboot a server. WebRelayTM
is wired in series with the servers power source which allows it to turn the server on and off.
Xytronix Research & Design, Inc. page 10
Power upply
For Device erver
WebRelay
+5V
Power upply
For WebRelay
Device erver
(Camera erver, erial erver, etc.)
(This is the device to be remotely re-booted)
Cut one wire in the power
supply cable and connect to
WebRelay contacts.

Revision 3.1 WebRelayTM Users Manual
1.4.6 WebRelayTM Used for Reboot (Wired to Reset)
The illustration below shows how WebRelayTM can be wired to the reset circuit of a computer motherboard.
In this scenario, the computer is never powered down, only reset when necessary by temporarily closing the
relay contacts. This approach is more gentle on the computer that it controls than the approach of
switching the power. The Common, and Normally Open contacts of WebRelayTM are wired to the reset
circuit of the computer. If the computer has an existing pushbutton switch for reset, the relay contacts may
be wired in parallel with the pushbutton switch. This allows both local and remote reset.
1.4.7 WebRelayTM Used for Reboot (Wired in parallel with Power Switch)
Many computers have momentary power buttons that are wired to the motherboard similar to the way the
reset button is wired. The previous example that describes connecting WebRelayTM to the reset circuit can
be used to illustrate connection. Instead of connecting WebRelayTM contacts to the motherboard reset,
connect the contacts to the power control pins on the motherboard. This allows the computer to be
powered down without cutting off the power.
Xytronix Research & Design, Inc. page 11
WebRelay
Inside Computer
(Example motherboard
location of reset will vary)
Motherboard RE ET
Connection
RE ET witch
Connector
(Disconnect from
motherboard and connect to
WebRelay Reset Cable.)
Connect to RE ET
pins on motherboard.
Power upply
For WebRelay
Reset Cable
Polarity of these wires is not
important.

Revision 3.1 WebRelayTM Users Manual
Section 2: Installation and Setup
Installation consists of mounting WebRelayTM, connecting to an IP network, providing power, configuring via a web
browser, and wiring relay contacts to the device that will be controlled. Optionally, a control signal may be
connected to the optically-isolated input.
2.1 Mounting
WebRelayTM can be be wall mounted or DIN rail mounted. It should be mounted in a clean dry location where it is
protected from the elements. Ventilation is recommended for installations where ambient air temperature is expected
to be high.
2.1.1 Wall Mounting
Mount WebRelayTM to a wall by using two #8 screws. Attach the screws to the wall vertically spaced exactly
2.5 inches apart. The head of the screws should be about 1/10 inch away from the wall. See Appendix C for
mechanical details.
2.1.2 DIN-Rail Mounting
WebRelayTM can be mounted to a standard (35mm by 7.55mm) DIN rail. Attach WebRelayTM to the DIN rail
by hooking the top hook on the back of the enclosure to the DIN rail and then snap the bottom hook into
place. Remove WebRelayTM from DIN rail using a flat-head screwdriver. Insert the screwdriver into
the notch in the release tab and pry against the enclosure to release the bottom hook.
Xytronix Research & Design, Inc. page 12

Revision 3.1 WebRelayTM Users Manual
2.2 Connection
CAUTION: MAKE SURE POWER IS SHUT OFF EFORE WIRING!
Two removable terminal connectors are provided for simple wiring to WebRelayTM. The correct wiring procedure is
as follows;
1. Make sure power is turned off.
2. Remove terminal connectors from WebRelayTM and make wiring connections to the terminals.
3. Reconnect terminal connectors.
4. Apply power.
It is recommended that the load (device to be controlled) not be connected to WebRelayTM until after WebRelayTM has
been configured and tested. y doing this, wiring and configuration mistakes will not cause the load device to turn
on unexpectedly.
IMPORTANT: MAKE SURE WIRES ARE PROPERLY ATTACHED TO THE TERMINALS AND THAT THE
TERMINALS ARE TIGHT!
3-pin connector pinout:
Pin Description
C Relay Common
NO Relay Normally Open
NC Relay Normally Closed
Xytronix Research & Design, Inc. page 13
Bad Connector Example.
Good Connector Example.
Wires are stripped too far back
trand(s) of wire are loose
Wires are stripped correct
amount and there are no loose
strands that can cause shorts

Revision 3.1 WebRelayTM Users Manual
5-pin connector pinout:
Pin Description
V IN+ Power supply input +. Connect to the positive side of the
appropriate power supply. DO NOT EXCEED MAXIMUM
POWER SUPPLY VOLTAGE.
Model X-WR-1R12-1I5-5
5VDC Power supply
Model X-WR-1R12-1I5-I or X-WR-1R12-1I24-I
9-28VDC Power supply
Model X-WR-1R12-1I5-E
Power Over Ethernet model. These units do not require a power
supply to be connected to this pin when the unit is connected to
an 802.3af compliant network. Alternatively, this model can be
powered using a 5VDC power supply.
V IN- Power supply input -. Connect to the negative side of the
appropriate power supply.
INPUT - Digital Input - : This is the negative side of the optically-isolated
input. Internally, this terminal connects directly to an opto-
isolator.
INPUT + Digital Input +: This is the positive side of the optically-isolated
input. Internally, this terminal connects to an opto-isolator
through a resistor (resistor is internal).
+5V OUT +5VDC Out. This voltage is provided as a convenient voltage
source for the optically-isolated input (only for 3-12V input
models). This is used, for example, when dry contacts (such as a
switch) are needed to control the input state. This can be used by
connecting the INPUT– directly to VIN-, and then connecting
this terminal to INPUT+ through a switch. Do not use this output
for other purposes.
2.2.1 Power Supply Connection
WebRelayTM requires power for its internal logic circuits. Connect appropriate power supply to the Vin+
and Vin- terminals. Alternatively, WebRelayTM units with the Power Over Ethernet option may be powered
through the Ethernet connection instead of using an external power supply.
Multiple WebRelayTM units may be connected to a single power supply by connecting the power supply
input terminals in parallel. The power supply must have a high enough current rating to power all units
connected (see specifications for current requirements for a specific model number).
WebRelayTM units with the Power Over Ethernet option may be connected to an 802.3af compliant Ethernet
port instead of connecting to an external power supply. In this case, WebRelayTM is powered through the
network port. In 802.3af compliant networks, a 48 Volt power source is injected into the Ethernet line.
This power source is provided by an 802.3af compliant hub, switch, or power injector which may be
located in a utility closet which could be a distance away from WebRelayTM. This option is very useful for
installations where local power is not available. The power injector may inject the 48 Volt power source
through the data lines or the spare lines in the Ethernet cable. DO NOT USE A POWER INJECTOR
THAT APPLIES A VOLTAGE TO OTH THE DATA LINES AND THE SPARE LINES.
Xytronix Research & Design, Inc. page 14

Revision 3.1 WebRelayTM Users Manual
2.2.2 Network Connection
Connect the Ethernet port to a 10 ase T or 10/100 ase T Ethernet connection. This typically connects to
an Ethernet hub, switch, or router. For configuration, WebRelayTM may be connected directly to the
Ethernet port on a computer using a “crossover” cable. Otherwise, for connection through a hub or router,
a standard “straight-thru” cable should be used.
2.2.3 Relay Connection
The relay contacts internally connect directly to the terminal connector. No internal fuse is provided. If the
power source connected to the relay contacts can deliver more than rated maximum contact current, an
external fuse or circuit breaker must be used. Direct access to Common, Normally Open, and Normally
Closed contacts are provided. The relay contacts may be wired in series with the power source for a device
that will be controlled (the load).
For loads greater than the maximum relay contact rating, an external relay may be used. The illustration
below shows how a 20-Amp motor can be controlled using an external relay. In the example, WebRelayTM
controls the external relay and the external relay controls the load.
Many of the illustrations in this manual show WebRelayTM contacts wired in series with a power source,
which allows the power for the device to be switched on and off remotely. In many cases, however, it is
useful to control other functions and not just power. One way to do this is to connect relay contacts in
parallel with pushbutton switches within a device. An example is useful to illustrate this. Suppose you
have a gate controller system that has a pushbutton switch that opens a gate when pressed. The button that
controls the gate is located on one side of a building, but you want to be able to open the gate from a room
on the other side of the building. Since the building is pre-wired for networking, it is a simple task to
accomplish this goal by connecting the WebRelayTM contacts in parallel with the pushbutton. An
illustration of this is shown below. In doing this, users can now operate the gate with the existing
Xytronix Research & Design, Inc. page 15
25 Amp
olid tate Relay
WebRelay
Power Supply
(Powers WebRelay)
(5VDC or 9- 8VDC)
40V
AC Power
Source
(with circuit
breaker)
Device to be
Controlled
Vin-
NO
C
+
Input
-
Line
Neutral
Vin+

Revision 3.1 WebRelayTM Users Manual
pushbutton, or users can operate the gate from another room using a web browser. Another option (not
shown here), is to connect another pushbutton switch to the input of a second WebRelayTM device in a
room across the building. The second device could be configured to send control messages to the first
device each time the new pushbutton is pressed. As a result, there is a second pushbutton that could
operate the gate.
2.2.4 Optically-Isolated Input Connection
The optically-isolated input can be used to control the relay, control a remote relay, or simply to monitor a
discrete device. To use this input, connect a DC signal voltage directly to the control input. A current
limiting resistor is provided internally, so no external resistor is required (unless the signal voltage is greater
than the maximum input voltage rating). If an AC signal, or a signal greater than the rated input voltage
needs to be connected to WebRelayTM, use a signal conditioner to convert the signal to the proper voltage.
Signal conditioners can be made of discrete components or can be purchased at industrial automation
distributors.
To connect an AC voltage to the input of WebRelayTM, a diode (or bridge rectifier) and a capacitor can be
used to convert the AC signal to a DC signal. To connect a voltage to the input of WebRelayTM that is
greater than the input is rated, a resistor of the appropriate value and power rating can be used to reduce the
voltage.
The formulas to calculate external resistor values is provided below
For Control yWebTM products with a 3-12VDC input range...
R = (V-9)/0.020
V = Desired Vin
R = External resistor value required. The external resistor must also be rated with a minimum power value
(minWatts=(V-9)x0.020)
For Control yWebTM products with a 11-28VDC input range...
R = (V-28)/0.014
V = Desired Vin
R = External resistor value required. The external resistor must also be rated with a minimum power value
(minWatts=(V-28)x0.014)
Xytronix Research & Design, Inc. page 16
WebRelay
COM
NO
Device to Control
Existing pushbutton switch that
performs desired function
Device
Circuitry
WebRelay contacts are connected in
parallel to existing switch.

Revision 3.1 WebRelayTM Users Manual
Example (to connect a 24VDC signal voltage to WebRelayTM with a 3-11VDC input range):
R = (24-9)/0.020=750 Ohm resistor. The resistor must be at least (24-9) x 0.020 = 0.3 Watts so use a ½
Watt resistor.
2.3 Establishing Communications for Setup
WebRelayTM is set up using a web browser. The first task is to establish communications between a computer and the
WebRelayTM device so that the browser-based configuration can begin. To do this, the computer and WebRelayTM
must be physically connected to the same network and both must have IP addresses on the same network. There are
two ways to set up the computer and WebRelayTM so that they are on the same network. The first way (Option 1), is
to change the IP address of WebRelayTM to an address that is on the same network as the computer. The second way
(Option 2) is to change the IP address of the computer to an address that is on the same network that WebRelayTM is
set to by default.
2.3.1 Option 1: Assign a temporary IP address to WebRelayTM
This option is used to TEMPORARILY assign an IP address to WebRelayTM without the need to change
the IP address of the configuration computer. Note that WebRelayTM will only use this IP address as long
as power is maintained. Once power is lost and restored, WebRelayTM will use the IP address assigned in
the setup page and not the temporary address assigned here. This means that once communications are
established, the desired IP address should be entered into the network setup page using the browser.
To assign the temporary IP address...
1. Make sure WebRelayTM and the configuration computer are connected to the same physical
network. This will not work through routers or gateways.
2. Assign the address as follows...
Windows :
Open a Command Prompt (on Windows XP, select START, then RUN, then type “cmd”).
Type...
arp -s {new IP address} {serial number of WebRelay M }
Note: IP address format is: xxx.xxx.xxx.xxx
Serial number format is: ss-ss-ss-ss-ss-ss
For example, to set a WebRelayTM device (with serial number 00-0C-C8-01-00-01 ) to
10.10.10.40 the following command would be used.
arp -s 10.10.10.40 00-0c-c8-01-00-01
Next, type...
ping -l 102 {new IP address}
For example, if the new IP address is 10.10.10.40, the following command would be
used.
ping -l 102 10.10.10.40
Linux/Unix:
Open a terminal, change to root user (su -, then enter root password).
Type...
arp -s {new IP address} {serial number of WebRelay M }
Xytronix Research & Design, Inc. page 17

Revision 3.1 WebRelayTM Users Manual
Note: IP address format is: xxx.xxx.xxx.xxx
Serial number format is: ss:ss:ss:ss:ss:ss
For example, to set a WebRelayTM device (with serial number 00-0C-C8-01-00-01 ) to 10.10.10.40
the following command would be used.
arp -s 10.10.10.40 00:0c:c8:01:00:01
Next, type...
ping -s 102 {new IP address}
For example, if the new IP address is 10.10.10.40, the following command would be
used.
ping -s 102 10.10.10.40
Mac OS X
Open a terminal,
Note that the terminal is in the “Utilities” directory which is in “Applications” directory.
type
sudo arp -s {new IP address} {serial number of WebRelay M }
Note: Administrator password is required.
IP address format is: xxx.xxx.xxx.xxx
Serial number format is: ss:ss:ss:ss:ss:ss
For example, to set a WebRelayTM device (with serial number 00-0C-C8-01-00-01 ) to
10.10.10.40 the following command would be used.
sudo arp -s 10.10.10.40 00:0c:c8:01:00:01
Next, type...
ping -s 102 {new IP address}
For example, if the new IP address is 10.10.10.40, the following command would be
used.
ping -s 102 10.10.10.40
2.3.2 Option 2: Assign a temporary IP address to configuration computer
If the first option above is not used, you can use this option to communicate with WebRelayTM . y default,
WebRelayTM comes from the factory with an IP address of 192.168.1.2. Communications with WebRelayTM
may be established by assigning an IP address to the configuration computer that is on the same network as
WebRelayTM (for example, the configuration computer could be assigned to 192.168.1.5) .
Instructions for changing the IP address of the computer that will be used for WebRelayTM configuration are
given here. Note that these instructions are specifically for computers with the Windows XP operating
system. For setup using other operating systems, refer to the appropriate users manual.
Xytronix Research & Design, Inc. page 18

Revision 3.1 WebRelayTM Users Manual
Step 1: Open the control panel by clicking on the start menu and then clicking on Control Panel. (Note that
control panel shown is in “Classic View”. If control panel is in “Category View” select the “Classic View”
option before proceeding.)
Step 2: Double click on the icon labeled Network Connections. The following menu will pop up.
Step 3: Right click on the icon labeled Local Area Connection. Another menu will appear.
Xytronix Research & Design, Inc. page 19
Table of contents