Home
X-600M User Manual
Contents
1. Privacy Protocol This is the type of encryption used by SNMP V3 Privacy Password This is the encryption password used by SNMP V3 4 2 3 6 Network gt Advanced Network gt Email Configure Email smtp settings The X 600M can send Email alerts based on any sensor or input conditions such as temperature time frequency digital inputs power supply levels and more It can send text messages to a cell phone through a wireless carrier s Email bridge Emails are initiated by an Action See Control Logic gt Actions for further details The message s text that is sent is defined in the Action This page is used to configure the Email server used to send outgoing email messages OO zs setup lt d 192 168 1 2 setup html Welcome Administrator X6O0oOoM Commit Changes Abandon Changes Logout CONTROLBYWEB D Advanced Network Email Setup Configure email SMTP settings Overview Email Ethernet Host Name smtp server Wireless Server Port 25 Return Email Connection Security None Web Server User name Modbus Password Ajala Send Test Email to test testemail com Remote Services Submit Reset Client SNMP Email FTP NetBIOS mDNS ii e Host Name The name of the SMTP Simple Mail Transfer Protocol mail server for example mail example com or the IP address of the mail server for example 192 10 10 10 should be entered in this field There is no default setti
2. to save the settings to the database and this can soon become tedious You will find it more efficient to make all of the changes and then click the Commit Changes button to save all of the changes to the database at once New or edited settings will not become functional until the Commit Changes button is pressed If you click the View Dashboards menu tab and discover that the components are blank or don t work the problem could be that you have not committed your changes to the database If this occurs you have not lost your settings simply go back to one of the configuration tabs and click the Commit Changes button 00 xsetup it Fy C D 192 168 1 2 setup htm gt lt 600M Welcome Administrator CONTROLBYWEB Commit Changes ndon Changes Logout E Devices Add edit and delete devices that are attached to the X 600M either through the expansion bus or through the Ethernet network Devices must be added before setting up I O Logic or Dashboards Device List Find New Devices Add New Device Name Description Address Port Model Serial Number Edit Dashboards device1 X600M master unit n a X 600M 00 0c c8 00 00 72 device2 2 Relay Slave 1 n a X 11S 0000004f Identify Edit Delete m View Dashboards Showing 1 2 of 2 Devices 3 7 Dashboard Access Users and Access Groups The X 600M has flexible and advanced access control features needed for real world applications Access to the setup pages described in t
3. 4 3 Devices Tab The X 600M controls and monitors I O found on other ControlByWeb devices such as WebRelay WebRelay Quad X 310 X 320 etc These devices can be located anywhere in the world that is connected to the Internet The X 600M does not have any built in I O but local I O can be added by adding devices to the expansion bus Currently these devices include the X 11s 2 Relay X 12s 8 Relay X 13s Thermocouple X 15s 8 Digital Input and X 16s 8 Analog Input Between the Ethernet devices and expansion devices the I O capability of the X 600M can be extended to meet the needs of many different applications Before devices and expansion devices can be used with the X 600M they must first be registered with the X 600M This is done under the Devices menu tab Each device is shown in a separate line For a new X 600M the display will only show one device device7 the X 600M itself Depending on your preference you can change the sorting order of the rows by clicking the A VW symbols at the top of a column Once devices are shown in the Device List you can identify expansion modules during installation click the Identify button of a specific device The X 600M will send a blink command to the respective expansion module which will cause its power LED to blink for three seconds Having identified a specific device you will want to enter a distinctive Name and Description for the device To add a new device click the Add
4. Appendix A Restoring Factory Default Settings In the event that the IP address or passwords are forgotten the X 600M may be restored to its original factory default settings The restore process restores the IP address to 192 168 1 2 the default admin user name to admin and the password to webrelay It also erases all Events Actions Scripts Dashboards and other settings To restore the factory default settings 1 Remove the DC power from the X 600M 2 Usea thin non conductive object e g Toothpick or plastic paperclip to press and hold an internal button located on the bottom side of the unit Do not confuse this access hole with the hole on the backside inside one of the DIN rail mount ears The hole on the back side is used to prepare the module for firmware upgrades as described in the following Appendix 3 CAUTION only a gentle force is necessary to activate the button A tactile feedback can be felt as the button is depressed 4 While depressing the button apply power and wait for about 10 to 15 seconds before releasing the button All settings will be back to the original factory defaults Unlike other ControlByWeb products the X 600M s Ethernet LEDs do not blink during this procedure After these steps are complete refer to Section 2 3 Establishing Communications for Setup to begin reconfiguration of the device In some cases you may have simply forgotten the password and do not want to lose all the other settin
5. Dashboards Edit Add panel Devices Panel Name panel2 Add H View Dashboards Status Ready Close Welcome Administrator ps Abandon Changes Logout Dashboard 1 SoA Once you have clicked Add click on the panel s title and drag it to re arrange the display as you please Click the wrench icon in the Panel title to edit the Panel name The panel name will only appear only while editing the dashboard When viewing the actual dashboard only the dashboard and the widgets have names titles 4 7 3 Edit Dashboards Add Widget Within Panels you place one or more Widgets Widgets are framed boxes which represent more specific groups of controls and sensors Widgets allow the X 600M s web pages to have dynamic content To add a new Widget to a Panel Click the icon on the Panel title bar Page 84 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 8 Setup x l 192 168 1 2 setup html x lt 600 Mi Welcome Administrator X600M CONTROLBYWEB ps Abandon Changes Logout 2 192 168 1 2 popup php Jf System Dashboard 1 gt OA Dashboards Edit E A Add widget D Widget Title Widget 2 Name widget2 Refresh Rate 3 seconds Width Half width of panel Height Auto Auto Add Device I O None H View Dashboards Add Close Status Ready Title The title of the widget will appear in the upper
6. end httpRequest url timeoutMilliseconds This function can be used to send an HTTP GET request to another web server For example it can be used to change the relay state on another ControlByWeb device This function can only be called from the 5 Lua Scripts not Lua expressions This function will return the number of bytes received in the response a 0 for no response or a negative number that represents the following errors 1 Can t run from Lua Expressions 2 Host unknown 3 Internal Error 4 Timeout 5 Bad host name length If the request returns a response this response will be saved in a response buffer associated with the Lua script Each script 1 5 have their own response buffer that can hold responses up to 8K in length Responses bigger than 8K will be truncated These responses can then be parsed using the functions responselndexOf and responseSubstr as explained below The following example will turn on the first relay on the ControlByWeb device found at address 192 168 1 15 and store the state xml file in the Lua scripts response buffer While this example uses another ControlByWeb device httpRequest can send requests to any web server and device httpRequest http 192 168 1 15 state xml relaylState 1 50 responselndexOf start searchStr When a resource is requested over the network by functions such as httpRequest any response is stored in the lua scripts response buffer This function will se
7. Q Google Port forwarding can be used bo set up public services on your network When users from the Internet make certain requests on your router they PORT RANGE will be redirected to the specified IP FORWARDING Protocol Protocol Ext Port TCP UDP IP Address Enable 192 158 1 192 168 1 192 168 1 0 192 168 1 192 168 1 192 168 1 192 168 1 192 168 1 192 168 1 192 168 1 0 a000 To a000 a001 To aom io i 0 Q fl ca a E Moomaooaa sa Wo 0 I oe m _ UPAP Forwarding Port Triggering C Apply Caneel Port Range Forwarding Note This screen shot is simply an example of a typical router setup page Router settings will vary Accessing Setup Pages After changing ports the setup pages are accessed on a local network as described below http Local IP Address Port Number setup html For example to access the setup pages when the port is set to 8000 the following command would be used htte 7192 168 1 25 8000 7 setus html To access the ControlByWeb devices from the Internet enter the public IP address of the router plus the port number of the desired device in the following format http Public IP Address of Router Port Number of Device setup html Using the example above the following line would be used to access the setup page of X 600M http 266 70 164 97 8000 setup html Xytronix Research amp Design Inc Page 1
8. examplelndex html This custom page demonstrates how to create a custom control page similar to the built in dashboards If this file were renamed as index html it would appear instead of the standard index html dashboard of the X 600M exampleLoginScreen html This custom page demonstrates how to create a custom login screen If this file was renamed as loginScreen html it would appear instead of the standard X 600M login screen png files All the PNG files are used in the example HTML files and are standard PNG files This is the only image format supported by the X 600M for custom web pages Template Engine The X 600M uses the Smarty template engine version 3 1 16 to facilitate HTML pages with dynamic content The Smarty template engine searches for tags found in the custom HTML pages and replaces them with dynamic content Normally the Smarty template engine only runs on TPL files but for the X 600M all custom HTML files are parsed by the template engine The X 600M uses an object oriented approach for the available tags that can be used in the HTML files The following objects are available io reg act evnt user and db To see how these objects are used inside tags to generate dynamic content lets look at an example The following example will output the description of a 1 Wire temperature sensor previously configured in the X 600M Page 126 Xytronix Research amp Design Inc X 600M Users Manua
9. lt A 12014 month week day Event Options iti Th Fri Sat Conditional Events O Aug 2 2014 10 u Edit Event Calendar Events Su Mo Tu We Th Fr Sa Acti A Delete Event guons 3 4 5 6 7 e 9 Sai 10 11 12 13 14 15 16 Disable Event August 31st 2014 6 Li 8 9 17 18 19 20 21 22 23 EDB CECT CS CS i 24 25 26 27 28 29 30 Disable Event August 31st Every Year 31 m Edit Dashboards Disable Event 5th Sunday in August Every Year 13 14 15 16 calEv a Disable Event Group 2 August 31st 2014 amp Event Group 1 m eur EARRAS amp Event Group 2 Disable Event Group 2 August 31st Every Year 20 21 22 23 U Event Group 3 ESI Disable Event Group 2 Sth Sunday in August Every Year EED Event Group 4 Cancel Event Group 5 z4 Zz 26 27 28 29 30 Event Group 6 Event Group 7 Event Group 8 31 Status Ready For product support go to www ControlBy Web com Xytronix Research amp Design Inc There are nine options given If this event instance belonged to event group 1 there would only be six options since event group 1 cannot be disabled In this example the event belongs to event group 2 which can be disabled The options are Edit Event This will open a popup window for editing the event settings Delete Event This will remove the event from the event scheduler Disable Event August 31 2014 This option will disable the event instance on August 31 2014 for the entire day Disable Event August
10. Abandon Changes Logout Syste Pi I O Relays manual for details Network Add edit and delete relays Relays can be attached to X 600M directly through expansion bus ribbon cable or remotely over Ethernet network See users Relay List C Add New Relay Relay Name Relay Description Device Name a et ption Device Relay Number Relays relay Relay 1 device2 2 Relay Slave 1 Edit Delete relay2 Relay 2 device2 2 Relay Slave 2 Edit Delete 1 Wire Sensors relay3 Relay 1 device3 8 Relay Slave 1 Edit Delete Frequency Inputs relay4 Relay 2 device3 8 Relay Slave 2 Edit Delete Counters relay 5 Relay 3 device3 8 Relay Slave 3 Edit Delete rela Relay 4 device3 8 Relay Slave 4 i Sach Vlas y6 ad i iei ui d Edit Delete relay7 Relay 5 device3 8 Relay Slave 5 Edit Delete Thermocouples relay8 Relay 6 device3 8 Relay Slave 6 Edit Delete Input High Times Tien es m T A relay9 Relay 7 device3 8 Relay Slave T Edit Delete Input On Times relay10 Relay 8 device3 8 Relay Slave 8 Edit Delete Showing 1 10 of 10 Relays H Edit Dashboards H View Dashboards Status Ready For product support go to www ControlByWeb com Xytronix Research amp Design Inc 8 Setup x a S C 192 168 1 2 setup html X gt lt 600 M Welcome Administrator CONTROLBYWEB X600M OT Abandon Changes Logout 4 z Pa System J A 192 168 1 2 popup php z Relay Configuration PERE Add Relay F Relay s Add New Relay O
11. Condition On Test the I O object to be True Off Test the I O object to be False Changes State Test the I O object for a change of state Equals Test the I O object to match the state of another I O object 4 5 1 2 Analog Event lf Analog is selected several analog specific settings appear Condition This setting selects the magnitude compare for the conditional event X Equals A X A X Does Not Equal A X A X Greater ThanA X gt A X Less ThanA X lt A X Greater Than B and X Less ThanA B lt X lt A X Less Than B and Greater ThanA B gt X gt A X The X argument for the conditional event A The A argument trigger threshold for the conditional event Constant A fixed constant Variable A Register or I O B The B argument trigger threshold for the conditional event Constant A fixed constant Variable A Register Delta Hysteresis The hysteresis prevents conditions and alarms from triggering excessively when the register value vacillates around the trigger point With high alarms the measurement must fall below the high alarm point minus the dead band before the high alarm will be triggered again Likewise the deadband on the low alarm requires the measurement to rise above the low alarm point plus the deadband before the low alarm will be triggered again For example if the dead band is set to 0 5 V and a high alarm is set at 13 V The high alarm will occur at 13 V however it will not turn off un
12. Server Port 161 Trap Port 162 Web Server Username snmpuser Modbus Authentication Protocol MDS Remote Services Authentication sssssess Server Password Confirm Auth Password sssssese Remote Services i DES Client Privacy Protocol l Privacy Password ssssesss SNMP Confirm Privacy ssssesss Password Email Submit Reset FTP NetBIOS mDNS SNMP MIB File Generation MIB File Generate and Download MIB File n SNMP Enabled When this option is set to Yes the X 600M will support SNMP The default setting for this option is No See Appendix F SNMP Requests Objects and Security for more information Host Name This is the address of the machine where the SNMP manager software is running Server Port When SNMP is used this field is used to specify the SNMP port that X 600M listens on The default setting for this field is 161 Trap Port When SNMP is used this field is used to specify the SNMP Trap Notification port of the SNMP manager The default setting for this field is 162 Username This is the username used when setting up SNMP V3 security settings Authentication Protocol This is the authentication protocol used when establishing a connection with the SNMP manager Authentication Password The authentication password used when establishing a connection with the SNMP manager Xytronix Research amp Design Inc Page 51 Setup Pages X 600M Users Manual
13. System G Network Wireless Setup Configure Wireless settings After entering settings press Submit and then Commit Changes When Commit Changes is clicked the new network settings will take affect immediately Overview Wireless Interface 1 Network Type Ad Hoc Security Key ssssesssss Submit Reset For an Access Point connection the X 600M attempts to connect to a wireless access point To configure an Access Point connection select VW Access Point from the drop down menu Xytronix Research amp Design Inc Page 45 Setup Pages X 600M Users Manual e O 8 5 Setup amp O 192 168 1 2 setup html X60oo0oM CONTROLBYWEB System O Network Wireless Setup Configure Wireless settings After entering settings press Submit and then Commit Changes When Commit Changes is Wireless Interface 1 Network Type Access Point Network Name SSID XRDI Signal 0 100 Security Level WPA2 Persona I Security Key esssesssse Encryption Type TKIP Use DHCP Yes No IP Address 192 168 1 2 Netmask 255 255 255 0 ja Edit Dashboards Gateway 192 168 1 1 Preferred DNS 192 168 1 1 Alternate DNS 192 168 1 1 H View Dashboards Submit Reset Status Ready For product support go to www ControlBy Web com Welcome Administrator Commit Changes Abandon Changes Logout clicked the new network settings will take affect immediately Xytronix Research amp Design Inc The SSI
14. Xytronix Research amp Design Inc Page 107 Appendix C Accessing X 600M Over the Internet X 600M Users Manual Appendix C Accessing X 600M Over the Internet The X 600M can be monitored and or controlled from a remote location over the Internet Once the X 600M can be accessed on the local network almost all of the settings required to provide remote access are in the router and not in the X 600M This guide is not meant to be a tutorial in router setup but rather to provide a basic overview of remote access For specific details the user should refer to the instruction manual for the router on their local network Users not familiar with basic IP networking should study one or more basic IP networking tutorials before proceeding many tutorials are available on the Internet IP Addresses Every device on the Internet is identified by a unique address called an IP Internet Protocol address IP addresses are somewhat similar to mailing addresses in that they identify the precise logical location of the device on the Internet The IP address identifies the global region down to the network and then the specific device on that network IP addresses are globally maintained and assigned by an entity called the Internet Assigned Numbers Authority IANA IP addresses consist of four sets of numbers that range from 0 to 255 and are separated by a decimal For example 192 168 200 167 is an IP address Every device that is directly
15. n a name Get the name of the register Only used in foreach loops gact load n a Load the action information from settings desc actName desc Get the description of the action name actName id actName id Get the unique id number of the action named actName type actName type Get the type of action for the action named actName eventSourcelD actName eventSourcelD Get the eventSourcelD number for the action named actName expression actName expression Get the Lua script associated with the action named actName evnt load n a Load the event information from settings desc eventName desc Get the description of the event named eventName id eventName id Get the unique ID number of the event named eventName type eventName type Get the type of event for the event named eventName COMPLEX or CALENDAR count eventName count Get the count for this calendar event interval eventName interval Get the periodic interval for this calendar event dtStart eventName dtStart Get the start date time for the event dtEnd eventName dtEnd Get the end date time for the event freq eventName freq Get the frequency of the event byday eventName byday Get list of days this event occurs monthlyRepeatType eventName monthlyRepeatType Get the type of monthly event DayOfMonth or DayOfWeek Page 1
16. DIN mount Temperature Sensor 1 Wire Digital temperature sensor with 12 inch wire leads X DTS U Note Leads may be extended Temperature Sensor 1 Wire Digital temperature sensor with 36 inch weather X DTS S3C resistant cable Temperature Sensor 1 Wire Digital temperature sensor housed in vented plastic X DTS WM Wall Mount enclosure Temperature Humidity 1 Wire Digital temperature and humidity sensor housed in X DTHS WM Sensor Wall Mount vented plastic enclosure Ultrasonic distance 1 Wire Ultrasonic distance sensor Measure object proximity to sensor 5 meters with 1 mm resolution Spare Connector 5 Pin Connector X 1827004 USB WiFi Adapter USB WIFI adapter ASUS USB N10 IEEE 802 11 b g n 150Mbps USB WiFi Adapter USB WIFI adapter EDImax Nano IEEE 802 11b g n 150Mbps USB Flash Drive USB Flash Drive industrial temperature range 40 C to 85C Hi Speed USB 2 0 128MB single level cell SLC 5 Year warranty Delkin UY12TFJSY XNOOO D Xytronix Research amp Design Inc X 600M Users Manual Introduction Expansion Modules and Accessories See www ControlByWeb com for an up to date list of available expansion modules and accessories Expansion Module Description Part Number X 11s 2 Relay module Form C SPDT 20Amp 277VAC X 11s with mating connector X 12s 8 Relay module Form C SPST 2 5 Amp 120VAC with X 12s mating connector X 13s 2 Channel
17. Email alerts can be sent to users or groups These users can be set up to receive email alerts only while having no access to the dashboards and I O Xytronix Research amp Design Inc Page 33 Setup Pages X 600M Users Manual Setup od C d 192 168 1 2 setup htm sx lt 600 M Welcome Administrator CONTROLBYWEB TORY ea aa nandon Changes Logout 192 168 1 2 popup php Overview t System Accounts irds and I O boards that each User Accounts Edit user account E ss omal Access Groups a Date amp Time a Full Name Administrator Add New User Backup Restore Email SSL Certificates Username admin Edit Password ___ essseses Custom Web Pages Confirm Password ssseeees z Edit System Log Access Groups admin users group1 f group2 cbw Update Cancel H Edit Dashboards View Dashboards Status Ready Full Name This is a simple description of the user account for documentation purposes Email The email address for this user Username This is the user name for this user account used for logging in Password The Password for a specific user can be modified by entering a new password here Passwords that are 8 characters or longer up to 20 characters can be entered in this field with both alphabetic and numeric characters are recommended For security purposes the password will not be displayed when entered Note The default user
18. Logout Pa System Custom Web Pages pyeeriow Edit View Upload custom web pages User Accounts Custom Web Pages Access Groups Download All Files Upload File s Choose Files No fe chosen Date amp Time New HTML File New CSS File New JS File Backup Restore Filename Filesize about us html 11 81KB Edit Download Delete SSL Certificates actionTests html 3 86KB Edit Download Delete Custom Web Pages ajax js 2 83KB Edit Download Delete System Log condEventTests html 3 52KB Edit Download Delete eventTests html 7 91KB Edit Download Delete example css 1 17KB Edit Download Delete examplelndex html 2 33KB Edit Download Delete exampleLoginScreen html 2 11KB Edit Download Delete example _bl png 0 21KB Edit Download Delete example _br png 0 21KB Edit Download Delete mz Edit Dashboards example _tl png 0 22KB Edit Download Delete example tr png 0 2KB Edit Download Delete 2 ioTests html 2 19KB Edit Download Delete m View Dashboards reqTests html 2 03KB Edit Download Delete userTests html 2 36KB Edit Download Delete Once files have been loaded you can view them by clicking on the file name s link in the Custom Web Pages file list Custom web pages can be downloaded one at a time from the X 600M by clicking the Download button for the file They can be deleted from the X 600M by clicking the Delete button and edited directly by clicking the Edit button All the custom web pages can be downloaded in a single
19. Refresh Rate This field determines how fast the X 600M will poll devices to retrieve the current status of the device s I O By default this field is three seconds for Ethernet devices and one second for expansion modules Devices on the expansion bus that have digital inputs will update whenever the digital inputs change state not just when the refresh rate indicates it is time This allows digital inputs state changes to be more responsive 4 3 1 Devices gt Find New Devices When expansion modules are first connected to the X 600M ribbon cable connector each of the modules must be registered and programmed with an internal expansion bus device address This can be done by clicking the Find New Devices button At the same time the X 600M scans its same subnet for the presence of other ControlByWeb devices All of the discovered devices appear in a list 8887 25 setup D 192 168 1 2 setup htm Wt Fy X6o0ooM CONTROLBYWEB Devices or Dashboards Welcome Administrator Commit Changes Abandon Changes Logout Add edit and delete devices that are attached to the X 600M either through the expansion bus or through the Ethernet network Devices must be added before setting up any I O Logic Note The Find New Device button resets all the devices attached to the expansion bus This will turn off any relays and outputs on these devices Device Lng Find New Devices gt Name Description Control Logi
20. This is a unique address that identifies each device on the network DHCP Dynamic Host Control Protocol is a mechanism that automatically assigns an IP address to a computer or other devices when it is connected to a network This eliminates the need to manually enter the IP address Devices using DHCP will request an ip address and other network settings from the DHCP server on the network On many small networks the DHCP server is built into the router DHCP works well for client devices such as computers but is not ideal for servers This is because servers usually don t initiate communications with other devices but rather they wait for a request from clients To make this request the client must know the IP address of the server If a server gets its IP address dynamically the IP address may not always be the same so client devices may not be able to find the server For this reason servers usually use an IP address that is fixed and does not change The X 600M is a server and manual IP address assignment is usually recommended IP Address Enter the IP address for the X 600M in this field The IP address is specific to the network where the X 600M will be installed and must be obtained from the network administrator The default setting for this field is 192 168 1 2 If the IP address is changed remember to press Submit and then Commit Changes as explained above For more information on IP addresses and remotely accessing the X
21. compTime month compTime mday compTime year print T T s CompTime our na 2 se lt CompTime min i e COmpTime Sec end Note Times created using time now time seconds and time make can be compared to each other added subtracted from each other multiplied divided by each other and can be converted to a Xytronix Research amp Design Inc Page 119 Appendix G Lua Scripts X 600M Users Manual human readable date and time using the tostring function log ToFile logFileNumber This function will cause a logging event to occur on the log file specified by it s log file number 1 5 For example logToFile 1 email emailDef This function will cause an email message to be sent using the information found in the emai Def table For example emailDef rept orp admin subj T This is a test email body The internal temp sensor reads 10 owSensorl email emailDef end The email definition table has the following fields rcpt the user usr username or group grp groupname that will receive the email grp all will send an email to all users subj the subject line of the email must be a string body the body of the email must be a string pulse io pulseTimeSeconds This function will cause the specified relay or register to pulse for pulse TimeSeconds seconds The relay parameter is the name of a relay and the pulse TimeSeconds is
22. connected to the Internet uses a public IP address The X 600M can be assigned a public IP address for direct connection to the Internet Typically a public IP address would only be assigned to the X 600M when it is the only device on the local network The IP address would be obtained from an Internet Service Provider ISP Due to the limited number of public IP addresses private networks can be set up with private IP addresses These addresses are used within a local network and have no global designation they are not routed on the Internet The following address blocks are designated for private networks where x represents decimal numbers from 0 to 255 192 168 x x 10 x x x and 172 16 x x A Simple Local Area Network A small Local Area Network LAN can be made up of two or more computers or other devices connected to an Ethernet switch Each device on the network is assigned a unique private IP address For example consider a simple network that consists of a computer an X 600M and a WebRelay In this example the computer is assigned an IP address of 192 168 1 10 the X 600M has the IP address of 192 168 1 25 and a WebRelay has an IP address of 192 168 1 26 A person using the computer can access X 600M by entering its IP address in the URL line of a web browser hetps 1923168 21 25 Similarly WebRelay can also be accessed by entering its IP address in the URL line of the web browser http 192 168 1 26 Page
23. power supply is rated for the operating current of the X 600M See Appendix I Specifications for current requirements Multiple X 600M 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 The expansion modules draw their power from the X 600M thru the expansion bus ribbon cable If expansion modules are connected to the X 600M the power supply must have enough capacity to power both the X 600M and any expansion modules connected to the X 600M The expansion bus can provide up to 1 70 Amps for powering the attached expansion modules The maximum number of expansion modules you can attach depends on the module type and power requirements of the modules The expansion modules employ modern switch mode power supplies With this type of power supply the current draw decreases as the voltage increases As such you can add more expansion modules by using a 24 volt power supply than you can with a 12 volt power supply If additional power is needed for modules on the expansion bus please see Section 2 3 4 As an example an X 11s 2 relay expansion module would use 105 mA with a 24VDC power supply Xytronix Research amp Design Inc Page 13 Installation and Wiring X 600M Users Manual when connected to the X 600M The X 600M would be able to support up to 16 modules under this configuration 16 X 105
24. web page See example above db commitSettings callback Attempt to commit the settings to non volatile memory Xytronix Research amp Design Inc Page 133 Appendix Specifications X 600M Users Manual Appendix l Specifications Power Requirements Input Voltage 9 28 VDC 24V power supply recommended Input Current See table below for typical values at 25 C 10 100Mbps Expansion bus is powered via the Vint terminal Power Input Current Input Current Supply no expansion modules X 600M 1 7A for expansion modules 9 VDC 200 mA 1 90 Amps 12 VDC 150 mA 1 85 Amps 24 VDC 80 mA 1 78 Amps Voltage Outputs Expansion Bus 1 70A max 5 VDC for 1 wire bus 50mA max I O Connector Type 5 position removable 3 81 mm pitch Connection wire Use wire rated for 75 C min for connections to the terminal blocks Stripping Length 7mm Connection capacity 1 5mm stranded 1 5mm solid Conductor minimum 30AWG UL CUL Conductor maximum 14 AWG UL CUL Conductor Type Copper Tightening torque 0 22 Nm min 0 25 Nm max Replacement part number Phoenix Contact 1827004 USB Host USB 2 0 TypeA Device USB 2 0 Mini B Expansion Connector Provides power and communication for expansion modules Connector Ribbon cable 10 conductor polarized 2x5 position 0 100 pitch Communications EIA TIA 485 Internal Temperature Sensor Type digital 1 wire Dallas Semiconduct
25. 0 No need to change the default gateway field Click OK to accept the new settings 9 Open the setup pages by entering the following URL in the address bar of a web browser http ipaddress setup html For example http 192 168 1 2 setup html Note If the setup pages are not accessible verify that the X 600M is powered on and that the LINK light is illuminated Check all network connections and settings Another way to check communications is to ping the X 600M from the command prompt by typing ping ipaddress e g ping 192 168 1 2 Page 22 Xytronix Research amp Design Inc X 600M Users Manual Configuration and Setup 3 2 Establishing Communications Over a Wireless Network The X 600M can be accessed using either Ad Hoc or Access Point wireless connections Both access methods requires a compatible USB WiFi adapter to be plugged into the X 600M s USB port The X 600M currently includes drivers for WiFi adapters with the following chip sets e RTL8192cu EDIMAX e RTL8712u ASUS USB N10 These chip sets are used by a variety of manufacturers including amp ASUS USB N10 EDImax Nano 3 2 1 Ad Hoc Wireless Connection With an Ad Hoc network connection you can access the X 600M directly using a smart phone or other compatible WiFi enabled device With an Ad Hoc connection the network does not rely on a pre existing infrastructure such as routers or access points With Ad Hoc the devices are
26. 00 00 00 ControlIByWeb X 320 where the mac address is the mac address of the device attempting to connect to the X 600M Before the device can communicate with the X 600M it needs to be added to the device list on the X 600M under the Device menu page on the X 600M and it s Ethernet Comm Type must be set to Remote Services e O is 25 Setup e D 192 168 1 2 setup html n XG Mi Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout P System n 0 Advanced Network Remote Services Server Setup The Remote Services Server is only used when X 600M is installed on a public network and it must communicate with other ControlByWeb devices that are installed on a private network See users manual for details For most installations this should not be enabled Remote Services Server Enabled Yes No Listen Port 8000 Submit Reset Remote Services Server Setup Enabled Remote services server setup is enabled by selecting Yes in this field The default setting for this field is No Listen Port The X 600M will listen for incoming remote services messages on this port The default is 8000 4 2 3 4 Network gt Advanced Network gt Remote Services Client Configure remote services client settings The X 600M can act as a remote services client just like other ControlByWeb products Remote Services initiates the connection to the external web server rather than the web server initiating communicat
27. 20 seconds month temperature compensated Nonvolatile Memory 512 MB flash file system Industrial grade eMMC single level cell SLC All user settings are stored in nonvolatile memory Settings will not be lost when power is disconnected System Startup Time 10 to 15 seconds Protection Hardware watchdog timer LUA Scripts Continuous Up to 5 scripts 8K bytes max each Event Driven 1 for each Conditional Event 1024 max 1 5K bytes max each Event Driven 1 for each Action 1024 max 1 5K bytes max each Industrial Environmental Indoor use or NEMA 4 protected location Altitude up to 2000m Operating Temperature 40 C to 65 5 C 40 F to 150 F Storage Temperature 40 C to 85 C 40 F to 185 F Humidity 5 95 non condensing Mechanical Size 1 41 x 3 88 x 3 1 in 35 7 x 98 5 x 78 mm not including connector Weight 4 8 oz 136 g Xytronix Research amp Design Inc Page 135 Appendix Specifications X 600M Users Manual Logging Up to 5 log files Stored internally nonvolatile Flash or externally USB thumb drive 20MB max each log file internal storage 4GB max each log file with external USB thumb drive formatted using FAT32 Data wraps around when full internal storage Password Settings Password protection on setup page Optional password protection on the dashboard page s Electromagnetic Compliance IEC CISPR 22 CISPR 24 FCC 47CFR15 Class B EN55024 ITE Immunity 2010 EN5
28. 4 1 5 2 Generating a New Certificate Generating a new SSL certificate is not required for using HTTPS or securing the connection as a default certificate is already available However generating a new SSL certificate will allow you to use your organizations information as well as to get it signed by a CA To start click on the Generate New Certificate button in the top right corner of the SSL Certificates screen A pop up will open and allow you to fill in the information Once the information has been filled out and submitted the X 600M will self sign the certificate for immediate use Instructions on having the certificate signed by a CA are in the next section Certificate Name This is the name you will use to identify the certificate in the X 600M web interface These names must start with a letter and contain only letters numbers or the underscore character e g testing_cert Country Code Two letter country code for the country where the X 600M will be used e g US State or Province Name Full name of the state or province the X 600M will be used in e g Utah City or Locality Name Full name of the city or locality the X 600M will be in e g Nibley Organization Name Full exact name of your organization with no abbreviations e g Xytronix Research amp Design Inc Organizational Unit Name Full organizational unit name This is less important and can be something simple e g IT Common Name This is th
29. None for both fields will disable all security and essential revert back to SNMP version 1 With no security set the authentication password will be used for both the read and write community strings By default the username is snmpuser and can be changed in the SNMP setup page Also the Context Name will be left blank in the SNMP management software TRAPS The X 600M can send SNMP messages when an input or relay changes state when a particular sensor value is reached or when the supply voltage is out of the desired range To send a trap add an Action on the Control Logic gt Actions setup page Choose the event to monitor and select Send SNMP Trap as the action type Finally select the I O to use as the object of the trap The current value of this I O will be sent with the trap Note The X 600M will send all traps using the SNMP V2c format for sending traps and are generally referred to as notifications instead of traps Page 116 Xytronix Research amp Design Inc X 600M Users Manual Appendix G Lua Scripts Appendix G Lua Scripts The functionality of the X 600M can be enhanced by writing custom Lua scripts Registers can take on the resulting value of a Lua expression Complex logic can be used to determine the state of a Conditional Event through the use of Lua expressions Actions can perform complex functions through the use of Lua expressions Lua scripts can be created that run continuously in the background
30. Ps System 8 popup pnp Dashboard T A j Dashboards Edit i Add dashboard T E Devices i Pa I O Dashboard t Control Logic Title Dashboard 2 Name dashboard2 Access Groups admin users J group H View Dashboards Status Ready Title This field sets the dashboard title which appears at the top of each dashboard Choose dashboard titles which make the web page intuitive and easy to use Name A unique name that identifies the dashboard Access Groups This setting assigns the dashboard to one or more Access Groups by selecting its respective checkbox Only users who are members of the same Access Groups will be able to view this dashboard This setting is the easiest method of controlling access to features of the X 600M Perhaps one Dashboard allows the temperature setting of a thermostat to be adjusted between 72 and 75 F Another Dashboard with different Access Group permissions could allow the temperature to be adjusted between 65 and 80 F 4 7 2 Edit Dashboards Add Panel Within dashboards you place one or more Panels Panels are smaller framed boxes which represent logical groups of widgets To add a new panel to the dashboard click the icon on the dashboard title bar Xytronix Research amp Design Inc Page 83 Setup Pages X 600M Users Manual 28 Setup gt C D 192 168 1 2 setup htm X60O0M CONTROLBYWEB Pi Sen 6 192 168 1 2 popup php Network
31. Ready For product support go to www ControlBy Web com In this example we are going to add an X 11s 2 Relay expansion module Click the Add button for the X 11s Page 26 Xytronix Research amp Design Inc X 600M Users Manual Configuration and Setup e O O j 8 Setup x gt C 192 168 1 2 setup html gt x lt 600M CONTROLBYWEB N 4 57i 1 E Devices Find Devices List of automatically detected new devices gt New Devices Found 7 Control Logic i Rescan Back Show 10 entries E Logging Model Serial Number Comm Type HH Edit Dashboards X 15S 00000001 SERIAL X 11S 0000004f SERIAL m View Dashboards X 16S 0000006e SERIAL X 12S 00000020 SERIAL X 13S K 0000005c SERIAL Showing 1 to 5 of 5 entries Address AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE Description AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE vw Welcome Administrator Commit Changes Abandon Changes Logout Name AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE Select Add Cra Add Add Add Previous Next 3 Inthe Select column click the check boxes of the I O components you would like to configure and select the Create Device Widget check box This will display the status of the I O on the Dashboard Click Add Checked I O to submit these changes 8 Setup x
32. Users Manual Appendix H Custom Web Pages Appendix H Custom Web Pages The X 600M also has the ability to use custom web pages in place of the existing login and dashboard pages Custom web pages can be created to completely hide the default user interface of the X 600M The X 600M allows uploading of HTML CSS JavaScript and PNG files directly to the internal flash memory These files are stored in a separate location from the default web pages built into the X 600M When a web page is requested from the X 600M it first looks to see if that web page exists as a custom web page before looking for the built in web pages This allows a custom index html page to have precedence over a default dashboard page and a custom loginScreen html to have precedence over the default login page The X 600M configuration pages cannot be overridden as this would prevent configuration of the device To upload a custom web page graphic file etc go the System gt Custom Web Pages menu tab and select the Choose Files button in the top right hand corner of the window This will open the web browser s Open file dialog box One or more files can be selected for upload To select multiple files hold down the Ctrl key on the keyboard while clicking on the file names Select Open to upload the files to the X 600M eae O O 5 Setup lt A 192 168 1 2 setup html XLG6O0OO Mi Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes
33. a family of add on modules to be connected directly to the X 600M Expansion modules are available with relays digital inputs thermocouples and other industrial inputs and outputs Up to 64 expansion modules can be connected directly to the X 600M with a ribbon cable The X 600M can control and monitor a mix of expansion modules and ControlByWeb devices up to a maximum of 128 total devices The X 600M can be controlled and or monitored over any Ethernet network including private networks and the Internet Users can operate the X 600M using a web browser or custom applications can be written to control the X 600M from a computer PLC or other automation controller In addition custom control scripts are supported using the Lua scripting language Lua is a lightweight extensible programming language used in many industrial applications Many powerful features are integrated into the X 600M including Email notification encrypted and non encrypted event scheduling logging and graphing The X 600M supports a number of Ethernet protocols including HTTP HTTPS Modbus TCP SNMP NTP SMTP FTP XML and JSON cc Lil gt oc LLI Vv co Lu S Sg n cc a A gt O Xytronix Research amp Design Inc Page 5 Introduction X 600M Users Manual 1 1 X 600M Features Xytronix Research amp Design continually works to improve its products in response to customers needs and suggestions The X 600M is a new rev
34. a number pulse io relayl 1 5 sleep milliSeconds This function will cause the Lua script to stop executing for the specified number of milliseconds This function can only be called from the 5 Lua Scripts not Lua expressions If called from Lua expressions it will just return This function is useful when a script needs to wait some time before checking the result of a previous operation enableDebug io relayl 1 sleep 10000 if io relayl 1 then print Relay 1 is now on else print Relay 1 is still off We should have waited longer to check end ping address timeoutSeconds This function can be used to ping another Ethernet enabled device and check for a response It will ping the address or host name specified and will attempt to ping the remote device for a timeout seconds before giving up The return value of this function indicates the results This function can only be called from the 5 Lua Scripts not Lua expressions Page 120 Xytronix Research amp Design Inc X 600M Users Manual Appendix G Lua Scripts 1 Host responded 0 Host did not respond 1 Can t run from Lua Expressions 2 Host unknown 3 Internal Error 4 Timeout 5 Bad host name length enableDebug result ping 192 168 1 15 5 if result 1 then print Found device at 192 168 1 15 elseif result 0 then Grint Device ab L92 168l I5 nom found else PEINE Ping error
35. access the X 600M after it has obtained an ip address using DHCP OR Method 2 Temporarily change the IP address of a connected computer to the match the default IP address used by the X 600M Note If multiple ControlByWeb products are used on the same network install one at a time and set the IP address and NetBIOS mMDNS name or disable NetBIOS mDNS of each unit before connecting the next unit to the network This avoids having multiple devices on the network with the same factory default IP address at the same time If this approach is used be sure to clear the arp cache after disconnecting each unit arp d and clear the NetBIOS mDNS cache nbstat RR on Windows sudo killall HUP mDNSResponder on OS X Mountain Lion 3 1 1 Method 1 Use DHCP and NetBios This option can be used on a new X 600M For this to work the X 600M needs to be installed ona network which has a DHCP server Most routers have a DHCP server installed and enabled by default This method works as follows 1 Connect X 600M to local network using an Ethernet Cable After the network is connected apply power See wiring diagram top right Wait about 15 seconds and enter http x600 local setup html into the address bar of your browser 4 Enter the username admin and password webrelay 5 Click on the Network setup pages and change the IP address to the desired setting Once connected make sure to go to the Network gt Advanced Network
36. addresses under the Network gt Ethernet or Network gt Wireless settings tabs It must also have the following fields configured correctly under the Network gt Advance Network gt Email tab Host Name The SMTP server host name Xytronix Research amp Design Inc Page 103 Email Notification X 600M Users Manual Server Port The port number of the SMTP server This is generally 25 for non encrypted SMTP servers If using SSL TLS this port number is generally 465 If using STARTTLS this port number is generally 587 Return Email The emails address that will get notifications if the sent email does not get sent Connection Security The type of security used by the SMTP server None STARTTLS or SSL TLS Generally SSL TLS is used for encryption unless otherwise specified by the SMTP server User Name If Required Password If Required The user or users configured as the recipients of the email must also have a valid email address assigned to them User s email addresses can be configured under the System gt User Accounts menu tab under the Email field A test email can be sent out after the settings have been configured and committed using the Send Test Email button on the Network gt Advance Network gt Email tab The test email will be sent to the user that is currently logged in Page 104 Xytronix Research amp Design Inc X 600M Users Manual Appendix A Restoring Factory Default Settings
37. clicked the new network settings will take affect immediately Overview Wired Interface 1 Ethernet R Use DHCP OYes No Wireless IP Address 192 168 1 2 Netmask 255 255 255 0 Gateway 192 168 1 1 Preferred DNS 192 168 1 1 Alternate DNS 192 168 1 1 Es Speed 10 Mbps 100 Mbps 21 Control Logic Mode Half Duplex Full Duplex H Edit Dashboards Use DHCP This option allows DHCP to be enabled or disabled If this option is set to Yes the X 600M will wait for an IP address from a DHCP server each time it is powered up The default for this setting is Yes to facilitate assigning a temporary IP address to the X 600M See Section 3 1 1 For most Xytronix Research amp Design Inc Page 43 Setup Pages X 600M Users Manual installations we recommend assigning it a static IP address If you set DHCP to Yes press Submit and then Commit Changes When Commit Changes is clicked the X 600M will immediately request a new DHCP address from the server Once the X 600M is assigned an IP address by the DHCP server the new IP address can be found through the list of clients kept by the DHCP server for most instances the DHCP server is the local gateway or router Three DHCP requests will be sent out over a nine second window If no DHCP server is found within this nine second window the X 600M will revert back to the static network settings Brief Notes About DHCP All devices on an IP network require an IP address
38. compatible I O in the database are grayed out and cannot be selected X600M Dashboard 1 aA Network i panel2 Component DA P l Widget 3 Type a E Logging panel1 D 8 Input Liai Digita off ae m View Dashboards a Digita off ae Digita T Digita ws Digita ws Digita Digita T Status Ready f Digital Input ee ee Relay 1 On off 5 8 T Status Ready For product support go to www ControlBy Web com Xytronix Research amp Design Inc Once a Component has been added Click its Edit icon to edit the specific settings of the Component Click on the Trash icon to delete the component from the Widget Page 86 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages Seven different Components are available and are shown below together with their respective Edit Component settings You have tremendous flexibility in how the components appear and work It s best to keep the components simple Use appropriate colors and choose descriptive labels and field titles When you have finished adding Components click Commit Changes to save your work On Off Status The On Off Status Component displays the status of input objects such as digital inputs You can specify the text and color for both the true and false conditions of the input Click on the color swatch to select other colors 23 Setup x AN tr gt C D 192 168 1 2 setup htm ry gt l
39. day When the pulse time expires the relay will be turned OFF If a pulse time command is sent with a value greater than 86400 the pulse timer will be set to 86400 If a pulse time command is sent with a value less than 0 1 the pulse timer will be set to 0 1 If any commands are sent to the X 600M e g Modbus XML SNMP or HTML before the pulse timer has expired the pulse timer will be canceled immediately and the new command will be executed IEEE 754 floating point format is used for the pulse time The X 600M may be configured for little endian or big endian transmission The endian ness is configured in the Modbus tab Start Address 2 bytes Ox0000 relay 1 Ox0006 relay 4 Register Quantity 2 bytes Ox0002 0x0008 2 registers for each relay even number Byte Count 1 byte 0x04 0x10 Multiples of 4 Pulse Duration 4 bytes relay Ox3DCCCCCC 0x47A8C000 big endian OxCCCC3DCC 0xC00047A8 little endian Response The request is acknowledged by responding with the register quantity that was requested Errors Pulse Function code Error 1 Byte 0x90 Exception codes 1 Byte 0x01 Feature not supported 0x02 Address quantity not an even number Incorrect combination of start address and relay count Xytronix Research amp Design Inc Page 99 XML JSON Operation X 600M Users Manual Section 6 XML JSON Operation Custom applications may be created to monitor and control the
40. down It returns 7 if the connection is up and 0 otherwise result ethUp if result 1 then print The ethernet connection is up else print The ethernet connection is down end label ioName onLabel offLabel This function will return either the onLabel or offLabel string depending on the current state of the io specified by the ioName parameter This function is useful mainly for sending emails It allows labels to be used in place of the raw value of an I O such as a relay or input lapel rios tripe On 7 TORTY tcpConnect hostName port timeoutMilliseconds This function will attempt to connect to the host defined by hostName and port It will timeout after timeoutMilliseconds This function must be called before calling tcpSend and tcpRecv Each Lua script can connect to one host at a time and must close the tcp connection before connecting to a new host If the connection succeeds this function will return a 1 otherwise it will return one of the following error codes 0 Host did not responded 1 Can t call tcp functions from lua expressions 2 Host unknown 3 Internal TCP error 4 A timeout occurred while trying to connect to the host 5 Bad host name length Host name must be under 200 characters 6 Host refused connection Host unreachable Page 122 Xytronix Research amp Design Inc X 600M Users Manual Appendix G Lua Scripts 8 Could not
41. groups that the user also belongs to For example if a user John belongs to the user access group and relays 1 and 3 belong to the user access group then John can control relays 1 and 3 John cannot control relays 2 and 4 Relay State Control To control a relay or other I Os on the X 600M you need to know the name assigned to the relay or I O For example if a relay has been registered with the X 600M and given the name doorLock then we could energize the relay by issuing the following command http 192 168 1 2 state xml doorLockState 1 The response to this command is the file state xm and would look something like this lt datavalues gt lt doorLock gt 1 lt doorLock gt lt datavalues gt Where 1 Relay On 0 Relay Off 5 Relay Toggle Notice that the word State is appended to the name of the relay Pulse Relay When the pulse command is sent relayState 2 the output will turn ON for the Pulse Duration specified in the command For example to pulse to the relay named doorLock for 5 seconds issue the following command Command Description State xm Pulse doorLock for 5 seconds doorbLockState 2 doorLockPulseTime 5 Notice that the word State is appended to the name of the relay doorLockState in order to changes it s state and that the words PulseTime are appended to the name of the relay doorLockPulseTime to define the pulse duration Setting th
42. gt NetBIOS mDNS settings tab and change the Local Host Name from x600 to another name especially if you have multiple X 600M units to configure Also you will need to clear the NetBIOS or mDNS cache before configuring another unit using this method In Windows this can be achieved by opening a command prompt as an administrator and typing nbtstat RR In MAC OS X stale mDNS entries will be flushed after a failed communication attempt after about 15 seconds lf you are not using a router no DHCP server or are using a direct connection between the X 600M and your computer you must use Method 2 described below Note After power up the X 600M attempts to obtain an IP address from your DHCP server up to three times in a nine second period If all attempts fail the IP address reverts to 192 168 1 2 and you must use Method 2 as described below Page 18 Xytronix Research amp Design Inc X 600M Users Manual Configuration and Setup 3 1 2 Method 2 Assign a Temporary IP Address to the Configuration Computer If the first option above is not used you can use this option to communicate with the X 600M By default the X 600M comes from the factory with an IP address of 192 168 1 2 Communication with the X 600M may be established by assigning an IP address to the configuration computer such that it is on the same network as the X 600M for example the configuration computer could be assigned to 192 168 1 50 The followi
43. have special features admin Users who log in and have admin privileges will see the setup page s all others will not have access to these pages and cannot change the configuration of the device If you want to configure dashboards connected devices etc you must belong to the admin Group All I O and dashboards belong to this group by default user Users who log in and have user privileges will by default have access to all of the dashboards and I O but will not have access to the setup pages group 7 This is a general purpose group that can be customized and renamed as needed groupz2 This is a general purpose group that can be customized and renamed as needed cbw This Group uses a legacy password scheme employed by older Control ByWeb products Only I O that belong to this group can be controlled by older ControlByWeb products The X 600M can support up to 30 individual user accounts Each user is assigned a name and password and can be assigned to one or more access groups Users assigned to a group will have the access privileges of that group Users have passwords groups do not Users I O and dashboards can be assigned to an access group When users and I O belong to the same access group those I O can be controlled and monitored by those users When a user and dashboard belong to the same access group that dashboard can be viewed by that user If a user I O or dashboard do not belong to the same group those items cann
44. intuitive easy to use and does not require special programming skills Many control and monitor applications begin by selecting a Programmable Logic Controller or similar hardware device You must then write the control logic in ladder logic or other vendor specific programming language Next you must purchase and develop a graphical user interface to run on a PC or design a web page with dynamic content for the control and status elements Finally you must specify and test the communications between the graphical user interface and the control device This specialized work is often done by system integrators and others with the necessary skills and software With the X 600M you can bypass all of this work The X 600M comes out of the box with a web server IP communications and working web pages In a few minutes you can turn relays on and off monitor analog sensors and check the status of digital inputs With a little experimentation you can re arrange the web page format and customize the buttons and status fields with your own labels In comparison to other ControlByWeb products the X 600M does not have built in relays or digital inputs Instead it functions as a powerful master controller for other ControlIByWeb modules The X 600M can control and monitor devices such as the WebRelay WebRelay Quad X 310 X 320 etc anywhere on the Internet In addition the X 600M has a ribbon cable expansion bus connector which allows
45. make sure to backup all the settings custom web pages and ssl certificates found on the X 600M Also download any logs files of importance as they too will be erased See Section 4 1 4 System gt Backup Restore and 4 1 5 System gt SSL Certificates The settings web pages and ssl certificates can be uploaded restored to the X 600M once the firmware update procedure is finished Everything will be erased from the X 600M during the update procedure Once everything is backed up extract the firmware update package Three files should be present update bat x600loader exe and firmware sb the last file might have a different name depending on the firmware revision E m G E Computer 05 C x600FirmwareUpdate SS Organize Include in library Share with Burn New folder dr Favorites Mame Date modified Type Ml Desktop E update bat 8 21 2014 5 53 PM Windows Batch File 1 KB p Downloads E x600loader exe 8 21 2014 5 45 PM Application 6 137 KE E Recent Places firmwaresb 8 21 20145 25PM _SB File 49 605 KB Tal Libraries L Apps Documents a Music E Pictures E Videos jE Computer g OS C 42 DVD RW Drive D Audio CD Ciu Network A 3 items Page 106 Xytronix Research amp Design Inc X 600M Users Manual Appendix B Installing New Firmware Upgrade Procedure To update the X 600M firmware 1 2 Em C Windows system32 cmd exe Remove the DC pow
46. many low cost consumer and commercial USB flash drives employ MLC Multi Level Cell technology and are designed for high capacity 0 C to 70 C applications If your application requires industrial temperature 40 C to 65 5 C operation or increased reliability consider selecting a USB Flash Drive with industrial temperature specifications Look for an industrial flash drive with SLC Single Level Cell components and a 5 year warranty SLC components have the highest endurance and longest life cycles See Optional Accessories The System gt Overview menu shows the capacity and amount of memory currently used on the external USB Flash Drive Normally the external USB Flash Drive can be unplugged at any time However since data logs are buffered before written to the Flash Drive when the Flash Drive is unplugged there is risk of loosing the most recent data log If this is of concern click the Eject button on the System gt Overview menu to force all buffered data logs to be written and any open files to be closed before unplugging the USB Flash Drive Xytronix Research amp Design Inc Page 17 Configuration and Setup X 600M Users Manual Section 3 Configuration and Setup 3 1 Establishing Communications Over Wired Network In order to configure the X 600M using its built in web browser the X 600M and computer must be addressed on the same network This can be done by one of two methods Method 1 Use NetBIOS mDNS to
47. name of the conditional event Description This is a simple description of the conditional event for documentation purposes Type Digital Analog Complex Select Digital if the conditional event can be done with a Boolean logic operation On Off Etc Select Analog if the conditional event can be done with a magnitude compare between two values Select Complex if the basic logic or magnitude compare offered is insufficient and you wish to generate the event with a more flexible Lua script Eval on powerup This check box determines if the conditional event is evaluated on power up or not Duration The conditional event can be further qualified with a glitch or de bounce filter The conditional event will not trigger until 1 the condition has changed states and 2 the condition has remained in that state for a user specified duration in seconds The default duration is O seconds no glitch filter Event Group Events can be grouped together Select here which event group this event should belong to Event groups can be Enabled and Disabled When an event group is disabled all events belonging to that group will stop being evaluated until the event group is enabled again 4 5 1 1 Digital Event If Digital is selected several digital specific settings appear Page 66 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages I O The I O object that triggers the event
48. name required for accessing the setup pages is admin all lowercase The default Setup Password is webrelay all lowercase Confirm Password When the password is changed it must be entered twice for verification If the password is not entered identically in both fields the password will not be changed Access Groups This setting is only displayed if Dashboard Password Protection in the System gt Overview page is set to Enabled Access groups have a descriptive name as well as a member title used to describe the members of the group Access groups can also be declared Read Only or Read Writable Users in groups that are read only will be able to monitor I O in the same group but not control them Page 34 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 4 1 3 System gt Date amp Time Configure system date and time X 600M uses the date and time for scheduled events such as turning relays on or off at scheduled times as well as for logging a time stamp is included with each logged event The X 600M has a capacitor backed real time clock circuit that will keep track of time for several weeks in the event of a power failure 600 s setup Wt a 192 168 1 2 setup htm XLG6OO A Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout P System Date Time Configure system date and time Overview User Accounts Date Time Acce
49. network s wireless access point Router etc Preferred DNS Page 46 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages The IP address of the Primary DNS server is specified here When DNS services are required this is the address that will be used Alternate DNS This field is used to specify the IP address of a secondary DNS server This is used when X 600M requires DNS services and the preferred DNS server is not available 4 2 3 Network gt Advance Network Tab To access the advanced network settings click Network on the menu bar left side of the setup screen and then click on the Advanced Network sub menu bar 4 2 3 1 Network gt Advance Network gt Web Server Configure web server settings The HTTP port for the built in web server can be changed with this menu SISO 25 setup e Q 192 168 1 2 setup html w XKS oO oO M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout Configure web server settings Web Server HTTP Port HTTPS Port HTTP Port The TCP port used for HTTP communications web browser xml get commands with X 600M is specified here The default setting for this field is 80 which is the standard HTTP port It is recommended that the port be left unchanged unless the user has an understanding of TCP IP and ports For more information on TCP ports and IP addressing see Appendix C Accessing X 600M Remotely Over the
50. o D 192 168 1 2 setup htm X6o0ooM CONTROLBYWEB A 192 168 1 2 popup php f 2 Relay Slave Add 1 0 Showing 1 to 2 of 2 entries 4 Edit Dashboards Add Checked 1 0 I O List I O Type 1 0 Description Relay 1 AUTO_GENERATE Relay 2 AUTO_GENERATE X600M create device widget Add I O found on 2 Relay Slave 0000004f Please see below the list for a description of each field O Name AUTO_GENERATE AUTO_GENERATE Select All Device I O This shows the type and reference number of each input and output on the device Deselect All Select E v vw F E E I O Description Text can be entered here to identify the I O in a format that is easy to understand and recognize It can include spaces and the maximum number of characters is 60 If nothing is entered a description will be automatically generated I O Name This is a unique name given to each I O This name is used to reference the I O when writing scripts This name must start with an alphabetic not a number character and cannot include spaces The name can be up to 20 characters long If nothing is entered a name will automatically be generated Select Each I O that is selected checked will be added to the X 600M database and can then be used by the X 600M For optimal performance it is recommended that only I O which will be used be selected Note that I O can be added and deleted at anytime under the I O tab Status Ready St
51. offers faster communications but the amount of data to and from the X 600M is so small that users will not likely notice much if any difference between that and 10 Mbps The default setting for this field is 100 Mbps Mode This option allows the Ethernet port to be set to Half Duplex or Full Duplex Legacy Ethernet operates in Half Duplex mode which means that devices can either send data or receive data but not both at the same time Full Duplex means that devices can send and receive data at the same time The default setting for this field is Full Duplex Network gt Wireless Configure wireless adapter These settings are used to configure the X 600M for operation with a wireless network The X 600M supports both Ad Hoc and Access Point connections For wireless networking a USB network adapter Is required With an Ad Hoc connection users can access the X 600M directly using a smart phone or other compatible WiFi enabled devices The network does not rely on a pre existing infrastructure such as routers or access points The devices are free to associate with any other ad hoc network device in link range To configure an Ad Hoc wireless network select W Ad Hoc from the drop down menu and enter a security key for the network The security key must be exactly 10 hexadecimal characters 6 0 zsetup Q 192 168 1 2 setup htm x Z XL6O0OO Mi Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout
52. or time intervals Use Calendar Events to unlock a door at a specific time in the morning or to turn off equipment during the night Calendar Events can trigger Actions which turn Relays On or Off at specific times send emails etc You must define an Action to determine what specific effect the Calendar Event will have A Calendar Event can trigger one or more Actions and can occur at one specific time or can repeat multiple times Calendar Events are scheduled based on 24 hour time format The Calendar Events menu tab presents a list of the current Calendar Events A list of all scheduled events and information about each event is displayed one row at a time Clicking the button Switch View changes the display to show the currently configured events on an actual calendar 09 x setup i Fy amp D 192 168 1 2 setup html XLG6OO eA Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout P System ap Control Logic Calendar Events Add edit and delete Calendar Events Calendar Events are used to trigger an action at specific time s For example a relay can be turned on every morning at 6 00AM First create events and then create actions based on those events To create actions see the Actions page ich View Calendar Event Li Switch View Event Name Event Description Repeat Conditional Events No Calendar Events have been configured Add New Event Calendar Events Showing 0 0 of 0
53. pages before you commit changes If you click on Abandon Changes all changes in the temporary database will be deleted all changes made since the last time changes were Control Logic committed ing When Dashboard and O Password Protection is disabled default no password is necessary to access dashboards or I O H Edit Dashboards Device Information Part Number X 600M Firmware Version 0 27 View Dashboards Serial Number 00 0c c8 00 00 75 System Time August 26 2014 11 41 11 am Up Time 9 min 52 sec Internal Temperature 92 12 F Vin 12 0V 5 0 5 0V 43 3 3 3 V CPU Usage 10 0 Memory Usage 39 5 Internal Storage 7 3M 156 7M External Storage 27 8M 14 9G Eject Dashboard and I O Enabled Disabled Password Protection Temperature Units Fahrenheit C Celsius Submit Reset Status Ready For product support go to www ControlByWeb com Xytronix Research amp Design Inc Xytronix Research amp Design Inc Page 31 Setup Pages X 600M Users Manual 4 1 1 System gt Access Groups Edit access groups This menu and its tab are only displayed if Dashboard Password Protection in the System gt Overview page is set to Enabled Users I O and dashboards are assigned to one or more Access Groups Users can only access I O and dashboards that belong to the same group that they do Only users that belong to the admin Access Group are allowed to configure the X 600M settings Only I O that bel
54. presence of any ControlByWeb Ethernet devices on the same sub net and also for of any expansion modules connected to the X 600M via the ribbon cable connector It can also automatically create a dashboard web page and populate it with all of the resources components supported by the Ethernet devices and expansion modules To quickly add a device do the following Click on the Devices menu tab to pull up the Devices Overview page Then click on the Find New Devices button to scan the expansion bus and the local network for ControlByWeb devices and expansion modules B M OO gesetup x Vi O 192 168 1 2 setup htm Welcome Administrator gt x lt 600M Commit Changes Abandon Changes Logout CONTROLBYWEB E Devices Add edit and delete devices that are attached to the X 600M either through the expansion bus or through the Ethernet network Devices must be added before setting up any I O Logic or Dashboards Devices Note The Find New Device button resets all the devices attached to the expansion bus This will turn off any relays and outputs on these devices Network gt lt 0 Device List a Control Logic Find New Devices gt Desc ress Add New Device sane on Add Port Model Serial Number Status m Edit Dashboards device1 X600M master unit n a X 600M 00 0c c8 00 00 00 elie Showing 1 1 of 1 Devices H View Dashboards Xytronix Research amp Design Inc Status
55. registerl lt td gt lt td gt lt span id registerl1 gt lt span gt Sreg gt units registerl1 lt input type button value 0ON onclwvck req set registeri Ly callback gt lt input type pu tton yalue PULSE onel ck r eg pulse regusterl 5 callback gt lt input type button value TOGGLE onclick reg toggle registerl Callback gt lt td gt lt tr gt lt tbody gt lt tfoot gt lt tr gt lt td class rounded foot left gt X 600M I 0 lt td gt lt td class rounded foot right gt lt td gt lt a lt tfoot gt lt table gt sL LAINS LSO IPEF S document ready function update the IO fields using data from widgetlState json every 3 seconds current Page refreshiIOFfields widgetlState son 3 content hb Function callback result 4 Var Str result Subserang 2 alert str LI Scrape The key to updating I O using the X 600M helper library is the function refreshlOFields that belongs to the currentPage class This function takes 3 parameters Filename xml json file to get I O states from In this example we use widget1State json XML JSON files are generate for any widgets found on the dashboard pages For this example we created a simple widget on the main dashboard with owSensor1 and register in order to get widget State json This will need to be done for any I O that are to be updated in the custom web pages Alternativel
56. requesting the syslog txt file or going to the System gt System Log tab For example using the default IP address the following command would be used http 192 168 1 2 syslog txt Note The setup user name and password are required to access this file If the TCP port has been changed not port 80 the port will be required to read the file For example using the default IP address and port 8000 the log file would be read as follows Hetty 7 197 168 142 280007 syslog wtxe To erase the file use http 192 168 1 2 syslog txt erase 1 Xytronix Research amp Design Inc Page 113 Appendix E External Server and Remote Services X 600M Users Manual Appendix E External Server and Remote Services Note The following methods are supported by the X 600M however Xytronix Research amp Design Inc does not provide or support custom third party applications or external web servers Accessing X 600M with Custom Software or Third Party Applications Custom applications can send commands to the X 600M for monitoring and control functions using XML or JSON files See Section 6 XML JSON Operation for more information The application interface can be used to provide a custom user interface access to multiple units in a single screen and allow for automation logging and other application specific features Using an External Web Server Rather than accessing the X 600M directly from a computer an external web server ca
57. setup html x lt 600 Mi Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout j O Registers Add edit and delete Registers Registers can be used as a place to enter and store numeric values For example a temperature alarm set point could be stored in a register Users could then change the alarm set point by changing the register value from a dashboard See users manual for details Register List Add New Register Overview mo A Register Name Register Description Units Initial Value Expression Type No Registers have been configured Relays Digital Inputs Showing 0 0 of 0 Registers 1 Wire Sensors Frequency Inputs Counters Supply Voltages Thermocouples Input High Times Input On Times Registers Page 62 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 8 Setup amp 5 192 168 1 2 setup htm gt x lt 600M CONTROLBYW EB lt paa Register Configuration Devices 192 168 1 2 popup php R Register Overview Name register1 Type Constant Relays Description Digital Inputs S Units 4 Wire Sensors Decimal Places F Initial Value 0 Frequency Inputs Access Groups admin users Counters group2 cbw Supply Voltages Add Close Thermocouples Input High Times Input On Times Registers f Control Logic Welcome Administrator 3s Abandon Changes Logout tm set point
58. the first log file hetoi 71927108B 1 2 7 1ogl txt File Format MM DD YYYY HH MM SS I O 1 I O 2 I O 3 Date and Time Format MM Month 1 12 DD Day 1 31 YYYY Year 1970 2106 HH Hour in 24 hour time 0 23 MM Minutes 0 59 SS Seconds 0 59 Sample File Date Time owSensorl relayl relay2 O17 3072012 10e30500 60 570 1 O77 2072012 Lis 002007 21 5 54 O77207 201A TI s0200 61 570 0 077 3072012 12300 200 01 0 L20 OT Fs07 2002 12ra 000 Ay 0773072012 13 00700 853 5 1y1 The file can then be saved using the Save As option under the File menu of the web browser If the TCP port has been changed not port 80 the port will be required to read the file For example using the default IP address and port 8000 the log file would be read as follows keco 7192 1 68s 280000 Log ls Ext The log1 txt file may be erased with the following command http 192 168 1 2 logl txt erase l After erasing the file it might be necessary to refresh the page Page 112 Xytronix Research amp Design Inc X 600M Users Manual Appendix D Log Files System Log File syslog txt The syslog file records various system events which can be used for diagnostics and troubleshooting purposes File Format Month DD HH MM SS message Sample File Jun o leas a6 720 NERS System time 152 seconds Off Updating Jun 5 1 6 245 04 770 Device Power Up This file is read by
59. the network The yellow 10 100 speed LED is illuminated when the network speed is 100Mbps Normally when two ports of the same configuration MDI to MDI or MDI X to MDI X are connected an Ethernet crossover cable is needed to cross the transmit and receive signals in the cable With the X 600M both Ethernet connectors support Auto MDI X which automatically detects the required cable connection type and configures the connection appropriately The X 600M can be connected to either a hub switch or a computer with a straight thru connector There is no need for a special crossover cable when making connections directly to a computer I O Connector A 5 position plug in screw terminal connector is used to provide power to the module and connections for external 1 wire temperature humidity sensors Expansion Bus Connector A ribbon cable expansion bus connector allows a family of add on modules to be connected directly to the X 600M without the need for an Ethernet switch The ribbon cable provides both communication and power connections to the expansion modules The cable can be a daisy chain with multiple connectors USB Host Connector Type A The USB2 0 Host controller allows connectivity with industry standard computer peripherals The X 600M has support for USB flash memory drives and WIFI adapters USB Device Connector mini B The USB Device connector is primarily used for firmware upgrades Power Indicator The green Power LED
60. thermocouple module Type K 200 C to 1250 C X 13s K thermocouple not included X 15s 8 Channel input module optically isolated X 15s X 16s Analog module 8 channel 0 5V 24 bit single or differential X 16s inputs 5V reference output Accessories Expansion Cable 10 conductor ribbon cable with connectors EXPCBL X 1 32 positions 2 5 inches between connectors where X 1 32 For example EXPCBL 17 for 1 expansion module cable with 2 connectors EXPCBL 2 for 2 expansion modules cable with 3 connectors EXPCBL 3 for 3 expansion modules cable with 4 connectors Power Injector Optional connector module for supplying external power to the expansion bus ribbon cable X PINJECT Xytronix Research amp Design Inc Page 11 Installation and Wiring X 600M Users Manual Section 2 Installation and Wiring 2 1 Installation consists of mounting the X 600M connecting it to an Ethernet network and providing power The setup is completed by using the web browser to configure the web pages inputs and outputs for your specific needs Installation Guidelines e This unit must be installed by qualified personnel e This unit must not be installed in unprotected outdoor locations e 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 e This unit must not be used in any way where its function or failu
61. to provide the exact logic and control needed for an application Lua scripts essentially remove any limitations as to what the X 600M can do The following section provides details about how the Lua scripting language is used with the X 600M The Lua Reference Manual can be found at www ControlByWeb com x600m downloads html The X 600M has an embedded Lua interpreter version 5 2 built into it Almost all the functionality of a generic Lua interpreter can be found in the X 600M The only functionality that has been removed from the Lua interpreter in the X 600M are things that would directly affect the security of the operating system or pose a threat of resource misuse that would cause the X 600M to have an undefined behavior The following libraries are usable from a Lua script running on the X 600M the base library table library string library bit32 library and math library Be aware that Lua expressions that are written for Registers Conditional Events and Actions are event driven and have a limit on the number of Lua opcodes that will be executed This prevents the X 600M from hanging when Lua expressions are written with infinite loops and improves performance as these expressions are only run when an event triggers them to do so These events are generally a change in state of an I O that the expression is dependent on or in the case of Actions a change in state of the event that the action depends on The X 600M also supports non e
62. type text css href example css gt lt script src javascript jquery 1 10 1 min js gt lt script gt lt script src javascript x600m js gt lt script gt 11 lt head gt 12 lt body gt 13 lt div id content gt 16 Status Ready lt p gt Test Add Update Delete actions in database lt p gt lt p gt Welcome user gt name lt p gt lt table class rounded table style width 1000px gt lt thead gt lt tr gt lt th class rounded head left gt Action Name lt th gt lt th class rounded head center gt Action Desc lt th gt lt th class rounded head center gt ID lt th gt lt th class rounded head center gt Event Source ID lt th gt lt th class rounded head center gt Type lt th gt lt th class rounded head center gt Expression lt th gt gth clasee ronunded headericht gt Nntians lt th gt Update Cancel pmmit Changes Welcome Administrator Abandon Changes Logout Choose Files No file chosen Edit Edit Edit Edit Edit Edit Edit Edit Edit Edit Edit Download Delete Download Delete Download Delete Download Delete Download Delete Download Delete Download Delete Download Delete Download Delete Download Delete Download Delete Previous Next b To download a file from the X 600M to your PC click a file s Download button and then Save File To upload a file s from your PC to the X 600M click Browse Choose Files select the file s to u
63. 1 3 879 000 sie 1 406 USE 8 PAN HEAD SCREWS Xytronix Research amp Design Inc Page 141
64. 108 Xytronix Research amp Design Inc X 600M Users Manual Appendix C Accessing X 600M Over the Internet Ethernet Switch Computer Simple Local Area Network A Simple LAN connected to the Internet The LAN in the example above can be connected to the Internet by adding a router and an Internet connection The router has two network connections It has an Ethernet network connection to the LAN and another connection to the Internet Often the Internet connection is called a Wide Area Network WAN connection Each network connection on the router has an IP address In our example the IP address on the LAN side of the router has an address of 192 168 1 1 The IP address on the WAN side of the router has an IP address that has been assigned by the Internet Service Provider such as 266 70 164 97 This is not a valid IP address because each number cannot be larger than 255 It is used in this example for illustration purposes only X 600M gt lt 600m WebRelay Internet KoE Router Ethernet Switch Computer LAN Connected to the Internet In this example when a user on the computer needs to access a server on the Internet the computer sends the request to the router at 192 168 1 1 and the router sends the request to the ISP server on the Internet The ISP server does not send the response directly to the computer on the LAN but to the router at the IP address of 266 70 164 97 The
65. 11 Appendix D Log Files X 600M Users Manual Appendix D Log Files The X 600M logs general I O data in up to five different log files System information is logged to a special log file that can be viewed on the System gt System Log menu tab Log files are text files and are stored in nonvolatile memory this data will not be lost due to power failure The log files are stored in circular buffers which write from the beginning of the allocated memory space to the end and then repeat from the beginning over writing the original data Log files can be saved internally on the X 600M s internal flash memory or it can be saved externally on an attached USB storage drive When log files are saved internally they grow until they hit the max log file size of 20MB and then begin to over write the oldest data When log files are stored on an external drive the file size is limited by the size of the external storage device Data Log Files Log files are user configurable under the Logging menu tab and they store real world data such as temperatures and events e g relay state changes See Section 2 4 6 Logging menu tab for more information Inputs relays counters vin and sensors will only be logged to a log file if they are selected for that log file in the Logging menu tab The files are read by requesting the log1 txt log2 txt etc from the X 600M For example using the default IP address the following command is used to request
66. 28 Xytronix Research amp Design Inc X 600M Users Manual Appendix H Custom Web Pages untilType eventName untilType Does event stop after a certain number of events or at a certain date time or never dtUntil eventName dtUntil Get the date time when the event stops forever user name name Get the name of the user that is viewing the page email email Get the email address of the user that is viewing the page hasAccess accessMask n a Check to see if the user viewing the page belongs to an access group found in accessMask Return 1 if they do O if not db setAccess accessMask Limit access to the settings database by specifying the access groups that should have access to it JavaScript Helper Library The template engine is a very powerful tool for creating dynamic content in custom web pages The one thing the template engine cannot do is continuously update the web page as the state of the I O change To achieve this we use AJAX Asynchronous JavaScript and XML This can be done by creating your own JavaScript library to request XML files from the X 600M and then update the I O states in the web page Alternatively the X 600M has a built in library for handling such things This JavaScript library can be included in custom pages and used to update the I O Just like the template engine the X 600M JavaScript library contains a set of classes that can
67. 3 lt owSensorl gt lt time gt 08 27 2014 11 05 45 lt time gt lt datavalues gt Request hietp 7 192 168 1 2 7 state json Returns owSensor1 90 3 time 08 27 2014 11205245 6 2 XML JSON Control Commands can be sent to the X 600M to control the I O and set the state of internal registers Whether or not the commands will function depend on the global security settings of the X 600M and the access group settings of the user attempting to control the I O If the global Dashboard and I O Password Protection is disabled then all the I O can be controlled by any user If the global Dashboard and I O Xytronix Research amp Design Inc Page 101 XML JSON Operation X 600M Users Manual Password Protection is enabled then the control access depends on how the user has authenticated himself If the http basic authentication is used to request state xml and control I O on the X 600M then only those I O that belong to the access group cbw can actually be changed All other I O will remain in their current states regardless of the commands sent to change them For example if a user John uses http basic authentication to access state xml and relay 2 and 4 belong to the special access group cbw then John can controll relays 2 and 4 John cannot control relays 1 and 3 If the user logs in using the X 600M secure login screen then that user can control I O if those I O belong to at least one of the access
68. 31 Every Year This option will disable the event instance every year on August 31 for the entire day This is useful for holidays that occur on a day of the month every year New Year s Day for example occurs on January 15t Disabled Event 5 Sunday in August Every Year This option will disable the event instance every year on the 5 Sunday in August if it exists This is useful for holidays that occur on a day of the week as opposed to a day of the month The US holiday Labor Day for example occurs on the first Monday in September Disable Event Group 2 August 31 2014 This option will disable event group 2 on August 31 2014 for the entire day Any other event belonging to event group 2 colored red will also be disabled on this day Note that only the event instance that disables the event group will show up as a lighter color red Xytronix Research amp Design Inc Page 71 Setup Pages X 600M Users Manual Disable Event Group 2 August 31 Every Year This option will disable event group 2 every year on August 31 for the entire day This is useful for holidays that occur on a day of the month every year New Year s Day for example occurs on January 1 Any other event belonging to event group 2 colored red will also be disabled on this day Note that only the event instance that disables the event group will show up as a lighter color red Disable Event Group 2 5 Sunday in August Every Year This op
69. 5 Name Names are short identifiers 20 character max that are used in Lua scripts to reference I O They may not contain spaces or special characters and must begin with a lowercase letter Description The text in this field 60 character max appears to the left of the I O component on the Dashboard This text also appears in the Email status message when email are sent Decimal Places This determines the number of digits displayed to the right of the decimal point for this I O s data in the Dashboard and in Emails For example if the resolution of a temperature sensor is 0 1C you would want to set Decimal Places 1 This field is only available for analog I Os Power Up Mode This setting is only available for devices with relays and for WebSwitch outlets This setting determines the initial state of relays when the X 600M first turns on The options are Off On and Last State Off and On are self explanatory the Last State option allows the relay to be set to the state it was in before it lost power This option is available for up to 40 relays Access Groups This determines to which access groups this I O belongs Only users who belong to the same access group will have access to the I O when Dashboard and I O Password Protection is enabled 4 4 1 I O gt 1 Wire Sensors Add edit and delete 1 wire sensors 1 Wire temperature and humidity sensors can be connected directly to the X 600M s connector terminals and ca
70. 5 3 6 Write Multiple Registers Modbus Function Code 16 0X10 cccccccsseeceeeeeeeseeeeseeeeeaeeeeeaeeeeeaees 99 Section 6 XML JSON Operation iiss vcsiecasnscadcnadaedccesseeiawacivaticsacssaaciaacaressnussvepencsveiwasteubivesstenaveaventvacsvesaiusnausain 100 6 1 AMLIISON MONON icca a Ades Noe a ieiceeseatuetiineoedeue 100 OZ AMIS ISON CG OM Ol acess cs ocd a a ee etic fis A tes esabe case ee eee 101 Section 7 Email Notificaties eonia daonarn aeea aa eaa aa ceouaecsntecieceeevescevecsveneecbestecedsetseveest 103 Page 2 Xytronix Research amp Design Inc X 600M Users Manual 721 JE Mall NOME CatlOMeaiccinsocraiiceaaete tinct endothtil a e aa rae aa a AE aa 103 Te Email NOUGAT ON SOLUD rrian a ie avcduteunl mang a 103 Appendix A Restoring Factory Default SettingS c ceccceeseeeeseeeeeeeseeeeeseseeeseeeaneeseeaeeseeneeseeneseeesessaenensnnes 105 Appendix B Installing New Firmwate ccscccsscssseeeeeeeeeeeeeeeneeeneseneeeaeeeeeeeneee eee eeaaesaeseaeseaeseassensesaeaenesaas 106 Appendix C Accessing X 600M Over the Internet cccccceceeeeeeeecenecceneeceeeesaeeeaaeeeaaeseenseseaeesaneseaeeseansaes 108 PDDENGIXD LOG FICS roeien eiaa EE rE 112 Appendix E External Server and Remote ServiCes ccccsccssscceeecensceneceneeeneeeneeeneeeneeeneeeeeseaeeeeseeeseeeesoes 114 Appendix F SNMP Requests Objects and Se CuUrity cccccccceceseeeceeeceeeeeceeeeeeeeeaaeeseaese
71. 5022 Emissions 2010 Product Safety Compliance UL 61010 1 Electrical Equipment for Measurement Control and Laboratory Use CE LISTED PROCESS CONTROL EQUIPMENT E468316 Page 136 Xytronix Research amp Design Inc X 600M Users Manual Appendix J Trademark and Copyright Information Appendix J Trademark and Copyright Information This document is Copyright 2014 by Xytronix Research amp Design Inc All rights reserved X 600M WebRelay ControlIByWeb and Xytronix Research amp Design are trademarks of Xytronix Research amp Design Inc 2005 2014 All other trademarks are the property of their respective owners All parts of this product and design including but not limited to firmware hardware design schematics PCB layout concept graphics users manual etc are property of Xytronix Research amp Design Inc 2005 2014 X 600M may not be opened disassembled 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 amp Design Inc assumes no responsibility for any errors that may appear in this document Whereas reasonable effort has been made to make the information in this document as useful and accurate as possible Xytronix Research amp Design Inc assumes no res
72. 600M day s Close Fri _ A O O A For product support go to www ControlBy Web com Status Ready 2 Setup x S D 192 168 1 2 setup htm X60ooM CONTROLBYWEB D 192 168 1 2 popup php f System 2 Network sagi Event Configuration Edit Event 4 gt Event Name calEvent1 j Description Conditional Events Event Group eventGroup1 4 Calendar Events Start Stop 06 01 2014 to 06 01 2014 amp All Day Actions Repeat Daily every 1 Ends Never ipt hii After 0 occurances E Logging On 06 01 2014 12 00pm H Edit Dashboards l a H View Dashboards I Status Ready Status Ready This is the name of the calendar event w Welcome Administrator turned on every morning month j week Sat 6 13 20 27 ips Abandon Changes Logout day 14 21 28 Xytronix Research amp Design Inc Xytronix Research amp Design Inc Page 69 Setup Pages X 600M Users Manual Description This is a simple description of the conditional event for documentation purposes Event Group Events can be grouped together Select here which event group this event should belong to Event groups can be Enabled and Disabled When an event group is disabled all events belong to that group will stop being evaluated until the event group is enabled again Start Stop These settings control when a calendar event is to start and stop If All Day is che
73. 600M Users Manual Appendix M Licensing The software included in this product contains copyrighted software that is licensed under both the GPL and LGPL A copy of these licenses can be found on the X 600M s internal web page opensource html You may obtain the corresponding source code from us for a period of three years after our last shipment of this product by going to www ControlByWeb com opensource linux Additionally you may obtain a CD R of our modifications by sending a written request to Xytronix Research amp Design Inc 1681 West 2960 South Nibley Utah 84321 USA Attention Customer Service GNU Linux Source Code Request You will be charged 15 shipping as allowed by the GPL version 2 Contact us for shipping costs and payment information The software included in this product also contains copyrighted software that is licensed under various permissive free software licenses Here is a brief list of those software packages A complete listing with licenses can be found on the X 600M s internal web page opensource html Lua Copyright 1994 2014 Lua org PUC Rio Rapidxml Copyright 2006 2007 Marcin Kalicinski Agent Copyright Frank Fock 2001 2014 Snmpt Copyright 2001 2013 Jochen Katz Frank Fock Libdes Copyright 1995 1997 Eric Young eay mincom oz au This product includes PHP software freely available from http www php net software Alternative PHP Cache APC 3 1 13 C
74. 600M over the Internet see Appendix C Accessing X 600M Remotely Over the Internet Netmask The Netmask subnet mask defines the size of the local network This can be obtained from the network administrator For additional information about sub netting and IP networking many tutorials are available on the Internet The default setting for this field is 255 255 255 0 Gateway This specifies the IP address of the gateway router This can be obtained from the network administrator The default setting for this field is 192 168 1 1 This filed must be valid for the X 600M to communicate with devices outside the local network Preferred DNS Server The IP address of the Primary DNS server is specified here When DNS services are required this is the address that will be used The default setting for this field is 192 168 1 1 This field is required when any host name settings are fully qualified domain names If IP addresses are used for all host names the DNS server will not be used Alternate DNS Server This field is used to specify the IP address of a Secondary DNS server This is used when the X 600M requires DNS services and the preferred DNS server is not available The default setting for this field is 192 168 1 1 Speed Page 44 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 4 2 2 This option sets the speed of the Ethernet port either 10 Mbps or 100 Mbps The 100 Mbps option
75. AS IDO ANS TaD E E E aE 82 Af Edit Dashboards Add dashboard is ivcscs saute tuatatia tees evureanbatdectanis actus E E aE 82 AZ Edit Dashboards Add Paneles a N E 83 4 723 Edit Dashboards Add Widget nesae ban a a a a aaa 84 4 7 4 Edit Dashboards Add COMPONEN1 ccccseeccceeeeeeeeeeceeeeeeeeeeeseeeeeseeeesseeeessaeeeseneeesaeeeeseeeeeseeeetanss 86 4 8 VIEW Dashboards TaD iviivissccawce i enctitece nuda seas teatcounveudsees lode cbaidanctaevreuhiubcstta dent veueduauadwvesuviuivwatensaviaueiesve 92 Section 5 MOAUDUS ODel ALiON sa aeaa a a O ee 93 5 1 X 600M Function Code SuMmMAary sasssssssenusnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn ennnen mennenm 94 9 2 PEC DEVICe AddresSSihNg ra aeai a a A A aa aa a aE aa aa aE 94 S9 MOGDUS Funcom Godes sone e a E E cee ee teee cea 96 5 3 1 Read Coils Modbus Function Code 01 OX01 ccc ccceccccseeeeeeeeeeseeeeeeeeeeeseeesseeeeeeeeeesseeeeseneeesaes 96 5 3 2 Read Discrete Inputs Modbus Function Code 02 Ox02 ccccccceccecseeeeceeeeeseeeeeeeeeeeaaeeeeaeeeesaees 97 5 3 3 Read Holding Register Modbus Function Code 03 OX03 c ec ceccccseeeeeeeeeeeeeeeeeaeeeeeeeeeesaeeeeeaes 97 5 3 4 Write Single Coil Modbus Function Code 05 OX05 cccccececeeceeeeeeeeeeeseeeeeeeeeeeseeeeeeaeeeeseeeeeeaes 98 5 3 9 Write Multiple Coils Modbus Function Code 15 OXOF cccccececsseeeeeeeeeeeeeeeeeeeeeesseeeeseeeeesseeeees 98
76. B associated with it will change depending on the configuration It is recommended to configure the X 600M in its entirety before attempting to use SNMP to access it Once configured the X 600M can generate an MIB file for use with SNMP management software that contains all of the I Os Registers and Events found on the X 600M To generate an MIB file go to the Network gt Advance Network gt SNMP menu tab and click on the button labeled Generate and Download MIB File The result will be a MIB file downloaded to the local computer called X600M mib Once the X600M mib file is generated load this file into the SNMP management software The I O of the X 600M will fall under the object id 1 3 6 1 4 1 30586 20 iso org dod internet private enterprises xytronix x600m Assuming the SNMP software has been configured correctly to connect to the address assigned to the X 600M and that the security settings have also be configured to match those of the X 600M performing an SNMPWALK operation on this object id will return the current status of all of the I Os Registers and Events that have been configured on the X 600M SECURITY The X 600M supports SNMP version 3 which introduces security enhancements over the previous two versions To configure the type of security to use go the Network gt Advanced Network gt SNMP menu tab You should choose an authentication protocol and privacy protocol that the SNMP management software understands Selecting
77. Calendar Events Actions Scripts To add a new calendar event click Add New Event on the Calendar Event List or in the Calendar View click on the day that the event begins Page 68 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 6 O80 z seup x CG 5 192 168 1 2 setup html X gt x lt 600M CONTROLBYWEB Event Calendar Switch View Conditional Events O u s 2014 4 0 Calendar Events Su Mo Tu We Th Fr Sa PEET e a r Actions el z2 e 9F10 asaz i 13 14 15 16 17 18 19 Scripts 20 21 22 23 24 25 26 L ing 27 28 29 30 31 H View Dashboards amp Event Group 1 amp Event Group 2 Event Group 3 Event Group 4 amp Event Group 5 Event Group 6 3 A gt p 7 Event Group 8 gt today Sun Mon 6 7 13 14 20 21 27 28 For product support go to www ControlBy Web com 15 July 2014 Wed 16 23 Thu 10 17 24 31 Fri Welcome Administrator Commit Changes Abandon Changes Logout Add edit and delete Calendar Events Calendar Events are used to trigger an action at specific time s For example a relay can be turned on every morning at 6 00AM First create events and then create actions based on those events To create actions see the Actions page month j week day 11 18 25 Sat 12 19 Xytronix Research amp Design Inc X
78. Code 1 Byte 0x8F Exception codes 1 Byte 0x01 Function not supported 0x02 Incorrect combination of start address and Relay quantity 0x03 Byte count out of range Page 98 Xytronix Research amp Design Inc X 600M Users Manual Modbus Operation 5 3 6 Write Multiple Registers Modbus Function Code 16 0x10 The Modbus Write Multiple Registers function can be used to set the counter to a specific value pulse relays or set internal registers on the X 600M Request Set Counters The counter value is specified using a 32 bit integer not a floating point number Start Address 2 bytes Ox0000 counter 1 Ox0002 counter 2 Register Quantity 2 bytes Ox0002 0x0004 2 registers for each counter even number Byte Count 1 byte 0x04 0x08 Multiples of 4 Counter Quantity 4 bytes Counter 0x00000000 OxFFFFFFFF Pulse Relay The Modbus Write Multiple Registers function is used to pulse the relay s for a specified time when a relay has been mapped to a holding register address in the holding registers table When X 600M receives this command it immediately turns the appropriate relay s ON if not already on and starts the pulse timer The relay s are selected by writing the pulse time in seconds to the register s associated with the desired relay s The pulse time is specified using floating point format in the register value field and can range from 0 1 seconds to 86400 seconds 1
79. D Service Set Identifier is the name of your access point Security Level Type of authentication used by the access point for connections Security Key If a password i e security key is required to access your wireless access point enter it here Encryption Type Select the data encryption type from the drop down menu This setting must be identical with the setting of wireless access point you wish to connect Use DHCP This option allows DHCP to be enabled or disabled If this option is set to Yes X 600M will attempt to obtain an ip address from the access point each time it is powered The default setting is No this is recommended for most installations If you set DHCP to Yes press Submit and then Commit Changes When Commit Changes is clicked the X 600 will immediately request a new DHCP address from the server Once X 600M is assigned an IP address by the DHCP the new IP address can be found through the list of clients kept by the DHCP server For most instances the DHCP server is the local gateway or router IP Address The IP address must be unique to your wireless network Netmask The Netmask subnet mask defines the size of the local network This can be obtained from the network administrator For additional information about sub netting and IP networking many tutorials are available on the Internet The default setting for this field is 255 255 255 0 Gateway This specifies the IP address of your
80. Description Action Type Event Source Name Conditional Events No Actions have been configured Calendar Events Showing 0 0 of 0 Actions Actions Scripts 8 Setup x ra lt 192 168 1 2 setup html rare X6GO oO M Welcome Administrator CONTROLBYWEB X600M y p Abandon Changes Logout 192 168 1 2 popup ph J System popup php ae Network mJ Action Configuration email message First Edit Action E Devices A Action AWO 4 Name action1 Add New Action Description p Conditional Events l Type Turn Relay On 2 Calendar Events g Event Source SecuritySystem 4 Actions 7 Relay jo relay1 z Scripts Add Close E Logging H Edit Dashboards Name This is a unique user assigned designator for this Action This name appears in the action list Description This is a simple description of what the action does for documentation purposes Type This setting controls what an Action does The selection options include Xytronix Research amp Design Inc Page 73 Setup Pages X 600M Users Manual Action Type Description Turn Relay On Turn relay ON when Event is true otherwise turn relay OFF Turn Relay Off Turn relay OFF when Event is true otherwise turn relay ON Toggle Relay State Toggle change the state of a relay Turn Relay On Latch Relay turns on when the event source changes to true The relay change does not turn back off when event source ch
81. ERATE AUTO_GENERATE Welcome Administrator Commit Changes Abandon Changes Logout Select Add Add Add Add Add Previous Next Xytronix Research amp Design Inc Page 57 Setup Pages X 600M Users Manual 4 4 I O Tab Add edit and delete I O Resources within a device are called I O Input Output An I O object is a specific relay digital input sensor etc For example each of the four relays in a WebRelay Quad are separate I O objects I O objects can be displayed on a web page or accessed with scripts by name I O must be registered in the same manner as devices are registered in order for the X 600M to know how to monitor and control them The I O sub menu automatically updates with the I Os from any registered devices There are currently 12 basic I O types that are found on ControlIByWeb devices These are relays digital inputs analog inputs 1 Wire sensors thermocouples frequency inputs counters AC outlets internal supply voltage input high times input on times and external variables There are 6 application specific I O types there are only available when an X 300 in thermostat mode has been configured under the devices tab These are Cool Relays Heat Relays Fan Relays Indoor Temperatures Indoor Humidities and Outdoor Temperatures Internal registers are another form of I O found on the X 600M These are virtual I O and can be thought of as a scratch pad in memory They can hold
82. F to Centigrade C and assigns it to the register named register1 reg registerl i0 owSensor1 32 5 9 The following Lua expression changes the raw data from an analog I O named analog1 to engineering units with the linear equation Y mX b and places the result in a register named register1 reg registerl io analog1 0 75 5 The following Lua script runs continually This script monitors a counter in several remote ControlIByWeb X 320 modules for activity counter1 counter4 If the counters quit advancing or the communications fail the script sends an Email warning that a production machine has jammed wait for X600 to get current values of counters before starting sleep 10000 initialize previous counter values prevCountl io counterl prevCount2 io counter2 prevCount3 io counter3 prevCount4 io counter4 warningFlag indicates if an email needs to be sent warningFlag 0 prevent sending multiple emails Make flag a register so it can be reset from the dashboard This register is configured under the register tab and named emailSent reg emailSent false define the email to send emailDef ropt drp admin subj WARNING Production machine has jammed body Production machine needs attention loop forever while true do wait 10 seconds before checking counters sleep 10000 check to see if the counters have changed if prevCount
83. Fan Relay 1 On 70 0 Fan Mode Heat Relay 1 Outdoor On Auto Cool Relay 1 On 73 6 F v Hold Rst Fitr Change filter in 40 days oie So Once you have created a Widget click on its title bar and drag it to re arrange its position Click the Edit icon in the widget title bar to edit the widget Click on the Trash icon to delete the widget along with all of its components 4 7 4 Edit Dashboards Add Component Components are located within Widgets Components are graphical elements such as buttons sliders and readouts for controlling and displaying I O These make the web page intuitive and easy to use Click the Add icon on the panel title bar to add a new Component to the Widget Use the pull down menu to select from six different Component types Components which have no compatible resource in the database are grayed out and cannot be selected For example if no relays or digital devices have been registered in the database the On Off component will be grayed out Once you have created a Component click inside the Component frame and drag it to re arrange the position as desired 8 Setup gt O 192 168 1 2 setup html SAEF l X 0 192 166 1 2 popup php Welcome Administrator X6o0oo0oM CONTROLBYWEB Pommit Changes Abandon Changes Logout Dashboards Edit Pa System Add Component Use the pull down menu to select from six different Component types Components which have no
84. Humidity Sensor Connections The X 600M can communicate with external digital temperature or humidity sensors for monitoring environmental conditions The 1 Wire data bus allows up to 32 temperature sensors to share the same terminals Together with power and ground the 1 wire bus requires three connections 5V Ground Data Every sensor on the 1 Wire bus is assigned a unique serial number when it is manufactured That number is used to address the device during communication The sensors have three wires as shown in the table below Sensor Wire Color Connection Red 5V Out Black Gnd Tanaro 8 8 lt lt CS Blue White Yellow Data Multiple sensors can be connected in two ways Directly connected star topology or daisy chained linear topology as shown below A linear daisy chain topology minimizes signal reflections providing a more reliable connection and will allow longer cable length than a star topology Appropriate strain relief should be used at the X 600M and other connections that may be subjected to vibration movement or repeated handling Many factors determine the maximum length of the cable Some of these include but are not limited to the type of cable used the number of sensors ambient electromagnetic noise and or sensor network topology Combined cable lengths to all sensors of 600 ft using Cat 5e cable have been successful however due to the uniqueness of installatio
85. Internet HTTPS Port The TCP port used for HTTPS communications Hypertext Transfer Protocol Secure The default setting for this field is 443 4 2 3 2 Network gt Advanced Network gt Modbus Configure Modbus settings The X 600M can support Modbus TCP as a slave device Modbus is a messaging structure protocol used in industrial manufacturing control and automation It is an open protocol and offers interoperability with software and devices from other manufacturers With Modbus TCP a Programmable Logic Controller PLC or other Modbus master can control and monitor the X 600M and all of the devices logically or physically attached to the X 600M For more information on Modbus see Section 5 Modbus Operation Xytronix Research amp Design Inc Page 47 Setup Pages X 600M Users Manual MABI 36 cotup e C 192 168 1 2 setup html so x lt 600 M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout amp System M Advanced Network Modbus Setup Network Configure modbus settings Modbus Settings Enabled Yes No Port 502 Endianness Little OBig Submit Reset Modbus Address Tables Holding Registers Coils Discrete Inputs Address Mapped I O Register Address Mapped I O Register Address Maped 1 0 Event 0000 Click to Assign 0000 Click to Assign 0000 Click to Assign 0002 0001 0001 0004 0002 0002 0006 0003 0003 0008 0004 0004 0010 0005 0005 NetBIOS
86. Log List Name log P s Location Internal Storage Add New Log f Control Logic Log Name Start Time 07 01 2014 12 00pm Showing 0 0 Log File Contents System I O and Registers Logged I O and Registers m Edit Dashboards io analog1 io analog2 io analog3 io analog4 io analogS io analog6 gt gt H View Dashboards jo analog7 io analog8 io counter1 io frequency1 io highTime1 io inputl io input2 lt lt io input3 io input4 in inners FTP Upload Interval Disabled FTP Path Filename x600m log1 txt Add Close Status Ready Status Ready For product support go to www ControlBy Web com Xytronix Research amp Design Inc Name This is the file name to be used for the logged data Description This is a simple description of the data log for documentation purposes The text is not stored in the log file Start Time If a logging interval is specified periodic logging rather than event logging logging will occur relative to this start time For example if the start time is 1 00AM and the logging rate is 6 hours logging will occur at 1 00AM 7 00AM 1 00PM and 7 00PM Start time is specified in a standard time format Log Interval This field is used to specify the logging interval A numerical value is entered into the text field and the interval is selected using the pull down menu The range of values in this field is 1 20864 Time units are Minutes Hours and Days Periodic logging ca
87. Name Log Description indeed State No Log Files have been configured m Edit Dashboards Showing 0 0 of 0 Log Configurations 4 View Dashboards X 600M can be configured to record data such as changes in I O state sensor data and events Both periodic and event based logging are also supported The contents of a log file can be viewed by clicking on the link under Log Name For more information on logging see Appendix D Log Files Logs are viewed as a CSV Comma Separated Variable file Note Changing the log settings will erase the current log file Note This option controls data logging but not system logging System logging is always enabled To create a new data log file click the Add New Log icon The editor shown below will appear Any existing log configurations can be viewed or edited by clicking its Edit icon Xytronix Research amp Design Inc Page 79 Setup Pages X 600M Users Manual 9 Setup x X600M C d 192 168 1 2 setup html _ 192 168 1 2 popup php gt lt 600M Log Configuration Welcome Administrator CONTROLBYWEB N ri Create and edit log file configuration Specify log interval times here for periodic logging or setup event logging by Zommit Changes Abandon Changes Logout creating Events and logging Actions under the Control Logic tab S Loggil Note The internal log file is erased after uploading it to an FTP server Network Add ed Log E Devices
88. New Device button 00 x setup Wt Fx e C 192 168 1 2 setup html x lt 6O oO M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout f System l Devices Network Add edit and delete devices that are attached to the X 600M either through the expansion bus or through the Ethernet network Devices must be added before setting up any 1 0 Logic or Dashboards Note The Find New Device button resets all the devices attached to the expansion bus This will turn off any relays and outputs on these devices gt 3 Device List Find New Devices 1 Control Logic g Naw Day l Add New Device Logging i Name Description Address Port Model Serial Number Status H Edit Dashboards device X 600M master unit n a X 600M 00 0c c8 00 00 00 lt 1ms device2 8 Input Slave 1 n a X 15S 00000001 Identify Edit Delete device3 2 Relay Slave 2 n a X 11S 0000004f Identify Edit Delete View Dashboards device4 8 Relay Slave 3 n a X 12S 00000020 Identify Edit Delete device5 Thermocouple Type K Slave 4 n a X 13S K 0000005c Identify Edit Delete device6 Analog Slave 5 n a X 16S 0000006e Identify Edit Delete Showing 1 6 of 6 Devices Status Ready For product support go to www ControlByWeb com Xytronix Research amp Design Inc The editor shown below will appear The settings for existing devices can be viewed or edited by clicking the appropriate Edit icon Use this editor to add both Ethernet enabled ControlBy
89. O Inputs amp Outputs Devices have inputs and outputs Before the inputs and outputs can be monitored or controlled they must be entered into the X 600M s database This is done with the I O tab You add I O objects to the I O list one by one To add an I O click on the I O tab in the left hand menu to see a list of all available I O types based on the devices that have already been configured in step 2 Select the I O type to add and click Add New I O to add an instance of that I O A popup window will then appear where the I O can be specified and a name and description can be assigned to the I O Normally you enter a user friendly name and description for each I O object For example you might name one relay of a WebRelay Quad circuitA1 with a description of Loading Dock Lights When complete the I O menu tab will show a list of all the I O objects you wish to monitor or control Add Conditional Events Conditional Events occur when certain criteria are met such as a temperature reaching a certain value The conditions which generate an event can be both simple and complex If you are simply monitoring inputs and controlling outputs with a web page you can skip this step Add Actions Conditional Events in turn trigger Actions An Action can include sending an Email turning a relay on or off or initiating a data log Of importance an Event can trigger more than one Action For example a Conditional Event could occur when the tem
90. O will appear Select the temperature sensor and click Submit Now the Modbus master can access the value of the temperature sensor by reading Holding Register 0010 Similarly relays and outputs can be mapped to coils by adding them to the Coils table and digital inputs can be mapped to discrete inputs by adding them to the Discrete Inputs table 4 2 3 3 Network gt Advanced Network gt Remote Services Server Configure remote services server This is a new feature available with the X 600M This feature is sometimes referred to as web services and allows other ControlByWeb devices to initiate a connection to the X 600M instead of the other way around Once connected the X 600M can communicate with these devices just as if it had established the connection The benefit of this method of communication is that the remote ControlByWeb devices can bypass firewalls without any extra configuration of the local network This also eliminates the need Page 48 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages for port forwarding to be set up to allow access to the remote ControlByWeb device Other ControlByWeb devices can be configured to connect to the X 600M using remote services through the Advanced Network tab on that device The Server Name IP Address should be that of the X 600M the Server Port should be the Remote Services port set on the X 600M and the connection string should be of the format 00 0C C8
91. Orange White gt cs 5V Dala Blue White lt Data Gnd Green White esa gt Gnd Brown White gt 55 Figure 1 1 Wire Connections With CAT 5 Cable Page 16 Xytronix Research amp Design Inc X 600M Users Manual Installation and Wiring 2 3 7 Network Connection Connect the Ethernet port to a 10 Base T or 10 100 Base T Ethernet connection Typically an Ethernet hub switch or router For configuration the X 600M may be temporarily connected directly to the Ethernet port on a computer by using a standard Ethernet cable crossover cable not necessary The X 600M can be used on a wireless network by making a connection through an Ethernet bridge or a wireless router The X 600M also works with an 802 11b g n USB wireless adapter see section 3 2 for supported wireless USB adapters Note The wireless Ethernet bridge or router must be properly configured for the wireless network Refer to the installation instructions for the wireless device gt Y USB WiFi Adapter Wireless Ethernet Bridge or Router INDUSTRIAL I O WEB SERVER 2 3 8 External USB Flash Drive An external USB flash memory drive can be plugged into the USB socket for data logging and other applications The USB flash memory drive must be formatted with a FAT32 file system architecture Drives with NTFS New Technology File System or EXT2 4 will NOT work The X 600M only accesses the 1 primary file partition Be aware that
92. Remote Services will be enabled as soon as settings are committed Once enabled the X 600M will immediately attempt to make a connection with the remote server power cycle not required Once a connection is established the connection will remain until it is disconnected by the remote server Proper connection with the remote server can be verified by viewing the system status log file see Appendix D Log Files The default setting for this field is No Most users should leave this setting at its default See Appendix E External Server and Remote Services for more information Host Name Specify the name or IP address of the Remote Services server here If the IP address is specified enter it in this format aaa bbb ccc ddd For numbers that are less than 100 preceding zeros should not be included for example enter 80 rather than 080 This field can be up to 40 characters long and has no default setting Remote Port Enter the TCP port used for the Remote Services server This can be set within the range of 0 65535 The default setting for this field is 8000 Connection String This text is sent to the Remote Services server when the connection is established This string should include any information required by the server at connection For example it may include an ID number customer number password etc The format is entirely dependent upon the server requirements This field can be up to 80 characters long The default t
93. The 3 users in the Admin access group Mark John and Sara have access to any relay also found in the Admin group relay 1 relay 2 relay 3 and relay4 The 3 users in the User access group Jennifer Ryan and Mike have access to any relay also found in the User access group relay 2 relay 4 relay 5 and relay 6 There are no X 600M users in the CBW access group The CBW access group is a special group All other ControlByWeb products that can Page 32 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages control remote relays belong to the CBW group This means in this example that a ControlByWeb device that is configured to control a remote relay on the X 600M can only control relay 3 relay 4 relay 6 or relay 7 Another thing to mention is that each access group has a read write setting In the previous example each group was configured for read and write meaning that the I O belonging to those access groups could be monitored and controlled by the users in those same access groups If on the other hand the User access group was configured as a read only access group then Jennifer Ryan and Mike would only be able to monitor relay 2 relay 4 relay 5 and relay 6 No control would be available 4 1 2 System gt User Accounts Add edit and delete user accounts The X 600M can support up to 30 individual User Accounts Each user account is shown in a separate line Click Add New User to create a new use
94. Web devices and expansion bus devices Xytronix Research amp Design Inc Page 55 Setup Pages X 600M Users Manual 2 Setup oo C 5 192 168 1 2 setup htm gt lt 600 M Welcome Administrator YAO0OQAM CONTROLBYWEB en Abandon Changes Logout ra System Network E p E Logging m 192 168 1 2 popup php E Devices Configuration Devices must be Add device Device Model Number X WR LR12 11 Name device2 Add New Device Description New Device Edit Dashboards Serial Number 00 0c c8 Address Port 80 m View Dashboards Ethernet Comm Type IP Address Password Refresh Rate 3 Seconds Add Close Names are short 20 character max identifiers that are used in Lua scripts to reference I O They may not contain spaces or special characters The description 60 character max appears in Dashboards Emails etc Status Ready Status Ready For product support go to www ControlBy Web com Xytronix Research amp Design Inc Model Number The model number of the device being added edited The X 300 has two model number options X 300 I and X 300 TSTAT Select X 300 I for an X 300 in temperature monitor mode Select X 300 TSTAT for an X 300 in thermostat mode Name A short 20 characters max descriptive name made up of only alphanumeric characters Names must begin with a lowercase letter The names are used by the internal logic and Lua script
95. X 600M This method does not require a web browser There are two types of files used to control and monitor the I O previously configured on the X 600M These are XML files and JSON files Both provide the same information but the formatting is different 6 1 XML JSON Monitor The state of the I O previously registered with the X 600M can be monitored by sending an HTTP request to the HTTP or HTTPS ports 80 and 443 by default The file to be requested must correspond to a widget found on one of the dashboards a dashboard as a whole or the file state xml or state json When requesting a file for a single widget the current status of its components will be returned When requesting a file for an entire dashboard the current status of all the components on the dashboard will be returned When requesting the state xml or state json file the status of all the I O on configured on the X 600M will be returned In the following example we will get the current reading of a temperature sensor configured on the X 600M This example assumes that a widget has been added to the dashboard along with a component that displays the status of the temperature sensor This widget has the name widget7 and the temperature sensor has the name owSensor7 In this instance the XML file to request has the file name widget1 State xml All XML JSON files share this same file name format accept for state xml state json widgetnameState xml or dashboa
96. X6o0ooM CONTROLBYWEB Welcome Administrator Commit Changes Abandon Changes Logout al Control Logic Conditional Events Add edit and delete Conditional Events Conditional Events are indicators that something has happened such as a voltage being applied to an input module or a temperature sensor detecting a temperature above a user specified threshold Actions can be triggered by events Actions perform tasks such as turning on a relay or sending an email message First create events and then create actions based on those events To create actions see the Actions page Conditional Event List Conditional Events Add New Event Event Name Event Description Event Type Calendar Events No Conditional Events have been configured Actions Showing 0 0 of 0 Events Scripts Xytronix Research amp Design Inc Page 65 Setup Pages X 600M Users Manual 5 192 168 1 2 setup htm A gt SX lt 600M CONTROLBYWEB ZAWO Conditional Events Calendar Events Actions Scripts Name Welcome Administrator Abandon Changes Logout 192 168 1 2 popup php zi Conditional Event Configuration Edit Conditional Event applied to an input Conditional Event events and then Name condEventl Description Type Digital Add New Event W O Condition On Eval on powerup TA Duration 0 Seconds Event Group eventGroup1l Add Close This is the
97. XLGOOM CONTROLBYI X60O0OM Industrial Web Enabled 1 0 Controller N l USB B USB A 100M USERS MANUAL Revision 1 2 100M LINK INDUSTRIAL I O WEB SERVER For models X 600M I Event Scheduler with Real time Clock Logging amp Graphing Email Text Notifications Custom Scripts vY vV vV Y Configurable Web Pages Dashboards Panels Widgets and Components Direktronik AB tel 08 52 400 700 www direktronik se X 600M User Manual Revisions Revision Description 1 0 Initial release 1 1 Changed Assign a Temporary IP Address example from Windows XP to Windows 8 1 2 Added information about new Application Specific component type and Custom Web Page component type Added information about new I O Types indoorlTemp outdoorTemp indoorHumidity coolRelay heatRelay and fanRelay all found on the X 300 in thermostat mode X 600M Users Manual Table of Contents SOG COMA WINE OCLC UO cpa ata ete metal E ieee sle tie a ese teeiee eee eines eec aa einsnedeueeesacteeea ee ase seneen 5 1TA G00M Features orrena aea a E E 6 MEZA DUC AU ONS iir a E E A wenuwusaden cueanenaweveanmecnenenese 8 1o ACCESSIN A OUO Morisset a aae iaaea E a E e fetus 9 14 Connectors amp Indicatori S cscs cies cei a aa aa a E E E AEREA 9 MO 7 DO CUPILY ii a a a a E a a E 9 1 6 X 600M Accessories and Expansion Model s cccccceccscceeceeeeeeeeeceseeecneeneceeeesses
98. Zip file by clicking the Download All Files button This is useful for backup purposes New HTML CSS and JavaScript file can be created and edited directly in the X 600M setup pages by clicking on the corresponding button in the top left corner of the Custom Web Pages configuration page The X 600M comes with a set of example custom web pages These can be deleted or used as a starting point for creating other custom pages Here is a quick overview of the default custom pages Xytronix Research amp Design Inc Page 125 Appendix H Custom Web Pages X 600M Users Manual found on the X 600M OO xsewup im 5y e 192 168 1 2 setup html lt 600 M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout Pd System Custom Web Pages idini Edit View Upload custom web pages User Accounts Custom Web Pages Access Groups Download All Files Upload File s Choose Files No file chosen Date amp Time Filename Filesize example css 1 17KB Edit Download Delete Backup Restore exampleindex html 2 24KB Edit Download Delete SSL Certificates exampleLoginScreen html 2 11KB Edit Download Delete Custom Web Pages example bl png 0 21KB Edit Download Delete System Log example_br png 0 21KB Edit Download Delete example tong 0 22KB Edit Download Delete example tr png 0 2KB Edit Download Delete example css This is the css file used for the other example files
99. a modern dynamically typed structured language Features include loops functions tables arrays and comments With the X 600M certain elements of Lua which allow access to the operating system and to read write files have been removed In the X 600M there are two types of scripts expressions which run once to completion and are event driven and scripts which run continuously Expressions Scripts which do not run in a loop are called expressions Expressions perform a simple specific mathematical or logic function and then stop Expressions have a similar look and feel of algebraic equations Expressions can be embedded in specific Conditional Events complex events or Actions evaluate expression or defined here in the Scripts menu tab If an Expression is entered here it will run once when the X 600M first turns on Expressions are generally event driven and only run when needed lf an Expression get stuck or runs too long the X 600M shuts it down The X 600M supports one expression script for each conditional event and one expression script for each action Each Lua expression can be up to 1 5 Kbytes Scripts Lua Scripts can run continuously in the background if designed to do so The X 600M can run up to five Lua scripts concurrently Each script can be up to 8 Kbytes Scripts generally poll inputs make logic decisions and control outputs These scripts are created and edited here with the Scripts menu tab The Scripts menu tab
100. aa esse eeeaeessaeeseaesaes 116 Appendix G Lua S CUO soan a a E a seats ae ee 117 Appendix A Custom Web Pages seccvcssetecescesecessneensseecsaeccesnreaeneeecs casenceeupececuceuenesneteaunmanteteanersiuaeaneesanetegoeenens 125 Appendix I SDECIFICALIONS crina EN 134 Appendix J Trademark and Copyright Information ccccccsseeeeeeeeeeeeeeeeecenescaneeseeeeeaeeeaaaesasessanessanessans 137 Append K Wal Fant Vreis a a 138 Appendix L FCC Statement is iceciccaccccsavesecucaieseasacssavadwatesugetsauvacssusneusiesed apuneasocvanseabuncassvelessesboseteusiesesentaia eee 139 PDDENGIK M LICENSING ies tccicc ci cities es csacts eden eet a eeavaeaaitoaneienebantaela 140 Appendix N Mechanical DIMENSION cceecceeceee cee ceneceeeeneeaeeeneeeeeea seen scae sea ecaesaneeaesenseeesenssensenesensoneeanes 141 Xytronix Research amp Design Inc Page 3 X 600M Users Manual Page 4 Xytronix Research amp Design Inc X 600M Users Manual Introduction Section 1 Introduction The X 600M is a multifunction web enabled industrial I O controller The X 600M performs control logic and monitoring functions similar to that of a Programmable Logic Controller PLC However unlike a PLC the X 600M is designed for web based applications from the ground up No add on software or hardware is required The X 600M can be fully configured programmed and tested using its built in web server The web page setup Is
101. able is initialized to the current time time seconds This function returns a table that is initialized to the current second counter on the X 600M This counter is reset to zero on power up and when settings are committed It increments once a second The return value from this function can be used for timing purposes time make month day year hour minute second This function will return a table that holds time information The table is initialized to the time specified in the parameters The parameters have the following valid ranges Month 1 12 Day 1 31 Year 1900 3000 Hour 0 23 Minute 0 59 Second 0 59 time copy time Table This function will return a copy of the time table passed to it time getComponents time Table This function will return a table with the time in component form The table has the following fields month 1 12 mday 1 31 Day of month year year hour 0 23 min 0 59 sec 0 59 wday 1 7 Day of week Sunday Saturday yday 1 365 Day of year isdst 0 1 1 Daylight Savings in Effect 0 Daylight Savings not in Effect The following example will print the current date and time to the debug console once a second Notice that this example has comments Comments begin with two dashes enableDebug while true do sleep 1000 Get current time currentTime time now Get the component time compTime time getComponents currentTime print compTime print
102. al super capacitor which provides backup power for a minimum of 30 days no internal batteries need to be maintained The time and date can be set manually or a time server can be used to periodically sync the time Event Scheduler Program up to 1024 calendar events using a familiar calendar based configuration page Automatically switch from weekday to weekend or holiday schedules Logging Periodic and event based logging of any of the I O configured on the X 600M is possible Up to 5 separate log files can be created and stored either internally or externally on a USB flash drive Xytronix Research amp Design Inc Page 7 Introduction X 600M Users Manual Graphing Logged data can be graphed directly inside any HTML 5 compatible web browser by adding a graph component to any widget on the dashboard Email and Text Notification Send Email and text alerts based on any sensor or input conditions such as temperature time frequency digital inputs power supply levels and more Text messages are sent through a cell phone through a wireless carrier s Email bridge Emails can be sent using SMTP servers requiring SSL TLS encryption Send Emails to an individual user or to all members of an Access Group Scripts Much flexibility and advanced control is provided through custom scripts using powerful easy to learn Lua scripts The scripting language can be used to generate custom alarm conditions and specialized control functi
103. alog inputs You can automatically control the color of the display value by linking the color to a Conditional or Calendar Event Click on the color swatch to select other colors For example this feature is useful to set the color to red if the value has reached an alarm condition When determining the color to use for the background the X 600M checks the state of each event source specified starting with Event Source 1 and working down to Event Source 4 The last event source to evaluate to true takes precedence 8 Setup x gt C D 192 168 1 2 setup htm X6ooM CONTROLBYWEB PE System Network 3 Add component tt 5 1 Control Logic E Logging Data Source Background Color Event Source 1 Event Source 2 Event Source 3 Event Source 4 4 View Dashboards Numeric Control X600 D 192 168 1 2 popup php Dashboards Edit Component Numeric Status AmbientTemp 1 Wire Sensor None None None None a a a a Add AN S2 LS Welcome Administrator M ps Abandon Changes Logout Dashboard 1l Cancel The Numeric Control component allows the value of registers and expansion registers to be controlled changed The user can increase the value decrease the value set it to zero Reset set it to a specific value Set or adjust the value with a graphic slider You can also set maximum and minimum limits for data values ente
104. anges back to false Turn Relay Off Latch Relay turns off when the event source changes to true The relay change does not turn back on when event source changes back to false Pulse Relay Pulse a relay for a specific time interval when the event source changes to true Send Email Send an Email when the event source changes to true Log Initiate a forced data log when the event source changes to true Send SNMP Trap Send a SNMP Trap when the event source changes to true Set X equal toA Set a Register or I O to a fixed constant or the value of another Register or I O when the event source changes to true Enable Event Group Enable a specific Event Group when the event source changes to true Disable Event Group Disable a specific Event Group when the event source changes to true Evaluate Expression Run an embedded Lua script when the event source changes to true Event Source Events trigger Actions Once an Event has been defined see previous section it will appear in the Event Source pull down menu For each Action select a Conditional Event or Calendar Event to trigger the Action lf Turn Relay On Turn Relay Off or Toggle Relay is selected select the relay object with the Relay pull down menu lf Turn Relay On Latch or Turn Relay Off Latch is selected select the relay object with the Relay pull down menu If Pulse Relay is selected select the relay o
105. any value Registers can be monitored and changed through the Dashboards and can be changed by a Lua script Generally they are used with a formula to process raw I O into a value with user or engineering units The tabs on the left side of the I O overview screen list I O resources that are available on the devices you have registered If for example no modules with relays are registered the I O menu list will not have a relay tab OO z seup x Ga e e C 192 168 1 2 setup html 5 X6GO oM Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout System gt O Overview Network Add edit and delete I O I O must be appear in O List below before it can be used Only I O from devices listed under the Devices page will be available to be added to this list I O List I O Type I O Name I O Description Device Name Device Device I O Number Description Overview analog analog1 Analog Input 1 device4 Analog Slave 1 Edit Delete 1 Wire Sensors analog analog2 Analog Input 2 device4 Analog Slave 2 Edit Delete Analog Inputs analog analog3 Analog Input 3 device4 Analog Slave 3 Edit Delete Counters analog analog4 Analog Input 4 device4 Analog Slave 4 Edit Delete Digital Inputs analog analog5 Analog Input 5 device4 Analog Slave 5 Edit Delete analog analog6 Analog Input 6 device4 Analog Slave 6 Edit Delete Frequency Inputs analog analog Analog Input 7 device4 Analog Slave 7 Edit Delete I
106. arch the response buffer beginning at position start for the string searchStr This allows responses to be parsed for specific information For example to find the first relay state from a state xml file the following could be used position responselIndexOf 0 lt relaylState gt str responsesubstr position 13 position l4 Xytronix Research amp Design Inc Page 121 Appendix G Lua Scripts X 600M Users Manual The variable str should be a 1 or O depending on the state of the relay This is done by finding the position of the string lt relay1state gt in the response and then adding 13 to that to get the start of the relayistate value and adding 14 to that to get the end of the relay1state value responseSubstr start end This function will return a substring from the response buffer that begins at the index start and ends at the index end Both start and end are 0 based meaning that a start value of O will return the very first character from the response buffer Start must be less than end If start is greater than end or there is an error this function will return nil The return value of this function as well as all others should always be checked for errors sendTrap ioName This function can be used to send an SNMP trap with the state of the I O given by ioName sendaTrap 10 inputl ethUp This function will return a value to indicate if the X 600M s ethernet connection is up or
107. atus Ready For product support go to www ControlByWeb com Welcome Administrator andon Changes Logout Previous Next Xytronix Research amp Design Inc 4 Click Commit Settings Once clicked the X 600M begins to monitor the newly added device Note You can make changes to multiple pages before you need to commit settings Xytronix Research amp Design Inc Page 27 Configuration and Setup X 600M Users Manual a A i EO R gt D 192 168 1 2 setup htmi gt lt 600 ri Welcome Administrator CONTROLBYWEB Commit Changes ndon Changes Logout E Devices Add edit and delete devices that are attached to the X 600M either through the expansion bus or through the Ethernet network Devices must be added before setting up I O Logic or Dashboards L IN 2 3 E 3 HIH S 5 Device List Find New Devices Add New Device 5 Loggi Name Description Address Port Model Serial Number m Edit Dashboards device1 X600M master unit n a X 600M 00 0c c8 00 00 72 device2 2 Relay Slave 1 n a X 11S 0000004f Identify Edit Delete m View Dashboards Showing 1 2 of 2 Devices 5 On the main menu click the View Dashboards menu tab The View Dashboards page shows a display similar to what users will see when accessing the X 600M s control page Use this page to test and debug the dashboards panels widgets and components in real time A pull down m
108. be used to access information about io registers etc To use the X 600M library include it and the JQuery library into the custom web pages in the head section of the HTML file The JQuery library version 1 11 1 is already located on the X 600M however new versions can be uploaded and used as well lt script sre javascrioc squery 1 lt 11 amin js gt lt script gt lt SCript src 7Javascripty xo00Mm 7 5 gt lt script gt The following example shows how to periodically update the state of a register named register1 and a 1 Wire temperature sensor name owSensor1 It also shows how to create buttons that can change the state of I Os or Registers using the X 600M JavaScript library Le lt div rds content gt 2 lt p gt Example Custom Web Page for the X 600M lt p gt 3 lt p gt Welcome Suser gt name lt p gt 4 lt table class rounded table style width 500px gt 5 lt thead gt 63 LEIA Ti lt th class rounded head left gt I O Description lt th gt Gi lt th class rounded head right gt Value lt th gt coke lt tr gt 10 lt thead gt Lisctbody gt 12 lt tr gt Loe lt td gt S16 gt desco owSensori lt cvd gt 14 lt td gt lt span id owSensorl gt lt span gt io gt units owSensor1 lt td gt Xytronix Research amp Design Inc Page 129 Appendix H Custom Web Pages X 600M Users Manual lt Per gt lt tr gt lt td gt Sreg gt desc
109. bject with the Relay pull down menu and set the Pulse Time lf Send Email is selected fields for Recipients Subject and Body appear The recipients field specifies what user or group of users are to receive the email The subject field is the subject of the email and the body field is what will appear in the email To display the current value of a register or I O in the email subject or body enter io ioName or reg regName into the field When the X 600M parses the email it looks for io and register names surround by square brackets and replaces them with the actual value of the I O or register For example to send an email that indicates the internal temperature of the device enter the following into the body field The outdoor temperature is currently io owSensor1 This will send an email with body The outdoor temperature is currently 103 5 Also if labels should be displayed in the email instead of the raw values the label function Page 74 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages can be used inside the square brackets For example to send an email that shows the status of a relay as either On or Off the following would be entered into the body field The relay is label io relay1 On Off This will send an email with body The relay is On when the relay is on and The relay is Off when the relay is off If Log is selected a field called Lo
110. c Add New Device Address Port Model Serial Number Status 00 0c c8 00 00 00 lt ims Edit Dashboards device X600M master unit n a X 600M Showing 1 1 of 1 Devices H Hm Hi iN lt 4 SS he TEIJE F a JE i For product support go to www ControlBy Web com Xytronix Research amp Design Inc Status Ready To add a device register it click the device s Add button Special care is needed when adding expansion modules if there are more than one of the same model In this case you must pay special attention to the serial number field in order to determine which specific device you are adding The serial numbers are marked on the labels of the expansion modules OO gsetup D 192 168 1 2 setup html ni Fy X6o0ooM CONTROLBYWEB 1 Control Logic Show 10 entries Model Edit Dashboards AS X 11S X 16S D H m Hi l i eS Sl se 3 e e o F B a 8 a X 12S X 13S K Showing 1 to 5 of 5 entries New Devices Found Rescan E Devices Find Devices List of automatically detected new devices Serial Number 00000001 0000004f 0000006e 00000020 0000005c Back Comm Type SERIAL SERIAL SERIAL SERIAL SERIAL Address AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE Description AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE Name AUTO_GENERATE AUTO_GENERATE AUTO_GENERATE AUTO_GEN
111. cate has been digitally signed by a trusted Certificate Authority CA If any of these conditions are not met the web browser will show the user a warning stating that the web server may not be secure or that it cannot be verified An SSL certificate needs to be either self signed or signed by a CA Self signed SSL certificates will cause the web browser to issue a warning to the user unless the self signed certificate is added to the list of trusted certificates kept by the operating system SSL certificates signed by a trusted CA such as DigiCert VeriSign Comodo etc will not show a warning to the user and is what you will find on many commercial websites However both certificate signing options will behave the same in how they secure the data being transferred across the network Additionally multiple SSL certificates can be stored on the X 600M but only one may be in use at any given time Page 38 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 4 1 5 1 Default Self Signed SSL Certificate The X 600M includes a default self signed SSL certificate uniquely generated and ready for use however since this certificate is self signed you will see a warning page from your web browser stating the web server may be untrusted This self signed certificate has an expiration date of 200 years from the time it was generated and cannot be deleted It is recommended to generate a new self signed SSL certificate
112. cked the beginning and ending dates can be entered If All Day is not checked the beginning and ending date and time can be entered Clicking the Date field causes a pop up calender to appear Clicking the Time field causes a pull down menu to appear with 30 minute AM to PM increments You can then manually edit the value to the nearest minute The start stops times are with respect to the current date and time as specified in the Date amp Time menu tab The event will be considered true if it s in between the start and stop date and times The options for this field will changed based on the selected repeat option For example an event that repeats every 10 seconds can only have a max start and stop time that are 10 seconds apart otherwise the start and stop times would overlap as the event repeated itself Repeat Calendar Events can occur automatically at repeating intervals the time between the start of successive events The choices for the interval units include Secondly seconds Minutely Hourly Weekly Monthly or Yearly The Every setting sets the time interval depending on the selected units If Weekly is selected check boxes for Sunday Saturday appear i e Su Mo Tu We Th Fr and Sa These allow an event to occur weekly e g Every Monday Wednesday and Friday Ends Three options are available for when calendar events end Never This calendar event occurs forever After Occurrence This calendar event repeats a s
113. commitSettings below update id name luaExpr desc Update an action with the specified id eventSourcelD callback Parameters are the same as those for the add function Note Settings must be committed for this change to take effect See db commitSettings below del id callback Delete and action with the specified id Note Settings must be committed for this change to take effect See db commitSettings below evnt add name desc dtStart dtEnd Add a calendar based event freq interval byday monthlyRepeatType untilType name name of event dtUntil count eventGroupID desc description of action callback dtStart when to start event mm dd yyy hh mm ss hh 24hour dtEnd when to end event same format as dtStart freq NONE SECONDLY MINUTELY HOURLY DAILY WEEKLY MONTHLY YEARLY interval how often in terms of the freq to repeat the event byday bitmask that indicates what days event should occur when the freq equals WEEKLY saturday bit 7 sunday bit 0 monthlyRepeatType how to repeat when freq equals MONTHLY DOM day of month DOW Page 132 Xytronix Research amp Design Inc X 600M Users Manual Appendix H Custom Web Pages day of week untilType NEVER COUNT DATE what to look for to stop repeats of event dtUntil when to stop repeats of event only when untilType DATE Format the same as dtStart count how many tim
114. conds and return the result to the function callback toggle name callback Toggle the io with name and return the result to the function callback update id desc callback Update the description of an I O with the specified id Note Settings must be committed for this change to take effect See db commitSettings below reg set name val callback Set the register with name to val and return the result to the function callback Xytronix Research amp Design Inc Page 131 Appendix H Custom Web Pages X 600M Users Manual pulse name val callback Pulse the register with name for val seconds and return the result to the function callback toggle name callback Toggle the register with name and return the result to the function callback setinitVal name val callback Set the initial value of the register with name to val and return the result to the function callback Note Settings must be committed for this change to take effect See db commitSettings below act add name luaExpr desc Add a new action to the settings eventSourcelD callback name name of action luaExpr the lua expression to evaluate desc description of the action eventSourcelD id of condtional or calendar event that will trigger this action callback javascript function that will be called with result of this function call Note Settings must be committed for this change to take effect See db
115. connected 9 Connection already established tcpSend msg This function will attempt to send the message msg to the host connected to previously using the function tcpConnect If the message is sent successfully this function will return the number of bytes sent otherwise it will return one of the following error codes 0 Host did not responded 1 Can t call tcp functions from lua expressions 11 Error in send 13 Bad message length The message must be under 200 characters tcpRecv This function will attempt to receive a response from a host that has been previously connected to using tcpConnect and most likely sent a message using tcpSend It will return the number of bytes received or one of the following error codes 1 Can t call tcp functions from lua expressions 12 Error in receive This function is similar to the httpRequest function in that it will store the response in an internal buffer associated with the lua script Each script 1 5 have their own response buffer that can hold responses up to 8K in length Responses bigger than 8K will be truncated These responses can then be parsed using the functions responselndexOf and responseSubstr as explained previously tcpClose This function will close the currently open tcp connection if it exists This function must be called before attempting to call tcpConnect in order to connect to a new host The following example demonstrates ho
116. could be for details Add New Register group1 Name This is the name of the register Names are short 20 character max identifiers that are used in Lua scripts to reference Registers They may not contain spaces or special characters Names must begin with a lowercase letter Description This is a simple description of the register for documentation purposes The description will appear in emails and on the dashboard when this register is associated with a component Type Constant Fixed constant Boolean 1 or O TRUE or FALSE Float IEEE 754 floating point number Expression Lua expresson lf Expression is selected a text box opens Type the text for a Lua expression into this box Alternatively you can create the script with a text editor then copy and paste it into the text box When you click Add the script is checked for correct syntax If an error occurs the first error will be highlighted You will not be able to add a script with faulty syntax For further information see Section Control Logic Lua Scripts Whenever an expression function Register is read accessed the Lua script is executed and the register is set to the results This is useful for a scaling a raw sensor value into engineering units usually with a Y mX b equation For example if you wanted to convert a 1 Wire temperature sensor OwSensor 1 from Fahrenheit to Celsius you would create a new register and enter the following Lua e
117. d Network gt FTP Configure FTP settings The X 600M can be configured to upload log files to an FTP server The X 600M functions as an FTP client not a server FTP settings are configured here 600 28 Setup e Cc 192 168 1 2 setup html s gt lt 600 i Welcome Administrator CONTROLBYWEB gt gt gt Comitan ges Abandon Changes Logout Configure FTP settings Client Side FTP NetBIOS mDNS Host Name The IP address or host name of the FTP server Port The TCP port to which the FTP server listens on The default value is port 21 as most servers will listen on this port User Name and Password These are the credentials that are submitted to the server when the connection is established Both are case sensitive For anonymous login leave the User name at its default value and leave the Password field blank 4 2 3 8 Network gt Advanced Network gt NetBIOS mDNS Setup To configure a new X 600M using its built in web pages you must either temporarily change the IP address of the connected computer or use NetBIOS mDNS to access the X 600M after it has obtained an IP address using DHCP see Section 3 1 These settings enable disable NetBIOS and mDNS as well as configure the name to be used when addressing the device using this service Both services Xytronix Research amp Design Inc Page 53 Setup Pages X 600M Users Manual allow the X 600M to be accessed through a web browser us
118. d by selecting the appropriate drop down box e Sync with NTP server allows the user to set the clock automatically by using an NTP Network Time Protocol server Xytronix Research amp Design Inc Page 35 Setup Pages X 600M Users Manual e Manually requires the user to enter the time and date NTP Host Name This field is used to specify the name or IP address of the NTP server If a name is specified a working DNS server address must be entered into the Network gt Ethernet settings page If the IP address is specified it should be entered in the following format aaa bbb ccc ddd where each of the letters represents a number between 0 and 255 This field can be up to 60 characters There is no default value for this field Many NTP Internet servers are available In addition many desktop computers can function as an NTP server both Mac and PC If a desktop computer is used firewall settings may need to be adjusted to allow for NTP communications on port 123 Public NTP servers can be found at www pool ntp org Some of these are listed below US Servers http www pool ntp org zone us O us pool ntp org 1 us pool ntp org 2 Us pool ntp org 3 US pool ntp org North America http www pool ntp org zone north america O north america pool ntp org 1 north america pool ntp org 2 north america pool ntp org 3 north america pool ntp org Europe http www pool ntp org zone europe O europe pool ntp org 1 e
119. e a few different values that we might be interested in seeing on the web page for this sensor such as the units and the description In this example we are only interested in the description To get the description of the 1 Wire temperature sensor we call the desc function on the io object and pass it the name of the I O we are interested in In this case we are interested in the I O with the name owSensor1 hence io gt desc owSensor1 The following table lists all the objects and each of its functions properties Note Functions end with and generally require a parameter They are used to access the property of an io reg etc by that io s name Properties do not end with and can only be used inside foreach loops Obje Function Property Description ct io load n a Load I O information from settings desc ioName desc Get the description of the I O named ioName Xytronix Research amp Design Inc Page 127 Appendix H Custom Web Pages X 600M Users Manual units ioName units Get the units of the I O named ioName reg load n a Load the register information from settings desc regName desc Get the description of the Register named regName units regName units Get the units of the Register named regName initVal regName initVal Get the initial value of the register
120. e data never has to leave the local network When the server and the X 600M are on different networks routers must be configured to allow appropriate access If a public network is used such as the Internet security precautions should be considered Remote Services The second approach is for the X 600M to initiate a connection using Remote Services The settings under the Network gt Advanced Network gt Remote Services Client menu tab in the setup pages will enable the X 600M to open a TCP connection with an external server Once the connection is open the external server can send commands and or read the device The external server can leave the connection open so that it never closes or it can close the connection Remote Services is ideal for installations where the server and the X 600M are installed on different networks This is especially useful when each X 600M is installed on a separate private network For example if the user does not control the network connections where the X 600M is installed Remote Services would initiate a TCP connection over the Internet with the control computer Since the X 600M initiates the connection the control computer does not have to know the IP address of the X 600M This means that the X 600M can be installed using DHCP In addition no special router configuration is required This makes the network installation of X 600M very simple and since no Page 114 Xytronix Research am
121. e domain name you will be accessing the X 600M from If this does not match what is placed in the browser when accessing the X 600M your web browser will return a warning e g X600 ControlIByWeb com No special work is needed in the X 600M to assign it a sub domain name So long as an A record exists in your DNS server to map the sub domain name to the X 600M IP address Email Address Allows you to place your e mail address in the certificate information Encryption Strength This option allows you to specify the encryption strength of the data during the handshake phase between the X 600M and the web browser Some CA s have a restriction on this value The trend for the CA s is to have 2048 bit encryption strength Certificates generated using 2048 bit encryption can take up to six minutes to generate Xytronix Research amp Design Inc Page 39 Setup Pages X 600M Users Manual 4 1 5 3 Signing Certificates with a Certificate Authority Once a new certificate has been made you can click on the Edit link to access the Certificate Signing Request CSR as well as the signed certificate Most CA s will have you copy and paste the CSR from the X 600M web pages directly in to their web site Once the CSR and the other information requested by the CA have been submitted the CA will generate and digitally sign a certificate Once the signed certificate has been received you will need to copy and paste the contents into t
122. e value of other I O and Registers The state of other I Os and registers previously configured on the X 600M can be changed using the same method above accept that the word State does not need to be appened to the name of the I O For example to set an I O named count7 to the value of 200 issue the following command Command Description state xml count1 200 Set counter1 to 200 Page 102 Xytronix Research amp Design Inc X 600M Users Manual Email Notification Section 7 Email Notification 7 1 Email Notification Actions are simple work orders which do specific things when activated You use Actions to turn a relay on or off pulse a relay force a data log or send an Email Actions occur in response to an Event selected within the Action The Control Logic gt Actions menu tab presents a list of the current actions An Action can be configured to send an Email when an Event occurs Some possible Events that can trigger Email Actions include relay input state changes Vin changes temperature humidity changes and commands sent from a Lua script Email messages are fully customizable When adding an action that sends an email three fields will appear to configure the email s Recipient Subject and Body Recipient The recipient is the user or group of users that the email should be sent to Each user added to the X 600M under the System gt User Accounts section can have an email addre
123. eaeseeseeseneenesneseess 10 SECON 2 INS tallAtlOM anad WINO cassie ss seuss scw sete a d a a A AE Eaa ENEN 12 2 1 Installati n GuUidelneS siii aaa EE Ea a E EEE 12 22 MOURNING an E A A E 12 Zl ANV ANOUN UN eea E eee eat aneeeuss 12 222 DIN Ral MOUNTR Gio en octet ieee kaise erate ters cede ees Bese eed 12 2 3 Making Wiring CONN CUONS cscicrtist2cccpeacert enc fedtetuncadnanetuibade a a a a a a ala aa aaaea 13 2al Wro FrocedUr esas a nae alae ae neem rmnctice 13 2 3 2 Power SUBDIY GONNECHONS saaneena e a E ed dain S ee 13 23 9 SVStem Stant UDan ote are eee e a a NT A 14 2 3 4 Expansion Module Connections ccccccccccesccceeeccneeeeceeceeeeseeeceeeseaeeseueesueeseeesseesaueessuseseneegaaes 14 23 05 Optional Power INJector wisrct ants ess aa a Moen as E dn Ea AE 15 2 3 6 Temperature Humidity Sensor Connections ccccccccccsseccceececeeececeeeeeceusecceeeeceueecsaueessueeessansessaes 15 237 NetWOrk Connectors s T R a Naa a 17 2 3 0 EXEM USB Fash Dii Ve iiss scutes hie td a E a N 17 Section 3t Configuratiom and Set UP sicia aa a a aaa a a a a a A E E Na 18 3 1 Establishing Communications Over Wired Network ccccsssecssseeeeeseeeeeseesseneeeeenenseeneeseenenseneeneas 18 3 121 Method 1T Use DHCP and NetBIOS mscicectiss ces Nels a a iii a e 18 3 1 2 Method 2 Assign a Temporary IP Address to the Configuration Computer cccseeeeeeeeeeeeeees 19 3 2 Establishing Communications Over a Wireless Netwo
124. eeded the X 600M supports custom web pages Custom web pages are built with HTML CSS Javascript and PNG images files which are stored in the X 600M s file system The Custom Web Pages page displays a list of files currently stored in the file system Page 40 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages A 098 gsp lt D 192 168 1 2 setup htm w XLG6O0OO Mi Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout Pa System Custom Web Pages Steines Edit View Upload custom web pages User Accounts Custom Web Pages Access Groups Download All Files Upload File s Choose Files No file chosen Date amp Time New HTML File New CSS File New JS File Backup Restore Filename Filesize about us html 11 81KB Edit Download Delete SSL Certificates actionTests html 3 86KB Edit Download Delete Custom Web Pages p ajax js 2 83KB Edit Download Delete System Log condEventTests htmi 3 52KB Edit Download Delete eventTests html 7 91KB Edit Download Delete example css 1 17KB Edit Download Delete exampleindex html 2 33KB Edit Download Delete exampleLoginScreen html 2 11KB Edit Download Delete example _bl png 0 21KB Edit Download Delete example br png 0 21KB Edit Download Delete m Edit Dashboards example _tl png 0 22KB Edit Download Delete example tr png 0 2KB Edit Download Delete i ioTests html 2 19KB Edit Download Delete mz Vi
125. end statements y is a local version If y had not been declared as local then the global version would have been used and the output would have been 100 100 More information about variable scope can be found in the Lua manual One thing to note on the X 600M is that global variables declared in a script can be accessed by other scripts and expressions script use the local keyword when declaring the variable Functions created in a lua script are also global They can be called in other scripts and expressions The three special tables jo reg and event are global to all Lua scripts Also notice in this example the function calls to enabledDebug and print On the X 600M print functions will output text to the debug console when it is enabled The debug console is disabled by default The function call enableDebug will enable the debug console so that the print statements will function To run the example paste it into a script and commit the settings After running this example open up the debug console to view the output Page 118 Xytronix Research amp Design Inc X 600M Users Manual Appendix G Lua Scripts X 600M Specific Functions The X 600M contains a set of custom functions and libraries that only pertain to the Lua interpreter running on the X 600M These functions and libraries as well as their definitions are explained below time now This function returns a table that holds time information This t
126. enu allows access to other dashboards Within minutes you can experience the power and flexibility of the dashboard s user interface and experiment test the buttons sliders and data entry boxes to meet the needs of your specific application r a BOA ssseup x B r Ss C 192 168 1 2 setup html LS gt lt 600 Mi Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout 1 X600M Dashboard 1 Devices 2 Relay Slave 0000004f ci Edit Dashboards HM th oN a 3 x 3 6 Making Changes The settings for the X 600M are maintained in an internal database As you make changes you must submit those changes the Submit button on the bottom of each page which stores those settings into a temporary database in RAM Whenever you make a change to a setting the Commit Changes link at the top right hand corner of the page will be highlighted When you have finished making changes click Commit Changes to save your work permanently and to cause the new settings to become functional You can submit multiple setup pages before you commit changes If you click on Abandon Changes all changes in the temporary database will be deleted all changes made since the last time changes were committed You can click the Commit Changes button after making every change however it takes 5 10 seconds Page 28 Xytronix Research amp Design Inc X 600M Users Manual Configuration and Setup
127. er from the X 600M On your PC start the X 600M Firmware Update Utility by double clicking on the update bat file With the DC power off connect the USB cable between the Mini B connector on the X 600M and your PC Press and hold in the firmware update button on the back of the X 600M CAUTION only a gentle force is necessary A tactile feedback can be felt as the button is depressed While depressing the firmware update button apply power to the X 600M The Firmware Update Utility should automatically recognize the X 600M and begin the firmware update Once the update has started the button may be released Firmware Upgrade Button ps Access Hole The firmware update process should take between 3 and 5 minutes When completed the Firmware Update Utility will indicate if the process was successful or if it failed If it failed turn off the X 600M restart the update utility press and hold the firmware update button and power up the X 600M again The update process will automatically begin again aas C2 x668FirmvareUpdate gt x666loader exe firmwuare shb Waiting for A666N for 3H seconds Waiting for A666N to begin firmware extraction File download successfull Waiting for extraction process to begin Waiting for A660N for 30 seconds Extracting Firmware This can take up to 5 minutes Firmvare update successful C2 x608Firnvarel pdate gt pause Press any key to continue
128. ers Begin by setting the IP address and making the associated network settings These settings are made under the Network tab The goal is to get the X 600M accessible on your network Test your settings by accessing the X 600M with your web browser Add new devices The X 600M has no built in relays or inputs Instead it functions as a powerful master controller for other ControlByWeb modules The X 600M can control up to 128 ControlIByWeb devices These devices can be physically located anywhere in the world with internet access In addition the X 600M has a ribbon cable expansion bus connector which allows a family of add on modules to be connected directly to the X 600M Expansion modules are available with relay digital input thermocouple and other industrial inputs and outputs Before these devices can be controlled or accessed they must be entered into the X 600M s database This is done with the Devices tab For modules on the IP network you either automatically scan for devices on the same subnet or manually enter the IP address With expansion modules you either automatically scan for devices or manually enter the serial number of the module Normally you enter a user friendly name and description for each device For example you might name a WebRelay Quad PanelBoardA with a description of Warehouse Lights When complete the Devices menu tab will show a list of all the devices modules you wish to monitor or control Add I
129. es to repeat event only when untillype COUNT eventGroupID the event group that the event belongs to 1 8 callback function to call after completing with result Note Settings must be committed for this change to take effect See db commitSettings below update id name desc dtStart dtEnd freq interval byday monthlyRepeatType untilType dtUntil count callback Update a calendar based event with the specified id Parameters are the same as those for the add function Note Settings must be committed for this change to take effect See db commitSettings below del id callback Delete the event with the specified id Note Settings must be committed for this change to take effect See db commitSettings below condEvnt add name desc expression Add a conditional event with a lua expression eventGrouplD callback Note Settings must be committed for this change to take effect See db commitSettings below update id name desc Update a conditionalevent with the specified id expression callback Note Settings must be committed for this change to take effect See db commitSettings below del id callback Delete the conditional event with the specified id Note Settings must be committed for this change to take effect See db commitSettings below currentPage _ refreshlOFields fileName Refresh the I O and registers found in the custom period contentDivName
130. et Scheduler O Microsoft Network Adapter Multiplexer Protocol wi Microsoft LLDP Protocol Driver wi Link Layer Topology Discovery Mapper I O Driver i Link Layer Topology Discovery Responder amet Protocal Version a Install Description Transmission Control Protocol Intemet Protocol The default wide area network protocol that provides communication across diverse interconnected networks 8 If Use the following IP address is already selected the computer has been setup with a static IP address Record these values so that the current IP address of the computer can be restored once the IP address of the X 600M has been successfully changed General You can get IP settings assigned automatically if your network supports this capability Otherwise you need to ask your network administrator for the appropriate IP settings 0 Obtain an IP address automatically Use the following IP address IP address Subnet mask 255 255 2755 0 Default gateway Obtain DNS server address automatically Use the following DNS server addresses Preferred DNS server L awa Alternate DNS server _ Validate settings upon exit Se ear Xytronix Research amp Design Inc Page 21 Configuration and Setup X 600M Users Manual Select the radio button labeled Use the following IP address and type in the IP address 192 168 1 50 Type in the subnet mask 255 255 255
131. ew Dashboards reqTests html 2 03KB Edit Download Delete userTests html 2 36KB Edit Download Delete Clicking on a file s name will cause the file to be immediately opened by your browser in a new tab The Edit button opens a simple web based text editor which allows you to edit the contents of HTML CSS JS and other similar ASCII files Clicking the New HTML File New CSS File or New JS File buttons will create a new file with the respective file extension You then use the web based text editor to edit the new file s Note Custom web pages require programming skills with HTML JavaScript and other web programming languages specific details of these programming languages are not covered in this manual Xytronix Research amp Design Inc Page 41 Setup Pages X 600M Users Manual 666 s sewp gt D 192 168 1 2 setup htm x A ie AN S 2 AS gt lt 600M CONTROLBYWEB Overview User Accounts Access Groups Date amp Time Backup Restore SSL Certificates Custom Web Pages System Log H View Dashboards d A 192 168 1 4 popup php f Custom Web Pages Edit File and Content Edit Custom Web Pages Filename actionTests htm Contents 1 if user gt hasAccess 255 2 db gt setAccess 3 3 S act gt load Sevnt gt load 5 lt html gt JJO lt head gt lt title gt Actions Tests lt title gt lt link rel stylesheet
132. ext is the connection string used by other X 600M s that have been configured as remote services servers The default text is lt Serial Number gt ControlByWeb X 600M Connection Interval This field specifies the periodic interval in which the X 600M attempts to connect to the remote server or if the X 600M is already connected it is the interval in which the X 600M sends the connection string This field can be set within the range of 1 to 34452 minutes The default setting for this field is 1 minute Page 50 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 4 2 3 5 Network gt Advanced Network gt SNMP Configure device to communicate with SNMP manager Simple Network Management Protocol SNMP is used to manage and administer network devices The X 600M supports SNMP V3 0 for SNMP requests and SNMP V2 0 for sending traps Using SNMP the I O states of devices connected to the X 600M can be read and controlled through SNMP manager software See Appendix F SNMP Requests for information about how to request information from the X 600M using an SNMP manager OO setup vs o C A 192 168 1 2 setup htm X A S lt 600M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout Overview Advanced Network SNMP Setup Configure device to communicate with SNMP manager SNMP Client Ethernet Enabled Yes No Wireless Host Name 192 168 1 15
133. f digits displayed to the right of the decimal point when the data for this register appears in the dashboards and Emails For example if the resolution of a temperature sensor is 0 1C you would want to set Decimal Places 1 Access Groups This determines to which access groups this I O belongs Only users that belong to the same access group will have access to this I O when Dashboard and I O Password Protection is enabled If the 1 Wire sensor is found on another device a similar set of options will be presented For these sensors an 1 Wire sensor address will not need to be defined but the units for the remote sensor will 4 4 2 O gt Registers Add edit and delete Registers Programmable logic devices use memory locations to store data and status values These user defined locations have various names in the automation industry RAM Variables Tags Registers etc The X 600M designates these as Registers Registers are created and defined by the user to work as a local scratch pad memory to hold data For example perhaps you would like a temperature sensors data to be displayed in both C and F so you would create a register for the F value and imbed an expression script in it to update the F register based on the C value of another register or I O The Registers menu tab presents a list of the current registers To add a new register click Add New Register e O O Setup ii Fy E C 5 192 168 1 2
134. free to associate with any Ad Hoc network device in link range By default the name of the Ad Hoc connection is X600M with password 0123456789 This password may be changed from the setup pages as described later on The device name X600M should appear in the list of available wireless networks on the computer or tablet Once a device makes a connection the X 600M will give the device an IP address via DHCP The X 600M can be accessed at x600 1local or 192 168 3 1 through a web browser Note Not all smart phones or other devices support Ad Hoc connections In these cases the network will not appear in your list of choices 3 2 2 Wireless Connection Using Access Point With an Access Point connection the X 600M attempts to connect to a wireless access point For Access Point connectivity the X 600M must have been previously configured to connect to a wireless access point For a new device you must access the X 600M using the Ad Hoc mode or one of the wired access methods described in the previous section After establishing a temporary wired connection to configure an Access Point connection select VW Access Point from the drop down menu in the Network gt Wireless Configure wireless adapter tab See Section 4 2 2 Xytronix Research amp Design Inc Page 23 Configuration and Setup X 600M Users Manual 3 3 Configuration and Setup Access The X 600M is configured using a web browser To access the setup pages enter the fo
135. g File appears Select the log file that you would like to log All I O associated with the log file will be logged when the event occurs If Set X equal to A is selected you can set force a register or I O to either a fixed constant or the value of another register or I O lf Enable Event Group is selected a box for the Event Group appears Select the Event Group to be enabled lf Disable Event Group is selected a box for the Event Group appears Select the Event Group to be disabled lf Evaluate Expression is selected a text box opens Type the text for a Lua expression into this box The script must be a Lua Expression which runs to completion and then stops When you click Add the script is checked for correct syntax If an error occurs the first error will be highlighted You will not be able to add an expression with faulty syntax For further information see Section Control Logic Lua Scripts 4 5 4 Control Logic gt Scripts Add edit and delete Scripts Scripts are small non compiled programs written in the Lua scripting language Scripts are are used to implement more complex Events and Actions Scripts provide power and flexibility to solve real world applications They allow the X 600M user interface to be relatively simple and still provide enhanced capability for those users who need it Lua is a lightweight scripting language used for many web based and industrial applications among other things Unlike BASIC Lua is
136. g 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 LIABILITY OF XYTRONIX RESEARCH amp 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 amp 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 Page 138 Xytronix Research amp Design Inc X 600M Users Manual Appendix L FCC Statement Appendix L FCC Statement This device complies with Part 15 of the FCC Ru
137. g for each widget in the XML file The file dashboard1State json will return the same result just formatted differently There are two special files that can be used to monitor the I O of the X 600M regardless of the dashboard configuration These are state xml and state json These files behave like those found on other ControlIByWeb devices The status of all the I O configured on the X 600M will appear in these files when requested as well as the current time on the X 600M Another difference between these two files and the other xml json files on the X 600M is the security used to access the file The same security as all the other xml files can be used Secure username and password but access can be granted using http basic authentication through the web browser similar to other ControlByWeb devices This offers backwards compatibility with other devices and software that might be configured to control the X 600M When requesting the state xml using basic authentication all the I O configured on the X 600M will appear in the file but only those I O that belong to the special access group cbw will have valid status readings and be controllable All others will read xx If the global Dashboard and I O Password Protection is disabled then all the I O status readings will be valid regardless of the access group they belong to Examples Request http 192 168 1 2 state xml Returns lt datavalues gt lt owSensorl1 gt 90
138. gs you have made To preserve the existing settings you must have previously made a backup Please see Section 4 1 4 for instructions on how to load your previous settings with the username and password reset to their factory defaults Restore Default Button Access Hole Xytronix Research amp Design Inc Page 105 Appendix B Installing New Firmware X 600M Users Manual Appendix B Installing New Firmware From time to time updates and bug fixes are made to the X 600M firmware The X 600M firmware can be updated in the field Xytronix recommends that new firmware be installed only if there is a specific reason to do so The procedure for updating the firmware is outlined below Please note it is important that this procedure be followed precisely Requirements To update the firmware on the X 600M the following items are required 1 APC running the Windows operating system 2 An USB 2 0 Type A to Mini B Cable 3 The X 600M Firmware Update Package Down loadable from www ControlByWeb com x600m downloads html 4 Athin non conductive object e g Toothpick or plastic paperclip to press and hold the internal button located on the back side of the unit inside one of the DIN rail mount ears Do not confuse this access hole with the hole on the bottom side The hole on the bottom side is used to restore the module to factory default settings as described in the previous Appendix Setup Before updating the firmware
139. gt x lt 600M CONTROLBYWEB Gt Le Welcome Administrator X600M zs Abandon Changes Logout 192 168 1 2 popup php Dashboard 1 oA Dashboards Edit Add component wet Component undefined Data Source log1 0 Time Zone Device Width Auto Height 200 pixels Max Data Points 10 Logged I O and Registers Graphed I O and Registers m View Dashboards AmbientTemp gt gt lt lt Add Cancel Status Ready Application Specific Component These Components are application specific components that is only useful for certain ControlByWeb devices such as the X 300 in thermostat mode Thermostat X 300 The Thermostat X 300 component allows interaction with the X 300 thermostat in a manner similar to that found on the X 300 itself The only option for this component is the Data Source The data source will be a previously configured X 300 This component will interact directly with the device using the method setup under the devices tab direct access or remote services Xytronix Research amp Design Inc Page 89 Setup Pages X 600M Users Manual Indoor SetTo System Mode 73 7 F D oe Off Auto x x Humidity 70 0 Fan Mode Outdoor On Auto 14 0 F Hold Rst Fitr Change filter in 40 days She fs Custom Web Page Component This Component allows web pages from other servers to be embedded into the X 600M dashboard Custom Web Page A custom web page can be almost a
140. h amp Design Inc Page 97 Modbus Operation X 600M Users Manual 5 3 4 Write Single Coil Modbus Function Code 05 0x05 Relays may be controlled one at a time Request Start Address 2 bytes Ox0000 Relay 1 OxOOFF Relay 255 Output Value 1 byte 0x00 OFF OxFF ON Padding 1 byte 0x00 Response The response mirrors the requested state 0x00 or OxFF Errors Single Coil Write Error Function Code 1 Byte 0x85 Exception codes 1 Byte 0x01 Function not supported 0x02 Address out of range 0x03 Padding value 5 3 5 Write Multiple Coils Modbus Function Code 15 0x0F One byte can be written to set the state of multiple relays each bit representing one relay Request Relay states are controlled by specifying the start address of the first relay to be controlled the count of the relays to be affected and the relay state byte A value of 0x00FF would be used to turn ON all of the relays in the range 1 8 assuming relays 1 through 8 are found in the coil address table or 0x0000 to turn them OFF Start Address 2 bytes 0x0000 Relays 1 OxOOFF Relay 255 Output Quantity 2 bytes Ox0001 OxOOFF Byte Count 1 2 bytes 0x01 Relay Value 1 bytes 0x0000 0x0003 Relay State Byte Bit7 6 5 4 3 2 1 Bit 0 X X X X Rel ay4 Relay 3 Relay 2 Relay 1 Response The quantity value is returned Errors Multiple Coil Write Error Function
141. he Signed Certificate field of the respective certificate If the CA has also included a CA bundle or intermediate certificates they can be appended to the end of the signed certificate in reverse order with the root certificate being the last For example if the signed certificate has two intermediate certificates they would be placed in the Signed Certificate in the following order Signed Certificate Intermediate 2 Intermediate 1 Root certificate You will need to include all the starting and ending tags for each certificate 4 1 5 4 Importing self signed certificates As an option you may import the self signed certificate in to the computers certificate store This will remove warnings about the certificate not being trusted To do this download the certificate from the X 600M System gt SSL Certificate pages for the certificate you would like to import Once the certificate has been downloaded double click the file and your computer will launch the wizard for importing the certificate Once it has been completed restart your web browser The certificate has now been imported This procedure will only remove warnings about the authenticity of the certificate for the local computer 4 1 6 System gt Custom Web Pages For most users and applications the built in control web pages with Dashboards Panels Widgets and Components will be more than adequate however for users with more specific needs or where more complex graphics are n
142. he sections below always requires administrator privilege with a username and password User access to the Dashboards is configurable The System gt Overview setup page has a global setting for Dashboard and I O Password Protection See Section 4 1 I1V lt 70 Memory Usage 34 8 eee ii eri hboards Internal Storage 8 5M 155 5M External Storage USB Storage Device Not Detected Dashboard and I O Enabled Disabled Password Protection Submit Res This setting can be used to enable or disable password access to the Dashboards and I O The default setting is Disabled Check the Enabled setting if you wish to require users to enter a username and password to access the Dashboards If password protection is enabled Access Groups and other menus used to manage password access are displayed in subsequent menus If password protection is disabled Access Groups and other menus used to manage password access are not displayed in subsequent menus This global setting helps keep the setup pages simple and easy to use for those who do not need password protection 3 7 1 Access Groups The X 600M supports five different access groups All groups can be configured as a Read Only group or Read Writable group Read Only groups allow monitoring of I O only Read Writable groups allow Xytronix Research amp Design Inc Page 29 Configuration and Setup X 600M Users Manual monitor and control of I O The admin and cbw groups
143. humidity and much more A few example applications include e Server or telemetry system watchdog e 1 O Extender for a PLC e Industrial Thermostat e Solar Energy Controller e Process Monitor e Server for other ControlByWeb products provide a single web page which controls other ControlByWeb devices e Process Controller Page 8 Xytronix Research amp Design Inc X 600M Users Manual Introduction 1 3 Accessing X 600M The X 600M has a built in web server that provides simple web pages that can be accessed directly using a standard web browser This allows users to access the unit with NO SPECIAL SOFTWARE installed on their computer The configuration is simple to setup simple to use and can be accessed from just about any computer or smart phone Note Network routers may need to be configured to allow access from computers outside of the local network see Appendix C Accessing X 600M Over The Internet 1 4 Connectors amp Indicators Network Connectors The X 600M has two RJ 45 Ethernet connectors An internal L2 switch allows multiple modules to be daisy chained together or second Ethernet device to be connected without the need for an external Ethernet hub or switch The green LINK LED is illuminated when the module is properly connected to an Ethernet network and is ready to communicate Network communications will only occur if this LED is illuminated The LINK LED blinks when activity is detected on
144. indicator is illuminated whenever the module is powered 1 5 Security The X 600M has built in security features normally employed with industrial applications The operating Xytronix Research amp Design Inc Page 9 Introduction X 600M Users Manual system is stored in a read only file partition and cannot be changed or hacked by malicious users The device supports multiple communication protocols such as FTP client only SNMP and Modbus over TCP IP but these ports are only open when the service has been enabled By default the only ports that are open are 80 and 443 which are the web server ports If Dashboard and I O protection is enabled users must log in using a predetermined username and password This authentication takes place over an encrypted connection when using HTTPS The simplicity of the X 600M makes it an inherently secure device Nevertheless as with any device installed on a network appropriate security precautions should be observed If the X 600M is installed on the Internet it is recommended that the device only be accessed using HTTPS so that all communication with the device is encrypted X 600M Module 1 6 X 600M Accessories and Expansion Models Part Number Power Supply Requirements X 600M I 9 28VDC Optional Accessories Accessory Description Part Number Power Supply Regulated 24V DC 1 75Amp 100 240V AC Input PS24VW1 75 B
145. ing Network 2 settings Private network Access type Internet HomeGroup Joined Connections Ethernet Change your networking settings ji Set up a new connection or network Set up a broadband dial up or VPN connection or set up a router or access point Troubleshoot problems Diagnose and repair network problems or get troubleshooting information See also HomeGroup Internet Options Windows Firewall 6 Your machine may have more than one Internet connection 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 t LIE lt Network am Network Connections Search Network Connections Organize Disable this network device igormese thi 3 mA Bluetooth Metwork Connection Mot connected Bluetooth Device Pq W Disable Local Area Connecti Status a Connection 2 Disabled Diagnose ae VMware Virtual Ethe irtual Ethernet Adapter s Wi Fi Eridge Connections Disabled Create Shortcut Delete eff Dell Wireless 1705 8 a e ena coe cia p 5 tems 1 item selected Page 20 Xytronix Research amp Design Inc X 600M Users Manual Configuration and Setup 7 Select Internet Protocol Version 4 TCP IPV4 and then click the Properties button Networking Connect using ry Realtek PCle GBE Family Controller This connection uses the following items dZ Q05 Pack
146. ing a human readable name instead of an IP address This name is only valid on the local network NetBIOS is used with computers running Windows OS mDNS is used on computers running MAC OS X e O 8 Setup Ii Fy amp O 192 168 1 2 setup html gt lt 600 Mi Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout 0 Advanced Network NetBIOS mDNS Setup Setup network discovery services that make finding the X 600M on the local network easier Overview NetBIOS mDNS Discovery Services Ethernet NetBIOS Enabled yYes No Wireless mDNS Enabled Yes No Local Host Name x600 Submit Reset Web Server Modbus Remote Services Server Remote Services Client SNMP Email FTP NetBIOS mDNS NetBIOS Enabled Allow Windows machines to locate the X 600M by name mDNS Enabled Allow MAC OS X machines to locate the X 600M by name Local Host Name The X 600M broadcasts information about itself to services running on your PC NetBIOS and mDNS and identifies itself with the URL defined by this setting The default name is x600 When accessing the X 600M using this name from a web browser append local to the name For example http x600 local setup htm1 will open the setup pages of the device when NetBIOS mDNS are enabled and there are no devices with conflicting names on the network Page 54 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages
147. ions to the X 600M This has two main benefits First the web server does not need to know the IP address of the X 600M This means that the X 600M can get its IP address dynamically from a DHCP server simplifying the installation Second since the connection from the X 600M is outgoing rather than incoming the local router on the network where the X 600M resides does not need to be configured for port forwarding For more information about the Remote Services see Appendix E External Server and Remote Services Xytronix Research amp Design Inc Page 49 Setup Pages X 600M Users Manual 806 sssewup C 192 168 1 2 setup html 5 gt lt 600 M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout Advanced Network Remote Service Client Setup The Remote Services Client is used when X 600M is installed on a private network and must communicate with another server on a public network See users manual for details For most installations this should not be enabled Overview Ethernet Remote Service Client Wireless Enabled Yes No Host Name 192 168 1 15 Remote Port 8000 Web Server Connection String 00 0C C8 00 00 00 ControlByWeb X 600M Sor ae Connection Interval 1l Minutes Remote Services Submit Reset Server Remote Services Client SNMP Email Remote Services Enabled This option enables or disables Remote Services If Yes is selected
148. l io counterl then warningFlag 1 Xytronix Research amp Design Inc Page 77 Setup Pages X 600M Users Manual end prevCountl io counterl end if prevCount2 io counter2 then warningFlag 2 prevCount2 io counter2 end if prevCount3 io counter3 then warningFlag 3 Prevecount3 1O counters end if prevCount4 io counter4 then warningFlag 4 prevCount4 io counter4 end if reg emailSent 1 and warningFlag 0 then email emailDef reg emailSent 1 end warningFlag 0 Page 78 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 4 6 Logging Tab The X 600M can log up to 5 separate data log files each with different data and log intervals The logged data is stored in internal flash memory or an external USB Flash drive Internal files can be up to 20MB external USB Flash drive files can be 4GB in size when the drive is formatted with the FAT32 file system The data is stored using a circular buffer old date is over written The Logging menu tab displays the log configurations OO s seup it By gt D 192 168 1 2 setup htm lt 6 oO oO Mi Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout Jf System Logging Network Add edit and delete log file configurations Create up to five log files Devices Log List Add New Log Log gt oy Control Logic Log
149. l and are not monitored for inactivity The dashboard pages can remain open indefinitely The setup pages are divided into seven setup sections System Network Devices I O Control Logic Logging and Edit Dashboards The eighth section View Dashboards is for viewing and testing the dashboards Each of the setup tabs is described in the following sections Note The X 600M setup pages require a modern web browser with javascript enabled to function correctly These browsers include Internet Explorer 9 and above and latest versions of Chrome Firefox and Safari If configuring the X 600M on a mobile device make sure to use a web browser that supports pop up windows Once the X 600M is configured the Dashboards are viewable by all modern web browsers on mobile devices Page 24 Xytronix Research amp Design Inc X 600M Users Manual Configuration and Setup 3 4 Basic Setup Strategy The X 600M is configured and programmed using its built in web pages The configuration can be quick and simple for small systems or require more design and thought for complex systems The X 600M is both easy to use and yet still has the resources to handle complex applications You can start with the built in logic functions and dashboards and progress to scripts and custom web pages as needed The configuration and setup consists of the following basic steps Step 1 Step 2 Step 3 Step 4 Step 5 Configure the network paramet
150. l Appendix H Custom Web Pages 1 if Suser gt hasAccess 255 2s Sio gt load a4 of Sem 4 lt head gt lt title gt Example lt title gt lt head gt 5 lt body gt lt p gt Sio gt desc owSensorl1 lt p gt lt body gt 62 lt lt 7emd gt Le ep EY Line 1 Checks to see if the user that is logged in can access this web page It does this by calling the hasAccess function of the user object The hasAccess function takes as a parameter an access mask Each bit in this mask represents one of the User Access groups Bit Access Group Decimal Representation 1 admin 1 2 user 2 3 group 4 4 group2 8 5 cow 16 The way this works is that if the currently logged in user belongs to at least one of the Access Groups specified in the access mask in this example 255 or any group that user will be able to view the page Line 1 To create a page that only should be visible to the admin you would use this for line 1 if Suser gt hasAccess 1 To create a page that should only be visible by the user access group you would use this for line 1 if Suser gt hasAccess 2 Line 2 Will cause the template engine to load information about all the registered I O on the X 600M The load function must be called for each object that is to be later used in the template Lines 3 and 4 Basic HTML Line 5 Contains the tag that will insert the description of a 1 Wire temperature sensor into the web page There ar
151. l Decimal Read Coils 01 Mapped Relays See address table See address table Read Discrete Inputs 02 Mapped Inputs See address table See address table Read Holding Register 03 Mapped Analog See address table See address table I O Write Single Coil 05 Mapped Relays See address table See address table Write Multiple Coils 15 Mapped Relays See address table See address table Write Multiple Registers 16 Mapped See address table See address table Regsiters The X 600M has two TCP sockets available for Modbus TCP This allows two connections to be open at one time Requests for more than two open connections will be rejected When an error occurs an error code is returned Most Modbus client software will interpret this code in a human readable form The code is comprised of the original function code plus 0x80 For example an error during the read coils function 0x01 would return 0x81 Each error has a qualifying exception number The following are the possible exception codes and their meanings 0x01 Function code not supported also when Modbus is disabled in the setup pages 0x02 Incorrect starting address quantity of output combination 5 2 PLC Device Addressing There are generally two schemes for accessing Modbus devices the first is by specifying the Modbus function code memory type and address The second sometimes called PLC addressing requires only the address Modbus protocol use
152. l Installation and Wiring 2 3 Making Wiring Connections MIS WIRING OR MIS CONFIGURATION COULD CAUSE PERMANENT DAMAGE TO THE X 600M THE EQUIPMENT TO WHICH IT IS CONNECTED OR BOTH CAUTION MAKE SURE POWER IS SHUT OFF BEFORE WIRING CAUTION THIS UNIT SHOULD BE INSTALLED BY A QUALIFIED TECHNICIAN 2 3 1 Wiring Procedure The correct wiring procedure is as follows a removable terminal connector is provided for making the power connections 1 Make sure power is turned off 2 Remove the terminal connector from the X 600M and make wiring connections to the terminals This technique avoids stressing the internal components while torquing the screws 3 Reconnect the terminal connector 4 Apply power It is recommended that any load device to be controlled not be connected to the expansion modules until after the X 600M has been configured and tested By doing this wiring and configuration mistakes will not cause the load device to turn on unexpectedly Make sure the wires are properly inserted into to the terminals and that the screws are tight Use wire rated for 75 C min for connections to the terminal blocks See Appendix for wire size and connector terminal torque specifications 2 3 2 Power Supply Connections X 600M requires power for its internal logic circuits Power is provided by connecting a 9 to 28 VDC power supply to the Vin and Vin terminals A regulated power supply is recommended verify that the
153. le Mode 485 Mode 584 984 Read Coils 01 0 3 Relays 1 4 Discrete Addr 1 Addr 1 Read Discrete Inputs 02 0 3 Inputs 1 4 Discrete Addr 1001 Addr 10001 Read Holding 03 16 Vin 32 bit float Addr 4001 Addr 40001 Registers 2 2 278 Sensors 1 4 32 bit float Addr 4001 Addr 40001 928 530 Counters 1 2 32 bitint Addr 4001 Addr 40001 Write Coils 05 0 3 Relays 1 4 Discrete Addr 1 Addr 1 Write Multiple Coils 15 0 3 Relays 1 4 Discrete Addr 1 Addr 1 Write Multiple 16 528 530 Counters 1 2 32 bitint Addr 4001 Addr 40001 Registers 784 791 Relays 1 4 32 bit float Addr 4001 Addr 40001 For 32 bit numbers two registers must be read starting at the desired address See section 5 3 3 for an example Xytronix Research amp Design Inc Page 95 Modbus Operation X 600M Users Manual 5 3 Modbus Function Codes The following sections describe the function codes supported by the X 600M 5 3 1 Read Coils Modbus Function Code 01 0x01 Read the state of the relays that have been added to the Modbus coil table Request Start Address 0x0000 coil 1 to OxOOFF coil 256 Coil Quantity 0x0001 1 coil to OxXOOFF 255 coils Multiple Outputs may be read at the same time by specifying the correct starting address and quantity of coils to be read Response The X 600M will respond to the request with a data field of one byte each bit representing the coil s
154. left hand corner of the widget Name A unique identifying name for the widget that will be used when updating the widget s component s states This field must also begin with a lowercase letter and contain only alphanumeric characters Width This setting selects how wide the widget is inside the panel as a percentage of the panel width The options are Whole width of panel half width of panel two thirds of panel one third of panel one fourth of panel Height This setting selects how tall the widget is inside the panel The options are auto fixed Auto Add Device I O Select a registered device and the widget will automatically add one component for each of the registered O s of that device Some devices like the X 300 in thermostat mode will preset the option to generate a application specific widget instead of the standard O s widget In this case the widget created will be a specific widget designed for the X 300 in thermostat mode The following image shows a standard I O populated widget and an application specific widget for the same X 300 configured for thermostat mode Xytronix Research amp Design Inc Page 85 Setup Pages X 600M Users Manual X 300 Thermostat Mode 00 0c c8 02 28 d7 Pa X 300 Thermostat Mode rea Indoor 73F Temperature 1 Indoor SetTo System Mode e Heat Cool 7 3 J 0 F A Off Auto x x Humidity Outdoor T Temperature 1 73 6 F Indoor Humidity 1 xx RH
155. lename and path to use when uploading the log file to an FTP server Atime stamp is appended to the filename every time an upload occurs Each upload creates a new file Xytronix Research amp Design Inc Page 81 Setup Pages X 600M Users Manual 4 7 Edit Dashboards Tab The X 600M employs powerful and flexible web based tools to configure the user web page format and content The index html web page supports up to ten Dashboards Click the Edit Dashboards menu tab to view and edit the Dashboards Each Dashboard behaves like a separate web page The X 600M has no built in relays or inputs As such you can configure the dashboards for your specific application with a mix of ControlIByWeb devices and X 600 series expansion modules The Edit Dashboards menu tab has many tools you will need for creating professional and functional web pages without needing HTML Javascript or other programming skills The control page includes a hierarchy of elements namely Dashboards Panels Widgets and Components Each of these elements are described below Each Dashboard has a title at the top A pull down menu in the upper right hand corner provides access to other dashboards When you finish adding or editing elements of a Dashboard click Commit Changes to save your work 0900 setup a E C f O 192 168 1 4 setup html gt lt 6OO M Welcome Administrator Logout CONTROLBYWEB System X 600M Admin X 600M Admin 04 Ne
156. les 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 B 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 There is no guarantee however 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 a relay on a circuit different from where 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 Xytronix Research amp Design Inc Page 139 Appendix M Licensing X
157. llowing URL in the address bar of a web browser http ipaddress setup html For example using the default IP address enter http 192 168 21 9 serip him If you are using the config via DHCP method described in Method 1 above enter http X600 local setup html Vin 24 3 5 0 5 1V 3 3 3 3 V S lt 600M a WepR 600M Secure Login Sse aaa wee Contrelby eb com P System System Overview Network f Devices Username Part Number X 600 4 Firmware Version 0 02 Password Control Logic Serial Number 00 0c Loain Up Time 1 day g H Edit Dashboards Internal Temperature 33 7 H View Dashboards Before editing the setup pages you will need to enter a username and password The default username is admin and the default password is webrelay password is case sensitive The left side of the configuration and setup pages have click able menu tabs above right which provide access to specific configuration and setup settings With all of the setup pages if no activity is detected for 30 minutes the user is automatically logged out If this happens your browser page should automatically be redirected to the login page To restore the setup session again enter the setup URL http ipaddressV setup html into address bar of your web browser if not already there and reenter the username password The control and display non setup pages are called dashboard pages http 192 168 1 2 index htm
158. ly configure the components on the Dashboard you will appreciate the more descriptive I O name 8 Setup lt 192 168 1 2 setup html w gt lt 600 M Welcome Administrator CONTROLBYWEB Aami Ahang Abandon Changes Logout Jf System 192 168 1 2 popup php gt gt 1 Wire Sensor Configuration Add 1 Wire Sensor sensors in include 1 Wire Sensor Add New 1 Wire Sensor Overview Device device 1 X600M master unit Device 1 Wire Sensor 28 000004563f38 Scan 1 Wire Bus Number Relays D Name owSensorl Digital Inputs Description 1 Wire Sensor 1 Wire Sensors i Decimal Places 2 Frequency Inputs Access Groups A admin M users group1 group2 cbw Counters Supply Voltages Add Close a Names are short 20 character max identifiers that are used in Lua scripts to reference I O They may not contain spaces or special characters The description 60 character max appears in Dashboards Emails etc Input High Times Input On Times Registers Status Ready Device This is the device where the 1 Wire sensor resides This is the only I O that can be found on the X 600M itself hence the first option will be device1 or the X 600M Device 1 wire Sensor Number Every temperature humidity sensor comes from the factory with a unique non changeable address To configure a new 1 wire sensor you must identify which sensor on the bus you wish to add This is done by clicking
159. mA 1 68A This example is workable because the expansion bus load current is less than 1 70 Amps For this example the power supply must be capable of providing 1 76A at 24VDC 80mA for the X 600M plus 1 68A for the devices on the expansion bus If only using a 12VDC power supply each X 11s 2 relay expansion module would use 196mA The X 600M would be able to support 8 modules under this configuration 8 x 196mA 1 57A This configuration is workable because the expansion bus load current is less than 1 70 Amps For this example the power supply must be capable of providing 1 72A at 12VDC 150mA for the X 600M plus 1 57A for the devices on the expansion bus 5 pin Connector Pin Description 9 28VDC power supply input Caution DO NOT EXCEED MAXIMUM POWER SUPPLY VOLTAGE Vin Power supply input Internally connected to the Gnd terminal Vin Gnd Ground connection for 5VDC output Data 1 Wire bus data connection for digital temperature and humidity sensors This output voltage is used to provide power for the 1 wire digital FOV OUL temperature humidity sensors 2 3 3 System Start Up At power up the green Power LED should be illuminated The X 600M requires 10 to 15 seconds for the operating system to load before it becomes operational 2 3 4 Expansion Module Connections Expansion modules are connected to the X 600M with a 10 conductor ribbon cable Normally the X 600M and the expansio
160. mDNS 0012 0006 0006 0014 0007 0007 0016 0008 0008 Uuu U uuU uuU Modbus Enabled Modbus TCP is enabled by selecting Yes in this field The default setting for this field is No See Section 5 Modbus Operation for more information on using X 600M on a Modbus network Modbus Port This specifies the port used for Modbus TCP communications with X 600M By default this is set to port 502 which is the standard Modbus port It can be set within the range of 0 to 65535 Endianness 32 bit data is treated as two individual 16 bit words using IEEE 754 floating point format Floating point format is used for sensor pulse counter analog and frequency data as well as for setting output pulse duration If the check box is set the X 600M will use big endian format and the most significant 16 bit word big end is sent first If the box is cleared then the X 600M will use little endian format and the least significant word little end is sent first The default setting for this box is little endian For example in little endian format a 32 bit floating point number represented by 1234 ABCD is sent as ABCD 1234 To make I O available over Modbus TCP IP a mapping must be created I O can be added to the three tables in order to make them available For example to make a temperature sensor available as a holding register at Modbus address 0010 click on the next to address 0070 in the Holding Register table A drop down list of I
161. n also be found on external devices These sensors must be registered similar to other I O objects as described in the previous section but they differ slightly when the device selected is the X 600M itself To add a 1 wire sensor connected directly to the X 600M click the Add New 1 Wire Sensor icon 6 0 O z5 setup M a 192 168 1 2 setup htm gt lt 60 oO M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout P System 7 O 1 Wire Sensors Network Add edit and delete 1 Wire Sensors The terminal connector on the X 600M is used for direct connection to 1 wire sensors These sensors in include temperature humidity ultrasonic distance sensors and more See users manual for details Devices 1 Wire Sensor List Overview n i Device 1 Wire Sensor ice Description Number No 1 Wire Sensors have been configured 1 Wire Sensor Name 1 Wire Sensor Description Device Name Relays Digital Inputs Showing 0 1 Wire Sensors 1 Wire Sensors Frequency Inputs Counters Page 60 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages Up to 32 1 wire sensors can be connected to the X 600M the 1 wire sensors share the same data power and ground conductors and are accessed using a unique hardware address Similar to other I O objects you will want to rename these objects to more useful names such as outdoor Temp When you subsequent
162. n be disabled by selecting the Event Logging Only option When Event Logging Only is chosen as the Log Interval logging will only occur if an event and action combination has been configured to log For example a conditional event can be configured for whenever an input is on An action can be configured to log whenever the previous event occurs See the sections on Conditional Events and Actions for more information Logging Configuration This section has two windows The window on the left lists the System I O and Register resources which are available to be logged The window on the right lists the System I O and Registers which have been selected to be logged Make the logging selections by first clicking the desired I O or register and then clicking the forward arrow buttons gt gt or lt lt to move the I O or resource back and forth between the lists When you have completed making the changes click the Add or Page 80 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages Update button to create the new data log FTP Upload Interval Enabled or disable periodic uploading of the log file to an FTP server When enabled the log file will be uploaded to a FTP server periodically When the log file is successfully uploaded it is erased from the X 600M The FTP server settings are configured on the FTP page under Network gt Advanced Network gt FTP FTP Path Filename This is the fi
163. n be used The term external web server is used here to mean a separate web server such as Apache or IIS that is not the web server built into the X 600M In this scenario users can access custom web pages that reside on the external web server and the external web server communicates with the X 600M An external web server can integrate multiple ControlByWeb devices into a single control page In other words the user may not be aware that he she is using multiple ControlByWeb devices but rather the user sees an integrated control page for the entire system In addition the use of an external web server allows programmers to create custom user interfaces that take advantage of the additional resources typically available on larger web servers including more memory and various web programming languages There are two approaches that an external server can use to communicate with the X 600M and other ControlByWeb devices Direct Server Control and Remote Services Direct Server Control The first approach is for the external server to create a TCP connection whenever it needs to access the X 600M In this case the external server opens the connection sends commands and or reads the device and then closes the connection This method is ideal when the web server and all of the X 600M devices are on the same network without routers between them In this case the server can communicate with the X 600M devices directly and securely sinc
164. n environments results may vary Please test in the desired Xytronix Research amp Design Inc Page 15 Installation and Wiring X 600M Users Manual environment before making a permanent installation Direct Sensor Connection Daisy Chain Sensor Connection Star vs Linear Connections The following are general recommendations that will maximize sensor runs and minimize problems e Avoid sensor runs adjacent to industrial equipment power cables These cables can have high voltage spikes that may induce noise on the sensor signals Similarly avoid running sensor cables near any radio transmission antennas or coaxial feed lines e Protect any exposed electrical connections with appropriate weather protection e Do not hot plug wall mount Temperature Humidity sensors into a powered X 600M Use the internal jumpers in the Temperature Humidity module to enable disable the sensors as needed during discovery and test e Due to the broad range of applications and environments where the X 600M may be employed successful installations of long sensor runs may vary significantly Cat 5 and Cat 5e network cable have proven to be an effective and low cost solution for long runs Other cable types can be used but cable capacitance may limit the length The illustration below shows the recommended connections using Cat 5 network cable Connect all unused conductors to ground Temperature Sensor Cat 5 Network Cable 5V
165. n modules are mounted side by side as shown in the photo below The ribbon cable connectors have a polarization lug to ensure correct connections man x Emi COAN Te Pa d TOLA FAA 1 DOA TiL F y CONTROL eae y E By i en a E g E 4 ENET x AA i AAA PEO iyu INDUSTRIAL I O WEB SERVER Page 14 Xytronix Research amp Design Inc X 600M Users Manual Installation and Wiring 2 3 5 Optional Power Injector As described in Section 2 3 2 above the expansion modules draw their power from the X 600M thru the expansion bus ribbon cable The X 600M can provide up to 1 7 Amps for powering the attached expansion modules In applications where a large number of expansion modules are used and additional current capacity is needed a DC power injector can be employed This accessory has two ribbon cable connectors and a connector for supplying 9 28V to the expansion bus separately from the X 600M The communication signals pass thru the power injector but the DC power from the X 600M does not The power injector thus provides power for all of the expansion modules to the left side of the injector The ribbon cable itself can only carry 1 7Amps maximum Install one or more power injectors such that no portion of the ribbon cable carries more than 1 7Amps Note It is recommended to power the X 600M and power injectors using the same power supply w N Wanye 2 3 6 Temperature
166. nd Restore SettingS ccccceececseeeeseeeeeseeeeeseeeeeseeeeeaeeeeas 37 4 1 5 System gt SSL COMIC AISS sic Sai cht eccceat cos bea dacGuas hcriedaw ten naetla cmeweinedoawseandiauedtancceie i ctancmeaddentdanidobansaen 38 Default Self Signed SSL Certificate Generating a New Certificate Signing Certificates with a Certificate Authority Xytronix Research amp Design Inc Page 1 X 600M Users Manual Importing self signed certificates 4 1 6 System gt Custom Web Pages g4 tctiiesss le errs Aes Aveda eid Aaah ceed comet eke E 40 AT System SV Ste Mi WOG Wisinusictainnustie iat nise ea OOM E has usenanndantdtansmetl tia cid 42 4 2 Network Tab Current network configuration Of a CEVICE cccscecseeseeeeeeeeeeeeeeseeeeseeeeeesaseeseaeeessenes 43 4 2 1 Network gt Ethernet Configure Ethernet SettingS ccccccsssccceeceeceseeceeecessssecseeeeseuseesseeesseees 43 4 2 2 Network gt Wireless Configure wireless Adapter ccccccccssecceseeeeceeeeesaeeeeseseeseusesseeeesaeueesseesenas 45 42 3 Network gt AGVanGe NetWork Ta Dreceres a inianahear saan sete navendabasanc2wapeaamnt aR 47 Network gt Advance Network gt Web Server Configure web server settings Network gt Advanced Network gt Modbus Configure Modbus settings Network gt Advanced Network gt Remote Services Server Configure remote services server Network gt Advanced Network gt Remote Services Client Configure
167. nd save the file on your computer To import a database click Choose File A File Upload window will pop up in your browser Navigate to the desired file and click Open Next click Import to import the file OO zsetup e C 5 192 168 1 2 setup html 5 gt lt 600 MM Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout P System Backup Restore Save all system settings to a file on a computer The settings file can be used to backup the X600M or to copy settings to additional X600M devices When importing can choose to use default network and or password settings or you can import the network and or password Overview User Accoun ts settings Access Groups System Settings Date amp Time Import Settings File Use Default Network Settings Import Choose File No file chosen Backup Restore Use Default Password SSL Certificates Export Settings File Export Custom Web Pages System Log The import feature has two additional options The first Use Default Network Settings allows a settings file to be imported with the network settings forced to their default values This option is useful Xytronix Research amp Design Inc Page 37 Setup Pages X 600M Users Manual for setting up multiple units that will function similarly but will require different network configurations The second option Use Default Password allows a settings file to be imported with the use
168. ng example is for those running the Windows 8 operating system 1 Apply Power wait 15 seconds for the X 600M to become operational and then connect the Ethernet cable Open the Windows 8 start screen Type Control Panel and press enter the search box opens automatically when you begin typing Search T Ga gt Control Panel Adjust your computer s settings View by Category Y System and Security Review your computer s status Save backup copies of your files with File History Find and fix problems VeTwor View network status and tasks sharing options Hardware and Sound View devices and printers Add a device Programs Uninstall a program User Accounts and Family Safety op Change account type Ap Set up Family Safety for any user Appearance and Personalization Change the theme Change desktop background Adjust screen resolution Clock Language and Region Add a language Change input methods Change date time or number formats _ Ease of Access Let Windows suggest settings Optimize visual display Xytronix Research amp Design Inc Page 19 Configuration and Setup X 600M Users Manual 5 Click or touch Change adapter settings v T 55 Network and Internet Network and Sharing Center v Search Control Panel View your basic network information and set up connections Control Panel Home View your active networks Change adapter settings Change advanced shar
169. ng for this field Note If the server name is entered and not the IP address a DNS server must be set up under the Network menu tab Server Port This field is used to specify the SMTP Mail Server Port The default setting is 25 which is the standard SMTP port Return Email The X 600M will not receive email messages but when the X 600M sends email messages it must include a return email address This field is used to specify the return email address Note that although the X 600M will send email messages with any email address specified in this field some email filters spam filters will not allow messages through that include an invalid email address There is no default setting for this field Page 52 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages Connection Security If the SMTP server supports SSL TLS encryption then enable it here SMTP servers that require SSL TLS encryption will not work unless this option is enabled User Name If Required If the SMTP mail server requires authentication the user name must be entered here There is no default setting for this field Password If Required If the SMTP mail server requires authentication the password must be entered here There is no default setting for this field Test Email Click this button to test your SMTP settings by sending an email to the email address associated with the admin account 4 2 3 7 Network gt Advance
170. nput High Times analog analog8 Analog Input 8 device4 Analog Slave 8 Edit Delete Input On Times counter counter1 Counter 1 device3 8 Input Slave 1 Edit Delete Sars frequency frequency1 Frequency Input 1 device3 8 Input Slave 1 Edit Delete Relays highTime highTime1 Input High Time 1 device3 8 Input Slave 1 Edit Delete Supply Voltages input input1 Digital Input 1 device3 8 Input Slave 1 Edit Delete TI ocouples input input2 Digital Input 2 device3 8 Input Slave 2 Edit Delete input input3 Digital Input 3 device3 8 Input Slave 3 Edit Delete 1 Control Logic input input4 Digital Input 4 device3 8 Input Slave 4 Edit Delete Loggi input inputs Digital Input 5 device3 8 Input Slave 5 Edit Delete 4 Edit Dashboards input input Digital Input 6 device3 8 Input Slave 6 Edit Delete input input Digital Input 7 device3 8 Input Slave 7 Edit Delete View Dashboards input input8 Digital Input 8 device3 8 Input Slave 8 Edit Delete anTima anTimat Innit On Tima 4 Aminn 28 Innit Clava 4 Celie Malata To add I O first select the type of I O from the side menu Then select Add I O Type in the top right Page 58 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages hand corner of the window The following window or one similar will appear The following images show how to add a relay a e060 8 Setup x n s gt CG A 192 168 1 2 setup html Y X6 OOM Welcome Administrator CONTROLBYWEB Commit Changes
171. nt instance on New Year s Day of the following year Select the option Disable Event January 1 Every Year The unlockDoor event can be disabled for other holidays by clicking on the event instance on those holidays in the calendar and doing the same thing Orr ey Oo 4 5 3 Control Logic gt Actions Add edit and delete Actions Actions are simple work orders which do specific things when activated Actions can do things without the need for more complex Lua scripts You use actions to turn a relay on or off pulse a relay force a data log send an Email run a Lua expression etc Actions occur in response to a specific Event selected within the Action The Actions menu tab presents a list of the current Actions To add a new action click Add New Action Page 72 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages a 609 z sewp x gt C gt 192 168 1 2 setup htm Ss gt lt 600 M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout System 2 Control Logic Actions Network Add edit and delete Actions Actions define what happens when an event occurs For example they can turn on a relay or send out an email message First create events see Conditional Events and or Calendar Events pages and then create actions based on those events E Devices gt Action List _ I O Add New Action Action Name Action
172. nything All that is required is a valid url and the minimum width and height required to view the custom web page correctly This component is useful for embedding ip camera live feeds among other things Custom web pages loaded into the X 600M can be used as well as web pages from remote servers An example url for embedding a ip camer live feed might look something like http Uusername password 192 168 1 90 video cgi displayWidth 640 amp displayHeight 480 The user name and password required to access the camera are specified in the url and the display width and height are passed as parameters with the request for the file video cgi The exact url required to access an ip camera s live feed via a web page will be dependent on the manufacture of the camera Page 90 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages ie 192 168 1 2 popup php Dashboards Edit Add Component Component undefined Url Width pixels Height pixels Add Cancel Status Ready Xytronix Research amp Design Inc Page 91 Setup Pages X 600M Users Manual 4 8 View Dashboards Tab The View Dashboards menu tab presents a display similar to what users will normally see when accessing the X 600M Use this page to test and debug the dashboards panels widgets and components in real time Experiment with and test the buttons sliders and data entry boxes With this menu tab yo
173. ociated with port 8000 The address 192 168 1 26 for WebRelay would be associated with port 8001 The X 600M would be accessed from the Internet by entering the public IP address of the router plus the port number assigned to the X 600M in the URL window of the web browser http 266 70 164 97 8000 All Internet requests to the router for port 8000 would be forwarded to the X 600M Similarly all request for port 8001 would be forwarded to WebRelay Note When an HTTP request comes in to the router without the specific port specified http 266 70 164 97 the router will handle this as a port 80 request default HTTP port In other words http 266 70 164 97 is exactly the same as http 266 70 164 97 80 Router configuration can vary widely Some routers have the capability of translating the addresses and the ports which would require no port configuration change on the X 600M or WebRelay For example the router would be configured so that messages sent to http 266 70 164 97 8000 would be forwarded to http 266 70 164 97 80 which is the default HTTP port An example screen shot of a router configuration is given below This setup allows the two ControlByWeb products in the above example to be accessed remotely from the Internet Page 110 Xytronix Research amp Design Inc X 600M Users Manual Appendix C Accessing X 600M Over the Internet http 192 168 1 1 Ponvard him aj 0G S bmp 192 168 1 1 Fonvard him
174. olutionary product which employs a powerful processor together with industrial Flash memory With increased processing power applications such as sending encrypted Email and wireless access are now feasible in a small industrial package High Reliability Design Designed from the ground up for reliability rather than cost optimization Built with industrial grade wide temperature range components Uses Industrial grade SLC Single Level Cell flash memory which offers higher reliability than the ultra dense components used in consumer products such as cell phones Includes transient protection on all I O Includes circuitry for reliability and protection such as an independent hardware watchdog and voltage supervisor Easy Start Up After making the power and Ethernet connections you can have the X 600M automatically scan for the presence of any ControlByWeb Ethernet modules on the same sub net and for any expansion modules connected to the X 600M ribbon cable connector You can also automatically create a Dashboard web page and populate it with all of the resources components supported by the Ethernet and expansion modules This makes it easy to start experimenting with the web page user interface and to try out the relays and sensors Expandable The X 600M provides a flexible system level solution for monitoring and control The X 600M can control and monitor remote devices such as the WebRelay WebRelay Quad X 310 X 320 etc an
175. ondition is met and false otherwise The conditions which generate an event can be both simple and complex Events in turn trigger Actions Actions are triggered whenever the corresponding event changes state An Action can include sending an Email turning a relay on or off or initiating a data log An Event can trigger more than one Action For example an Event can occur when the temperature exceeds a certain value the Event then can trigger two Actions One Action could turn a relay on to illuminate an alarm light and a second Action could send an Email alert The scheme of keeping Events and Actions separate and distinct allows for complex conditions and reporting which is needed by many real world applications The X 600M makes a distinction between conditional events and calendar based events Actions can be triggered by both event types Calendar based events are periodic in nature and occur based on the current time Conditional events are dependent on the status of I O or a more complicated Lua script 4 5 1 Control Logic gt Conditional Events Conditional Events occur when certain criteria are met e g a temperature exceeding a certain value The conditions which generate a conditional event can be either simple or complex The Conditional Events menu tab presents a list of the current conditional events To add a new conditional event click Add New Event 00 setup 2 192 168 1 2 setup htm
176. ong to the CBW Access Group can be controlled remotely by other ControlByWeb devices All other Access Groups are generic and can be used for any purpose a RI 35 seup x i gt C 192 168 1 2 setup html X gt lt 600 M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout P System Access Groups SEN Edit access groups Each user can be assigned to one or more of the groups below Admin access group allows users to access setup pages CBW access group is a special group for communication with ControlByWeb devices select this group in I O setup for each I O that User Accounts can be controlled by another ControlByWeb device See users manual for details Access Groups Access Groups Daie S Time Group Name Member Title Read Write Backup Restore admin Admin Read Write SSL Certificates en eer Read Write Edit group1 User Read Only Edit Custom Web Pages group2 User Read Only Edit System Log cbw CBW Read Write The following example illustrates the use of access groups Admin Access Group i Mark B John i ste fc i Jennifer i Ryan E Mike oe o oe Relay 5 Relay 6 Relay 7 User CBW Access Group Access Group The image above depicts a scenario where 3 access groups are being used There are 6 users configured on the X 600M and 7 relays To determine if a user has access to one or more of the relays examine the access group depicted as a circle
177. ons Web Server and Protocols Simple web pages to display monitoring and control dashboards can be made by using drag and drop tools in the setup pages In addition custom pages can be created from scratch using HTML CSS and Javascript The X 600M supports both HTTP and HTTPS protocols Additional communication options include Modbus TCP and SNMP Access Groups Users can be assigned to one of five Access Groups Each group is assigned specific access privileges Access groups can be used to limit what control users might have For example the X 600M might be used as a thermostat The administrators can configure upper and lower limits on the set temperature while other users might only be able to adjust the set temperature within that range 1 2 Applications The X 600M was designed to meet a broad range of industrial applications It works well as a standalone device or system that can be controlled using a web browser It is also a convenient way to add I O to a computer It can be configured using simple menus and drop down lists or it can run Lua scripts Many of its features such as scheduling logging input state monitoring and the ability to control external relays on other devices make the X 600M a very powerful yet simple controller You can use the X 600M to control motors lights coils pumps valves bells etc You can also use it to monitor alarms sensors switches fluid level switches battery voltage temperature
178. opyright c 2006 2011 The PHP Group PHP 5 4 Copyright 1999 2010 The PHP Group All rights reserved Libcurl Copyright 1996 2014 Daniel Stenberg daniel haxx se FastCGI Copyright 1996 Open Market Inc This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit http www openssl org OpenSSL Copyright 1998 2011 The OpenSSL Project All rights reserved NGINX Copyright 2002 2013 Igor Sysoev Copyright 2011 2013 Nginx Inc jQuery Copyright 2005 2014 jQuery Foundation Inc and other contributors jQuery UI Copyright 2013 jQuery Foundation Inc and other contributors flot Copyright 2007 2014 IOLA and Ole Laursen CodeMirror Copyright 2014 by Marijn Haverbeke lt marijnh gmail com gt and others FullCalendar Copyright 2013 Adam Shaw DataTables Copyright 2008 2013 Allan Jardine all rights reserved Jeditable Copyright 2006 2007 Mika Tuupola Dylan Verheul All rights reserved jQuery simplecolorpicker Copyright 2012 2013 Tanguy Krotoff lt tkrotoff gmail com gt jQuery timepicker Copyright c 2014 Jon Thornton http jonthornton github com jquery timepicker jQuery UI Touch Punch Copyright c 2011 Dave Furfero Page 140 Xytronix Research amp Design Inc X 600M Users Manual Appendix N Mechanical Dimensions Appendix N Mechanical Dimensions JaN 324 000 09 M36 35mm DIN RAIL 000 481 2 98
179. or DS18B20 40 C to 85 C External 1 Wire Temperature Humidity Sensors Sensors 32 maximum at short distance Different combinations of cable length and sensor types will have different results e g supports 10 temperature sensors and 2 humidity sensors at 550 feet Cable Length 600 ft 180 m maximum combined cable length Temperature Sensor Dallas Semiconductor DS18B20 digital 1 wire thermometer 0 5 C from 10 C to 85 C Temp amp Humidity Sensor ControlByWeb X DTHS WM wall mount sensor 0 5 C from 10 C to 85 C 0 100 RH 1 8 Page 134 Xytronix Research amp Design Inc X 600M Users Manual Appendix Specifications Ethernet 2ea 10 Base T or 100 Base T 8 pin RJ 45 Ethernet connectors Built in 3 port L2 switch Network Ethernet IPv4 Static IP address assignment or DHCP HTTP HTTPS ports selectable Supports Web Browser HTTP HTTPS XML Modbus TCP SNMP protocols Communications Control and monitor up to 128 external ControlByWeb devices Devices can be ControlIByWeb products such as the WebRelay WebRelay Quad X 310 X 320 etc or expansion modules such as the X 11s X 12s X 13s X 15s etc LED Indicators Green Power On Green Network Linked Yellow Network Speed Real Time Clock Manual or NTP Network Time Protocol setup NTP Sync configurable for periodic update Automatic daylight savings adjustment Battery backup Super capacitor 30 days minimum Accuracy
180. ot be controlled monitored by that user Page 30 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages Section 4 Setup Pages The left side of the configuration and setup pages have click able tabs which provide access to specific configuration and setup settings Each of the tabs are explained the following sections 4 1 System Tab The Overview page displays basic information about the X 600M module and its operating system Note the Serial Number is the same as the MAC address for the wired Ethernet adapter The Up Time is the elapsed time since the last system reset The nternal Temperature is measured with an internal digital temperature sensor Note The internal temperature is normally higher than the ambient temperature External Storage shows the capacity and amount of memory used on the external USB Flash Drive Normally the external USB Flash Drive can be unplugged at any time However since data logs are buffered before written to the Flash Drive when the Flash Drive is unplugged there is risk of loosing the most recent data log If this is of concern click the Eject button to force all buffered data logs to be written and any open files to be closed before unplugging the USB Flash Drive The Dashboard and I O Password Protection setting can be used to enable or disable password access for all users The default setting is Disabled Check the Enabled setting if you wish to require all users to ente
181. p Design Inc X 600M Users Manual Appendix E External Server and Remote Services incoming ports need to be opened in the router security is not compromised See section Network gt Advanced Network gt Remote Services Client for more information Connection String With Remote Services enabled a connection attempt will be made periodically according to the Connection Interval setting in the Network gt Advanced Network gt Remote Services Client menu tab The Connection String is a user defined character string configured in the Network gt Advanced Network gt Remote Services Client menu tab The connection string is also sent at the same interval once the connection is open The external server is responsible for closing the connection when it is done Xytronix Research amp Design Inc Page 115 Appendix F SNMP Requests Objects and Security X 600M Users Manual Appendix F SNMP Requests Objects and Security Previously configured I O and Registers as well as some some simple network parameters can be retrieved from the X 600M using Simple Network Management Protocol SNMP The states of the relays can also be changed through SNMP requests For most cases using SNMP is as having the X 600M generate an Management Information Bases MIB file and loading this file into the SNMP manager software The X 600M is different than most other SNMP enabled devices Since the X 600M is highly configurable the MI
182. pecific number of times then stops On Date Time This calendar event ends is discontinued on day time Disabling Event Instances And Groups For Holiday s Etc To disable an event instance or event group that normally occurs daily weekly or monthly click on the event on the day that it is to be disabled A dialog box will appear with 6 to 9 options for disabling either that instance of the event or the event group that event belongs to The instance or event group will be disabled for that entire day Event instances that have been disable will appear on the calendar in a lighter color than normal To enable an event instance that has previously been disabled click on the disabled event instance and choose the Enable option The following screenshot shows the menu that appears if a daily event instance on the 31 of August is clicked Page 70 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 2 Setup D 192 168 1 2 setup htm 5 X6 oO oO M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout ad Control Logic Calendar Events Network Add edit and delete Calendar Events Calendar Events are used to trigger an action at specific time s For example a relay can be turned on every morning at 6 00AM First create events and then create actions based on those events To create actions see the Actions page gt Event Calendar Switch View
183. perature exceeds a certain value the Event could trigger two Actions One Action could turn a relay on to illuminate an alarm light and a second Action could send an Email alert The scheme of keeping Events and Actions separate and distinct allows for complex conditions and reporting needed by many real world applications If you are simply monitoring inputs and controlling outputs with a web page you can Xytronix Research amp Design Inc Page 25 X 600M Users Manual Configuration and Setup skip this step Step 5 Create Edit a Dashboard A dashboard is a web page that users can access to view and control I O You customize dashboards by placing widgets panels and components The widgets and panels can be customized and labeled For example a widget might be labeled Upper floor Within a widget the user places components A component can be an on off button labeled Suite 1 lights a temperature readout or other resources Components are available for control status logging and graphing Components can be buttons sliders display boxes etc Step 6 View Dashboards The View Dashboards menu tab presents a display similar to what users will normally see when accessing the X 600M Use this page to test and debug the dashboards panels widgets and components in real time 3 5 Setup Example 2 The Quick Start Demo After making the power and Ethernet connections the X 600M can automatically scan for the
184. perature sensor which has been configured under the I O tab and named owSensor7 outdoorTemp 10 owSensorl You ll notice that we are using the dot notation to access the element owSensor7 from the io table This could also be written as outdoorTemp io owSensor1 As another example set a register named register to the value 100 Xytronix Research amp Design Inc Page 117 Appendix G Lua Scripts X 600M Users Manual reg registerl 100 reg registerl 100 To turn a relay on that has been configured and named relay4 we could write a Lua script io relay4 1 To turn that same relay off write io relay4 0 To only turn relay4 on if event is true write if event eventl true then io relay4 1 end The X 600M will take care of the communication with the device the I O is found on regardless of where it is located If relay4 were half way across the world on a WebRelay device the single statement io relay4 1 would still turn it on The X 600M takes care of making sure that happens Variables and Scope Within the Lua language a variables scope begins at the first statement after its declaration and lasts until the last statement of the inner most block that includes the declaration For example enableDebug y 100 do local y 200 Printy end prant y This example will print the following to the debug console 200 100 Y is a global variable but inside the do
185. pload then click Upload The new file s should appear in the file name list To delete a file click on its respective Delete button Only HTML CSS JS and PNG files will be allowed for upload Custom web pages normally include dynamic content to provide both real time display and control See Appendix H for specific details on how to add dynamic content to custom web pages 4 1 7 System gt System Log The System Log menu tab displays the current contents of the system log file The system log file is a real time list of system level messages and events The log file is mostly used for troubleshooting Email NTP and remote services connections OO gsetup amp D 192 168 1 2 setup htm x Jo X6ooM CONTROLBYWEB Overview User Accounts Access Groups Date amp Time Backup Restore SSL Certificates Custom Web Pages System Log P System System Log View system log file System log file 1 Jul 1 15 28 54 7 0 Device Power Up 2 Jul 1 10 38 18 7 0 Device Power Up 3 Jun 30 08 38 07 7 0 Device Power Up Welcome Administrator Commit Changes Abandon Changes Logout ff Erase sysiog txt amp Download sysiog txt Page 42 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 4 2 Network Tab Current network configuration of a device To access the network settings click Network on the menu bar left side of the setup screen The Overview
186. ponsibility for the application usefulness or completeness of the information contained herein Under no circumstance will Xytronix Research amp 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 amp Design Inc reserves the right to change any product s features specifications documentation warranties fee schedules and conditions at any time and without notice Xytronix Research amp Design Inc Page 137 Appendix K Warranty X 600M Users Manual Appendix K Warranty This Xytronix Research amp 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 amp 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 amp Design Inc The purchaser shall prepay all charges for shipping to Xytronix Research amp Design Inc and Xytronix Research amp Design Inc will pay the shipping charges to return the product to the purchaser as lon
187. ppears with several fields to add a new script 0 Setup x lt e C O 192 168 1 2 setup html w XLG6O0O mM Welcome Administrator CONTROLBYWEB X600M 2188 Abandon Changes Logout f 1 2 Soript Configuration Edit Script Script Add New Script Name scriptl Description Conditional Events S Script Calendar Events 4 Actions Scripts Add Close Name This is a unique user assigned designator for this script The name appears in the script list Description This is a simple description of what the script does for documentation purposes Page 76 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages Script Type the text for your script into this box When you click Add the script is checked for correct syntax If an error occurs the first error will be highlighted You will not be able to add a script with faulty syntax To cause the script to run continually it must contain an all encompassing loop otherwise when the X 600M first turns on the script will run to completion and then end Scripts can be up to 8K in length Lua Documentation The Lua reference manual can be found at www ControlByWeb com x600m downloads html For more detailed information please see Appendix G on Lua Scripts Several example scripts are shown below The following Lua expression converts a 1 Wire temperature sensor named owSensor1 from Fahrenheit
188. presents a list of the current Scripts To add a new script click Add New Script Clicking on the button Open Debug Console will open a popup window with a text console that can be used to view run time errors as well as output from print statements This can be useful for debugging scripts but should only be used during configuration as it has a small performance penalty The debug Xytronix Research amp Design Inc Page 75 Setup Pages X 600M Users Manual feature is always disabled after committing settings It can be enabled disabled from the Debug Console or programmatically in the Lua scripts The print function will output text to this Debug Console when it is enabled The Debug Console can hold up to 20Kbytes of text before it will automatically erase itself The Debug Console can be erased from the console itself or programmatically 0090 j S Setup i x Vaai C D 192 168 1 2 setup htm ss gt lt 600 M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout Ya System 3 R sgi Control Logic Scripts Network Add edit and delete scripts Scripts can be used to perform advanced functions or to create custom logic See users manual for details Script List Open Debug Console pa C Add New Script Script Name Script Description Script No Scripts have been configured Conditional Events Showing 0 0 of 0 Scripts Calendar Events Actions Scripts A popup window a
189. r a password to access the dashboards If password protection is enabled Access Groups and other menus needed to manage password access are displayed in subsequent menus If password protection is disabled Access Groups and other menus needed to manage password access are not displayed in subsequent menus Note If password protection is disabled access to the X 600M s setup pages Still require an administrator password To access other system settings click System on the menu bar on the left side of the setup screen Several subsections will appear 6 0 zseup Wt Bay e D 192 168 1 2 setup html XL6 oO oO Mi Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout amp System Overview Network Set up the X 600M by starting with the tab on top System and configure the settings under each tab as you move down Before you can view I O on a dashboard you must first install the appropriate devices Devices tab then specify which I O you want to use from each device I O tab then add that I O to the appropriate dashboard Edit Dashboards Devices tab _ Te IMPORTANT As you make changes you must submit those changes the Submit button on the bottom of each page which stores those settings into a temporary database lt Changes are not used by the X 600M or permanently saved until you click on Commit Changes in the upper right hand corner of the window You can submit multiple setup
190. r account The settings and passwords for each user account can be changed by clicking the Edit icons 0 x seup lt i 1 C 192 168 1 2 setup html Ao lt 6O oO MI Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout of System User Accounts Add edit and delete user accounts By default no user account or password is required to access dashboards see Dashboards and I O Password Protection under System Overview page When password protection is enabled you can specify specific I O and dashboards that each user can access For email alerts a user should be set up for each User Accounts email recipient User accounts that are intended to be used as email recipients only can be denied access dashboards and I O Overview Access Grou i System Users Date amp Time Add New User Backup Restore Full Name Email Username Administrator admin Edit SSL Certificates User user Edit Custom Web Pages ControlByWeb Products Series 1 3 ctrlbyweb Edit System Log Showing 1 3 of 3 Users E Devices Each user is assigned a password and one or more Access Groups enable Dashboard and I O Password Protection under the System gt Overview menu tab in order to view and change Access Group settings Users who are assigned to an access group will have access to any I O and dashboards that also belong to that particular access group Users have passwords Groups do not Note
191. rdnameState xml Example Request http 192 168 1 2 widgetliState xml Returns lt datavalues gt lt owSensor1 gt 90 3 lt owSensorl gt lt datavalues gt The number enclosed by the tag lt owSensor1 gt indicates the current state or value of the I O named owSensor7 lf the widget contained more components there would be one tag for each component in the XML file JSON files work the same way as XML files the only difference being the format of the file and the file name extension that is used To request the same file as above but in the JSON format we would send the following request http 192 168 1 2 widgetlState json The filename follows the same format as the xml filenames the only difference being the file extension of json The return value is formatted differently as well owSensorl 90 3 If instead the file dashboard1State xml was requested an xml file with the status of all the widgets and their components would be returned Page 100 Xytronix Research amp Design Inc X 600M Users Manual XML JSON Operation Example Request http 192 168 1 2 dashboard1State xml Returns lt datavalues gt lt widgetl gt lt owSensor1 gt 90 3 lt owSensorl gt lt widgetl1 gt lt datavalues gt The tags enclosed by the tag lt widget1 gt indicates the current state or value of the components found in widget1 If the dashboard contained more widgets there would be one ta
192. re could cause significant loss or property damage This equipment is tested to UL 61010 1 safety requirements for equipment to be supplied from the building wiring i e thru a circuit breaker It is not rated for installation within or as part of the circuit breaker panel When used with expansion modules to control AC line voltages the X 600M and the expansion modules must be mounted and protected in a suitable electrical enclosure 2 2 Mounting X 600M can be mounted to a standard 35mm by 7 55mm DIN Rail Or it can also be wall mounted It should be located in a clean dry location NEMA 4 where it is protected from the elements Ventilation is recommend for installations where ambient air temperatures are expected to be high See Appendix N Mechanical Information for additional mechanical details 2 2 1 Wall Mounting Mount the X 600M 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 screw should be about 1 10 inch away from the wall 2 2 2 DIN Rail Mounting Attach the X 600M 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 X 600M from the DIN Rail use a flat head screwdriver Insert the screw driver into the notch in the release tab and pry against the enclosure to release the bottom hook Page 12 Xytronix Research amp Design Inc X 600M Users Manua
193. red by the user You can enable or disable any of these elements 8 Setup x amp CL 192 168 1 2 setup html gt lt 600M CONTROLBYWEB Add component Data Source Slider Spinner Reset Button Set Button Min Value Max Value Step Value Reset Value Default Set Value Status Ready X600M D 192 168 1 2 popup php Dashboards Edit Component Numeric Control counter1 Counter 1 Enabled Disabled Disabled Disabled Disabled Enabled Enabled Enabled 0 100 1 0 0 Tii Welcome Administrator ips Abandon Changes Logout Dashboard 1 Cancel Data Visualization Graph This Component displays data in an X Y graph format Page 88 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages Graph The Graph component allows logged data to be displayed in a graph inside a widget Select the log file to use as the data source and the time zone to use when displaying the graph Select the width of the graph auto or a number of pixels and a height also in pixels The Max Data Points field indicates how many data points to display on the graph at one time Lastly select the Logged I O and Register items found in the log file that you would like displayed on the graph and click the forward arrows gt gt to be actively logged Click Add to add the graph to the widget 8 Setup C 5 192 168 1 2 setup htm
194. remote services client settings Network gt Advanced Network gt SNMP Configure device to communicate with SNMP manager Network gt Advanced Network gt Email Configure Email smtp settings Network gt Advanced Network gt FTP Configure FTP settings Network gt Advanced Network gt NetBIOS mDNS Setup A3 DEVICES TaD E mete seatsnanasbnnn wennotaianaownast ice Drosvaedeaaeeeieiea 55 4 3 1 Devices Fna New D CVIGCS iiatiryndstunneziatd oivate Aatacoens e a banal 57 4 4 O Tab Add edit and delete I O cccseceseeeeeeeeeeeeeeeeeeeneeeeeneeeeseeeeeaeeeeaeeseeseseeaaeeseanesennensaneessaneess 58 4 4 1 I O gt 1 Wire Sensors Add edit and delete 1 wire SENSOSMS cccsecceceeeeeeeeeeeseeeeeeaeeeeaeeeeeseeeesaaes 60 4 4 2 O gt Registers Add edit and delete REGISters cccceccceseeecceeeeeeeeeeesaeeeeseeeeseeeeeseeeesseeeeeseeeeeas 62 AD CONMOUEOGIC TaD n E vet E EE a Ea aa EEE EA S ERN 65 45 1 Control Logie Conditional EV Gils niaii e a aa E Ea E 65 Digital Event Analog Event Complex Event 4 5 2 Control Logic Galendar EVENS osonu sa A a a a TE E 68 4 5 3 Control Logic gt Actions Add edit and delete ACtiONS ccccccceececeeeeeeeeeeeeaeeeeseeeeseeeeeseneeeaeaees 72 4 5 4 Control Logic gt Scripts Add edit and delete SCripts ccccccscceesseeeeeeeeeeseeeeeseeeeeseeeeeseeeeeaeeeeens 75 MOOG CMAG til AD sire sscs Gone acta eos a r aE 79 AT Edit D
195. rk ccccccecssseecseeceeeeeseeeeeneeeaneeseneseanessaes 23 EEN oe seer a cece tected atta ce tence ages E E T sate E ace sos wee ese Bosece sence soak ease ave A E 23 O22 1 ACHOE Wireless COMMECION euni n edeesasncl select nega a 23 3 2 2 Wireless Connection Using ACCeSS POINL cccccecccceseecceseecceseeceaueecseeeseuseecsueeeceusesseueessuseensaees 23 3 3 Configuration and Setup ACCCSS sis ccciccscasiwetesctenseretiricerervedneaveearsiesnneteeetoaterctni eddie nn nenanem nnmnnn 24 3 4 BaSiC Set p Staley ionn a eoa era N a E ONON EEPE TAE eiO ECL RNIN eiaeia 25 35 SO CUI INI ple inar ra aai 26 3 0 MAKING CHANGOS s aeaea Ee GO LEE na A aaraa 28 3 7 Dashboard Access Users and Access GrouPS 2cccsccceeeceeecenecenecenesenescenseenseanscensensnenseeneseneneneaes 29 SACC S S OUD eaaa a a E eee ee ee 29 SeCtiol 4 Setup Pages sciasisscacecteicccdacensetaleasivseriicecteiuamcdpncdeasanscansuctusnactuvautetaaostvoieasou R 31 n REE TaD E E E E E A dosed ances E O E ced evaeta eee ada 31 4 1 1 System gt Access Groups Edit access GrOUPS cccccseeeccceeeeeseeeeeeeeeeeaeseeeueeeesseeeeseaeeeseneeeseeeetsaes 32 4 1 2 System gt User Accounts Add edit and delete user ACCOUNTS ccccseeeeeeeeeeceeeeeeaeeeeseeeeeeaeeeens 33 4 1 3 System gt Date amp Time Configure system date and time cccccceecceseeeeeeeeeeeeeeeseeeeeeaeeeeseeeeeenes 35 4 1 4 System gt Backup Restore Backup a
196. rname and password forced to their default values This option is useful when the settings need to be loaded to a device and the username and or password for the administrator have been forgotten When importing settings they must be Committed before taking effect Remember to backup your settings to a file in case the unit ever needs to be reset to factory defaults and you wish to preserve the settings 4 1 5 System gt SSL Certificates The X 600M supports secure connectivity to the internal web server using a Secure Sockets Layer SSL certificate An SSL certificate works to establish a secured and encrypted connection between the X 600M and the web browser With this secured connection all data passed back and forth to the X 600M will be encrypted and protected from interception SSL certificates have three components The Certificate Signing Request CSR the public key and the private key When a new certificate is created on the X 600M it will automatically generate all three of these components The CSR is used to allow a Certificate Authority CA to digitally sign and create a public key This public key will be sent to web browsers that access the X 600M The private key is generated by the X 600M when the certificate is made and is intended to never be accessed outside of the X 600M The private key will be used to decrypt data that has been encrypted by the public key in the remote web browser Conversely the public key is needed
197. router then forwards the response to the computer This Xytronix Research amp Design Inc Page 109 Appendix C Accessing X 600M Over the Internet X 600M Users Manual way all devices on the LAN share a single public IP address This is called Network Address Translation NAT Port Forwarding The router can be configured to allow outside access to the X 600M All requests from the Internet to any device on the local network must use the public IP address e g 266 70 164 97 With only a single IP address TCP ports are used to identify the intended device for the incoming message Using the mailing address analogy the port is similar to a post office box The IP address specifies the location and the port specifies the 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 8000 are safe to use All of the ControlByWeb products come from the factory with the HTTP port set to 80 which is the standard port for HTTP In this example the X 600M HTTP port will be changed to port 8000 and the WebRelay port will be changed to 8001 Once the ports are changed in the two ControlByWeb devices the router must be set up for port forwarding Port forwarding associates the IP address of each local device with an assigned port In this example the address 192 168 1 25 for the X 600M would be ass
198. s Description The device description must be 60 characters or less The device s description appears in Dashboards and Email messages Serial Number The serial number for the ControlByWeb device When the Ethernet Communication Type for the device is Remote Services the X 600M uses the serial number to communicate with the device Address For Ethernet enabled devices this field holds either the IP address of the device or a fully qualified domain name When the Ethernet Communication Type for the device is IP Address the X 600M uses the address field to communicate with the device See the section Remote Services Server for more information Port For Ethernet enabled devices this field holds the port number that the device listens on For expansion bus devices this field is not used Ethernet Comm Type For Ethernet enabled devices this field determines how the X 600M will establish a connection with Page 56 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages the device By select IP Address the X 600M will connect directly to the device By selecting Remote Services the X 600M will wait for the remote device to connect to it For this to work the remote services server needs to be enabled on the X 600M and the remote device needs to configure remote services to connect to the X 600M Password If an Ethernet enabled device requires a password enter that password here
199. s four different address ranges for discrete inputs coils input registers and holding registers The function code determines the address range of the message The following are common function codes and their respective address ranges Code Name Modbus Data Type PLC Address PLC Address Function Mode 485 Mode 584 984 Coils Read Write 01 05 15 Discrete 1 1000 1 10000 Discrete Inputs Read only 02 Discrete 1001 2000 10001 20000 Registers Read only 04 8 64 bits 3001 4000 30001 40000 Holding Registers 03 06 16 8 64 bits 4001 5000 40001 50000 Read Write Data types may be implemented at the discretion of the manufacturer Address ranges may also over Xytronix Research amp Design Inc X 600M Users Manual Modbus Operation lap Discrete is a binary or boolean value 1 or 0 Function codes memory types and addresses can be converted to the PLC addressing equivalent using the table below To use the table look up the row corresponding to the Modbus function code Then take the desired X 600M feature address and add to it the address offset in the PLC address mode column Input Address PLC Base Address PLC Address For example to read discrete Input 2 Input Address 1 PLC Base address 1001 PLC Address 1002 Programming the PLC to read from 1002 will return the value of Input 2 Code Name Modbus X 600M Addresses Data Type PLC Address PLC Address Function Examp
200. section displays the general status and settings of the network interface eco J S5 Setup x 2 e Cf 192 168 1 2 setup html x X6 oO oO M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout System O Network Overview Current network configuration of device Overview Ethernet Interface 1 Mac Address 00 0c c8 00 00 72 IP Address 192 168 1 2 Subnet Mask 255 255 255 0 Gateway 192 168 1 1 MTU 1500 RX Stats Packets 2430 Errors 0 Dropped 0 Overruns 0 Bad Frames 0 TX Stats Packets 1894 Errors 0 Dropped 0 Overruns 0 Carrier 0 Collisions 0 ma a TX Bytes 1880210 f Control Logic DNS Server Addresses 8 8 8 8 8 8 4 4 Connection Speed 100 Mbps B Logging Connection Mode full Edit Dashboards 4 2 1 Network gt Ethernet Configure Ethernet Settings These settings are used to configure the X 600M for operation with a wired network After entering settings press Submit and then Commit Changes When Commit Changes is clicked the new network settings will take effect immediately If you have changed the IP address the X 600M will no longer respond to the current IP address ea Con Se CG 192 168 1 2 setup htm Z X600 M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout System Network Ethernet Setup Configure Ethernet settings After entering settings press Submit and then Commit Changes When Commit Changes is
201. ss Groups Date Time June 1s peor Date amp Time i Timezone Offset 07 00 Backup Restore SSL Certificates Sync With NTP Server Yes ONo NTP Host Name pool ntp org Custom Web Pages NTP Sync Interval 1440 Minutes System Log Daylight Savings Enabled Disabled DST Start 2nd Sunday March 02 00 00 ze DST End lst Sunday November 02 00 00 pran ic mz tit Des hhrorric Date Time This is the current date and time stored in the X 600M The time is stored and displayed in 24 hour format Timezone Offset Time servers return the current time in Universal Time GMT It is common for many servers and data loggers to use GMT as their official time even when they are not located within the GMT time zone The default value for this field is 7 Mountain Standard Time For convenience the time can be converted to local standard time by entering the offset here This manual cannot include the UTC Offset for all parts of the world but the offset for GMT time and the four major US Time zones are listed here GMT Time O Eastern Standard Time 5 Central Standard Time 6 Mountain Standard Time 7 Pacific Standard Time 8 Sync With NTP Server This selection offers two options for setting the time YES sync with NTP server or NO manually If Yes is selected the Date Time is grayed out and cannot be manually changed If No is selected the current date and time can be entere
202. ss associated with them Email messages will be sent to these email addresses when the user or group of users are selected as the recipient Subject This is the subject of the email and will appear as such when the email is sent The subject can be anything up to 60 characters in length The current state of I O can be embedded into the email subject Body This is the body of the email and can be up to 512 characters long The current state of I O can be embedded into the email body For example to send an email that indicates the current reading of a 1 Wire temperature sensor and a register named register 1 the following would be used for the email body Temperature sensor 1 currently reads 10 owSensorl and registerl reads reg registerl When the X 600M goes to send an email it will first parse through the body of the email and replace io owSensor1 with the current reading of that sensor So when received the message would would read Temperature sensor 1 currently reads 80 5 and registerl reads 100 Any I Os and Registers that have been added to the X 600M can have their current reading inserted into the email body as in the previous example The X 600M will look for any words in the email s body that are surrounded by square brackets and replace them with the current state of that I O 7 2 Email Notification Setup For Email notification to work the X 600M must have a properly configured IP address as well as DNS server
203. status of input 2 assuming input 2 is found in the discrete input address table Discrete Input State Byte Bit7 6 5 4 3 2 1 Bit 0 X X X xX Input 4 Input 3 Input 2 Input 1 Errors Input Read Error Function Code 1 Byte 0x82 Exception codes 1 Byte 0x01 Function not supported 0x02 Incorrect combination of start address and input quantity 5 3 3 Read Holding Register Modbus Function Code 03 0x03 The Read Holding Registers function is used for counters vin temperature humidity sensors etc Request 32 bit sensor values are read from 16 bit register pairs Consequently sensors addresses and registers must be even numbers Response 32 bit floating point values are returned either as little endian or big endian numbers depending on the configuration in the Modbus tab With little endian ordering a temperature reading of sensor 1 would return 0x800042A2 The least significant word would be 8000 hex and the most significant word would be 42A2 This hexadecimal value converts to a temperature reading of 81 25 degrees If a temperature or humidity sensor is not installed a value of OxFFFFFFFF NaN is returned Other inputs will show measured values of the open circuits Errors Sensor Read Error Function Code 1 byte 0x83 Exception Codes 1 byte 0x01 Function not supported 0x02 Incorrect combination of start address and input quantity Xytronix Researc
204. t 600 PA Welcome Administrator CONTROLBYWEB X600M s Abandon Changes Logout D 192 168 1 2 popup php P System Dashboard 1 E A Dashboards Edit Add component H p z ii Component On Off Status Data Source inputl Digital Input 1 On Label On Off Label off es Add Cancel 4 View Dashboards On Off Control The On Off Control Component provides button controls for output objects such as relays On Off Toggle and Pulse buttons are available You can enable or disable any of these elements You can specify the text and color for both the true and false conditions of the output Click on the color swatch to select other colors 23 Setup x s e C 192 168 1 2 setup html Welcome Administrator X600M ss Abandon Changes Logout 192 168 1 2 popup php Dashboard 1 0 A i amp Dashboards Edit f Add component Component On Off Control Data Source relay1 Relay 1 On Button Label On Enabled Disabled Off Button Label Off Enabled Disabled Toggle Button Label Toggle Enabled Disabled Pulse Button Label Pulse Enabled Disabled mz E EEEN Pulse Duration 1 5 On Label On a Off Label Off es Add Cancel Numeric Status The Numeric Status Component displays the value of analog sensors 1 Wire sensors counters Xytronix Research amp Design Inc Page 87 Setup Pages X 600M Users Manual registers and an
205. t the temperature sensor and click Submit Now the Modbus master can access the value of the temperature sensor by reading the holding register at address 0010 Similarly relays and outputs can be mapped to coils by adding them to the Coils table and digital inputs can be mapped to discrete inputs by adding them to the Discrete Inputs table 000 9 Setup e 192 168 1 2 setup html 5 gt lt 6O oO Mi Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout Configure modbus settings Modbus Settings Ethernet i Enabled Yes No Port 502 Wireless Endianness Little Big Submit Reset Web Server Modbus Modbus Address Tables Remote Services Server Holding Registers Coils Discrete Inputs Remote Services Client Address Mapped 1I O Register Address Mapped 1 O Register Address Maped 1I 0 Event 0000 Click to Assign 0000 Click to Assign 0000 Click to Assign SNMP 0002 0001 0001 0004 0002 0002 0006 0003 0003 0008 0004 0004 0010 0005 0005 NetBIOS mDNS 0012 0006 0006 0014 0007 0007 0016 0008 0008 Email FTP The following sections provide an overview and explanation of Modbus operation Xytronix Research amp Design Inc Page 93 Modbus Operation X 600M Users Manual 5 1 X 600M Function Code Summary X 600M supports the following function codes Code Name Modbus X 600M Feature X 600M Start Address Punevon Hexadecima
206. t the user places components A component can be an on off button with a custom label a temperature readout or other resources Components are available for control status and graphing Components can be buttons sliders spinners display boxes and graphs Page 6 Xytronix Research amp Design Inc X 600M Users Manual Introduction Ethernet Switch The X 600M has two IEEE std 802 3 Ethernet connectors with an internal L2 switch The internal Ethernet switch allows multiple modules to be daisy chained together or a second Ethernet device to be connected without the need for an external Ethernet hub or switch The X 600M does not tie up an Ethernet port Normally when two ports of the same configuration are connected an Ethernet crossover cable is needed to cross the transmit and receive signals in the cable With the X 600M both Ethernet connectors support Auto MDI X which automatically detects the required cable connection type and configures the connection appropriately Wireless Options Plug an IEEE 802 11 B G N WIFI module into the USB Host connector and the X 600M can connect to a wireless access point The X 600M also supports a wireless ad hoc network which allows you to connect directly to the X 600M with a smart phone tablet or PC USB Host and Device Connectors The USB 2 0 Host controller allows connectivity with industry standard computer peripherals Currently the X 600M has support for USB flash memor
207. tatus A 1 indicates the Output is ON A 0 indicates that the Output is OFF Bit zero of the return value will be the state of the coil corresponding to the start address For example if a start address of 0x0001 is used bit zero will be the status of Relay 2 assuming Relay 2 is found in the coil address table Coil State Byte Bit7 6 5 4 3 2 1 Bit 0 X X X X Relay 4 Relay 3 Relay 2 Relay 1 Errors The sum of the start address and coil count cannot exceed the maximum coil count or an error response will be returned The following are possible error responses Coil Read Error Function Code 1 byte 0x81 Exception Codes 1 byte 0x01 Function code not supported 0x02 Incorrect combination of start address and quantity of Relays Page 96 Xytronix Research amp Design Inc X 600M Users Manual Modbus Operation 5 3 2 Read Discrete Inputs Modbus Function Code 02 0x02 This function returns the state of the digital inputs Request Start Address Ox0000 input1 to OxOOFF Input 255 Input Quantity 0x0001 to OxOOFF Response The input states are indicated by bits one and two of the status byte A 1 indicates that the input is switched high ON A 0 indicates that the input is switched low OFF Bit zero of the return value will be the state of the discrete input corresponding to the start address For example if a start address of 0x0001 is used bit zero will be the
208. the Scan 1 Wire Bus button The X 600M will initiate a roll call procedure to discover all of the sensors on the bus With the pull down menu you can view all of the sensors discovered on the bus If you know the address of the sensor to be added click on the address If you don t know the specific address you will need to add the sensors to the bus one by one and note which addresses respectively appear The procedure is to start with one sensor and associate it with the appropriate sensor number by selecting the sensor address within the appropriate drop down list Submit the page connect a second sensor and press the Refresh List button Associate the second sensor to the appropriate sensor number Continue this procedure until all sensors are registered The ControlByWeb wall mount temperature humidity sensor has two push on jumpers to facilitate enabling the two internal sensors one at a time Name Names are short identifiers 20 character max that are used in Lua scripts to reference I O They may not contain spaces or special characters Names must begin with a lowercase letter Description The text in this field 60 character max appears to the left of the corresponding temperature humidity reading on the dashboard This text also appears in the Email status message when email is enabled Xytronix Research amp Design Inc Page 61 Setup Pages X 600M Users Manual Decimal Places This setting determines the number o
209. the daylight savings time adjustment scheduled events will be adjusted for the new time possibly leading to duplicate events Logged data uses a GMT time stamp that does not account take into effect daylight savings When viewing the logged data these timestamps are adjusted to the timezone configured for the X 600M and could also present duplicate logs around daylight savings time changes DST Start This is the date that daylight savings will start At this date and time the time will be shifted forward by one hour i e the time will jump from 12 02 AM 00 02 to 1 02 AM 01 02 By default this is set to the 2nd Sunday in March which is the date used in the United States DST End This is the date that daylight savings will end On this date and time the time will be shifted backward by one hour i e time will jump from 12 02 AM 00 02 to 11 02 PM 23 02 the day before By default this is set to the 1st Sunday in November which is the date used in the U S 4 1 4 System gt Backup Restore Backup and Restore Settings The Network settings Conditional Events Actions Scripts Registers and other settings for the X 600M are stored in a database The entire database can be exported or imported as a file The Backup Restore page is used for archiving the settings and can also be used to move the settings from one module to another To export the database click the Export button A window pops up in the browser where you can name a
210. til the voltage drops below 12 5 V 13 V 0 5 V 4 5 1 3 Complex Event If Complex is selected a text box opens This text box allows a small Lua expression to be entered The script must be an expression script which runs to completion and then stops Generally this Lua expression should evaluate some logic and change the conditional event to the desired state For example to set the event to true whenever an input is on we could enter something like event condEventl 10 inputl 1 In this example condEvent1 is the name of the conditional event and input1 is the name of an input that has been previously configured If the name of the conditional event is changed this Lua expression will be updated automatically with the new event name Note Lua expressions created for Conditional Events are only evaluated when any of the I O referenced in the expression changes State Xytronix Research amp Design Inc Page 67 Setup Pages X 600M Users Manual When you click Add the expression is checked for correct syntax If an error occurs the first error will be highlighted You will not be able to add an expression with faulty syntax You will notice that a Lua expression might already exist This Lua expression is automatically generated when the Digital and Analog types are used For further information see Section Control Logic Lua Scripts 4 5 2 Control Logic gt Calendar Events Calendar Events occur at specific times
211. tion will disable the event instance every year on the 5 Sunday in August if it exists This is useful for holidays that occur on a day of the week as opposed to a day of the month The US holiday Labor Day for example occurs on the first Monday in September Any other event belonging to event group 2 colored red will also be disabled on this day Note that only the event instance that disables the event group will show up as a lighter color red Cancel Close the dialog box When a previously disabled event instance is clicked on a different menu will appear This menu will all the event instance to be re enabled Calendar Event Example The following is an example of how calendar events might be used A door lock is to be unlocked daily at 8 pm and locked at 6 am Monday through Friday except on New Year s Day 1 Click on a day in the calendar to create a Calendar Event with Name unlockDoor The start day can be any day Monday through Friday when this event should execute for the first time Uncheck All Day Set the Start Date to the current day and Start Time to 8 00 P M Set the Stop Date to the next day and End Time to 6 00 A M Set Repeat to Weekly check Mo Tu We Th Fri Set the Ends field to Never Create an Action to turn a relay on when unlockDoor is true It will automatically lock the door when unlockDoor is false Disable the event instance on New Year s Day every year by clicking on the eve
212. to decrypt data the X 600M encrypts with the private key 6 00 s seup e Cc 192 168 1 2 setup htm XKS oO oO M Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout J System SSL Certificates View Upload Create SSL Certificates User Accounts Certificates Access Groups 2 Date amp Time Name Valid From Valid To io gt 3 EIR Sie Ss o k NewCert Apr 21 2014 21 41 47 UTC Apr 21 2214 21 41 47 UTC Yes Edit Download Delete Backup Restore default Mar 4 2014 16 34 42 UTC Mar 4 2214 16 34 42 UTC Edit Download Delete SSL Certificates testi Mar 4 2014 0 04 36 UTC Mar 4 2214 0 04 36 UTC Edit Download Delete Custom Web Pages Edit Download Delete gt E Bs au MEREN O Mar 4 2014 15 55 15 UTC Mar 4 2214 15 55 15 UTC System Log ert May 8 2014 0 00 00 UTC Aug 6 2014 23 59 59 UTC Devices Showing 1 6 of 6 Certificates FA o Download Delete al l l o o 0 FD Q PE g test3 test4 Mar 4 2014 15 55 40 UTC Mar 4 2214 15 55 40 UTC testC Edit Download Delete When a web browser initiates the handshake to establish a secure connection it tries to validate the authenticity of the SSL certificate Primarily it looks to ensure the name on the certificate matches the domain name used to connect with the X 600M Additionally it will ensure the certificate is valid for the current date and time and that the certifi
213. to the reg class the first and last parameters of each are the same regName The name of the register to change register1 in this example callback A callback function to call with the result of the function The second parameter of the set function is the value that the register should be set to The second parameter of the pulse function is the pulse time Line 67 shows an example of a callback function that can be called when these functions return The callback function has one parameter which contains the result of the function call The format of result is x desc where x is a result code and desc is a description of the result code The following table lists the possible result codes and their descriptions that can be expected from any of the X 600M helper functions Function Code Description Success No Response Login Error Commit Settings Error Database Error mo A wi nN O Missing Parameter The previous example showed some of the functionality given by the X 600M JavaScript library The following table contains a list of all the classes and functions found in the library More examples can be found on the X 600M device under the System gt Custom Web Pages menu tab Class Function Description lO set name val callback Set the io with name to val and return the result to the function callback pulse name val callback Pulse the io with name for val se
214. twork Devi wet evices gt a VO 8 Relay Slave 0000000a d pA 8 Input Slave 0000002c gA t Control Logic Relay i On Off ae Digital ah m 7 E Logging Relay 2 On Off ae Digital Input p H Edit Dashboards Relay 3 On off ae Digital Input ap 3 Relay 4 On off ae o Digital Input Pe 4 E H View Dashboards Relay 5 On Off a Digital Input M sa Relay 6 On off ae 5 Digital Input C ee Relay 7 On Off ried 6 Digital Input a Relay 8 On Off ae 7 E Digital Input M 8 Thermocouple Type K Slave 00000003 OpA This X 600M TA Th ple Int Z Temperature ws Temperature 1 Thermocouple Sensor Temperature ws gt 4 7 1 Edit Dashboards Add dashboard In addition to providing access to other dashboards the pull down menu has an option to Add New Dashboard With this selection you can add and name a new dashboard Once created use the edit icon to edit the title name and permissions of an existing dashboard Use the trash icon to delete the dashboard You can create up to 10 dashboards For example you can make a dashboard for each floor of an office building or perhaps a dashboard for each room of a greenhouse Page 82 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 8 Setup amp C Q 192 168 1 2 setup html wl x lt 600 Pa Welcome Administrator CONTROLBYWEB X600M s Abandon Changes Logout D 192 168 1 2 popup ph
215. u don t need to hop back and forth between hitp 192 168 1 2 setup html and http 192 168 1 2 index html to test your work If you discover that the components are blank or don t work the problem could be that you have neglected to save your changes to the database If this occurs you have not lost your settings simply go back to one of the configuration menu tabs and click the Commit Changes button OO xssetup i Fy e 192 168 1 2 setup html gt lt 600 mM Welcome Administrator CONTROLBYWEB Commit Changes Abandon Changes Logout P System X600M Dashboard 1 Network 8 Relay Module iba Input and Temp fea gt I O Relay 1 On On off Digital Input 1 Co DORE Distal not TS Reay2 GUNNS on on E Logging _ Relay 3 On On off s s AmbientTemp F H Edit Dashboards Relays GR on or Reays GIB on on 10 24 10 25 10 26 10 27 10 28 10 29 10 30 10 31 10 32 10 33 Roay7 GUNN on oft Reays GRD on of Status Ready For product support go to www ControlByWeb com Xytronix Research amp Design Inc Page 92 Xytronix Research amp Design Inc X 600M Users Manual Modbus Operation Section 5 Modbus Operation The X 600M can be controlled and monitored using Modbus TCP protocol This provides a standard means of using the X 600M with devices and software from other manufacturers This section is not a tutorial on Modbus and it is assumed that the reader is already familiar
216. urope pool ntp org 2 europe pool ntp org 3 europe pool ntp org Australia http www pool ntp org zone au O au pool ntp org 1 au pool ntp org 2 au pool ntp org 3 au pool ntp org south America http www pool ntp org zone south america 0O south america pool ntp org 1 south america pool ntp org 2 south america pool ntp org 3 south america pool ntp org Africa http www pool ntp org zone africa 1 africa pool ntp org 1 pool ntp org 3 pool ntp org NTP Sync Interval This setting allows the user to specify how often the time on the X 600M will be synchronized with the time server When the Submit button on this page is pressed the X 600M will immediately Page 36 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages synchronize with the time server The next NTP sync will occur X minutes after the time this configuration page was submitted where X NTP Sync Interval in minutes The default value for this field is set to 1440 minutes Daylight Savings In many parts of the United States and in some other countries the time is shifted forward by one hour during the summer months This is an effort to conserve energy by making the daylight last longer into the evening hours If this option is set to Enabled the time on X 600M will automatically be shifted forward by one hour between the DST Start date and time and the DST End date and time The default setting is Enabled Note Enabling
217. vent driven Lua scripts that can have infinite loops These scripts run continuously in the background and are configured on the Control Logic gt Scripts menu tab Up to 5 loop scripts can run continuously in the background Each script can be up to 8 Kbytes These scripts can provide complex and flexible control logic In this manual Lua Scripts that are configured under the Registers Events and Actions menu tabs are called Lua Expressions and the Lua scripts configured under Control Logic gt Scripts menu tab are called Scripts Global variables and functions are accessible by all lua scripts and expressions on the X 600M Accessing I O Registers and Events in Lua scripts Tables are the sole data structuring mechanism in Lua This structuring fits perfectly with the X 600M While custom Lua scripts can create custom tables the X 600M has three special tables built into it These are the io table the register table and the event table The io table is indexed by the names of the I O configured on the X 600M To read the current state of an I O a Lua script can reference the io table To change the state of an I O a Lua script can write to the io table The same is true for the register table which is indexed by the names of the configured registers and the event table which is indexed by the names of the configured events As an example of this let s create a new variable called outdoorTemp and set it to the current value of a 1 wire tem
218. verview Device device2 2 Relay Slave i 1 Relays Device Relay Number i Name relay11 Edit Delete Digital Inputs a ws P Description Relay Edit Delete 1 Wire Sensors Power Up Mode off Edit Delete q G E Frequency Inputs Keep Alive eine di Edit Delete F Access Groups admin users group1 E Counters O group2 O cbw Edit Delete q E Edit Delete Supply Voltages J Add nen Edit Delete Thermocouples 4 L 5 Names are short 20 character max identifiers that are used in Lua scripts to reference I O They may not contain spaces or Edit Delete Input High Times Ji special characters The description 60 character max appears in Dashboards Emails etc z Edit Delete q E Input On Times Edit Delete 7 F Registers 2 Control Logic q F E Logging Status Ready H Edit Dashboards H View Dashboards Status Ready For product support go to www ControlBy Web com Xytronix Research amp Design Inc Xytronix Research amp Design Inc Page 59 Setup Pages X 600M Users Manual Device This is the device that the I O resides on Only registered devices will appear in this list Device Relay Input Analog Input Etc Number This is the I O number on the device itself For example if this I O represents the third relay on the WebRelay Quad then this number would be 3 If it were to represent the fifth 1 Wire temperature sensor on an X 300 then this number would be
219. w to use the tcp functions described above connect to server and send a message every second keep track of connection state 0 not connected 1 connected connected 0 enableDebug while true do try to connect if connected 0 then Print Connecting ro TepConnece 1 97 168 14 25 2000s 3000 if rc 1 then print Connected connected 1 end end if connected send message if connected 1 then print Send message re tcpSend Hello world r n Xytronix Research amp Design Inc Page 123 Appendix G Lua Scripts X 600M Users Manual if the send failed close the connection if re lt 0 then print tepSsnd error T asra tcpClose connected 0 end end gt wait 1 second sleep 1000 end enableDebug This function will enable the debug console The print function will output to the debug console when debugging is enabled This is useful for debugging but during actual use of the X 600M debugging mode should be disabled The debugging console is disabled whenever settings are committed disableDebug This function will disable the debug console The print function will output to the debug console when debugging is enabled clearDebug The debug console is an internal buffer that is 20Kbytes big When the buffer is full it is erased and starts over This function will erase the buffer Page 124 Xytronix Research amp Design Inc X 600M
220. with Modbus Detailed Modbus information can be found at http www modbus org The X 600M functions as a Modbus slave Host devices such as PLCs open a connection with X 600M on port 502 configurable under Network gt Advanced Network gt Modbus menu tab and then send requests to read or set relay states read input states or sensor values When the X 600M receives a command it will perform the desired function and return a response Note I Os that are configured for access by a Modbus master have no security since the Modbus protocol does not have any security measures For this reason I Os that need to be accessed using Modbus should be limited unless the X 600M is installed on an isolated network The X 600M has no built in relays or inputs As such the Modbus register assignment varies and depends on the mix of ControlByWeb devices and expansion modules registered with the X 600M The Network gt Advanced Network gt Modbus menu tab presents a display which shows the current Modbus register assignments Only I Os configured in these three tables will be accessible through Modbus To make I Os available over Modbus TCP IP a mapping must be created I Os can be added to the three tables in order to make them available For example to make a temperature sensor available as a holding register at Modbus address 0010 click on the next to address 0010 in the holding register table A drop down list of I Os will appear Selec
221. xpression i0 owSensor1 32 5 9 Xytronix Research amp Design Inc Page 63 Setup Pages X 600M Users Manual Units This is an optional descriptor such as C Volts Meters Ft etc Decimal Places This setting determines the number of digits displayed to the right of the decimal point when the data for this register appears in dashboards and Emails For example if the resolution of a temperature sensor is 0 1C you would want to set Decimal Places 1 Initial Value This setting determines the initial start up value of the register The default is 0 This value will be used when the X 600M first powers up Access Groups This setting only displayed if Dashboard Password Protection in the System gt Overview page is set to Enabled This setting determines to which access groups this I O belongs Only users that belong to the same access group will have access to this I O Page 64 Xytronix Research amp Design Inc X 600M Users Manual Setup Pages 4 5 Control Logic Tab In addition to displaying data the X 600M can execute logic and control actions These settings are made under the Control Logic menu tab With the X 600M control logic it is important to understand the distinction between Events and Actions Events occur when certain criteria are met such as a temperature reaching a certain value or a calendar schedule setting an event Events are either true or false true when the c
222. y drives and WIFI adapters 1 Wire bus Connector terminals provide communication with 1 wire sensors to monitor temperature and humidity A 1 wire ultrasonic sensor is also available for measuring distance or liquid levels Internal Temperature Sensor An internal digital temperature sensor measures the internal temperature 40 C to 85 C This sensor can be accessed from the overview page Expansion Bus A ribbon cable expansion bus connector allows a family of add on modules to be connected directly to the X 600M without the need for an Ethernet switch Various expansion modules are available with relays digital inputs thermocouples and other industrial inputs and outputs The ribbon cable provides both communication and power connections to the expansion modules The expansion bus can provide up to 1 7 Amps for powering the attached expansion modules The maximum number of expansion modules depends on the module type and power requirements The input current for the various expansion modules is listed in the expansion module user manuals Power Supply The X 600M works with 9 to 28V DC power The power supply voltage Vin is monitored internally This value can be displayed logged and used to control local remote relays It can also be configured to send Email notifications This feature is convenient for monitoring the system battery in solar powered applications Real time Clock The real time clock is powered with an intern
223. y the state xml file can be used This will return the states of all the I O configured on the X 600M RefreshRate how often to update the page in seconds If set to 0 then the refresh will occur once ContentDivID The id of the main content div for the page The refreshlOFields function will parse through the web page and look for all span tags with id s that match I O found in the XML JSON file It will then update the content inside the span tags to match that of the XML file In this example the XML file would look like lt datavalues gt lt owSensor1 gt 90 5 lt owSensorl gt lt register1 gt 100 lt registerl gt lt datavaues gt The span tag on line 14 has the id owSensor1 and the span tag on line 18 has the id register1 The content inside of these span tags will be updated to match the XML file every 3 seconds If the div Page 130 Xytronix Research amp Design Inc X 600M Users Manual Appendix H Custom Web Pages specified in ContentDivID does not exist then the updates will stop This prevents updates continuing when the page is no longer visible Another thing to note in this example is that the value of register can be changed by clicking on the buttons labeled ON PULSE and TOGGLE on lines 19 20 and 21 These are just HTML input buttons that have their onclick event setup to call the X 600M helper library functions set pulse and toggle Each of these functions belong
224. ywhere on the Internet A family of add on modules can be connected directly to the X 600M Remote devices and expansion modules are added as needed to provide a customizable and highly flexible monitoring and control system File System The Flash file system provides a major upgrade in flexibility and capability for web based control and monitoring With the embedded file system users can add custom web pages The file system allows data to be logged to multiple named files Setups can be imported and exported as a file Dashboards Panels Widgets and Components The X 600M serves dynamic web pages which are used to control and monitor relays sensors and other I Os The control status pages are called Dashboards and are highly flexible The user can create multiple dashboards as needed and customize them by placing panels widgets and components on the dashboard Panels are used to group widgets together Widgets are used to group components together A component is the smallest unit found on a dashboard and represents a single I O a relay or temperature sensor for example The dashboards panels widgets and components can have custom labels The web pages can be created edited and tested directly from the web browser A widget can represent a single external device such as a WebRelay or X 12s Eight relay module or a widget may be composed of components which represent I Os found on many different devices across the network Within a widge
Download Pdf Manuals
Related Search
Related Contents
3200 Lector Lineal - Honeywell Scanning and Mobility HP ProBook 430 G2 社会教育係・旧文化・スポーツ振興係 passam ag LES BIENFAITS DU RIRE MHC-EX900 Manuel Utilisateur d`eCar Gear Head FS4200BLU Copyright © All rights reserved.
Failed to retrieve file