background image

Web Server and Setup Pages

WebRelay Users Manual

3.1.2   Network Setup Page

The network parameters are changed on this page. Note that if multiple WebRelay 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 units installed on the network with the same 
factory default IP address at the same time. 

It may be necessary to clear the arp cache each time you swap WebRelay units on the network (this is 
because each unit has the same default IP address but a different mac address). This is done by typing 
arp -d in the command prompt of a Windows computer (arp -d -a as super user on Apple OSX). 

Also note that the unit must be power-cycled (power disconnected, then reconnected) before network 
settings take effect. No other setup page requires power-cycling for the settings take effect.

IP Address

WebRelay requires a static IP address. This is a unique address that identifies WebRelay on the 
network. Dynamic IP address assignment (DHCP) is not supported. The lack of dynamic IP addressing 
support is intentional because dynamically changing the IP address would make it difficult for a client to 
access the web server built into WebRelay. The IP address is specific to the network where WebRelay 
will be installed, and 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 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 (this is typical 
with ISPs such as cable providers), a proxy server (or gateway router) may be used. A proxy server 
allows multiple devices to connect to the Internet using a single routable IP address. Many small routers 

Page 36

Xytronix Research & Design, Inc.

Содержание WebRelay X-WR-1R12-1I-E

Страница 1: ......

Страница 2: ...cumentation for new POE operation with external power applied New document format moved warranty and other information to the appendix Moved XML and Modbus information to Section 5 Auxiliary Operation...

Страница 3: ...evice IP network control only 21 2 5 2 Single WebRelay Device digital input and or IP network control 22 2 5 3 Dual WebRelay Devices no computer required 23 2 5 4 Multiple WebRelay Operation no comput...

Страница 4: ...63 5 3 3 WebRelay Full Address Table 64 5 3 4 Read Coils Modbus Function Code 01 0x01 65 Request 65 Response 65 Errors 65 5 3 5 Read Discrete Inputs Modbus Function Code 02 0x02 66 Request 66 Respons...

Страница 5: ...WebRelay Users Manual Appendix H Mechanical Dimensions 81 Xytronix Research Design Inc Page 5...

Страница 6: ...tus of a digital signal Remote Reboot Controller WebRelay can function as a high end reboot controller with fully configurable setup options It can be used to remotely reboot servers computers satelli...

Страница 7: ...eboot Counter XML readable only Powered from a 9 28VDC power adapter The model X WR 1R12 1I E is an Ethernet powered device POE Simple and easy to use UL Listed X WR 1R12 1I I and X WR 1R12 1I E 5 yea...

Страница 8: ...ing control system It can be configured using its built in setup pages Use the WebRelay to control motors lights coils pumps valves bells etc Also use it to monitor alarms sensors switches fluid level...

Страница 9: ...lnet FTP SSH nor uncontrolled open ports This means it is extremely difficult if not impossible for someone to break in to the WebRelay and access other devices on your local network WebRelay does not...

Страница 10: ...re isolated from all other circuits Digital Input The WebRelay has an optically isolated digital input The optically isolated input provides electrical isolation between the digital input and the low...

Страница 11: ...ut The negative side of the optically isolated input Input Digital Input The positive side of the optically isolated input 5Vout 5VDC out This voltage is provided as a convenient voltage source for th...

Страница 12: ...E installed on their computer This is ideal for applications that require a quick and simple solution that does not need to be accessible to more than a few people This configuration is simple to setu...

Страница 13: ...be used for medical life saving purposes or for any purpose where its failure could cause serious injury or the loss of life This unit must not be used in any way where its function or failure could c...

Страница 14: ...bRelay 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 To remove the WebRelay from the DIN Rail use a flat head screwdrive...

Страница 15: ...he Vin and Vin Gnd terminals A regulated power supply is recommended such as a wall mount AC DC adapter Verify that the adapter is rated for the operating current of the WebRelay See Appendix D Specif...

Страница 16: ...he internal relay contacts each time the contacts open Over time this causes wear on the relay contacts which can shorten their life span When switching an inductive load it is recommended that relay...

Страница 17: ...e 2 4 1 Switch Closure Connections The WebRelay can sense the state of a switch closure sensor Sensors with switch closure outputs include push buttons magnetic door alarm switches micro switches or a...

Страница 18: ...ide of a building but you want to be able to open the gate elsewhere If the building is wired for networking it is a simple task to accomplish this goal by connecting the WebRelay contacts in parallel...

Страница 19: ...internal 3K ohm resistor The forward voltage drop of the photo coupler is approximately 1 2V and works well with an input current of 9mA Use the following formula to determine the resistor value need...

Страница 20: ...ibutors A simple voltage converter module RedLion VCM10000 or VCM20000 is shown below These are available in two input voltage ranges that cover the spectrum from 4 270VAC DC These devices have a MOSF...

Страница 21: ...schemes are illustrated in this section 2 5 1 Single WebRelay Device IP network control only The example below shows the use of an interposer relay to control a load with larger current requirements...

Страница 22: ...he example the light shown on the right can be controlled locally using a mechanical switch or it can be controlled remotely over the IP network The mechanical switch controls a 5 volt signal that is...

Страница 23: ...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 det...

Страница 24: ...WebRelay 1 controls WebRelay 2 which then controls WebRelay 3 which then controls WebRelay 4 This daisy chain mode is set up by configuring the Relay options in WebRelays 1 2 and 3 to remote command e...

Страница 25: ...n series with power The illustration below shows an example of how WebRelay can be used to reboot a server The WebRelay module is wired in series with the server s power source which allows it to turn...

Страница 26: ...computer has an existing push button switch for reset the relay contacts may be wired in parallel with the push button switch This allows both local and remote reset 2 5 7 WebRelay Used for Reboot wi...

Страница 27: ...tion on the Ethernet cable For configuration WebRelay 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 s...

Страница 28: ...t before connecting the next unit to the network This avoids having multiple devices being installed on the network with the same factory default IP address at the same time If this approach is used b...

Страница 29: ...WebRelay Users Manual 4 Select View network status and tasks 5 Select Change adapter settings Xytronix Research Design Inc Page 29...

Страница 30: ...onnection shown Right click on the adapter for your connection to the internet A drop down box will appear choose Properties to view edit the settings for this internet connection 7 Select Internet Pr...

Страница 31: ...mask 255 255 255 0 No need to change the default gateway field Click OK to accept the new settings 9 Open the setup pages of the WebRelay by entering the following URL in the address bar of a web bro...

Страница 32: ...ss ss ss ss ss ss For example to set the WebRelay 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 3 Next type ping l 102 new...

Страница 33: ...mple to set the WebRelay 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 3 Next type ping s 102 new IP address For exam...

Страница 34: ...us information To access the setup pages enter the following URL in the address bar of a web browser http ipaddress setup html For example using the default IP address enter http 192 168 1 2 setup htm...

Страница 35: ...sword The default user name is admin The default password is webrelay no quotes all lower case Most setup pages have a Submit button and a Reset button at the bottom of the page After entering the des...

Страница 36: ...take effect IP Address WebRelay requires a static IP address This is a unique address that identifies WebRelay on the network Dynamic IP address assignment DHCP is not supported The lack of dynamic I...

Страница 37: ...r accessing multiple WebRelay devices which are installed behind a gateway router on a private network that uses non routable IP addresses 192 168 x x 10 x x x and 172 16 x x through 172 31 x x are no...

Страница 38: ...left alone but there are some circumstances where it might be beneficial to change it One of these circumstances is when the device is to be used over a VPN virtual private network VPN s add extra inf...

Страница 39: ...radio buttons Enabling the control page password also enables the requirement for a password when reading writing XML pages Enabling the control page password disables the ability to communicate with...

Страница 40: ...r input are in the on state Relay Mode The unit may be configured so that it operates in Standard mode or Automatic Reboot mode Standard mode is used for all applications except automatic reboot appli...

Страница 41: ...will be extended If pulse commands are issued continuously so that the pulse timer is not allowed to expire the relay will remain on until after the last pulse command was sent to be precise the relay...

Страница 42: ...he relay will remain in its current state toggle relay when input changes When a voltage is applied to the input or removed from the input the relay will change states pulse relay when input on When a...

Страница 43: ...that will be re booted upon failure such as a server router computer etc It could however be the address of a device on the opposite side of a communications link This is useful to auto reboot communi...

Страница 44: ...he device With this approach WebRelay re boots the device by momentarily closing the reset switch This has the advantage of being less hard on the device that is being controlled than switching the po...

Страница 45: ...e WebRelay will no longer attempt to reboot the device At this point the WebRelay will leave the device on but will disable the auto reboot feature The auto reboot feature will remain disabled until a...

Страница 46: ...command is sent to the remote WebRelay to toggle the relay change the remote relay to the state opposite of its current state When a voltage is applied to the input no commands are sent send toggle co...

Страница 47: ...ive option may be turned on to keep the TCP connection to the remote WebRelay unit alive If the connection is alive commands sent to the remote unit will change the state of the remote relay almost in...

Страница 48: ...state is updated When the option is selected to transmit the state of the input each time the keep alive message is sent the password will be frequently transmitted over the network This may not be a...

Страница 49: ...ents of the control page can be customized by setting the appropriate options on the Control Page Setup page Note that this setup page only affects the control web page and does not affect the functio...

Страница 50: ...l be displayed when the relay is off coil not energized ON OFF Buttons This option allows the user to specify 0 1 or 2 buttons to turn the relay on or off Zero buttons disables the users ability to tu...

Страница 51: ...the control page is loaded to the browser it displays a snapshot of the current status of the unit If the state of the unit changes the information on the control page will be outdated unless the pag...

Страница 52: ...page can be customized by setting the appropriate options in the Control Page Setup page Note that this setup page only affects the control web page and does not affect the function of the WebRelay i...

Страница 53: ...s this field specifies the color that will be displayed when the relay is off coil not energized Status OFF Text When the Display Relay Status option is set to Yes this field specifies the text that w...

Страница 54: ...on where not displaying the ON OFF buttons is recommended is when WebRelay is wired to control a reset line instead of power In this case the user cannot actually power off the device so ON OFF button...

Страница 55: ...een with default settings appears when the Control Page is requested from the address bar The control page updates every three seconds The Control Page is normally what users see and use and it can be...

Страница 56: ...default the status text will read Relay ON or Relay OFF however the status text can be changed in the Control Page Setup tab To the right of the relay status buttons are provided to control the relay...

Страница 57: ...A brief user description of the relay or device being controlled and the relay state may be displayed on the control page Note that the relay state represents the current state of the relay and may or...

Страница 58: ...sponse or when the user manually re boots the device This indicates that the WebRelay is currently performing a reboot This may be a single pulse or two pulses with a delay between them depending upon...

Страница 59: ...state xml The following state xml page is returned xml version 1 0 encoding utf 8 datavalues relaystate 1 relaystate inputstate 0 inputstate rebootstate 0 rebootstate totalreboots 0 totalreboots data...

Страница 60: ...te 1 Turn Relay 1 ON state xml relayState 2 Pulse Relay Standard mode state xml relayState 3 Reboot Automatic Reboot mode state xml relayState 4 Disable automatic reboot Automatic Reboot mode state xm...

Страница 61: ...or 5 seconds state xml relayState 2 pulseTime 5 This will pulse the relay for 5 seconds state xml relayState 2 pulseTime 5 This will pulse the relay for 5 seconds state xml relayState 2 This will puls...

Страница 62: ...ge is requested through a browser the browser will prompt the user for the password If the XML request is sent from another application and not a browser the html request will need to contain the pass...

Страница 63: ...uts 02 Input status 0x0000 0 Write Single Coil 05 Change relay state 0x0000 0 Write Multiple Registers 16 Pulse the relay 0x0000 0 Multiple commands may be sent without closing and re opening the conn...

Страница 64: ...ress and add to it the address offset in the PLC address mode column Code Name Modbus Function WebRelay Addresses Data Type PLC Address Mode 485 PLC Address Mode 584 984 Read Coils 01 0 Relay 1 Discre...

Страница 65: ...of coils 0x0002 read relay state and input state Starting address 0x0001 quantity of coils 0x0001 read input state only Starting address 0x0001 quantity of coils 0x0002 not valid Response The WebRelay...

Страница 66: ...is indicated by bit one of the status byte A 1 indicates that the input is ON A 0 indicates that the input is OFF When reading the input the following table shows the bit positions Discrete Input Sta...

Страница 67: ...0x0000 Relay Output Value 1 byte 0x00 OFF 0xFF ON Padding 1 byte 0x00 Response The response mirrors the requested state 0x00 or 0xFF Errors Single Coil Write Error Function Code 1 Byte 0x85 Exception...

Страница 68: ...imer will be canceled immediately and the new command will be executed The pulse time is provided in IEEE 754 floating point format The four data bytes are treated as two individual big endian 16 bit...

Страница 69: ...ss and hold the small button located on the bottom of the unit When the object is inserted a tactile feedback can be felt as the button is depressed CAUTION Do not use metal objects for this function...

Страница 70: ...website Only a WebRelay image can be installed on the WebRelay so make sure the correct image is being downloaded 2 bootloader exe will connect to the WebRelay using default IP address 192 168 1 2 not...

Страница 71: ...the reset button press the Upload Firmware button at the bottom of the ControlByWeb Programmer window After the programming process begins the reset button can be released 5 Programming will take appr...

Страница 72: ...ample 192 168 200 167 is an IP address Every device that is directly connected to the Internet uses a public IP address The WebRelay can be assigned a public IP address for direct connection to the In...

Страница 73: ...specific recipient Port numbers can be set to any number between 1 and 65235 However many port numbers are reserved for specific applications and should be avoided As a general rule numbers above 800...

Страница 74: ...p pages of the WebRelay when the port is set to 8001 the following command would be used http 192 168 1 26 8001 setup html To access the ControlByWeb units from the Internet enter the public IP addres...

Страница 75: ...A 229 mA 313 mA 12 VDC 79 mA 141 mA 169 mA 233 mA 24 VDC 43 mA 73 mA 88 mA 119 mA 28 VDC 38 mA 64 mA 76 mA 103 mA Relay Contacts Load Type General purpose Contact Form SPDT form C Contact Material Sil...

Страница 76: ...field wiring connections to the relay terminal block MTW Machine Tool Wire rated for 105 C is recommended Stripping Length 7mm Connection capacity 2 5mm2 stranded 2 5mm2 solid Conductor minimum 30AWG...

Страница 77: ...nsing Altitude Up to 2000 meters Environmental Rating Pollution Degree 2 Installation Must be installed inside an NRTL certified industrial control panel or similar NRTL certified fire electrical encl...

Страница 78: ...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 reasonable effo...

Страница 79: ...product is shipped within the continental United States If the product is shipped outside of the continental United States or the product was shipped more than one year earlier the purchaser shall pay...

Страница 80: ...and used in accordance with the instructions may cause harmful interference to radio communications However there is no guarantee that interference will not occur in a particular installation If this...

Страница 81: ...WebRelay Users Manual Appendix H Mechanical Dimensions Note A 3D CAD model is available at www ControlByWeb com Xytronix Research Design Inc Page 81...

Отзывы: