Xytronix Research & Design ControlByWeb WebRelay-10 User manual

Revision 1.01 WebRelay-10TM Users Manual
WebRelay-10TM
Users Manual
Revision: 1.01 – November 10, 2008
Covers: X-WR-10R12-I
a division of...
Xytronix Research & Design, Inc.
North Logan, tah, SA
Xytronix Research & Design, Inc. age 1

Revision 1.01 WebRelay-10TM Users Manual
Contents
Trademark and Co yright Information
Warranty
FCC Statement
Installation Guidelines (Read Before Installing)
Section 1: Introduction
1.1 Features
1.2 WebRelay-10TM Models Available
1.3 Connectors & Indicators
Section 2: Installation and Setu
2.1 Mounting
2.2 Connection
2.2.1 Power Su ly Connection
2.2.2 Network Connection
2.2.3 Relay Connection
2.3 Establishing Communications for Setu
2.3.1 O tion 1: Assign a tem orary IP address to WebRelay-10TM
2.3.2 O tion 2: Assign a tem orary IP address to configuration com uter
2.3.3 O en Configuration Web Page
2.4 Web-Based Setu
2.4.1 Main Setu Page
2.4.2 Network Setu Page
2.4.3 Password Setu Page
2.4.4 Control Page Setu Page
2.4.5 Relay O tions Page
Section 3: O eration
3.1 Browser O eration
3.2 XML O eration
3.3 Modbus O eration
3.3.1 Read Coils (Modbus Function Code 01 (0x01))
3.3.2 Write Single Coil (Modbus Function Code 05 (0x05))
3.3.3 Write Multi le Coils (Modbus Function Code 15 (0x0F))
3.3.4 Write Multi le Registers (Modbus Function Code 16 (0x10))
A endix A: Restoring Factory Default Settings
A endix B: S ecifications
A endix C: O en TCP Legal Notice
Xytronix Research & Design, Inc. age 2

Revision 1.01 WebRelay-10TM Users Manual
Trademark and Copyright Information
This document is Co yright ©2008 by Xytronix Research & Design, Inc. All rights reserved.
WebRelay-10TM and ControlByWebTM are Trademarks of Xytronix Research & Design, Inc. 2008.
Portions of the software used in WebRelay-10TM are o en source and a ro riate co yright and legal notices are listed
at the end of this manual. All other arts of the software are ro erty of Xytronix Research & Design, Inc. ©2008.
The hardware design, schematics, PCB layout, conce t, gra hics, users manual, etc., are ro erty of Xytronix
Research & Design, Inc. ©2008. WebRelay-10TM may not be o ened, dis-assembled, co ied or reverse engineered.
No art of this manual may be re roduced or transmitted in any form or by any means, electronic or mechanical,
including hotoco ying or scanning, for any ur ose other than the ersonal use by the urchaser of this roduct.
Xytronix Research & Design, Inc., assumes no res onsibility for any errors that may a ear in this document.
Whereas effort has been made to make the information in this document as useful and accurate as ossible, Xytronix
Research & Design, Inc. assumes no res onsibility for the a lication, usefulness, or com leteness of the information
contained herein. Under no circumstance will Xytronix Research & Design, Inc. be res onsible or liable for any
damages or losses including direct, indirect, s ecial, incidental, or consequential damages or losses arising from
either the use of any information contained within this manual or the use of any roducts or services referenced in
this manual.
Xytronix Research & Design, Inc. reserves the right to change any roduct’s features, s ecifications, documentation,
warranties, fee schedules, and conditions at any time and without notice.
Warranty
This Xytronix Research & Design, Inc. roduct has a warranty against defects in material and workmanshi for a
eriod of one year from the date of shi ment. During the warranty eriod, Xytronix Research & Design, Inc. will, at
its o tion, either re air or re lace roducts that rove to be defective. This warranty is extended to the original
urchaser of the equi ment only.
For warranty service or re air, the roduct must be ro erly ackaged, and returned to Xytronix Research & Design,
Inc. The urchaser shall re ay all charges for shi ing to Xytronix Research & Design, Inc., and Xytronix Research
& Design, Inc. will ay the shi ing charges to return the roduct to the urchaser as long as the roduct is shi ed
within the United States. If the roduct is shi ed outside of the United States, the urchaser shall ay all shi ing
charges, duties, and taxes.
Limitation
The foregoing warranty shall not a ly to defects or damage resulting from im ro er use or misuse, unauthorized
re air, tam ering, modification, im ro er connection, or o eration outside the electrical/environmental s ecifications
for the roduct. Further, the warranty does not cover Acts of God, such as fire, flood, hurricanes, and tornadoes.
This warranty does not cover damage to ro erty, equi ment, direct, indirect, consequential, or incidental damage
(including damage for loss of business rofit, business interru tion, loss of data, and the like) arising out of the use or
misuse of this roduct. UNDER NO CIRCUMSTANCES WILL THE LIABILITY 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 ex ressed or
im lied. Xytronix Research & Design, Inc. s ecifically disclaims the im lied warranties or merchantability and
fitness for a articular ur ose. Some jurisdictions may not allow the exclusion of limitation of liability for
consequential or incidental damage.
Xytronix Research & Design, Inc. age 3

Revision 1.01 WebRelay-10TM Users Manual
FCC Statement
This device com lies with Part 15 of the FCC Rules. O eration is subject to the following two conditions:
• This device may not cause harmful interference.
• This device must acce t any interference received, including interference that may cause undesired o eration.
Warning: This equi ment has been tested and found to com ly with the limits for a Class B (Class A for POE
model) digital device, ursuant to Part 15 of the FCC Rules. These limits are designed to rovide reasonable
rotection. This equi ment 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 articular installation. If this equi ment does cause harmful interference to radio
or television rece tion, which can be determined by turning the equi ment 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 se aration between the equi ment and receiver.
• Connect the equi ment into an outlet on a circuit different from that to which the receiver is connected.
• Consult the dealer or an ex erienced radio/TV technician for hel .
Notice: Changes or modification not ex ressly a roved by the arty res onsible for com liance could void the
user’s authority to o erate the equi ment.
Installation uidelines (Read Before Installing)
- This unit must be installed by qualified ersonnel.
- This unit must not be installed directly outdoors.
- This unit must not be used for medical, life saving ur oses, or for any ur ose where its failure could cause serious
injury or the loss of life.
Notes about security:
By design, WebRelay-10TM is very secure. It does not su ort terminal or file transfer rograms such as telnet, ft ,
ssh, etc. This means that it is not ossible for someone to ‘break in’ to WebRelay-10TM and access other devices on
your local network. WebRelay-10TM does not su ort remote firmware u dates which means that it is not ossible for
someone to remotely install malicious software. The sim licity of WebRelay-10TM makes it a very secure device. As
with any device to be installed on a network, there are some security recautions that should be observed. If
WebRelay-10TM is installed on the Internet, it is recommended that asswords be enabled for the control age. Make
sure secure asswords are used. Passwords should be at least 8 characters in length and should be a combination of
u er case letters, lower case letters, and numbers. Don’t use asswords that would be easy to guess. For additional
security, a firewall may be used to limit access only to selected IP addresses. Another o tion may be to set u a
Virtual Private Network (VPN) between the network where WebRelay-10TM resides and the client machine (web
browser, second WebRelay-10TM, etc.).
Final installation note. This ControlByWebTM roduct su orts connection to 10Mb s and 100Mb s networks.
Although 100Mb s networks are faster, the amount of data transferred to and from this device is very minimal and
little if any erformance increase will be gained by setting it to 100Mb s. There are advantages however, to o erate
this device at 10Mb s. At 10Mb s, less ower is required, the unit runs cooler, and the lifetime of the roduct will be
extended.
Xytronix Research & Design, Inc. age 4

Revision 1.01 WebRelay-10TM Users Manual
Section 1: Introduction
WebRelay-10TM is a robust, ten-relay module with a built in web server. It can be controlled and/or monitored over
any IP network including rivate networks, IP-based industrial control networks, and the Internet. Users can o erate
WebRelay-10TM using a web browser or a custom a lication. Com uters, PLCs, or automation controllers may
control and monitor WebRelay-10TM without user intervention. This works by sending text commands over the
network and reading XML status ages from WebRelay-10TM, or by using Modbus/TCP rotocol.
WebRelay-10TM has many a lications 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 com uter. It can be used in
industrial a lications to control motors, lights, coils, um s, valves, etc.
1.1 Features
WebRelay-10TM is very sim le but has many features. Some features include...
•No rogramming required
•Easy to use as a stand alone device or as art of a large control system
•Built-in web server rovides sim le, web based configuration and control
•Control age can be customized with a ro riate text and buttons
•10/100 Ethernet connectivity
•Ten, 240Volt 30-Am relays
•Custom a lications can control WebRelay-10TM with sim le text commands and read XML formatted
status.
•Modbus/TCP rotocol su ort rovides inter-intero erability with devices/software from other
manufacturers.
•Password rotection
•Selectable TCP orts
•On/Off or ulse mode
1.2 WebRelay-10TM Models Available
WebRelay-10TM is currently available in one model.
Part Number Power Su ly Requirements
X-WR-10R12-I 10-36VDC
Xytronix Research & Design, Inc. age 5

Revision 1.01 WebRelay-10TM Users Manual
1.3 Connectors & Indicators
WebRelay-10TM has ¼ inch male tab connectors for ower and relay contacts, an Ethernet connector, and thirteen
LED indicators.
Two tab connectors located on the circuit board are used to a ly ower to the module. Each relay has three tab
connectors for direct connection to the relay contacts. All ten relays rovide common, normally o en, and normally
closed contacts. Female mating connectors (not included) are required for connection. The Ethernet connector is
located on a small CPU daughter card that is mounted to the main relay board.
Ten green LEDs indicate when each relay is energized. When the relay is energized, the common and normally o en
contacts are closed which allows current to flow through them (common and normally closed contacts are o en).
When the relay is not energized, the common and normally closed contacts are closed which allows current to flow
through them (common and normally o en contacts are o en). The LEDs are located close to the corres onding
relays. The ower LED indicator (green) is located on the small CPU daughter card. The Link LED (green)
indicates the Ethernet network is connected and ro erly linked. The Activity LED (amber) indicates network
activity is detected.
Xytronix Research & Design, Inc. age 6
Ethernet
Connector
Activity
LED
10-36VDC
Voltage Input
+ -
NCNO
CO
NCNO
CO
NCNO
CO
NCNO
CO
NCNO
CO
NCNO
CO
NCNO
CO
NCNO
CO
NCNO
CO
NCNO
CO
Relay 1 Relay 2 Relay 3 Relay 4 Relay 5
Relay 6 Relay 7 Relay 8 Relay 9 Relay 10
LEDs
indicate relay
state
(green when coil
engaged)
Relay Contacts:
Normally Closed
Normally Open
Common
Power LED
Reset
to Factory
Defaults
Button
Fuse
(soldered in) Link
LED

Revision 1.01 WebRelay-10TM Users Manual
Section 2: Installation and Setup
Installation consists of mounting WebRelay-10TM, connecting to an IP network, roviding ower, configuring via a
web browser, and wiring relay contacts to the device that will be controlled.
2.1 Mounting
WebRelay-10TM can be be mounted to a standard (35mm by 7.55mm) DIN rail. Attach the module to the DIN rail by
hooking the to hooks on the back of the PCB card to the DIN rail and then sna the bottom hooks into lace.
Remove from DIN rail using a flat-head screwdriver.
2.2 Connection
CAUTION: MAKE SURE POWER IS SHUT OFF BEFORE WIRING!
Connection to WebRelay-10TM is made through the ¼ inch male tab connectors. Mating connectors (¼ inch female
tab connectors) can be urchased at electrical su ly stores.
It is recommended that the load (device to be controlled) not be connected to WebRelay-10TM until after WebRelay-
10TM has been configured and tested. By doing this, wiring and configuration mistakes will not cause the load device
to turn on unex ectedly.
IMPORTANT: MAKE SURE WIRES ARE PROPERLY ATTACHED (CRIMPED) TO THE CONNECTORS,
AND THAT CONNECTORS ARE PROPERLY ATTACHED TO THE CIRCUIT BOARD!
2.2.1 Power Supply Connection
WebRelay-10TM requires ower for its internal logic circuits. Connect a 10-36VDC ower su ly to the
Vin+ and Gnd terminals. Note that a regulated ower su ly is recommended.
Multi le WebRelay-10TM units may be connected to a single ower su ly by connecting the ower
su ly in ut terminals in arallel. The ower su ly must have a high enough current rating to ower all
units connected (see s ecifications for current requirements for s ecific model number).
2.2.2 Network Connection
Connect the Ethernet ort to a 10 Base T or 10/100 Base T Ethernet connection. This ty ically connects to
an Ethernet hub, switch, or router. For configuration, WebRelay-10TM may be connected directly to the
Ethernet ort on a com uter using a “crossover” cable. Otherwise for connection through a hub or router, a
standard “straight-thru” cable should be used.
Xytronix Research & Design, Inc. age 7

Revision 1.01 WebRelay-10TM Users Manual
2.2.3 Relay Connection
Direct connection to relay contacts is rovided through tab connectors located on the to of the relays. Do
not exceed s ecified load ratings for relay contacts (see s ecifications for load ratings).
2.3 Establishing Communications for Setup
WebRelay-10TM is set u using a web browser. The first task is to establish communications between a com uter and
the WebRelay-10TM device so that the browser-based configuration can begin. To do this, the com uter and
WebRelay-10TM must be hysically connected to the same network and both must have IP addresses on the same
network. There are two ways to set u the com uter and WebRelay-10TM so that they are on the same network. The
first way (O tion 1), is to change the IP address of WebRelay-10TM to an address that is on the same network as the
com uter. The second way (O tion 2) is to change the IP address of the com uter to an address that is on the same
network that WebRelay-10TM is set to by default.
2.3.1 Option 1: Assign a temporary IP address to WebRelay-10TM
This o tion is used to TEMPORARILY assign an IP address to WebRelay-10TM without the need to
change the IP address of the configuration com uter. Note that WebRelay-10TM will only use this IP
address as long as ower is maintained. Once ower is lost and restored, WebRelay-10TM will use the IP
address assigned in the setu age and not the tem orary address assigned here. This means that once
communications are established, the desired IP address should be entered into the network setu age using
the browser.
To assign the temporary IP address...
1. Make sure WebRelay-10TM and the configuration com uter are connected to the same hysical
network. This will not work through routers or gateways.
2. Assign the address as follows...
Windows :
O en a Command Prom t (on Windows XP, select START, then RUN, then ty e “cmd”).
Ty e...
arp -s {new IP address} {serial number of WebRelay-10TM }
Note: IP address format is: xxx.xxx.xxx.xxx
Serial number format is: ss-ss-ss-ss-ss-ss
For exam le, to set a WebRelay-10TM 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, ty e...
ping -l 10 {new IP address}
For exam le, 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:
O en a terminal, change to root user (su -, then enter root assword).
Ty e...
arp -s {new IP address} {serial number of WebRelay-10TM }
Note: IP address format is: xxx.xxx.xxx.xxx
Xytronix Research & Design, Inc. age 8

Revision 1.01 WebRelay-10TM Users Manual
Serial number format is: ss:ss:ss:ss:ss:ss
For exam le, to set a WebRelay-10TM 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, ty e...
ping -s 10 {new IP address}
For exam le, 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
O en a terminal,
Note that the terminal is in the “Utilities” directory which is in “A lications” directory.
ty e
sudo arp -s {new IP address} {serial number of WebRelay-10TM }
Note: Administrator assword is required.
IP address format is: xxx.xxx.xxx.xxx
Serial number format is: ss:ss:ss:ss:ss:ss
For exam le, to set a WebRelay-10TM 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, ty e...
ping -s 10 {new IP address}
For exam le, 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 o tion above is not used, you can use this o tion to communicate with WebRelay-10TM . By
default, WebRelay-10TM comes from the factory with an IP address of 192.168.1.2. Communications with
WebRelay-10TM may be established by assigning an IP address to the configuration com uter that is on
the same network as WebRelay-10TM (for exam le the configuration com uter could be assigned to
192.168.1.5) .
Instructions for changing the IP address of the com uter that will be used for WebRelay-10TM
configuration are given here. Note that these instructions are s ecifically for com uters with the Windows
XP o erating system. For setu using other o erating systems, refer to the a ro riate users manual.
Ste 1: O en the control anel by clicking on the start menu and then clicking on Control Panel. (Note that
control anel shown is in “Classic View”. If control anel is in “Category View” select the “Classic View”
o tion before roceeding.)
Xytronix Research & Design, Inc. age 9

Revision 1.01 WebRelay-10TM Users Manual
Ste 2: Double click on the icon labeled Network Connections. The following menu will o u .
Ste 3: Right click on the icon labeled Local Area Connection. Another menu will a ear. Select the o tion
at the bottom of the menu labeled Pro erties. The Local Area Connection Pro erties window will a ear.
Ste 4: On the Local Area Connection Pro erties age scroll down to Internet Protocol (TCP/IP), select it,
and then click the button labeled ro erties.
Xytronix Research & Design, Inc. age 10
This manual suits for next models
1
Table of contents
Other Xytronix Research & Design Control Unit manuals


















