Xytronix Research & Design ControlByWeb WebRelay-10 User Manual Download Page 7

Revision 1.01

                          WebRelay-10

TM  

Users Manual

Section 2:  Installation and Setup

Installation  consists of mounting WebRelay-10

TM

, connecting to an IP network, providing power, configuring via a 

web browser, and wiring relay contacts to the device that will be controlled.

2.1  Mounting

WebRelay-10

TM 

can be be mounted to a standard (35mm by 7.55mm) DIN rail.  Attach the module to the DIN rail by 

hooking the top hooks on the back of the PCB card to the DIN rail and then snap the bottom hooks into place. 
Remove from DIN rail using a flat-head screwdriver.

2.2  Connection

CAUTION:  MAKE SURE POWER IS SHUT OFF BEFORE WIRING!

Connection to WebRelay-10

TM 

is made through the ¼ inch male tab connectors.  Mating connectors (¼ inch female 

tab connectors) can be purchased at electrical supply stores.

It is recommended that the load (device to be controlled) not be connected to WebRelay-10

TM  

until after WebRelay-

10

TM  

has been configured and tested.  By doing this, wiring and configuration mistakes will not cause the load device 

to turn on unexpectedly.  

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-10

TM

 requires power for its internal logic circuits.  Connect a 10-36VDC power supply to the 

Vin+ and Gnd terminals. Note that a regulated power supply is recommended.

Multiple WebRelay-10

TM

 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 specific model number).

2.2.2  Network Connection

Connect the Ethernet port to a 10 Base T or 10/100 Base T Ethernet connection.  This typically connects to 
an Ethernet hub, switch, or router.  For configuration, WebRelay-10

TM

 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.

Xytronix Research & Design, Inc.

                  page 7

Summary of Contents for ControlByWeb WebRelay-10

Page 1: ... 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 Utah USA Xytronix Research Design Inc page 1 ...

Page 2: ...0TM 2 3 2 Option 2 Assign a temporary IP address to configuration computer 2 3 3 Open Configuration Web Page 2 4 Web Based Setup 2 4 1 Main Setup Page 2 4 2 Network Setup Page 2 4 3 Password Setup Page 2 4 4 Control Page Setup Page 2 4 5 Relay Options Page Section 3 Operation 3 1 Browser Operation 3 2 XML Operation 3 3 Modbus Operation 3 3 1 Read Coils Modbus Function Code 01 0x01 3 3 2 Write Sing...

Page 3: ...nty 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...

Page 4: ...ly 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 By design WebRelay 10TM 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 WebRelay 10TM and access other devices o...

Page 5: ...onvenient way to add I O to a computer It can be used in industrial applications to control motors lights coils pumps valves etc 1 1 Features WebRelay 10TM 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 Built in web server provides simple web based configuration and control Control page can...

Page 6: ... to flow through them common and normally closed contacts are open When the relay is not energized the common and normally closed contacts are closed which allows current to flow through them common and normally open contacts are open The LEDs are located close to the corresponding relays The power LED indicator green is located on the small CPU daughter card The Link LED green indicates the Ether...

Page 7: ...is wiring and configuration mistakes will not cause the load device to turn on unexpectedly 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 power for its internal logic circuits Connect a 10 36VDC power supply to the Vin and Gnd terminals Note that a regulat...

Page 8: ...ge the IP address of the configuration computer Note that WebRelay 10TM will only use this IP address as long as power is maintained Once power is lost and restored WebRelay 10TM 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...

Page 9: ... 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 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...

Page 10: ...con labeled Local Area Connection Another menu will appear Select the option at the bottom of the menu labeled Properties The Local Area Connection Properties window will appear Step 4 On the Local Area Connection Properties page scroll down to Internet Protocol TCP IP select it and then click the button labeled properties Xytronix Research Design Inc page 10 ...

Page 11: ...rent settings so they can be restored once WebRelay 10TM is configured Next select the radio button labeled Use the following IP address and type in the IP address 192 168 1 50 Type in a subnet mask of 255 255 255 0 Leave the default gateway field blank Click OK to apply settings Xytronix Research Design Inc page 11 ...

Page 12: ...ased menu system has been designed to allow the unit to be configured easily Note that in this chapter the default IP address of 192 168 1 2 is used in all examples If the IP address has been changed substitute the new IP address for the address shown in the examples Before proceeding make sure a network connection has been established between the computer and WebRelay 10TM This is done by typing ...

Page 13: ...o their current settings The Reset button is only effective before the Submit button is pressed 2 4 2 Network Setup Page The network parameters are changed on this page Note that if multiple WebRelay 10TM units are used on the same network install one unit at a time and set the IP address of each unit before connecting the next unit to the network This avoids having multiple WebRelay 10TM units in...

Page 14: ...d must be obtained from the network administrator This guide is not meant to be a tutorial on IP addressing however a few comments about IP addressing are given here If WebRelay 10TM will be used over the Internet the IP address must be a routable address assigned by the upstream Internet Service Provider ISP In cases where the ISP only provides a single routable IP address for the entire network ...

Page 15: ... specifies the IP address of the gateway router This must be obtained from the network administrator By default this is set to 192 168 1 1 5 TCP Port This specifies the TCP port used for communications with WebRelay 10TM By default the port is set to 80 which is the standard http port It is recommended that the port not be changed without an understanding of TCP IP and ports Changing the port can ...

Page 16: ...the Internet enter the IP address of the gateway plus the port number of the desired device 6 Modbus Port This specifies the port used for Modbus TCP communications with WebRelay 10TM By default this is set to port 502 which is the standard Modbus port For users not familiar with Modbus Modbus is a messaging structure protocol used in industrial manufacturing control and automation It is an open p...

Page 17: ... page by using the Yes or No radio buttons Enabling the control page password also enables the requirement for a password when reading writing XML pages Enabling the control page password also disables the ability to communicate with WebRelay 10TM using Modbus Note that when the password is changed the password may be displayed in the browser s history in clear text It is advisable to clear the br...

Page 18: ...play current information If however the relay state changes due to a change due to a command sent from another machine the relay state will not be updated and the control page information will be obsolete The Auto Refresh Page option will cause the control page to continually update its contents by setting a timer in the web page that causes it to be reloaded at a specified time interval 3 Duratio...

Page 19: ...lected the setup page will be refreshed to reflect the current settings for that relay 2 Relay Description This text is used to describe the function of the relay on the control page This field can be up to 20 characters in length 3 Status ON Text This field specifies the text that will be displayed when the relay is on coil energized 4 Status OFF Text Xytronix Research Design Inc page 19 ...

Page 20: ...to 86 400 seconds 1 day Note that each time WebRelay 10TM receives a pulse command the relay will be turned on if not on already and the pulse timer will be reset If WebRelay 10TM receives a pulse command and and a second pulse command comes in before the pulse timer has expired the relay will remain on and the pulse timer will be reset so the duration of the pulse will be extended If pulse comman...

Page 21: ...s assigned Note also that if any port is used other than port 80 the port must also be included in the request http 192 168 1 2 8000 The new control page will appear A control page with default settings is shown below 3 2 XML Operation Custom computer applications may be created to monitor and control WebRelay 10TM without using a web browser Monitoring the state of the relays is done by sending a...

Page 22: ...ng them on or off by setting the relayXState to 2 Pulse relay 10 http 192 168 1 2 state xml relay10State 2 The example above will cause relay 10 to pulse The pulse time is specified in the setup page for each relay Commands can also specify pulse times so that the relay can be pulsed for times other than the times specified in the relay setup pages This is done by sending an additional variable ca...

Page 23: ...the html request will need to contain the password encoded using the base 64 encoding scheme The html request header without the password looks like this GET state xml noReply 1 HTTP 1 1 Ends with two r n The html request header with the password looks like this GET state xml relay2State 1 noReply 1 HTTP 1 1 Ends with two r n Authorization Basic bm9uZTp3ZWJyZWxheQ Ends with two r n where bm9uZTp3Z...

Page 24: ... time by specifying the correct starting address and quantity of coils Request Modbus TCP Transaction identifier 2 Bytes 0x0001 Protocol identifier 2 Bytes 0x0000 Length 2 Bytes 0x0006 Unit identifier 1 Byte 0xff Modbus Function code 1 Byte 0x01 read coils Starting address 2 Bytes 0x0000 0x0000 0x0009 Quantity of coils 2 Bytes 0x0002 0x0001 0x000A Character String Example char read_coils_mb_reques...

Page 25: ...1 Byte 0xff Modbus Function code 1 Byte 0x05 write coil Reference number 2 Bytes 0x0000 Data 1 Byte 0xff relay on 0x00 relay off Padding 1 Byte 0x00 Modbus Error Function code 1 Byte 0x85 Exception code 1 Byte 0x01 or 0x02 Exception codes 0x01 Function code not supported 0x02 Incorrect starting address quantity of outputs combination char write_coil_mb_response 0x00 0x05 0x00 0x00 0x00 0x06 0xff 0...

Page 26: ... on already on and starts the pulse timer The relay s are selected by writing the pulse time to the register s associated with the appropriate relay s The pulse time is specified in the register value field and can range from 0 1 seconds to 86400 seconds 1 day When the pulse time expires the relay coil will be turned off If a pulse time command is sent with a value greater than 86400 the pulse tim...

Page 27: ...r write_registers_mb_request 0x00 0x01 0x00 0x00 0x00 0x0b 0xff 0x10 0x00 0x10 0x00 0x02 0x04 0x00 0x00 0x41 0x20 Response Modbus TCP Transaction identifier 2 Bytes 0x0001 Protocol identifier 2 Bytes 0x0000 Length 2 Bytes 0x0006 Unit identifier 0xff Modbus Function 1 Byte 0x10 Write Multiple Registers Reference number 2 Bytes 0x0010 Word count 2 Bytes 0x0002 Modbus Error Function code 1 Byte 0x90 ...

Page 28: ...0Mbps Network Speed Power Supply No Relays Energized 1 Relay Energized 5 Relays Energized 10 Relays Energized 10 VDC 125A 244A 740A 1 464A 12 VDC 103A 198A 573A 1 111A 24 VDC 063A 110A 293A 529A 36 VDC 043A 079A 204A 357A 100Mbps Network Speed Power Supply No Relays Energized 1 Relay Energized 5 Relays Energized 10 Relays Energized 10 VDC 214A 323A 808A 1 550A 12 VDC 178A 267A 655A 1 195A 24 VDC 0...

Page 29: ...activity Physical Operating Temperature 40 to 158 F 40 to 70 C Size 9 125in 232mm wide 4 25in 126mm deep 2 425in 62mm tall Weight 22oz 626 grams Monitor Control Web Browser XML or Modbus TCP Password Settings Password protection on setup page Yes Password protection on control page Optional Password Encoding Base 64 Max password length 10 characters Regulatory Compliance Electromagnetic Compliance...

Page 30: ...la Systems must not be used to endorse or promote products derived from this software without prior written permission For written permission please contact opentcp opentcp org 5 Products derived from this software may not be called OpenTCP nor may OpenTCP appear in their name without prior written permission of the Viola Systems Ltd THIS SOFTWARE IS PROVIDED AS IS AND ANY EXPRESSED OR IMPLIED WAR...

Reviews: