Home

E1 AND E2 USER'S GUIDE

image

Contents

1. 0 1 1 2 0 1 _ 2 3 1 2 3 1 2 3 7 3 4 5 7 8 ze o B 9 10 d 1 10 11 10 11 11 12 11 12 12 13 12 13 13 14 13 14 14 15 14 15 15 16 15 16 with Quad Pak modules Quad Pak modules have four input or four output points E1 and E2 User s Guide CONFIGURING 1 0 POINTS Configuring I O Points Before you can read or write to I O points you must configure point types and point features See form 1576 Configuration for and Brain Boards Using Digital Point Features For explanations of digital point features see E1 Brain Board Features on page 5 Latches Latches are a digital point feature available on E1 brain boards They do not require configuration Read and clear latches as shown in the following table and the Modbus memory maps beginning on page 48 Read the on latch state Read inputs 65 80 Read the off latch state Read inputs 129 144 Clear on latches Write to coils 129 144 Clear off latches Write to coils 193 208 Counters Using counters involves three steps configure the counter holding registers 769 800 activate the counter coils 65 80 and read data input registers 385 416 See Modbus TCP Memory Map for E1 and E2 Brain Boards on page 48 to find the addresses mentioned W
2. d 00000000000 F E2 Dimensions 5 85 148 50mm 9 475 131 25 6 35mm 4 952 125 1mm 22 2 475 120 65mm 2 65 67 31mm 3 150 80 01mm E1 and E2 User s Guide LED DESCRIPTIONS LED Descriptions E1 LED Descriptions FD Full Duplex Mode Ethernet ACT Network Activity Ethernet LINK Link Ethernet STAT Status n a REC Data Receive Serial XMT Data Transmit Serial E2 LED Descriptions LINK Network Link Ethernet ACT Network Activity Ethernet FDPX Full Duplex Mode Ethernet STAT Status n a Data Transmit Serial RCV Data Receive Serial E E1 and E2 User s Guide FD ACT LINK OPTO 22 22 LINK ACT FDPX STAT XMT RCV CHAPTER 1 INTRODUCTION LED Blink Codes The Status LED STAT on the E1 and E2 brain boards provides both event and status information The brain board is The LED starts to blink after the E1 or E2 is turned on ora beginning to start up reboot command is sent to the device 3 sh
3. and E2 Brain Boards 1576 Writing custom applications using the OptoMMP protocol over Ethernet OptoMMP Protocol Guide 1465 Configuring and working with SNAP PAC controllers and Opto 22 Ethernet based I O units using the soft ioManager User s Guide 1440 ware tool ioManager Installing and using SNAP Ethernet based units SNAP Ethernet Based Units User s Guide 1460 Providing reliable methods of control power to Opto 22 equipment Using Power Supplies 1271 i ioControl and programming instruction and ioControl Users Guide 1300 Descriptions of all ioControl programming com ioControl Command Reference 1301 mands or instructions Communicating with the system using OPC OptoOPCServer User s Guide 1439 System architecture features specifications instal B1 B2 Data Sheet 463 lation and wiring and jumpers of the B1 and B2 Protocol support comparison of B1 B2 and E1 E2 system architecture and technical specifications for E1 E2 Data Sheet 1546 the E1 and E2 E1 and E2 User s Guide FOR HELP For Help If you have problems installing or using and E2 brain boards and cannot find the help you need this guide or on our website contact Opto 22 Product Support Phone 800 TEK OPTO 835 6786 951 695 3080 NOTE Email messages and Hours are Monday through Friday phone calls to Opto 22 7 a m to 5 p m Pacific Time Product Support are grouped toget
4. JUMPER Set the message protocol using jumper 10 in Group for 2 pass or 4 pass Make sure all brain boards on the same network use the same message protocol Protocol Jumper 10 2 55 i Recommended 4 PASS JUMPER INSTALLED NO JUMPER Use 2 pass for normal operation It provides more efficient and faster communications For a detailed description of 2 pass and 4 pass modes see form 1572 the Optomux Protocol Guide E1 and E2 User s Guide CHAPTER 2 INSTALLATION Set the address using jumpers 0 7 on Group according to the following chart Each brain board on the same network must have a unique address Addresses do not need to be sequential 76543210 uL E LLLI 12 13 14 BENIN 15 18 20 21 BOOED 22 23 24 25 26 27 28 29 31 00000 Ssa J mi i jm S 35 J Im A 1 JEN 36 37 38 39 ju jm uL 42 LE LC 76543210 4 45 46 4s 9 5
5. ds o ur px e b ra enr ees 35 Resetting the Brain Board to Factory Defaults x eee en te EF EF d 35 Loading e rael 37 Chapter 5 Using Modbus TCP usas ves uk ass exvsvesdovesesreecesenzss 41 Overview of Modbus TCP Communication En bb Rh ebd 41 Understanding Opto 22 and Modbus TCP Differences 41 Function Codes 4 43 EXE 43 Referencing 1 0 Points for and E2 Brain 45 E1 and 22 User s Guide Configuring VO PONTS PEE 46 Using Digital Point Features cot ette eret 46 Fu PTT 46 HET 46 Using Analog Point 47 gt _____ 47 Maximum Minimum Values Peaks and Valleys 47 OU ai nse 47 Modbus TCP Memory for E1 and E2 Brain Boards 48 fo a M 48 jn M P 48 Mes a rele ses 49 Holding Registers 49 Using Input and Holding 51 Chapter
6. 22 22 2 2 69 Disabling Serial to Ethernet Routing 72 Appendix B Using the OmuxSettings 73 Appendix C Licensing Information 77 Software Licenses Used in and E2 Brain 77 Opto 22 License Agreement for Embedded Software 77 GNU General Public License 77 GNU Lesser General Public License 2 0 78 Berkeley Software Distribution License 78 Opto 22 License Agreement for Embedded Software 79 GNU General Public 4 4 mmm 80 GNU Lesser General Public License 83 gt 89 E1 and 22 User s Guide Introduction The E1 digital and E2 analog brain boards are intelligent input output processors that communicate with a host computer and also perform control functions at each point of 1 0 Designed as drop in replacements for Opto 22 B1 and B2 brain boards the E1 and E2 have the same Optomux and serial network capabilities but they offer significant new features Ethernet support additional protocol support and migra
7. AND E2 USER S GUIDE Form 1563 060922 September 2006 22 43044 Business Park Drive Temecula CA 92590 3614 Phone 800 321 OPTO 6786 or 951 695 3000 Fax 800 832 OPTO 6786 or 951 695 2712 www opto22 com Product Support Services 800 835 6786 or 951 695 3080 Fax 951 695 3017 Email support opto22 com Web support opto22 com E1 and E2 User s Guide Form 1563 060922 September 2006 Copyright O 2003 2006 Opto 22 All rights reserved Printed in the United States of America The information in this manual has been checked carefully and is believed to be accurate however Opto 22 assumes no responsibility for possible inaccuracies or omissions Specifications are subject to change without notice Opto 22 warrants all of its products to be free from defects in material or workmanship for 30 months from the manufacturing date code This warranty is limited to the original cost of the unit only and does not cover installation labor or any other contingent costs Opto 22 1 0 modules and solid state relays with date codes of 1 96 or later are guaranteed for life This lifetime warranty excludes reed relay SNAP serial communication modules SNAP PID modules and modules that contain mechanical contacts or switches Opto 22 does not warrant any product components or parts not manufactured by Opto 22 for these items the warranty from the original manufacturer applies These products include but are
8. 51 juan au 52 53 54 55 56 57 MODUS 58 59 61 62 63 64 65 MERE 66 67 68 69 7000008008 1 72 75 76 78 82 83 84 85 76543210 86 87 as 89 BOB CIC NT 90 BDOBCUNUN 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 11 112 BETTER 113 114 115 116 117 118 119 120 121 122 123 124 125 126 0000008 127 0000000 128 DH 129 130 131 132 133 1
9. 8 Power down each brain board in the link and check the resistance of each twisted pair One basic check of the communication wiring in a multidrop system is to measure the resistance across the and lines of each twisted pair There should be a 220 ohm resistor across the and wires of each data pair transmit and receive at each end of the cable If both ends are terminated properly you should see about 110 ohms because there should be termination 220 ohms at both ends Make certain that in multidrop system only the last physical brain board on the communication link has jumpers 0 and installed 9 If using an RS 232 to RS 422 485 converter at the host end of the system make sure that CTS handshaking is disabled on the host Otherwise jumper RTS to CTS at the host end If RTS CTS handshaking is enabled and not jumpered the host will not transmit no data will be allowed to go out the computer s RS 232 com port E1 and E2 User s Guide CHAPTER 6 TROUBLESHOOTING Other Tips 1 Diagnostic Test Utilities Test the system using one of the Optomux utilities such as OptoScan which can trap errors Often the errors received can help determine the nature of the problem If OptoScan works properly and there are no errors the cause of the problem might be the host software 2 Baud Rate Try running the system at a lower baud rate Lower baud rates are more forgiving in a noisy environment 3 LED Indicators If
10. E1 and E2 User s Guide CREATING A ROUTING TABLE 5 In the ioManager main window click the Maintenance button 1 0 Unit Maintenance EN xi Command Install Module Firmware EMI Reboot Timeout seconds ho Delete Wm for TM Select All Clear Completed Results 6 In the 1 0 Unit Maintenance window do the following to copy the OmuxRoutes file to the first E1 or E2 a Inthe Command list choose Upload File To 1 0 Unit b In the Filename field click the browse button Inthe Open dialog browse to the OmuxRoutes and double click it to open it The path and filename appear in the Filename field d In the Destination field type the name omuxRoutes Ifthe IP Address for the or E2 is listed under IP Addresses go to the next step If the IP address is not in the list click the Add button and it f Highlight the IP address and click Execute The updated OmuxRoutes file is copied to the E1 or E2 and the new settings take effect right away 7 Continue with Enabling Serial to Ethernet Routing on page 69 to change the OmuxSettings file E1 and 22 User s Guide APPENDIX SERIAL TO ETHERNET ROUTING Sample Routing Table Following is a sample OmuxRoutes file Text aftera amp on any line is a comment Routing Entries for the system Note that port 5000 is the default UDP port 4 udp 10 0 0 8 50
11. JUMPER 76543210 21400808008 2150080000 21600800888 217 218 0000 CE 219 0080000 22 01000088 221 00800080 222 0000008 223 00800000 222D DDR M REN 225 226 227 228 EE 229 0008080 230 0008008 231 0008000 232 0008088 233 DELL LU MULT 231 0008008 235 0008000 236 237 238 239 240 2110000880 212000808 2430000800 21400008088 245 0000800 246 00008008 2470000000 248 249 250 00000808 2510000000 252 UU UU UU 2530000000 2540000000 25500000000 and E2 User s Guide CONNECTING TO AN ETHERNET NETWORK Connecting to an Ethernet Network To connect to an Ethernet network see form 1440 the ioManager User s Guide Security When designing your Ethernet network be sure to consider security as required for your application You can use ioManager to limit access to Ethernet based I O units either by allowing access only from specific computers or other devices on the network IP filtering or by limiting access to specific protocols that are used with the 1 0 unit port access See form 1440 the ioManager User s Guide for more information on security System Components This section gives additional information on some items listed in What You Will Need on page 13 Modules and Mounting Racks T
12. INSTALLATION Connecting the E1 and E2 to Earth Ground In installations where electrical noise is a concern the E1 and E2 each provides a grounding point to improve noise immunity Using 18 AWG connect the insulated wire from the grounding PEM to the point where the earth ground is connected Each brain should have a separate wire to connect to ground Each grounding point should be tied to a single point earth ground E1 grounding PEM E2 grounding PEM TO 22 ETHERNET FOR OPTOMUX Installing Modules 1 Turn off all power to the unit and to the field devices IMPORTANT All power must be removed before installing or removing 1 0 modules Install input and output modules in any rack position Compatible modules are shown in the table on page 22 For specifications and wiring information on modules see the module s data sheet Depending on the networks you are using continue with the following Connecting to a Serial Network below or Connecting to an Ethernet Network on 22 NOTE You can use both serial and Ethernet networks simultaneously and E2 brain boards are set by default to communicate on both networks Connecting to a Serial Network Wiring Serial Communications and Power complete connection at each brain board consists of 10 wires as well as an overall cable shield two twisted pairs and a common coming from the computer or previous brain boa
13. 1 INTRODUCTION Chapter 3 Architecture and Communication describes how and E2 brain boards fit into your system architecture and how to communicate with them Chapter 4 Maintaining the E1 and E2 describes assigning and changing IP addresses resetting the brain board to factory defaults and upgrading firmware Chapter 5 Using Modbus TCP provides configuration information for those communicating with the E1 and E2 using Modbus TCP Chapter 6 Troubleshooting provides tips for resolving difficulties you may encounter while working with E1 and E2 brain boards Chapter A Serial to Ethernet Routing presents how to set up the E1 and E2 to route data between serial and Ethernet networks Chapter B Using the OmuxSettings File describes how to set Optomux network settings using the OmuxSettings file Chapter C Licensing Information presents licensing information for software components Other Documents You May Need See the following additional guides for the information listed Most guides are available on our website www opto22 com some are included on the CD that came with the brain board Writing custom applications using the Optomux pro tocol over Ethernet or serial Combines previous Optomux Protocol Guide 1572 forms 92 and 203 into new form number Configuring E1s and E2s for use ioProject software Modbus TCP applications and custom OptoMMP Configuration
14. 2001 Timeout 1000 Status Status Read area last read at 07 06 05 08 55 15 Status Read Status Read C e ui cc EI ET F030 0004 Powerup Clear Flag Needed Point Config OxFFFF F030 0008 Busy Flag F030 0018 Loader Version 1 0 Digital Point F030 0000 Memory Map Version al F030 0010 Firmware Version 1 01 Analog Bank OxFFFF F030 0040 Firmware Version Date 2005 06 30 F030 0080 Firmware Version Time 10 19 35 Analog Point High Density F030 0020 Unit 0 000000 2 F030 0080 Unit Description 2 System gt OXFFFF 030 0024 1 0 Unit Hardware Revision Month 5 xFFFF F030 0025 1 0 Unit Hardware Revision Day 5 ScratchPad OxFFFF F030 0026 1 0 Unit Hardware Revision Year 2005 F030 0028 Installed Ram 6737920 Data Log EH DxFFFF 0 002 Address 00 A0 3D 00 9D FA F030 0034 TCP IP Address 10 192 54 255 F030 0038 TCP IP Subnet Mask 255 255 192 0 F030 0030 TCP IP Default Gateway 0 0 0 0 030 0040 TCP IP Name Server 0 0 0 0 038 0154 Host OPTO 00 9d fa 038 0194 Domain Name Events Communications gt Other Received 0 0 Date and time data was last read Clic
15. 32 troubleshooting 56 exception code Modbus TCP 43 F factory default settings 35 firewalls 67 firmware loading to brain board 37 loading to controller 37 float format Modbus 47 format of Modbus float 47 of Modbus TCP communication packet 43 EJ ioManager User s Guide FTP 54 67 68 69 72 76 G gain calculating 7 Modbus TCP 47 Group A jumpers 19 Group B jumpers 20 H help LED descriptions 10 network problems 56 Product Support 4 high low range testing 7 holding registers Modbus 49 1 0 modules installing 17 1 0 point configuring 46 point features Modbus TCP 46 input averaging 7 latches 5 registers Modbus 49 installing brain board 14 Ethernet 22 1 0 modules 17 power supply 16 serial connection 17 software 13 ioControl 30 ioDisplay 30 ioManager 30 54 ioProject software suite 30 IP address assigning 35 resetting to factory default 35 viewing 35 IP security 22 J jumpers settings 19 K kernel see firmware L latches Modbus TCP 46 LEDs blink codes 11 description 10 licensing 77 loading new firmware 37 M maximum value Modbus TCP 47 memory map Modbus analog digital brain boards 48 message protocol 20 minimum maximum values 7 minimum value Modbus TCP 47 Modbus float format 47 Modbus TCP 5 34 communication packet 43 counters 46 exception errors 43 function codes supported 42 latches 46 memory m
16. GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING DISTRIBUTION AND MODIFICATION 0 This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The Program below refers to any such program or work and a work based on the Program means either the Program or any derivative work under copyright law that is to say a work containing the Program or a portion of it either verbatim or with modifications and or translated into another language Hereinafter translation is included without limitation in the term modification Each licensee is addressed as you Activities other than copying distribution and modification are not covered by this License they are outside its scope The act of running the Program is not restricted and the output from the Program is covered only if its contents constitute a work based on the Program independent of having been made by running the Program Whether that is true depends on what the Program does 1 You may copy and distribute verbatim copies of the 5 source code as you receive it in any medium provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty keep intact all the notices that refer to this License and to the absence of any warranty and give any other recipients of the Program a
17. INCLUDING ANY GENERAL SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES END OF TERMS AND CONDITIONS GNU Lesser General Public License Version 2 1 February 1999 Copyright C 1991 1999 Free Software Foundation Inc 51 Franklin St Fifth Floor Boston MA 02110 1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document but changing it is not allowed This is the first released version of the Lesser GPL It also counts as the successor of the GNU Library Public License version 2 hence he version number 2 1 Preamble The licenses for most software are designed to take away your freedom to share and change it By contrast the GNU General Public Licenses are intended to guarantee your freedom to share and change free software to make sure the software is free for all its users This license the Lesser General Public License applies to some specially designated software packages typically libraries of the Free Software Foundation and other authors who decide to use it You can use it too but we suggest you first think carefully about whether
18. Modbus TCP Specification and the Modicon Modbus Protocol Reference Guide both available from Modicon Inc Industrial Automation Systems Overview of Modbus TCP Communication Communicating with E1 and E2 brain boards using Modbus TCP requires four basic steps connect configure read write and disconnect When opening a TCP IP connection to E1 or E2 system you normally use port 502 Up to two Modbus masters can be simultaneously handled by E1 and E2 brain boards Use a slave address Unit ID of 1 or 0 for the brain board Understanding Opto 22 and Modbus TCP Differences Notice that Opto 22 module position numbers start numbering at 0 zero while Modbus coil input and register numbers start at 1 so Modbus coil 1 input 1 or register 1 refers to the module in E1 and User s Guide OVERVIEW OF MODBUS TCP COMMUNICATION position 0 on the rack To reduce confusion use the 1 0 reference diagrams starting on page 45 when working with Modbus Also notice the differences in Opto 22 and Modbus terms Coils Digital outputs Register inputs Analog inputs Inputs Digital inputs Holding registers Analog outputs and miscellaneous Function Codes Supported E1 and E2 brain boards use the Modbus and register number and function code to access the appropriate memory map location on the brain board The following table shows supported Modbus function codes 01
19. OmuxRoutes 68 OmuxSettings 71 utilities OptoEnetSniff 56 W watchdog timer 6 7 waveform generation 7 wiring Ethernet 22 serial 17
20. See page 46 for 801 896 unavailable input modules information on using counters 897 1024 Reserved Reserved E1 and E2 User s Guide MODBUS TCP MEMORY FOR BRAIN BOARDS 16 bit integer 1 sets degrees in F 0 sets degrees in C 1025 Set Degrees in F or C 16 bit integer Any non zero value stores configuration to flash so it is restored when the brain board is turned on 0 no action Stores the contents of the Status Store Configuration t0 Flash Write Point Config and IP Security Config Also stores IP information including IP address subnet mask gateway address and DNS address 1026 16 bit integer Any non zero value resets the brain board to defaults as follows Clears offsets and gains counters latches and min max data Turns off digital outputs Sets analog outputs to zero scale 0 counts 1027 is equivalent to 1028 followed by 1030 See 1030 below 1027 Reset Points to Default 16 bit integer Any non zero value 1028 9 Erase Configuration in Flash clears flash 16 bit integer 0 Big Endian 1029 Set 32 bit Float Format 1 Word swapped Big Endian Using Modbus Command 06 Preset Single Register write any non zero value to reset hardware which is just like cycling power to the brain board If point configuration information has not been stored to flash or flash has been cleared
21. be on the same subnet as the brain board Serial cable for a serial network For an Ethernet network use Category 5 Ethernet cable For more information on cables see page 22 E1 or E2 brain board I O modules and mounting racks See compatible 1 0 modules and mounting racks on page 22 Power supply See page 23 Voltmeter Screwdriver Installing Software Insert the CD that came with the brain board into your CD ROM drive The installation wizard should start automatically If it doesn t use Windows Explorer to navigate to your CD ROM drive and then double click setup exe E1 and User s Guide MOUNTING THE BRAIN BOARD Mounting the Brain Board Racks vary in shape and design The combination of rack modules and brain board called the unit can be mounted in any attitude on any flat surface To ensure reliable and trouble free communications the following is recommended Twisted pair wires must be used for the serial communications wiring See page 22 e The communication and DC power wiring should be routed or kept separate from any high voltage field wiring 1 Ifyou are replacing an existing B1 or B2 brain board turn off the power to the rack and carefully remove the B1 or B2 from the rack 2 Carefully plug the or E2 brain board into the mounting rack using the 50 pin connector E1 brain board rack combination As shown in the G1 Standard example below the brain board extends out past the
22. board follow the steps in form 1440 the joManager User s Guide to assign a new IP address E1 and E2 User s Guide CHAPTER 4 MAINTAINING THE AND Loading New Firmware Each E1 and E2 brain board contains firmware sometimes referred to as the kernel which is similar to an operating system If the firmware should become damaged or if a new version of the firmware is released you can load new firmware to the E1 or E2 device using ioManager 1 Make sure you have the following before beginning New firmware from Opto 22 s website at www opto22 com If you have any difficulty obtaining or loading new firmware contact Opto 22 Product Support 1 address es of the E1s and E2s that will receive the new firmware 2 Choose Start 9Programs Opto 22 ioProject Software ioManager The ioManager main window opens ioManager File Tools View Help elel Bl 3 Click the Maintenance icon 9 E1 and E2 User s Guide LOADING NEW FIRMWARE 1 0 Unit Maintenance Command Clear Flash Files ___ Filename Restart Confirmation Interval sec 1 Port on Modify Delete Save Load Execute Select All Clear Completed If you have files on the E2 that you want to preserve download them now For example if you are using the Optomux routing capabilities an
23. creates an executable that is a derivative of the Library because it contains portions of the Library rather than a work that uses the library The executable is therefore covered by this License Section 6 states terms for distribution of such executables When a work that uses the Library uses material from a header file that is part of the Library the object code for the work may be a derivative work of the Library even though the source code is not Whether this is true is especially significant if the work can be linked without the Library or if the work is itself a library The threshold for this to be true is not precisely defined by law If such an object file uses only numerical parameters data structure layouts and accessors and small macros and small inline functions ten lines or less in length then the use ofthe object file is unrestricted regardless of whether it is legally a derivative work Executables containing this object code plus portions of the Library will still fall under Section 6 Otherwise if the work is a derivative ofthe Library you may distribute the object code for the work under the terms of Section 6 Any executables containing that work also fall under Section 6 whether or not they are linked directly with the Library itself 6 As an exception to the Sections above you may also combine or link a work that uses the Library with the Library to produce a work containing portions of the Library and dis
24. end of the rack when used with G4 G1 and Quad Pak 1 0 racks For integral racks which have permanent l O circuitry built in the brain board is inserted in the other direction covering the rack BRAIN BOARD PLUG IN MODULES OPTIONAL POWER SUPPLY PBSA B C E1 and 22 User s Guide CHAPTER 2 INSTALLATION E2 brain board rack combination PLUG IN MODULES Place the I O unit as close as possible to the controlled device to minimize wiring costs and noise for analog modules When installing units next to each other leave sufficient space between units for wiring For maximum physical strength secure the brain board s permanently attached standoffs Also secure standoffs on the rack if available E1 and E2 User s Guide CONNECTING THE POWER SUPPLY Connecting the Power Supply 15VDC OPTIONAL 24 VDC POWER SHARED CURRENT LOOP 445VDC SUPPLY POWER SUPPLY 24VDC COMMON 5VDC POWER SUPPLY 24VDC NOTE For each channel using 24VDC shared loop source install a 1 8 amp fuse for that channel on the I O rack DIGITAL RACK ANALOG RACK 1 Using size 14 AWG or larger wire connect 5 volt power to the 5V and GND connectors on the mounting rack If the 5 volt supply is used by more than one unit or by other devices make sure the voltage at each rack is 5 1 5 2 VDC Use a consistent color code from the power supply to all brain boards to prevent wiri
25. first E1 or E2 over serial using Optomux The first brain routes communication to other E1 and units on the Ethernet network 22222222272777277717777777777722 Host using Optomux over E In this scenario existing serial RS 422 485 link software running on the host does not have to be changed Ethernet network Serial to Ethernet Routing uses a routing table that resides on the first E1 or E2 in which each entry associates Optomux address with an Ethernet host name or address a protocol currently UDP only and a port When an Optomux packet is received from the serial port the brain board compares the Optomux address in the packet to the Optomux addresses in the routing table If there s match the packet is forwarded to the appropriate device including itself via UDP IP When the response is received via UDP it is forwarded to the serial network The maximum number of Optomux devices that can be accessed through serial to Ethernet routing is 256 because an Optomux host can communicate with no more than 256 devices The E1 or E2 doing serial to Ethernet routing also behaves as an Optomux device on the RS 422 485 link To use serial to Ethernet routing you need to follow the steps below to create the OmuxRoutes routing table and then enable serial to Fthernet routing in the OmuxSettings file 66 E1 and 22 User s Guide APPENDIX SER
26. in more detail in this appendix Opto 22 License Agreement for Embedded Software This product contains copyrighted Opto 22 software covered by the Opto 22 License Agreement for Embedded Software This software uses the uClibc library The uClibc library is subject to the GNU Lesser General Public License Please see Opto 22 License Agreement for Embedded Software on page 79 for the exact terms and conditions of the Opto 22 License Agreement for Embedded Software Please see GNU Lesser General Public License on page 83 for the exact terms and conditions of the GNU Lesser General Public License GNU General Public License This product includes copyrighted third party software licensed under the terms of the GNU General Public License Please see GNU General Public License on page 80 for the exact terms and conditions of the GNU General Public License Please see the Open Source Software distribution for this product available at www opto22 com for list of the parts of this product subject to GNU General Public License All third party software packages are copyright by their respective authors Please see the source code for detailed information Full source code of the GPL licensed software including any scripts to control compilation and installation of the object code is available in the Open Source Software distribution for this product at www opto22 com E1 and User s Guide SOFTWARE LICENSES USED I
27. not limited to OptoTerminal G70 Opto Terminal G75 and Sony Ericsson GT 48 see the product data sheet for specific warranty information Refer to Opto 22 form number 1042 for complete warranty information Cyrano Opto 22 FactoryFloor Optomux and Pamux are registered trademarks of Opto 22 Generation 4 ioControl ioDisplay ioManager ioProject ioUtilities mistic Nvio Nvio net Web Porta OptoOPCServer OptoScript OptoServer Opto Terminal OptoUtili SNAP Simple 1 0 SNAP Ultimate 1 0 and SNAP Wireless LAN 1 0 ActiveX JScript Microsoft MS DOS VBScript Visual Basic Visua trademarks of Microsoft Corporation in the United States and oth Opt aret CH er co oConnect OptoControl OptoDisplay OptoENETSniff ies SNAP Ethernet 1 0 SNAP 1 0 SNAP OEM 1 0 SNAP PAC rademarks of Opto 22 and Windows are either registered trademarks or untries Linux is a registered trademark of Linus Torvalds Unicenter is a registered trademark of Computer Associates International Inc ARCNET is a registered trademark of Datapoint Corporation Modbus is a registered trademark of Schneider Electric Wiegand is a registered trademark of Sensor Engineering Corporation Nokia Nokia M2M Platform Nokia M2M Gateway Software and Nokia 31 GSM Connectivity Terminal are trademarks or registered trademarks of Nokia Corporation Sony is a trademark of Sony Corporation Ericsson is a trademark of Telefonaktiebolaget LM Ericss
28. or with modifications and or translated straightforwardly into another language Hereinafter ranslation is included without limitation in the term modification Source code for a work means the preferred form of the work for making modifications to it For a library complete source code means all the source code for all modules it contains plus any associated interface definition files plus the scripts used to control compilation and installation of the library Activities other than copying distribution and modification are not covered by this License they are outside its scope The act of running a program using the Library is not restricted and output from such a program is covered only if its contents constitute a work based on the Library independent of the use of the Library in a tool for writing it Whether that is true depends on what the Library does and what the program that uses the Library does 1 You may copy and distribute verbatim copies of the Library s complete source code as you receive it in any medium provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty keep intact all the notices that refer to this License and to the absence of any warranty and distribute a copy of this License along with the Library You may charge a fee for the physical act of transferring a copy and you may at your option offer warranty protection in exchang
29. s Guide 21 AND E2 FEATURES AND SPECIFICATIONS Pulse Duration Measurement using the Optomux protocol Any or all of the input points can function as pulse duration timers Either on or off pulses can be timed with a resolution of 10 milliseconds Pulse Generation using the Optomux protocol The can be instructed to output a specific number of pulses with programmable period at any output point Continuous square waves can also be generated Time Delays using the Optomux protocol Any or all output points can function in time delay mode Outputs can be set to operate with four types of delays e Delay before turning off e Delay before turning on e Pulse on e Pulse off Time delays are programmable with a resolution of 10 milliseconds Watchdog Timer You can set a watchdog timer to monitor communication with the PC or other host device If the watchdog timer is set via the serial port then any serial activity will trigger the watchdog including communications to other devices If it is set via the Ethernet port then only Ethernet activity directed to the respective E1 or E2 will trigger the watchdog If the watchdog isn t triggered for the length of time set the brain board automatically sets designated 1 0 points to the values you have determined This action makes sure the process is brought to a safe state if communication fails E2 Brain Board Features The following table shows features available an
30. the module data sheets for information on wiring 4 20 mA modules with a loop supply The current requirements given for the output modules are only for the modules To determine what size power supply is needed add the load requirements for each module to determine total power supply requirements NOTE Use only isolated supplies Isolated supplies reduce the risk of ground loops in the communication wiring Do not connect the power supply DC common to earth ground Linear power supplies are recommended See Opto 22 form 1271 for more information E1 and E2 User s Guide 5 5 5 E1 and 22 User s Guide Architecture Communication This chapter describes the options you have for communicating with E1 and E2 brain boards illustrates system architecture for the E1 and E2 and discusses options to change from serial B1 or B2 systems to E1 or E2 Ethernet systems It includes the following topics Communication Options below System Architecture page 26 Migration Options page 32 Communication Options Each E1 and E2 can communicate with a host through its serial port its Ethernet port or both using a variety of protocols Optomux protocol can be used on both serial and Ethernet networks other protocols are also available on Ethernet You can use all of the Ethernet and serial protocols shown in the table below simultaneously The protocols and networks have specific advantages and d
31. the same color e g red black pair white black pair sometimes the same colored wires may be associated with the wrong mates To make sure the wiring is correct strip the jacket back far enough to properly identify the individual pairs You should also check the Group A jumpers to make sure the termination jumpers are configured correctly E1 and E2 User s Guide GENERAL TROUBLESHOOTING 64 E1 and E2 User s Guide Serial to Ethernet Routing If you need to keep existing serial based host Optomux software you can extend your system beyond the physical limitations of an RS 422 485 link by using an E1 or E2 to route control coming through a serial network to remote locations over Ethernet To do so replace existing 815 and B2s with E1s and E2s keeping the same racks and 1 0 Keep the serial link from the host to the first 15 or 25 serial port and put all the E1s and E2s on an Ethernet network With an Ethernet network the I O units can be literally anywhere in the world This scenario is shown in the diagram on the following page E1 and User s Guide Your existing application continues to run over serial without needing any changes the first or E2 translates communications between the host and all other 1 0 units You can acquire data over Ethernet via OPC or Modbus TCP at the same time This figure shows used as a serial to Ethernet router The host communicates to the
32. this license or the ordinary General Public License is the better strategy to use in any particular case based on the explanations below E1 and E2 User s Guide GNU LESSER GENERAL PUBLIC LICENSE When we speak of free software we are referring to freedom of use not price Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software and charge for this service if you wish that you receive source code or can get it if you want it that you can change the software and use pieces of it in new free programs and that you are informed that you can do these things To protect your rights we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it For example if you distribute copies of the library whether gratis or for a fee you must give the recipients all the rights that we gave you You must make sure that they too receive or can get the source code If you link other code with the library you must provide complete object files to the recipients so that they can relink them with the library after making changes to the library and recompiling it And you must show them these terms so they know their rights We protect your rights with a two step method 1 we copyright the library and 2
33. to Ethernet routing is enabled and what happens to troubleshooting log files The brain board will function using the default settings unless you change them as described below The default settings for the OmuxSettings file are as follows The Ethernet port number the 1 or E2 EthernetPort 5000 AT responds to for communications Listens for Optomux commands UDP on EthernetServer enabled the Ethernet port specified by Ethernet Port SerialServer Listens commands the Serial port When enabled E1 or E2 can serve as SerialToEthernetRouting disabled serial to Ethernet router See Serial to Ethernet Routing on page 65 Follow these steps to change the OmuxSettings file 5 is not already open choose Start gt Programs gt Opto 22 ioManager E1 and User s Guide ioManager main window opens ioManager File Tools View e Bl 8 2 6 In the ioManager main window click the Maintenance button Bi The Unit Maintenance window opens E 1 0 Unit Maintenance x Add Install Module Firmware H 10 132 65 110 Download File From 1 0 Unit Modify Upload File To 1 0 Unit Reboot Timeout seconds 89 Delete File On 1 0 Unit Read Filenames On 1 0 Unit fi Delete Save Files To Flash Port Read Files From Flash Clear Flash e 200 _ L
34. to have problems communicating with the E1 and E2 after your network is certified contact Opto 22 Product Support See page 4 Troubleshooting Serial Communications Solving Common Communications Errors Use this section to diagnose the most common causes of communication problems e 5 VDC power adjusted too low at brain boards e Incorrect jumper settings Wiring problems For error codes that might appear when using Optomux see page 59 Power Tips 1 Ensure that the 5 VDC power supply wiring connections are secure E1 and E2 User s Guide CHAPTER 6 TROUBLESHOOTING Ensure the voltage is 5 1 5 2 VDC as measured on the brain board This should be checked at all the Optomux brain boards by measuring across a capacitor on the brain board itself not across the power supply terminals For more information see form 1271 Using Power Supplies Ensure the power supply has no ripple If possible inspect the power supply voltage with an oscilloscope instead of using only a multimeter Multimeters sometimes do not catch fast AC signals and transients Make certain that the power supplies are floating i e do not connect the power supply common 5 VDC return to chassis earth ground Make sure that the 5 VDC power supply common is not connected to the 15 VDC common terminal on analog mounting racks this can cause instability of analog readings Jumper Tips Make sure the jumpers are intact The red jumpers provided with Optom
35. 00 comment 5 udp 10 0 0 9 5000 6 udp 10 0 0 10 5000 The following entry uses hostname instead of IP address 55 udp my_el_hostname 5000 Enabling Serial to Ethernet Routing To enable serial to Ethernet routing add the text SerialToEthernetRouting tothe OmuxSettings file save the file and then send the file via FTP to the and E2 as detailed below NOTE FTP cannot be used through a firewall in the PC Make sure any firewall in the computer such as the built in firewall in Windows XP is disabled before you try to FTP the file Firewalls in a router should not be a problem however 1 IfioManager is not already open choose Start gt Programs Opto 22 ioManager E1 and E2 User s Guide 69 ENABLING SERIAL TO ETHERNET ROUTING The ioManager main window opens ioManager File Tools View e Bl 81 2 In the main window click the Maintenance button Bi The Unit Maintenance window opens E 1 0 Unit Maintenance Command EET Add Install Module Firmware H 10 132 65 110 R Ti Modify Delete 2001 Save Load Execute Copy Select All Clear Completed Result Close In the Unit Maintenance window do the following to copy the OmuxSettings file to your computer Inthe Command list choose Download File From 1 0 Unit E1 and 22 User s Guide APPENDIX SERIAL TO ET
36. 1028 points are reset to defaults Reading always returns 0 1030 Hardware Reset You can read a maximum of 125 registers in one command E1 and E2 User s Guide CHAPTER 5 USING MODBUS TCP Using Input and Holding Registers An example may help clarify how to use input and holding registers Holding registers 1 31 are used to read or write analog values for 16 possible points The first point is located in the first two registers 1 the low register and 2 the high register To figure out the Modbus register numbers for a specific analog point use the following formula Modbus low register number analog point number 2 1 Remember that modules on the rack start with position 0 but that I O points for Modbus start with point 1 For example to read point 1 position 0 and point 9 position 8 For point 1 1 2 1 1 for low register 2 for high register For point 9 9x 2 1 17 for low register 18 for high register Since the first register is odd numbered a read should always begin with an odd numbered register You can read a maximum of 125 registers in one command E1 and E2 User s Guide MODBUS TCP MEMORY FOR BRAIN BOARDS E1 and E2 User s Guide Troubleshooting If you are having difficulty using an E1 or E2 brain board here are some suggestions that might help If you cannot find the answers you need in this book conta
37. 17 E1 and User s Guide Connecting to a Serial Network here e 17 Wiring Serial Communications and Power 17 Setting Jumpers Serial Only 19 Connecting to an Ethernet 8 ode Cebu ied 27 22 22 0 Modules and Mounting Racks CRIT 22 22 23 Chapter 3 Architecture and Communication 25 o PC 25 Accessing E1 and E2 Brain Boards Over the 26 cuti gt 26 Typical Central System USING ODIDITIU leew es 27 Using Optomux Over 27 Control System Plus Data Acquisition Via 28 Communicating with Modbus TCP Clients 29 ioProject 30 Building Custom Applications with the OptoMMP Protocol 31 32 Acquiring Data 33 Adding Modbus TCP Communication ee ecee eere rer en hee erem er 34 Chapter 4 Maintaining the E1 and 2 35 Assigning or Viewing the IP AdOIess
38. 34 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 76543210 mf OM 765432 17200000004 173 174 175 176 177 178 179 DD DEN 180 181 182 183 184 185 186 187 188 189 190 191 192 1930000008 194 TN AUT 195 196 197 198 199 200 201 202008080 2030088080 2040008008 2050088008 206 207 208 ILI CUN M 210008080 211 21200000008 21300808080 Em um Em um EN OBO OFF ORF OPO _ OF OF OF OF OF OF OOS OBO OOO JUMPER INSTALLED
39. 6 Troubleshooting 53 Troubleshooting Ethernet Lomimbnicatioris ux dtt eara aut rer 53 Pinging the Brain Board ea taa tc e ibl b toes Ee Rt aba ied 54 Accessing the Brain Board with ioManager 54 Solving Network Problems EHE 56 Creat a Network Dagta m 56 Analyze Communication Packets eese ek ereere rere 56 Have Your Network Certified tesa x RR P ERG ER RE a bate ta 56 Troubleshooting serial Communications s exu ke TATE Ihn kr x ER Ud 56 Solving Common Communications Errors 56 56 57 s 58 59 Errors Codes When Using Opto 22 Optomux Driver 59 Errors Returned by the Brain Board res EO 59 DVERE T O E TEENS 60 c MET 61 Eur Bine CT 61 Serial Communications Questions and 62 Appendix A Serial to Ethernet Routing 65 a ROWING 67 E1 and E2 User s Guide supuso T 69 Enabling Serial to Ethernet 0
40. ALLOW LIMITATIONS ON HOW LONG AN IMPLIED WARRANTY OR CONDITION LASTS SO LIMITATIONS MAY NOT APPLY TO YOU NO OPTO 22 DEALER AGENT OR EMPLOYEE IS AUTHORIZED TO MAKE ANY MODIFICATIONS EXTENSIONS OR ADDITIONS TO THIS WARRANTY If any modifications are made to the Software by you during the warranty period or if you violate the terms of this Agreement then this warranty shall immediately be terminated This warranty shall not apply if the Software is used on or in conjunction with hardware or software other than the unmodified version of hardware and software with which the Software was designed to be used as described in the documentation THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS AND YOU MAY HAVE OTHER LEGAL RIGHTS THAT VARY FROM STATE TO STATE OR BY JURISDICTION E1 and E2 User s Guide GNU GENERAL PUBLIC LICENSE LIMITATION OF LIABILITY UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY TORT CONTRACT OR OTHERWISE SHALL 22 OR ITS SUPPLIERS OR RESELLERS BE LIABLE YOU OR ANY OTHER PERSON FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING WITHOUT LIMITATION DAMAGES FOR LOSS OF GOODWILL WORK STOPPAGE COMPUTER FAILURE OR MALFUNCTION OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES OR FOR ANY DAMAGES IN EXCESS OF OPTO 225 LIST PRICE FOR THE DEVICE EVEN IF 22 SHALL HAVE BEEN INFORM
41. ARRANTY FOR THE LIBRARY TO THE EXTENT PERMITTED BY APPLICABLE LAW EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND OR OTHER PARTIES PROVIDE THE LIBRARY AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU SHOULD THE LIBRARY PROVE DEFECTIVE YOU ASSUME THE COST OF ALL NECESSARY SERVICING REPAIR OR CORRECTION 16 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER OR ANY OTHER PARTY WHO MAY MODIFY AND OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE BE LIABLE TO YOU FOR DAMAGES INCLUDING ANY GENERAL SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES END OF TERMS AND CONDITIONS E1 and E2 User s Guide Numerics 2 pass and 4 55 20 A AC power 18 address 20 analog features high low range testing 7 minimum maximum values 7 offset and gain calculations 7 read write to point in count
42. C with PCI AC 48 or ACTAIB connector positions vary NOTE In this example the cable shield is connected to the RS 485 com common terminals but the shield is NOT earth grounded In order to meet published specifications the RS 485 serial link requires two terminations one at each end of the serial link Star configuration is not allowed In order to use a star configuration use Opto 22 part number AC30A B 18 E1 and 22 User s Guide CHAPTER 2 INSTALLATION Setting Jumpers Serial Only Jumpers in groups A and B are set during initial configuration Group A jumpers set repeat multidrop mode and termination e Group jumpers set baud rate 2 pass or 4 pass message and address For information on using jumpers to reset the brain board Resetting the Brain Board to Factory Defaults on page 35 See also Jumper Tips on page 57 NOTE While the or E2 is powered up it periodically reads the jumpers You can change the jumpers at any time and the firmware will detect the change and reconfigure accordingly 22 2 A Group A jumpers jumpers GroupB Group A jumpers jumpers E1 Brain Board E2 Brain Board 1 Set the jumpers in Group for repeat multidrop mode and proper termination and biasing REPEAT MODE MIDDLE OF LINK ENDOF
43. COMMUNICATION Typical Control System Using Optomux A control system based on the Optomux protocol running over an Ethernet network is a typical use for E1 and E2 brain boards Here is an example of such a system 1 72777727722 222222222222 Host controlling system using Optomux protocol over Ethernet network Ethernet network saagassa Using Optomux Over Serial Since E1 and E2 brain boards also support RS 422 485 serial networks they can communicate using the Optomux protocol over serial Programming information for this use is in Opto 22 form 1572 the Optomux Protocol Guide E1 and E2 User s Guide SYSTEM ARCHITECTURE Control System Plus Data Acquisition Via OPC Use OptoOPCServer to provide communication between E1 and E2 brain boards and OPC clients OptoOPCServer is a fast efficient OLE for Process Control OPC 2 0 compliant server available for purchase through Opto 22 distributors or on Opto 22 website www opto22 com Documentation for the server is included A control system that s also serving data to OPC clients might look like this 222 1 Host controlling system using Optomux protocol over Ethernet network Ethernet network oso Host
44. E2 1 0 unit depending on the protocol used Read write to point in Engineering units Read write to point in counts Input averaging Minimum maximum values peak valley recording High low range testing Offset and gain calculation Waveform generation Watchdog timer E E1 and E2 User s Guide CHAPTER 1 INTRODUCTION Networks Serial RS 422 485 Ethernet RS 45 1 This protocol is also used with ioProject applications 2 ICTD or thermocouple module is used minimum and maximum values are returned as counts NOTE configuration for any protocol other than Optomux must be done ioManager See form 1576 Configuration for 1 and 2 Brain Boards Each E2 feature is described below Read Write to Point in Engineering Units using OptoMMP The 2 can read the value of an input point and send a value to an output point in engineering units such as millivolts or milliamps Read Write to Point in Counts The E2 can read the value of an input point and send a value to an output point in 12 bit counts This is especially useful when integrating with existing Optomux systems The Optomux protocol will return counts in a range of 0 4095 while the OptoMMP protocol will return counts in a range of 25000 to 25000 Input Averaging using the Optomux protocol The E2 can be instructed to average the va
45. ED OF THE POSSIBILITY OF SUCH DAMAGES OR FOR ANY CLAIM BY ANY OTHER PARTY THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION FURTHERMORE SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES SO THIS LIMITATION AND EXCLUSION MAY NOT APPLY TO YOU TERMINATION This license will terminate automatically if you fail to comply with the limitations described above On termination you must destroy all copies of the Software and documentation MISCELLANEOUS GENERAL This Agreement represents the complete agreement concerning this license between the parties and supersedes all prior agreements and representations between them It may be amended only by a writing executed by both parties THE ACCEPTANCE OF ANY PURCHASE ORDER PLACED BY YOU 15 EXPRESSLY MADE CONDITIONAL ON YOUR ASSENT TO THE TERMS SET FORTH HEREIN AND NOT THOSE CONTAINED IN YOUR PURCHASE ORDER If any provision of this Agreement is held to be unenforceable for any reason such provision shall be reformed only to the extent necessary to make it enforceable This Agreement shall be governed by and construed under California law as such law applies to agreements between California residents entered into and to be performed within California except as governed by Federal law The application of the United Nations Co
46. G SERIAL TO ETHERNET ROUTING b In the Filename field click the browse button The Open File dialog opens c Browse to the OmuxSettings file then click Open The path and filename appear in the Filename field d In the Destination field type the name omuxsettings Ifthe IP Address for the or E2 is listed under IP Addresses go to the next step If the IP address is not in the list click the Add button and it f Highlight the IP address and click Execute The updated OmuxRoutes file is copied to the or E2 and the new settings take effect right away NOTE ioManager uses FTP to transfer files FTP cannot be used through a firewall in the PC Make sure any firewall in the computer such as the built in firewall in Windows XP is disabled before you try to transfer the file Firewalls in a router should not be a problem however Disabling Serial to Ethernet Routing To stop serial to Ethernet routing 1 2 3 4 Open the OmuxSettings file Remove the text SerialToEthernetRouting Save the file Send the OmuxSettings file to the E1 or E2 See Enabling Serial to Ethernet Routing on page 69 E1 and E2 User s Guide Using the OmuxSettings File In addition to jumper settings and E2 brain boards are configured in the OmuxSettings file a text file located on the E1 and E2 This file determines whether the E1 and E2 listens on the serial link or the Ethernet link or both whether Serial
47. HERNET ROUTING In the Filename field type omuxsettings 9 In the Destination field click the browse button The Save As window opens Browse to a directory on the computer type omuxSet tings and click Save The path and filename appear in the Destination field Click the Add button The Add IP Address window opens Enter the IP address of the E1 or E2 and dlick Save The address appears in the IP Addresses list Select the appropriate IP address then click the Execute button The OmuxSettings file is copied to your computer 4 Openthe OmuxSettings file in Notepad or another simple text tool NOTE An example of an OmuxSettings file is provided on the CD that came with the brain board 5 Addthetext serialToEthernetRouting 6 Savethe fileas omuxsettings 7 main window click the Maintenance button Bil 1 0 Unit Maintenance Command Install Firmware Filename IP Addresses Add Install Module Firmware JCMtemp OmuxSettings Download File From 1 0 Unit Destination i JOmuxSettings Delete Clear Flash Files ___ gt oS Load Execute Select All Clear Completed 8 In the I O Unit Maintenance window do the following to copy the OmuxSettings file to the E1 or E2 a In the Command list choose Upload File To 1 0 Unit E1 and E2 User s Guide DISABLIN
48. IAL TO ETHERNET ROUTING Creating a Routing Table The routing table is a text file that you can create or edit in Notepad and then transfer to the E1 or E2 using ioManager The OmuxRoutes table should only reside on the first E1 or E2 NOTE ioManager uses FTP to transfer files FTP cannot be used through a firewall in the PC Make sure any firewall in the computer such as the built in firewall in Windows XP is disabled before you try to FTP the file Firewalls in a router should not be a problem however 1 2 3 Open Notepad or any simple text tool and create a new file In the file type one line for each Optomux address in the following format Optomux address type host name IP address port The space between Optomux address and type can be one or more spaces The value for type is currently The default value for port is 5000 Change it only if port 5000 on the Ethernet network is already being used for another purpose Each entry must end with a carriage return For example 42 udp valve control 5000 112 udp 10 192 55 61 5000 Alternatively you can use commas as follows 42 udp valve control 5000 112 udp 10 192 55 61 5000 A sample routing table is shown on page 69 If ioManager is not already open choose Start 9Programs Opto 22 ioManager 4 Save the file with the filename omuxRoutes NOTE An example of an OmuxRoutes file is provided on the CD that came with the brain board
49. LINK 0123 45 678 9 10 0123 45 678 9 10 GROUPA JUMPERS 0 10 GROUP A JUMPERS 0 10 MULTIDROP MODE MIDDLE OF LINK END OF LINK NON TERMINATED TERMINATED CORI gt E JUMPER INSTALLED JUMPER REMOVED Multidrop When wiring multidrop communications cable keep in mind that the cable is a high speed data transmission line To reduce reflections make sure the line is terminated properly at both ends and that all stubs are less than three inches long E1 and E2 User s Guide CONNECTING A SERIAL NETWORK Repeat lIn this configuration each brain board acts as a repeater allowing up to 5 000 feet between units Since a power failure at any unit breaks the communications link battery backup is recommended NOTE You cannot mix units operating in repeat mode and units operating in multidrop mode on the same network Set the Group B jumpers including baud rate message protocol and address Message Protocol Address Baud Rate Group B Jumpers a Select the baud rate using jumpers 8 9 and 11 in Group B Make sure to set all brain boards on the same network at the same baud rate Baud Rate Jumper Mog 9 384 I 19 2 kBaud 9600 Baud 4800 2400 1200 600 300 8 super
50. N E2 BRAIN BOARDS GNU Lesser General Public License This product includes copyrighted third party software licensed under the terms of the GNU Lesser General Public License Please see GNU Lesser General Public License on page 83 for the exact terms and conditions of the GNU Lesser General Public License Please see the Open Source Software distribution for this product available at www opto22 com for a list of the parts of this product subject to GNU Lesser General Public License All third party software packages are copyright by their respective authors Please see the source code for detailed information Full source code of the LGPL licensed software including any scripts to control compilation and installation of the object code is available in the Open Source Software distribution for this product at www opto22 com Berkeley Software Distribution License This product includes copyrighted third party software licensed under the terms of the Berkeley Software Distribution License Copyright c 1988 1993 1994 The Regents ofthe University of California All rights reserved This code is derived from software written by Ken Arnold and published in UNIX Review Vol 6 No 8 Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met 1 Redistributions of source code must retain the above copyright notice this list of condit
51. Read coil status Read digital output 02 Read input status Read digital input 03 Read holding registers Read analog output and miscellaneous 04 Read input registers Read analog input 05 Force single coil Turn on off one digital output 06 Preset single register Write one analog output or miscellaneous OF Force multiple coils Turn on off multiple digital outputs 10 Preset multiple registers tla em or 11 Report slave ID Report hardware and firmware revision levels NOTE Command 0x11 Report slave ID returns data bytes as shown in the following table Bytes 1 and 2 are always in the formats shown The 0x22 in byte 1 indicates an Opto 22 brain board OxFF appears in byte 2 because since the brain board is a slave it is always running The data in the following table is in hex Byte 1 Byte 2 Bytes 3 6 Bytes 7 10 Bytes 11 14 Slave Run Hardware Version Firmware Version Loader Version ID Indicator Month Day Year Month Day Year Month Day Year 22 FF 01 01 01 01 01 01 01 01 01 01 01 01 E1 and E2 User s Guide CHAPTER 5 USING MODBUS TCP Communication Packet As the Modbus TCP specification requires and E2 brain boards use a Modbus packet inside TCP IP The Modbus checksum is not used instead the Ethernet TCP IP link layer checksum guarantees data The size of the packet is limited to 256 bytes The packet follows the standard Modbus for
52. S 422 485 network or brain boards For a complete list see Form 1572 Optomux Protocol Guide Errors Returned by the Brain Board The following error conditions are caught by generated by the brain board 1 Power Up Clear Expected Command Ignored A command other than A Power Up Clear was attempted after power up or power failure Once the error is received it is not necessary to execute a Power Up Clear command The next command will be executed normally IMPORTANT If this error message is received it means that the Optomux unit has gone through its power up sequence and has reset all characteristics to defaults The unit needs to be reinitialized The brain contains a voltage watchdog circuit If the 5 VDC logic supply voltage falls below the reset voltage the brain will automatically reset Use a high quality DVM Digital Volt Memory or a high precision oscilloscope to examine the brain s supply voltage Power supply selection or design poor power distribution techniques or loose power wiring may cause spurious power up clear alerts For more information see form 1271 Using Power Supplies E1 and E2 User s Guide TROUBLESHOOTING SERIAL COMMUNICATIONS 3 Checksum Error This error indicates that the checksum received by the brain board did not match the checksum calculated by the brain board The command message was corrupted while being transferred over the wire Data corruption can occur due to improper wiring termi
53. and E2 Features and Specifications on page 5 This is the same protocol used with all current Opto 22 Ethernet based hardware and software Therefore custom applications you build using OptoMMP can consolidate E1s and E2s with SNAP Ethernet systems and applications you may have already built for SNAP Ethernet systems can be easily expanded to include E1s and E2s The driver toolkit is provided on the CD that came with the brain board Opto 22 form 1465 the OptoMMP Protocol Guide provides complete documentation of the driver toolkit and the memory map E1 and E2 User s Guide MIGRATION OPTIONS Migration Options E1 and E2 brain boards provide processing power for 1 0 just like their predecessors the B1 and B2 brain boards Designed as drop in replacement boards for the B1 and B2 the E1 and E2 have the same Optomux and serial network capabilities but also add significant features Ethernet support additional protocol support and migration and expansion opportunities Since the E1 and E2 were designed to be interchangeable with existing B1s and B2s you can simply remove an older brain board from the rack and replace it with an E1 or E2 Your Optomux application will run on the E1 or E2 without any software changes With its additional capabilities however the E1 or E2 is ideal for migrating to newer networks hardware and software applications as it has the flexibility to work with both older and newer networks and protocol
54. any the operating system Such a contradiction means you cannot use both them and the Library together in an executable that you distribute 7 You may place library facilities that a work based on the Library side by side in a single library together with other library facilities not covered by this License and distribute such a combined library provided that the separate distribution of the work based on the Library and ofthe other library facilities is otherwise permitted and provided that you do these two things a Accompany the combined library with a copy ofthe same work based on the Library uncombined with any other library facilities This must be distributed under the terms of the Sections above b Give prominent notice with the combined library of the fact that part of it is a work based on the Library and explaining where to find the accompanying uncombined form of the same work 8 You may not copy modify sublicense link with or distribute the Library except as expressly provided under this License Any attempt otherwise to copy modify sublicense link with or distribute the Library is void and will automatically terminate your rights under this License However parties who have received copies or rights from you under this License will not have their licenses terminated so long as such parties remain in full compliance 9 You are not required to accept this License since you have not signed it However nothing e
55. ap analog digital brain boards 48 minimum maximum values 47 offset and gain 47 packet 43 scaling 47 mounting brain board 14 racks 14 22 multidrop mode 19 N network certification 56 OptoEnetSniff 56 troubleshooting 56 O offset Modbus TCP 47 and gain calculations 7 OLE 28 OmuxSettings file 73 OPC 3 28 33 Opto 22 Product Support 4 OptoEnetSniff 56 OptoMMP 5 31 Optomux 5 27 OptoOPCServer 28 30 33 e P packet for Modbus TCP 43 ping 54 power supply analog racks 23 connecting 16 specifications 23 Product Support 4 pulse duration 6 generation 6 Q Quad Pak modules 26 R racks 14 22 ioManager User s Guide read write to point analog 7 digital 5 reading IP address and subnet mask 35 registers Modbus 49 remote access 26 remote monitoring 26 repeat mode 19 reset brain board 35 routing table 67 S scaling Modbus TCP 47 security 22 serial wiring 17 diagram 18 migrate to Ethernet 32 setting jumpers 19 SNAP digital modules 26 software 13 software licensing 77 specifications 8 subnet mask 35 T technical support 4 ioManager User s Guide termination 19 time delays 6 troubleshooting Ethernet communications 53 general errors 61 LED descriptions 10 Modbus exception errors 43 network 56 Product Support 4 serial communications 56 twisted pair 17 U UDP 66 upload
56. are E1 and E2 User s Guide LOADING NEW FIRMWARE 12 Click the Execute button The file is loaded to the brain boards and progress is shown in the Results area When the file is loaded and the brain boards are automatically rebooted a Success message appears CAUTION Do not turn off power to the brain board while the STAT LED is flashing Doing so corrupt the brain board firmware 13 After installing new firmware reconfigure all of the I O and reset the calibration settings offset and gain For more information see form 1576 Configuration for F1 and E2 Brain Boards Also if you are using the routing capabilities you need to replace the OmuxSettings and OmuxRoutes files For a description of how to do this see step 8 on page 71 E1 and 22 User s Guide Using Modbus TCP This chapter includes instructions for using Modbus TCP to communicate with E1 and E2 brain boards It includes information on Modbus communication and working with 1 0 points and it includes the Modbus memory map for the brain boards The following topics are included in this chapter Overview of Modbus TCP Communication below Referencing 1 Points for E1 and E2 Brain Boards page 45 Configuring Points page 46 Modbus TCP Memory Map for E1 and E2 Brain Boards page 48 This chapter assumes that you already have an understanding of Modbus TCP programming and communications Use this chapter in conjunction with the Open
57. ate IP address and subnet mask Make sure the IP address and subnet mask on the brain board are compatible with those on the computer Follow the directions beginning on page 35 to check the IP address and subnet mask on the brain board and change them if necessary If you see the message No response from host check the following e Arethe computer and brain board correctly connected Is the brain board turned on e Arethe IP address and subnet mask on the brain board compatible with those on the computer e sthe brain board in reset mode Check for a blinking STAT LED STAT LED blink codes are shown on page 11 If you still cannot ping the brain board contact Opto 22 Product Support See page 4 Accessing the Brain Board with ioManager Once you know you can ping the brain board try to access it using ioManager You will need to know the brain board s IP address 1 is not already open choose Start 9Programs Opto 22 ioManager The ioManager main window opens E1 and E2 User s Guide CHAPTER 6 TROUBLESHOOTING ioManager File Tools View Help osla Bl 2 the ioManager main window click the Inspect button Bl 3 Inthe IP Address field type the IP address of the brain board or choose it from the drop down list 4 Click Status Read Information from the brain board is displayed in the window Inspect 1 0 Unit IP Address 10 192 54 255 Port
58. ceive copies directly or indirectly through you then the only way you could satisfy both it and this License would be to refrain entirely from distribution ofthe Library fany portion of this section is held invalid or unenforceable under any particular circumstance the balance of the section is intended apply and the section as a whole is intended to apply in other circumstances tis not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices Many people have made generous contributions to the wide range of software distributed hrough that system in reliance on consistent application of that system it is up to the author donor to decide if he or she is willing 0 distribute software through any other system and a licensee cannot impose that choice Th 5 section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License 2 If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation E1 and E2 User s Guide GNU LESSER GENERAL PUBLIC LICENSE exclud
59. cense Agreement for Embedded Software NOTICE TO USER THIS 15 A CONTRACT CAREFULLY READ THIS AGREEMENT BEFORE USING THE DEVICE IN WHICH THE SOFTWARE IS INCORPORATED BY USING THE DEVICE YOU ACCEPT ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT IF YOU DO NOT AGREE TO THESE TERMS DO NOT USE THE DEVICE YOU MAY WITHIN FIFTEEN 15 DAYS OF PURCHASE REQUEST A FULL REFUND GRANT You have acquired a device Device that includes software components created and copyrighted by Opto 22 Inc Opto 22 The installed software of Opto 22 origin Software is protected by international intellectual property laws treaties as well as other intellectual property laws and treaties The Software is licensed not sold Opto 22 hereby grants to you a non exclusive license to i use the Software on the Device in which it is incorporated ii transfer the Software to a recipient on a permanent basis provided the recipient agrees to the terms and conditions of this Agreement You may not i modify translate reverse engineer decompile or disassemble except to the extent applicable laws specifically prohibit such restrictions and as expressly set forth in the section SOURCE SOFTWARE or create derivative works based on the Software or any portion thereof ii copy the Software except for backup purposes or iii use Opto 225 or Opto 225 suppliers name logos or trademarks in any manner including without limitation in your advertising
60. collecting data using OPC gagag E1 and E2 User s Guide CHAPTER 3 ARCHITECTURE AND COMMUNICATION Communicating with Modbus TCP Clients Complete information to communicate with Modbus TCP clients is in Chapter 5 Using Modbus TCP is an example of system architecture 222222222 5 software a 1 4 44 Ethernet network E1 and E2 User s Guide SYSTEM ARCHITECTURE ioProject Control System E1 and E2 brain boards can be used as part of a complete control system with an Opto 22 controller control and HMI applications you have built using SNAP Ethernet based 1 0 units and the ioProject software suite ioProject includes joControl a flowchart based programming tool for machine control and process applications You build the control strategy download it to a SNAP PAC industrial controller and it runs independently on the controller joDisplay an HMI package for building operator interfaces for your Microsoft Windows based clients ioDisplay includes alarming trending security and a built in library of industrial graphics OptoOPCServer a fast efficient 2 0 compliant server joManager a utility application used to assign IP addresses configure I O poi
61. copy of this License along with the Program You may charge a fee for the physical act of transferring a copy and you may at your option offer warranty protection in exchange for a fee 2 You may modify your copy or copies of the Program or any portion of it thus forming a work based on the Program and copy and distribute such modifications or work under the terms of Section 1 above provided that you also meet all of these conditions You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change b You must cause any work that you distribute or publish that in whole or in part contains or is derived from the Program or any part thereof to be licensed as a whole at no charge to all third parties under the terms of this License If the modified program normally reads commands interactively when run you must cause it when started running for such interactive use in the most ordinary way to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty or else saying that you provide a warranty and that users may redistribute the program under these conditions and telling the user how to view a copy of this License Exception if the Program itself is interactive but does not normally print such an announcement your work based on the Program is not required to print an announcement These requireme
62. ct Opto 22 Product Support Contact information is on page 4 This chapter includes the following topics Troubleshooting Ethernet Communications below Troubleshooting Serial Communications page 56 General Troubleshooting page 61 Troubleshooting Ethernet Communications If you attempt to connect to the brain board using its IP address and you cannot first check the following e Make sure the brain board has been turned on and the Status LED is on See LED Descriptions on page 10 e Make sure the brain board is firmly attached to the rack e Verify that you typed in the correct address for the brain board Check the small white area next to the Ethernet port on the brain board where the IP address should be written e Make sure the brain board has been assigned a valid IP address and subnet mask and E2 brain boards come from the factory with a default IP address of 0 0 0 0 which is invalid The default subnet mask is 255 255 255 0 To assign the IP address and subnet mask see form 1440 the ioManager User s Guide Make sure you have up to date drivers installed on your computer s Network Interface Card Contact your system administrator or the manufacturer of the card for help e Make sure any firewall in the computer such as the built in firewall in Windows XP is temporarily disabled before you try to assign or change IP addresses load firmware using ioManager Maintenance window or FTP files to the brai
63. d from the Library and can be reasonably considered independent and separate works in themselves then this License and its terms do not apply to those sections when you distribute them as separate works But when you distribute the same sections as part of a whole which is a work based on the Library the distribution of the whole must be on the terms of this License whose permissions for other licensees extend to the entire whole and thus to each and every part regardless of who wrote it Thus it is not the intent of this section to claim rights or contest your rights to work written entirely by you rather the intent is to exercise the right to control the distribution of derivative or collective works based on the Library In addition mere aggregation of another work not based on the Library with the Library or with a work based on the Library ona volume of a storage or distribution medium does not bring the other work under the scope of this License 3 You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library To do this you must alter all the notices that refer to this License so that they refer to the ordinary GNU General Public License version E1 and E2 User s Guide GNU LESSER GENERAL PUBLIC LICENSE 2 instead of to this License Ifa newer version than version 2 of the ordinary GNU General Public License has appeared then you can specify t
64. d have uploaded the OmuxSettings and OmuxRoutes files to the brain you may want to copy these files to your computer For a description of how to do this see step 3 on page 70 Make sure Install Firmware is highlighted in the Command list Click the Browse button am From the drop down list for Files of Type select E1 E2 Firmware bin Locate the firmware file you downloaded from our website and then double click the filename The Filename appears in the Filename field If the IP address es of the target E1 and E2 devices appear in the IP Addresses list skip to step 11 Or if you have previously saved a list of IP addresses click Load to load the saved list If the address es you need don t appear in the list click Add E1 and E2 User s Guide CHAPTER 4 MAINTAINING THE E2 5 Add IP Address 10 Enter the address or a range of consecutive addresses then click OK The address es you entered appear in the 1 0 Unit Maintenance dialog box 11 In the Unit Maintenance dialog box highlight the IP addresses to send firmware to Firmware file to load IP addresses of brain boards to receive firmware file 1 0 Unit Maintenance Install Firmware CAUTION If you mistakenly enter the address of some other or E2 you will erase the current firmware in that device and there is no undo Make certain you have the correct IP addresses and that you want to download new firmw
65. ddressed brain board is probably in the two pass mode This error can only occur when the driver is configured for 4 pass mode 4 55 mode was originally intended for diagnostic purposes but it is generally not used even for that purpose It is best to always use 2 pass mode E E1 and E2 User s Guide CHAPTER 6 TROUBLESHOOTING Other Error Codes These are error codes returned from brain when not using Opto 22 driver 00 Powerup Clear Expected Command Ignored See 1 Power Up Clear Expected on page 59 02 Checksum Error See 3 Checksum Error 60 General Troubleshooting I send command to turn on output point 5 of a digital brain board and output point 4 goes on Points are numbered from 0 to 15 therefore the fifth bit in the bitmask is for point 4 Following are the bitmask values for each point in hex 0 0001 8 0100 1 0002 9 0200 2 0004 10 0400 3 0008 11 0800 4 0010 12 1000 5 0020 13 2000 6 0040 14 4000 7 0080 15 8000 I send a command to activate several outputs The brain board responds with no error but none of my outputs come on If an output point does not turn on check the following e Makesure you configured the output points correctly On power up the unit defaults to all points configured as inputs e f power went out and came back on the unit will have lost its configuration e sure you
66. designated place then offering equivalent access 0 copy the source code from the same place counts as distribution of the source code even though third parties are not compelled 0 copy the source along with the object code 4 You may not copy modify sublicense or distribute the Program except as expressly provided under this License Any attempt otherwise to copy modify sublicense or distribute the Program is void and will automatically terminate your rights under this License However parties who have received copies or rights from you under this License will not have their licenses terminated so long as such parties remain in full compliance 5 You are not required to accept this License since you have not signed it However nothing else grants you permission to modify or distribute the Program or its derivative works These actions are prohibited by law if you do not accept this License Therefore by modifying or distributing the Program or any work based on the Program you indicate your acceptance of this License to do so and all its terms and conditions for copying distributing or modifying the Program or works based on it 6 Each time you redistribute the Program or any work based on the Program the recipient automatically receives a license from the original licensor to copy distribute modify the Program subject to these terms and conditions You may not impose any further restrictions on the recipients exercise
67. e for a fee 2 You may modify your copy or copies of the Library or any portion of it thus forming a work based on the Library and copy and distribute such modifications or work under the terms of Section 1 above provided that you also meet all of these conditions a The modified work must itself be a software library b You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change C You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License d If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility other than as an argument passed when the facility is invoked then you must make a good faith effort to ensure that in the event an application does not supply such function or table the facility still operates and performs whatever part of its purpose remains meaningful For example a function in a library to compute square roots has a purpose that is entirely well defined independent of the application Therefore Subsection 2d requires that any application supplied function or table used by this function must be optional if the application does not supply it the square root function must still compute square roots These requirements apply to the modified work as a whole Ifidentifiable sections of that work are not derive
68. e Software Foundation If the Program does not specify a version number of this License you may choose any version ever published by the Free Software Foundation 10 If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different write to the author to ask for permission For software which is copyrighted by the Free Software Foundation write to the Free Software Foundation we sometimes make exceptions for this Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally NO WARRANTY 11 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE THERE 15 NO WARRANTY FOR THE PROGRAM TO THE EXTENT PERMITTED BY APPLICABLE LAW EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND OR OTHER PARTIES PROVIDE THE PROGRAM AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU SHOULD THE PROGRAM PROVE DEFECTIVE YOU ASSUME THE COST OF ALL NECESSARY SERVICING REPAIR OR CORRECTION 12 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER OR ANY OTHER PARTY WHO MAY MODIFY AND OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE BE LIABLE TO YOU FOR DAMAGES
69. ender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the software or if you modify it For example if you distribute copies of such a program whether gratis or for a fee you must give the recipients all the rights that you have You must make sure that they too receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two steps 1 copyright the software and 2 offer you this license which gives you legal permission to copy distribute and or modify the software E1 and 22 User s Guide APPENDIX C LICENSING INFORMATION Also for each author s protection and ours we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed on we want its recipients to know that what they have is not the original so that any problems introduced by others will not reflect on the original authors reputations Finally any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses in effect making the program proprietary To prevent this we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for copying distribution and modification follow GNU
70. et the brain board automatically sets designated 1 0 points to the values you have determined This action makes sure the process is brought to a safe state if communication fails E1 and E2 User s Guide E1 AND E2 FEATURES AND SPECIFICATIONS Specifications Power Requirements 5 0 5 2 VDC 0 5 amps excludes digital and analog module power requirements Operating Temperature 0 C to 70 Storage Temperature 40 C to 85 Humidity 0 95 humidity non condensing Ethernet Network Interface Type Connector Rate Supported Protocols Maximum Segment Length IEEE 802 3 network 10Base T 100Base TX RJ 45 10 100 Mbps half or full duplex Optomux over Ethernet Modbus TCP OptoMMP Opto 22 s IEEE 1394 based memory mapped protocol 100 m 328 ft with Category 5 or superior UTP Serial Network Interface Type Connector Data Rates Supported Protocols Network Range RS 422 485 serial link E1 Terminal block E2 Terminal block on mounting rack 300 600 1200 2400 4800 9600 19200 and 38400 baud Optomux Up to 32 Optomux stations configured for multidrop can be used on a serial network of up to 1524 m 5000 ft total length Up to 256 Optomux stations and longer line lengths can be used by installing network repeaters Up to 256 Optomux stations configured for repeat mode can exist on a network Optomux Functions Digital I O E1 Read Point Write Point La
71. figuration for and E2 Brain Boards Maximum and Minimum Values Peaks and Valleys Minimum and maximum values are analog point features The brain board automatically keeps track of minimum and maximum values For example you can read the values at any time to record minimum and maximum pressures You can also clear them NOTE The E2 does not maintain minimum and maximum values for temperature e To read min max values read input registers 129 160 min and 257 288 max Read two consecutive addresses per point clear min max values write 1 bits to coils 321 336 min and 385 400 max Offset and Gain You can monitor current values for offset and gain using holding registers 129 160 and 257 288 To perform calibration on analog points use ioManager See form 1440 ioManager User s Guide E1 and E2 User s Guide MODBUS TCP MEMORY FOR BRAIN BOARDS Modbus TCP Memory Map for E1 and E2 Brain Boards Coils For digital 1 0 counter activation and clearing of latches and analog minimum maximum values Each address contains the data for one point Data is either 0 1 1 16 available Read Write E n 17 64 unavailable Digital Outputs _ 0 0 Off 65 80 available 81 128 unavailable Activate Counters 1 On 0 Configure as a point digital modules feature first See Counters on page 46 Clear On latch digital modules 129 144 a
72. for first link add Ethernet network Existing software continues to run over serial Configure first E1 E2 serial to Ethernet router Architecture and Programming See Serial to Ethernet Routing on page 65 Replace serial network with Ethernet network but continue using Optomux protocol Replace B1s and B2s with E1s and E2s keeping same racks and I O Replace network Modify or replace current software using the Optomux Protocol Driver Architecture page 27 Programming Optomux Protocol Guide form 1572 Replace serial network with Ethernet network Use ioProject with an Opto 22 industrial controller to control the system Replace B1s and B2s with E1s and E2s keeping same racks and I O Replace network Add SNAP PAC controller Optional Expand system to include SNAP hardware Replace current control software with software built using ioControl Optional Add an HMI or OPC support using other ioProject software applications Architecture page 30 Programming ioControl User s Guide form 1300 and Command Reference 1301 Configura tion for E1 and E2 Brain Boards 1576 E1 and E2 User s Guide CHAPTER 3 ARCHITECTURE AND COMMUNICATION Acquiring Data Using OPC You can use OPC to acquire data from E1 and 2 brain boards without disturbing your existing software OptoOPCServer can serve data from E1s and E2s over Ethernet separatel
73. h ioProject applications 2 One latch per point is available it can be configured as on to off or off to on 3 Two latches per point are always available no configuration is needed 4 Maximum counter frequency is 400 Hz Counters roll over at 65 535 NOTE All 1 0 configuration for any protocol other than Optomux must be done in ioManager See form 1576 1 0 Configuration for and E2 Brain Boards Each E1 feature is described below Read Write to Point The E1 can read the value of any input or output point and turn digital output points on or off Input Latches When the value of a digital input point changes from off to on an on latch can be set While the value of the point may return to off the on latch remains set until cleared as a record ofthe change Similarly an off latch can be set when the value of a digital point changes from on to off and it remains set until cleared See note 2 in the table above Latching is different on an E1 depending on the protocol used with the brain board When the E1 is used with the Optomux protocol only one latch is available and you must configure it to be an off to on latch or on to off latch When you use with OptoMMP or Modbus TCP however both types of latches are automatically available for each point and no configuration is required Counters Digital input be used as a counter counting the number of times the input changes from off to on E1 and E2 User
74. h linking only if the entire combination fits its criteria of freedom The Lesser General Public License permits more lax criteria for linking other code with the library We call this license the Lesser General Public License because it does Less to protect the user s freedom than the ordinary General Public License It also provides other free software developers Less of an advantage over competing non free programs These disadvantages are the reason we use the ordinary General Public License for many libraries However the Lesser license provides advantages in certain special circumstances For example on rare occasions there may be a special need to encourage the widest possible use of a certain library so that it becomes a de facto standard To achieve this non free programs must be allowed to use the library A more frequent case is that a free library does the same job as widely used non free libraries In this case there is little to gain by limiting the free library to free software only so we use the Lesser General Public License In other cases permission to use a particular library in non free programs enables a greater number of people to use a large body of free software For example permission to use the GNU C Library in non free programs enables many more people to use the whole GNU operating system as well as its variant the GNU Linux operating system Although the Lesser General Public License is Less protective
75. hat version instead if you wish Do not make any other change in these notices Once this change is made a given it is irreversible for that copy so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy This option is useful when you wish to copy part of the code of the Library into a program that is not a library 4 You may copy and distribute the Library or a portion or derivative of it under Section 2 in object code or executable form under he terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine readable source code which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange f distribution of object code is made by offering access to copy from a designated place then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code even though third parties are not compelled 0 copy the source along with the object code 5 A program that contains no derivative of any portion of the Library but is designed to work with the Library by being compiled or inked with it is called a work that uses the Library Such a work in isolation is not a derivative work of the Library and therefore falls outside the scope of this License However linking a work that uses the Library with the Library
76. he brain board plus the mounting rack and modules are often referred to as the unit Choose compatible 1 0 modules and mounting racks from the following tables G4PB8H PB4AH G4 Digital G4PB16H Standard G1 PB8AH G4PB16HC PB16AH Quad Pak PB16HQ PB4H PB8H Standard G1 I O PB16H PB16HC G4PB16J K L PB16J K L Cable For serial RS 422 485 communications the following cables are recommended Cables listed are 24 gauge 7x32 stranded with 100 ohm nominal impedance and a capacitance of 12 5 pF ft If you use other cables they should have a nominal impedance of 100 120 Ohms and a capacitance of less than 15 pF ft E1 and E2 User s Guide CHAPTER 2 INSTALLATION We also recommend that you choose a cable with one more pair than your application requires so you can use one of the extra wires rather than the shield for the signal common Belden P N 8104 with overall shield Belden P N 9728 individually shielded Belden P N 8164 individually shielded with overall shield Manhattan P N M3477 individually shielded with overall shield Manhattan P N 39251 individually shielded with overall shield Belden P N 8103 with overall shield Belden P N 9730 individually shielded Belden P N 8163 individually shielded with overall shield Manhattan P N M3476 individually shielded with overall shield Manhattan P N M39250 individually shielded w
77. her and Fax 951 695 3017 answered in the order Email support opto22 com Opto 22 Web site support opto22 com When calling for technical support be prepared to provide the following information about your system to the Product Support engineer Software and version being used Brain board and controller firmware version as applicable PC configuration type of processor speed memory and operating system A complete description of your hardware and operating systems including jumper configuration device and firmware information for the brain board and date codes of I O units available through ioManager see form 1440 the ioManager User s Guide IP addresses and net masks for devices on the system accessories installed such as expansion cards type of power supply third party devices installed for example barcode readers Specific error messages seen ES E1 and E2 User s Guide CHAPTER 1 INTRODUCTION E1 and E2 Features and Specifications E1 Brain Board Features The following table shows features available on an E1 digital unit depending on the protocol used ESSE a eee Read write to point Input latches e Counters Pulse duration measurement Pulse generation Time delays 10 ms resolution Watchdog timer Networks Serial RS 422 485 Ethernet 1 This protocol is also used wit
78. indow click the Maintenance button 941 1 0 Unit Maintenance uxt Command Filename Reboot Timeout seconds 1 Port Clear Flash Files 2001 Save Execute Select All Clear Completed Results Close 12 In the Unit Maintenance window do the following to copy the OmuxSettings file to the E1 or E2 In the Command list choose Upload File To 1 0 Unit b In the Filename field click the browse button Inthe Open dialog browse to the OmuxSettings file then click Open The path and filename appear in the Filename field d In the Destination field type the filename omuxSettings Ifthe IP Address for the E1 or E2 is listed under IP Addresses go to the next step If the IP address is not in the list click the Add button and add it f Highlight the IP address and click Execute The updated OmuxSettings file is copied to the or E2 and the new settings take effect NOTE ioManager uses FTP to transfer files FTP cannot be used through a firewall in the PC Make sure any firewall in the computer such as the built in firewall in Windows XP is disabled before you try to transfer the file Firewalls in a router should not be a problem however E1 and E2 User s Guide Licensing Information Software Licenses Used in E1 and E2 Brain Boards Certain software used by Opto 22 E1 and brain boards is subject to different software licenses This is explained
79. ing those countries so that distribution is permitted only in or among countries not thus excluded In such case this License incorporates the limitation as if written in the body of this License 13 The Free Software Foundation may publish revised and or new versions of the Lesser General Public License from time to time Such new versions will be similar in spirit to the present version but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later version you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number you may choose any version ever published by the Free Software Foundation 14 Ifyou wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these write to the author to ask for permission For software which is copyrighted by the Free Software Foundation write to the Free Software Foundation we sometimes make exceptions for this Our decision will be guided by the two goals of preserving the free Status of all derivatives of our free software and of promoting the sharing and reuse of software generally NO WARRANTY 15 BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE THERE 15 NO W
80. ions and the following disclaimer 2 Redistributions in binary form must reproduce the above copyright notice this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution 3 All advertising materials mentioning features or use of this software must display the following acknowledgement This product includes software developed by the University of California Berkeley and its contributors 4 Neither the name ofthe University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS AS 15 AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE DATA OR PROFITS OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER CONTRACT STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE E1 and E2 User s Guide APPENDIX C LICENSING INFORMATION Opto 22 Li
81. isadvantages summarized below ptom xov r All possible brain board features are available Ethernet network allows multiple hosts than page 27 Ethernet 256 I O units OPC clients communicate to E1 and E2 via OPC over OptoOPCServer Brain board features are somewhat page 28 Ethernet Can be used simultaneously with Optomux control software limited running over Ethernet or serial Modbus TCP events become pur Mo Baus TOF system Brain board features are somewhat Can be used simultaneously with Optomux control software dede page 29 over Ethernet limited running over Ethernet or serial E1 and User s Guide SYSTEM ARCHITECTURE 1 and 2 can be part of an ioProject control system Custom applications be for 22 and other Brain board features are somewhat eee OptoMMP over S page 30 Opto 22 memory mapped devices such as SNAP Ethernet limited Ethernet OptoMMP Ethernet network allows multiple hosts and more than nao 31 256 units pag Over Al protocol features are available Pinned te 246 32 Host must be the serial network No pulsing or time delay on E1 no input averaging or waveform generation on E2 Accessing E1 and E2 Brain Boards Over the Internet Since E1 and E2 brain boards operate like any other device on an E
82. ith overall shield For Ethernet communications use a Category 5 Ethernet connection to a standard 10BASE T or 100BASE TX Ethernet network If you need a direct connection to a PC use an Ethernet crossover cable Power Supply Choose the power supply appropriate for the rack E1 and E2 brain boards require 5 0 5 2 VDC at 0 5 amps see note Although it is possible to distribute DC from a common power supply to several locations better noise immunity is obtained by having separate power supplies for each 1 0 unit For more information see Opto 22 form 1271 Using Power Supplies with Opto 22 Systems Technical Note NOTE For all Opto 22 products that require 5 VDC we recommend adjusting the power supply so that the Opto 22 products are receiving 5 10 5 20 VDC This recommendation is based on years of experience and Will eliminate many startup and maintenance issues Analog racks also require 15 VDC and 15 VDC 0 25 VDC to power the analog modules The amount of power required depends on the type and number of analog 1 0 modules that plugged into the rack Power requirements for each of the analog modules are included in the module specifications Analog racks also provide terminals for a separate 24 volt supply that can be used for powering 4 20 mA current loops using 4 20 mA analog 1 0 modules For this type of application the 24 volt supply is required in addition to the supplies mentioned above Refer to
83. k to update data If information does not appear and an error is indicated in the Status field contact Product Support See page 4 E1 and E2 User s Guide TROUBLESHOOTING SERIAL COMMUNICATIONS Solving Network Problems If problems in communicating with the and E2 recur check your network The wires switches and so on in your Ethernet network are not part of the Opto 22 hardware but any problems in your network may affect communication with Opto 22 products Create a Network Diagram First create a network diagram and verify the following Cable connectors are firmly inserted e The switch has power Switch LEDs indicate that the connection is up e Neither the PC nor the I O unit use the switch s uplink port e The brain 5 Link LED is lit Analyze Communication Packets If it appears that you have network problems you can use the OptoEnetSniff utility to log and analyze network communication packets The utility is available on our Web site www opto22 com For help using the utility see its online help file choose Help Contents Have Your Network Certified If you suspect network problems you may need to have your network professionally certified Opto 22 does not offer network validation or certification services but many network hardware manufacturers do Contact the manufacturer of your Ethernet network hardware to have them diagnose fix and certify your network If you continue
84. lse grants you permission to modify or distribute the Library or its derivative works These actions are prohibited by law if you do not accept this License Therefore by modifying or distributing the Library or any work based on the Library you indicate your acceptance of this License to do so and all its terms and conditions for copying distributing or modifying the Library or works based on it 10 Each time you redistribute the Library or any work based on the Library the recipient automatically receives a license from the original licensor to copy distribute link with or modify the Library subject to these terms and conditions You may not impose any further restrictions on the recipients exercise of the rights granted herein You are not responsible for enforcing compliance by third parties with this License 11 If asa consequence ofa court judgment or allegation of patent infringement or for any other reason not limited to patent issues conditions are imposed on you whether by court order agreement or otherwise that contradict the conditions of this License they do not excuse you from the conditions of this License If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations then as a consequence you may not distribute the Library at all For example if a patent license would not permit royalty free redistribution of the Library by all those who re
85. lues of successive readings Minimum Maximum Values peak valley recording The automatically keeps track of minimum and maximum count values for each input You can read these values at any time and you can reset min max values NOTE The values returned for temperature modules will be counts not linearized temperature values High Low Range Testing The E2 tests for the high and low limits range for the specified input points and sets a flag if values exceed the specified range Offset and Calculations The brain board can calculate offset and gain for analog input points If a 0 VDC to 5 VDC input receives signals that are slightly off not exactly 0 VDC at the lowest point for example the offset and gain can be calculated so that values will appear accurately NOTE To calibrate analog points use ioManager See form 1440 the ioManager User s Guide Waveform Generation using Optomux Square waves triangle waves and ramps can be generated at any output point with programmable rates Watchdog Timer You can set a watchdog timer to monitor communication with the PC or other host device If the watchdog timer is set via the serial port then any serial activity will trigger the watchdog including communications to other devices If it is set via the Ethernet port then only Fthernet activity directed to the respective 1 or E2 will trigger the watchdog If the watchdog isn t triggered for the length of time s
86. mat and contains the following Byte 0 Identifier copied by responder usually 0 Byte 1 Identifier copied by responder usually 0 Byte 2 Protocol identifier 0 Byte 3 Protocol identifier 0 Byte 4 Length field upper byte 0 since all messages are smaller than 256 Byte 5 Length field lower byte number of bytes following Byte 6 Unit identifier slave address normally 1 Byte 7 Modbus function code See tables starting on page 42 Byte 8 and Data as needed following NOTE You can read a maximum of 125 input or holding registers in one command 03 or 04 Exception Errors If an error occurs standard Modbus exception codes are returned in the Modbus packet See the Modicon documentation for more information The following table reprinted from the Modicon Modbus Protocol Reference Guide shows the Modbus exception codes 01 ILLEGAL FUNCTION The function code received in the query is not an allowable action for the slave The data address received in the query is not 02 ILLEGAL DATA ADDRESS an allowable address for the slave A value contained in the query data field is not 03 ILLEGAL DATA VALUE an allowable value for the slave An unrecoverable error occurred while the 04 SLAVE DEVICE FAILURE slave was attempting to perform the requested action E1 and E2 User s Guide OVERVIEW OF MODBUS TCP COMMUNICATION The slave has accepted the request and is processing it but a long du
87. n board DHCP and FTP cannot E1 and User s Guide TROUBLESHOOTING ETHERNET COMMUNICATIONS function through a firewall in the PC Firewalls in a router are less likely to be a problem unless certain ports such as FTP client have been blocked either by default or on purpose e Make sure you have Administrator privileges on your computer and that any firewall in the computer such as the built in firewall in Window XP is temporarily disabled before you try to assign or change IP addresses load firmware using ioManager s Maintenance window or work with files on the brain or controller DHCP and FTP cannot function through a firewall in the PC Firewalls in a router are less likely to be a problem unless certain ports such as FTP client have been blocked either by default or on purpose Pinging the Brain Board If you still cannot communicate with the brain board after you have checked these items try to reach it using the PING protocol 1 Openan MS DOS command prompt window 2 Attheprompt type ping brain board s IP address For example type ping 10 192 54 40 If the brain board responds go to Accessing the Brain Board with ioManager on page 54 If the PING command cannot be found choose Start Control Panel Network Make sure is configured as a protocol and that an IP address and subnet mask are assigned If you see the message Destination host route not defined the brain board probably has an inappropri
88. nation and or radio frequency or electromagnetic noise 5 The brain received a non printable ASCII character Only characters from 21 Hex to 7F Hex are permitted within Optomux messages This error is most likely caused by a some kind of data corruption The command is ignored Data corruptions may occur due to improper wiring termination and or spurious radio frequency or electromagnetic noise Driver Errors These are error conditions caught by generated by the driver 29 Turnaround Time Out The brain board did not respond within the specified time interval or did not respond at all Timeouts occur if the timeout interval is too short or the brain board is not available Possible causes of a brain board not being available include power voltage problems the brain board s jumper settings being incorrect address baud rate 2 4 pass mode termination etc or there is a problem with the communication wiring 31 Checksum Error The checksum of the message received by the Optomux driver does not match the checksum calculated by the driver Data corruption can occur due to improper wiring termination and or radio frequency or electromagnetic noise 33 Send Error This error indicates that the Optomux driver cannot send the message The most likely cause is a problem with the serial port being in use by another application 34 Incorrect Command Echo In Four Pass The command echo does not match the command sent The a
89. nd Group B jumpers see Setting Jumpers Serial Only on 19 Also see Jumper Tips on page 57 To reset the brain board to factory defaults 1 off power to the brain board and remove the Ethernet connector 2 Using needle nosed pliers install a jumper as follows E1 and User s Guide RESETTING THE BRAIN BOARD FACTORY DEFAULTS e For the E1 brain board use pins 3 and 4 on jumper block J5 Install jumper on pins 3 and 4 Pin 1 E1 Brain Board e For the E2 brain board use pins 3 and 4 on jumper block J3 22 ETHERNET FOR B s iB m Install jumper J3 A ins 3 and 4 on pins 5 D 5 E in 1 gt HI Status LED 98000000808 86000000000 E2 Brain Board 3 urn on powerto the brain board The Status LED starts blinking The Status LED is labeled STAT on the board and is shown in the graphic above CAUTION Do not turn off the power to the brain board while the STAT LED is flashing Doing so may corrupt the brain board firmware 4 Wait until the light stops blinking and is solidly on in approximately 30 seconds and then turn off power to the brain board For more information on LEDs and blink codes see LED Descriptions on page 10 5 Remove the Reset to Factory Defaults jumper and reconnect the Ethernet cable 6 Before turning on power to the brain
90. network For more information see Chapter 5 Using Modbus TCP Modbus TCP hardware or software Ethernetinetwork Host controlling system using Optomux over serial 2222222222172222222277777727722 71722 ME dd 2 12222222222222222221777777777722 E1 and 22 User s Guide Maintaining the and 22 This chapter describes how to maintain E1 and E2 brain boards It includes the following topics Assigning or Viewing the IP Address below Resetting the Brain Board to Factory Defaults page 35 Loading New Firmware page 37 Assigning or Viewing the IP Address Any E1 E2 used with ioProject software ioControl ioDisplay or OptoOPCServer or applications built with the OptoMMP Communication Toolkit or the Optomux Driver Toolkit must be assigned a Static IP address because you will use the IP address to communicate with the device For more information about IP addresses and instructions to assign them see the ioManager User s Guide form 1440 Resetting the Brain Board to Factory Defaults If you need to reset an E1 or E2 brain board to factory default settings you can do so using a jumper When you reset the brain board any files and configuration settings are erased If you only need to reset points to their defaults see the instructions in the ioManager User s Guide NOTE Other jumpers on the and E2 groups A and B are used to configure the brain board For information on setting the Group A a
91. ng errors See also Opto 22 form 1271 Using Power Supplies with Opto 22 Systems for more information on power wiring and voltage adjustments EXCEPTION If an Opto 22 PBSA B C power supply is used with digital racks the 5 VDC logic connection is made by the supply when it is screwed to the rack In this case the only connection required is the 120 VAC 220 VAC or 10 28 VDC depending on supply type connection to the PBSA or PBSB or PBSC supply 2 You use either separate or combined 5 1 5 2 VDC and 15 VDC 0 25 VDC supplies to provide power to analog racks If you use a multiple output supply make sure that the 5 VDC RETURN line is separate from the 15 volt COMMON line to maintain module isolation 3 Route the 5 volt and 15 volt wires away from any high voltage field wires Make sure there is only one earth ground connection per network typically at the host site If the ground connection is at the host site make sure none of the power supplies is grounded This method prevents ground loop problems due to offset voltages appearing between multiple ground points 4 IMPORTANT Check polarities of all power supply connections before applying power Incorrect polarity can damage the brain board and 1 0 modules NOTE If the brain board is connected to an Ethernet network before powering up see the section about assigning an IP address in form 1440 the ioManager User s Guide E E1 and E2 User s Guide CHAPTER 2
92. nts and 1 0 unit features and inspect read from or write to 1 0 units The ioProject software suite is available for purchase from our distributors or on Opto 225 website www opto22 com ioControl is included with your purchase of a SNAP PAC controller For documentation see the ioControl User s Guide form 1300 and ioControl Command Reference form 1301 ioManager is included on the CD that came with the brain board 2 SNAP PAC industrial controller running ioControl strategy PC used to develop ioControl strategy Ethernet network Em J CEBE ioDisplay cl PCrunningioDispay HMI for operator OptoOPCServer providing OPC data to any OPC client SNAP brain with analog 32 channel digital and serial modules AM Optolerminal E1 and E2 User s Guide CHAPTER 3 ARCHITECTURE AND COMMUNICATION Building Custom Applications with the OptoMMP Protocol If you do not want to use Optomux and are not using an Opto 22 controller you can communicate with the E1 and E2 over Ethernet using custom applications you have written with OptoMMP Opto 22 memory mapped protocol This protocol is open and documented and a driver toolkit is available that includes two ActiveX components and two classes NOTE Some E1 and features are only available using Optomux See E1
93. nts apply to the modified work as a whole If identifiable sections of that work are not derived from the Program and can be reasonably considered independent and separate works in themselves then this License and its terms do not apply to those sections when you distribute them as separate works But when you distribute the same sections as part of a whole which is a work based on the Program the distribution of the whole must be on the terms of this License whose permissions for other licensees extend to the entire whole and thus to each and every part regardless of who wrote it Thus it is not the intent of this section to claim rights or contest your rights to work written entirely by you rather the intent is to exercise the right to control the distribution of derivative or collective works based on the Program In addition mere aggregation of another work not based on the Program with the Program or with a work based on the Program on a volume of a storage or distribution medium does not bring the other work under the scope of this License 3 You may copy and distribute the Program or a work based on it under Section 2 in object code or executable form under the terms o E1 and E2 User s Guide GNU GENERAL PUBLIC LICENSE Sections 1 and 2 above provided that you also do one of the following a Accompany it with the complete corresponding machine readable source code which must be distributed under the term
94. nvention of Contracts for the International Sale of Goods is expressly excluded GNU General Public License Version 2 June 1991 Copyright 1989 1991 Free Software Foundation Inc 51 Franklin St Fifth Floor Boston MA 02110 1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document but changing it is not allowed Preamble The licenses for most software are designed to take away your freedom to share and change it By contrast the GNU General Public License is intended to guarantee your freedom to share and change free software to make sure the software is free for all its users This General Public License applies to most of the Free Software Foundation s software and to any other program whose authors commit to using it Some other Free Software Foundation software is covered by the GNU Library General Public License instead You can apply it to your programs too When we speak of free software we are referring to freedom not price Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software and charge for this service if you wish that you receive source code or can get it if you want it that you can change the software or use pieces of it in new free programs and that you know you can do these things To protect your rights we need to make restrictions that forbid anyone to deny you these rights or to ask you to surr
95. oad Execute 1 Select All Clear Completed Results Close 7 Inthe I O Unit Maintenance window do the following to copy the OmuxSettings file to your computer Inthe Command list choose Download File From 1 0 Unit E1 and 22 User s Guide APPENDIX USING THE OMUXSETTINGS FILE b Inthe Filename field type omuxSettings In the Destination field click the browse button The Save As window opens d Browse to a directory on the computer type omuxsettings and click Save The path and filename appear in the Destination field e Clickthe Add button The Add IP Address window opens f Enter the IP address of the E1 or E2 and click Save The address appears in the IP Addresses list g Select the appropriate IP address then click the Execute button The OmuxSettings file is copied to your computer NOTE An example of an OmuxSettings file is provided on the CD that came with the or E2 8 Openthe OmuxSettings file in Notepad or another simple text tool 9 Add change or delete the following communication items depending on your needs Change the Ethernet port number EthernetPort port number Listen on the Ethernet link Add EthernetServer Stop listening on the serial link Delete SerialServer Enable Serial To Ethernet Routing Add SerialToEthernetRouting 10 Save the file as omuxsettings E1 and E2 User s Guide 11 In ioManager main w
96. of the rights granted herein You are not responsible for enforcing compliance by third parties to this License 7 If as consequence of a court judgment or allegation of patent infringement or for any other reason not limited to patent issues conditions are imposed on you whether by court order agreement or otherwise that contradict the conditions of this License they do not excuse you from the conditions of this License If you cannot distribute so as to satisfy simultaneously your obligations under his License and any other pertinent obligations then as a consequence you may not distribute the Program at all For example if a patent license would not permit royalty free redistribution of the Program by all those who receive copies directly or indirectly hrough you then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program fany portion of this section is held invalid or unenforceable under any particular circumstance the balance of the section is intended o apply and the section as a whole is intended to apply in other circumstances tis not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices Many people have made generous cont
97. of the users freedom it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library The precise terms and conditions for copying distribution and modification follow Pay close attention to the difference between a work based on the library and a work that uses the library The former contains code derived from the library whereas the latter must be combined with the library in order to run GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING DISTRIBUTION AND MODIFICATION E1 and 22 User s Guide APPENDIX C LICENSING INFORMATION 0 This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License also called this License Fach licensee is addressed as you A library means a collection of software functions and or data prepared so as to be conveniently linked with application programs which use some of those functions and data to form executables The Library below refers to any such software library or work which has been distributed under these terms A work based on he Library means either the Library or any derivative work under copyright law that is to say a work containing the Library or a portion of it either verbatim
98. on All other brand or product names are trademarks or registered trademarks of their respective companies or organizations E1 and E2 User s Guide Table of Contents Chapter Introduction 1 1 Gen 2 Aboutthis Guide PE 2 Other Documents You May Need 3 M 4 E1 22 Features and 5 5 22222 24 5 EI 5 E2 Brain 6 e ers tdi ec tes dde 8 Dimensional Drawings 2 nnne 9 EI DIMENSIONS 9 E2 9 10 E1 LED PRENNE el uus Ea EAR 10 E2 LED DEScriptONS EEE 10 11 Chapter 27 Installavion EA 13 uu mig 13 SONAE e REP 13 Mo ntingthe Brain Board S qs tdt prr 14 Connecting the Power 16 Connecting the E1 and EZ a ba 17 EE E E
99. ond to module positions 0 to 15 respectively e Ifall inputs on that brain board have the same 4096 reading then check to make sure the unit has 4 15 and 15 VDC at the corresponding terminals with reference to the terminal that is marked COMMON Does Opto 22 have any troubleshooting software for the Optomux system Yes Opto 22 has the OptoScan oswin32 exe and OmuxUser omuxuser exe utilities that may be used to troubleshoot an Optomux system attached to a PC These are Visual Basic 6 applications and are included with the Optomux Driver Toolkit Source code is included as an example of Opto 22 Optomux driver DLLs These applications include the ability to manually configure and poll a digital or analog brain board The toolkit is available on Opto 22 s website www opto22 com For MS DOS and Windows for Workgroup WFWG versions of OptoScan see Opto 22 s Product Support bulletin board system BBS at bbs opto22 com Serial Communications Questions and Answers I send a command message to an brain board and I get no response However the unit s LED flashes The receive LEDs on all the brain boards wired in a multidrop mode should blink whenever a command is sent from the host Only the unit at the address that matches the command message address should respond When a brain board responds the XMT transmit LED blinks At high baud rates and for messages with only a short response the blink will be so brief that it may be missed vi
100. or marketing materials except as is necessary to affix the appropriate copyright notices as required herein OPEN SOURCE SOFTWARE The Software uses other software components that are subject to the GNU Lesser General Public License LGPL In compliance with the terms of the LGPL Opto 22 makes its modifications to LGPL software that Opto 22 uses modifies and distributes pursuant to the LGPL available in source code form to the public at www opto22 com You are free to use modify and distribute software that is subject to the LGPL as long as you comply with the terms of the LGPL available in the product manual or at www gnu org copyleft Igpl html In compliance with the terms of the LGPL Opto 22 makes its Software that dynamically links to LGPL software available as an executable file You may modify the executable file for your own use and reverse engineer the executable file for debugging such modifications TITLE Title ownership rights and intellectual property rights in and to the Software shall remain in Opto 22 and or its suppliers The Software is protected by the copyright laws of the United States and international copyright treaties Title ownership rights and intellectual property rights in and to the content accessed through the Software is the property of the applicable content owner and may be protected by applicable copyright or other law This License gives you no rights to such content LIMITED WARRANTY Opto 22 wa
101. ort blinks Event The LED starts to blink after the E1 or E2 is turned on ora reboot command is sent to the device with the Loader Mode Jumper installed The brain board is 6 short blinks Event entering loader mode The brainbeardis Once the brain board has started the LED turns on and LED on Status stays on This should occur shortly after a series of 3 running short blinks Caution Do not turn off the power to the device This might corrupt the firmware and it will not be able to start up For more information see Resetting the Brain Board to Factory Defaults on page 35 and Loading New Firm ware on page 37 The brain board is restoring the factory defaults or updating the firmware LED flashing Status ETHERNET FOR OPTOMUX A 22 G Status LED Status LED E1 Brain Board E2 Brain Board E1 and E2 User s Guide EH LED DESCRIPTIONS E1 and 22 User s Guide Installation Use this chapter to install E1 and E2 brain boards If you need more information on how to integrate E1s and E2s with your system see Chapter 3 Architecture and Communication What You Will Need To install an E1 or E2 you need the following items PC running Microsoft Windows 2000 or higher with a 10 100 MB Ethernet adapter card the TCP IP protocol installed and a valid IP address The PC must
102. r to use for the signal common signal common only requires 1 insulated conductor but it is hard to find a cable with 2 pairs plus an extra insulated wire that is separate from the shield drain wire Forthe signal common you can use both wires from the pair tied together or just one of the wires 2 Ensure the signal common is connected from one brain board to the next and also to the host RS 422 485 device This must be done with an insulated wire which is typically one wire in the overall communication cable 3 Make sure that the COM terminal signal common on the brain boards is not connected to chassis earth ground 4 Ensure that the overall cable shield drain wire is connected to chassis earth ground at one location only Do not connect the shield drain wire to the COM signal common terminal on any brain board 5 Make sure the communications cable is daisy chained from brain to brain no Ts are allowed under the RS 422 485 specification 6 Make sure the communications pairs are not crossed In some types of cable one wire from each pair is the same color This makes it very easy to get those wires mixed up If you strip back the jacket and shield far enough it will become clear which wire belongs to which pair 7 Check the polarity of the and communication wires throughout each twisted pair If you have one or more receive LEDs stuck on this may be the cause Incorrect biasing might also cause this
103. ration of time will be required to do so This response is 05 ACKNOWLEDGE returned to prevent a timeout error from occurring in the master The master can next issue a Poll Program Complete message to determine if processing is completed The slave is engaged in processing a long duration program command The master should retransmit the message later when the slave is free 06 SLAVE DEVICE BUSY The slave cannot perform the program function received in the query This code is returned for an unsuccessful programming request using function code 13 or 14 decimal The master should request diagnostic or error information from the slave 07 NEGATIVE ACKNOWLEDGE The slave attempted to read extended memory but detected a parity error in the memory The master can retry the request but service may be required on the slave device 08 MEMORY PARITY ERROR E1 and E2 User s Guide CHAPTER 5 USING MODBUS TCP Referencing I O Points for and 22 Brain Boards E1 brain boards be used with a variety of digital module families E2s are used with G1 analog modules only However the maximum number of points for either an E1 or an E2 brain board is 16 on the largest rack When you use Modbus TCP point numbers are shown in the following examples The largest rack is shown in each case shown with G4 modules E2 with G1 modules EE Points on 615 and integral racks rz are numbered the same
104. rd and two twisted E1 and E2 User s Guide CONNECTING A SERIAL NETWORK pairs and a common going to the next brain board To ensure reliable communications we recommend the following e Use shielded twisted pair wires for the communications wiring See recommended cables on page 23 Route the communication and DC power wiring separately from any high voltage field wiring or AC power wiring e Make sure the communications COM terminals on each rack are connected The following graphic shows standard and alternate wiring diagrams When wiring a series of brain boards always think of the previous brain board as the host STANDARD CONFIGURATION OVERALL CABLE SHIELD Optomux E1 or E2 Optomux E1 or E2 Host TX TO with TX TO 2 PCI AC 48 or RX FO RKIFO connector positions vary NOTE In this example the cable shield is NOT electrically connected to the RS 485 com common terminals SHIELD DRAIN WIRE E2 communications wiring connections are made to the TO TO OPTOMUX FO FROM OPTOMUX rack not to the brain board On the rack the com connector TH TO HOST is atthe other end of the connector strip FH FROM HOST Do not connect any com point to earth ground ALTERNATE CONFIGURATION SHIELD DRAIN WIRE NOTE DO NOT tie to earth ground OVERALL CABLE SHIELD Host P
105. ributions to the wide range of software distributed hrough that system in reliance on consistent application of that system it is up to the author donor to decide if he or she is willing distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License 8 If the distribution and or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation E1 and E2 User s Guide APPENDIX C LICENSING INFORMATION excluding those countries so that distribution is permitted only in or among countries not thus excluded In such case this License incorporates the limitation as if written in the body of this License 9 The Free Software Foundation may publish revised and or new versions of the General Public License from time to time Such new versions will be similar in spirit to the present version but may differ in detail to address new problems or concerns Fach version is given a distinguishing version number If the Program specifies a version number of this License which applies to it and any later version you have the option of following the terms and conditions either of that version or of any later version published by the Fre
106. rite to holding registers 769 800 Remember that you use two consecutive registers for each point since the data is in the form of a 32 bit integer but the registers are 16 bits each For example to configure point 1 as a counter you would write 01 to registers 769 770 To these registers 769 770 Write this O 1 Write to coils 65 80 For example to activate the counter for point 1 you would write to coil number 65 Configure a counter Activate a counter Read counter data Read input registers 385 416 Read two consecutive registers per point Write to coils 257 272 For example to clear the counter on point 1 you would Cigara counter write a 1 to coil 257 E1 and E2 User s Guide CHAPTER 5 USING MODBUS TCP Using Analog Point Features For explanations of analog point features see E2 Brain Board Features on page 6 Analog point features generally require that you read or write two consecutive registers for each point since the data is in the form of a 32 bit IEEE float Data is in Big Endian format You can change the word order if you wish using Holding Register 1029 which is described in the table on page 50 If you change word order be sure to store configuration information to flash Holding Register 1026 50 it will be saved when power to the brain board is cycled Scaling You must scale analog points when you configure 1 0 For instructions see form 1576 Con
107. rrants that i the Software will substantially conform to the accompanying documentation Opto 225 sole liability and your sole remedy for any breach of this warranty shall be in Opto 22 sole discretion i to replace your non conforming Software or ii ifthe above remedy is impracticable to refund the license fee you paid for the Software Replaced Software shall be covered by this limited warranty for the period remaining under the warranty that covered the original Software or if longer for thirty 30 days after the date of shipment to you of the replaced Software Only if you inform Opto 22 of your problem with the Software during the applicable warranty period and provide evidence of the date you acquired the Software will Opto 22 be obligated to honor this warranty Opto 22 will use reasonable commercial efforts to replace or refund pursuant to the foregoing warranty within thirty 30 days of being so notified THIS IS A LIMITED WARRANTY AND IT IS THE ONLY WARRANTY MADE BY OPTO 22 OPTO 22 MAKES NO OTHER WARRANTY REPRESENTATION OR CONDITION EXPRESS OR IMPLIED AND EXPRESSLY DISCLAIMS THE IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS THE DURATION OF IMPLIED WARRANTIES OR CONDITIONS INCLUDING WITHOUT LIMITATION WARRANTIES OR CONDITIONS OF MERCHANTABILITY AND OF FITNESS FOR A PARTICULAR PURPOSE IS LIMITED TO THE ABOVE LIMITED WARRANTY PERIOD SOME JURISDICTIONS DO NOT
108. s If you are using E1 or E2 brain boards to migrate from an existing Optomux system using B1 or B2 brain boards the protocol and network you choose are determined by your goals for the system The following table shows how to accomplish specific migration goals with the E1 and E2 and refers you to sources for more information Keep existing software running over serial Add Ethernet capability so you can acquire data from the system using OPC Replace B1s and B2s with E1s and E2s keeping same racks and I O Keep serial network add Ethernet network and OPC host computer Existing software continues to run over serial Use OptoOPCServer to acquire system data from E1s or E2s over Ethernet Architecture page 33 Programming OptoOPCServer User s Guide form 1439 Keep existing software running over serial Add Ethernet capability so that Modbus TCP clients can communicate with the system Replace B1s and B2s with E1s and E2s keeping same racks and I O Keep serial network add Ethernet network Existing software continues to run over serial Use Modbus TCP to communicate with E1s or E2s over Ethernet Architecture page 33 Programming Chapter 5 in this guide Keep existing software running over serial Add Ethernet capability so you can extend the system beyond serial network physical limitations Replace B1s and B2s with E1s and E2s keeping same racks and I O Retire serial network except
109. s 7 read write to point in EU 7 watchdog timer 7 waveform generation 7 analog input averaging 7 analog point configuring 46 analog digital brain board Modbus function codes supported 42 assigning address 35 B baud rate 20 biasing 19 blink codes 11 board dimensions 9 cable 22 COM terminals 18 communicating with brain board pinging the brain board 54 communication handling errors 56 packet for Modbus TCP 43 configuring analog point 46 digital point 46 1 0 point 46 connect Ethernet 22 Serial 17 counters ELS Modbus TCP 46 D data acquisition 26 28 Modbus float format 47 DC power 18 default settings brain board 35 OmuxSettings file 73 digital features counters 5 input latches 5 pulse duration 6 pulse generation 6 read write to point 5 time delays 6 watchdog timer 6 digital 1 0 modules 26 ioManager User s Guide EJ digital point configuring 46 dimensions 9 downloading OmuxSettings 70 see loading driver toolkit 31 E E1 brain board description 1 features 5 LED descriptions 10 mounting 14 E2 brain board description 2 features 6 LED descriptions 10 mounting 14 errors codes 59 Ethernet communications 53 general troubleshooting 61 Modbus TCP exception errors 43 serial communications 56 troubleshooting communications 56 Ethernet network cable specifications 23 certification 56 connecting 22 migration options
110. s of Sections 1 and 2 above on a medium customarily used for software interchange or b Accompany it with a written offer valid for at least three years to give any third party for a charge no more than your cost of physically performing source distribution a complete machine readable copy of the corresponding source code to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange or c Accompany it with the information you received as to the offer to distribute corresponding source code This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer in accord with Subsection b above The source code for a work means the preferred form of the work for making modifications to it For an executable work complete source code means all the source code for all modules it contains plus any associated interface definition files plus the scripts used 0 control compilation and installation of the executable However as a special exception the source code distributed need not include anything that is normally distributed in either source or binary form with the major components compiler kernel and so on of the operating system on which the executable runs unless that component itself accompanies the executable f distribution of executable or object code is made by offering access to copy from a
111. se two consecutive registers to read the data for one point starting with an odd numbered register See the example on page 51 1 32 available 33 128 unavailable Read Analog Values IEEE 32 bit float EE 2 o eaa Anapa Maximum Yates a pi oat E You can read maximum of 125 registers in command Holding Registers Analog output values point and feature configuration and more misc Most of this data is also in the form of 32 bit integers or 32 bit floats For these formats you must use two consecutive registers to read or write the data for one point starting with an odd numbered register See the example on page 51 1 32 available Read or Write Analog ss 33 128 unavailable Outputs Engineering Units IEEE 32bit float 129 160 available iid 161 256 unavailable Analog Offset IEEE 32 bit float 257 288 available e T 289 384 unavailable Analog Gain IEEE 32 bit float 38 gt 416 vallable Set Point Low Scale Value IEEE 32 bit float 417 512 unavailable 513 544 available 545 640 unavailable Set Point High Scale Value IEEE 32 bit float 32 bit integer For information on configuring points see form 1576 Configuration for E1 and E2 Brain Boards 641 672 available 673 768 unavailable Configure Points 769 800 available Configure counters digital 32 bit integer
112. sing because this part of the link is RS 485 The host transmit pair TO must provide for termination and possibly biasing depending on the interface device Check the following to ensure it is set up correctly RS 422 transmit pair must provide end of line termination resistor Ifthe transmitter is actually an RS 485 transmitter then biasing resistors are also necessary NOTE An RS 485 transmitter will be disabled tri stated when not transmitting so the transmit pair will float and might allow fluctuations to be interpreted as data or errors However an RS 422 transmitter will remain enabled in either high or low state when not actively transmitting data so it is not possible for fluctuations and thus biasing is not needed E1 and E2 User s Guide TROUBLESHOOTING SERIAL COMMUNICATIONS NOTE Some non Opto 22 RS 422 485 interface products do not provide an option for termination and or biasing If the interface product does not provide the necessary options then it will have to be replaced with one that does Termination resistors can be applied externally but biasing resistors typically cannot Communication Wiring Tips 1 Make sure to use a shielded twisted pair RS 422 485 communication cable and that the cable has at least 3 twisted pairs as detailed below If you use a cable with 4 twisted pairs you will have one extra pair 2 for data a transmit pair and a receive pair and 1 pai
113. sually If the host receives no response and no blink of the XMT light is visible even at slower baud rates then check the following e sure the address in the command message matches the unit s address Check the jumpers A common mistake is a reversal of jumpers All address jumpers BO through B7 installed corresponds to address 0 and all address jumpers through B7 removed corresponds to address 255 See Setting Jumpers Serial Only on page 19 E1 and E2 User s Guide CHAPTER 6 TROUBLESHOOTING e Make sure the baud rate is correct between the host and the unit All brain boards on the same link should be configured to the same baud rate e Makesure you have solid 5 1 5 2 VDC as measured on the brain powering the brain board If the voltage is too low the RCV light may flash but the unit will not be able to respond Measure the voltage across one of the yellow capacitors on the brain board See form 1271 Using Power Supplies Check to make sure the communications link is wired with the correct polarity and that jumper group A is configured correctly I receive a large number of checksum errors when I send commands to Optomux brains Make sure that you are using twisted pair cable See the cables recommended on page 22 The RS 422 485 network is only reliable when the communications cable is twisted pair and lines of EACH pair twisted together If there are two or more wires in the cable with
114. tch Point On Off Count Pulse Duration Time Delay Pulse Generation Watchdog Timer Analog I O E2 Read Point Write Point Input Averaging Min Max Recording peak and valley High Low Range Testing Offset and Gain Calculation Waveform Generation Watchdog Timer Modbus TCP OptoMMP and OPC Functions With these protocols the following brain based features are not available No pulsing or time delay E1 No input averaging or waveform generation E2 LED Indicators Status Link Activity Full duplex Transmit serial Receive serial Jumper selectable Serial Options Group A Multidrop or repeat mode RS 485 termination and biasing Group B Serial address 0 to 255 baud rate 2 or 4 pass protocol 15 VDC 0 25 V is required for the analog modules Current depends on the number and types of modules installed A 24 VDC power supply is required for analog modules that need a current loop source 22 User s Guide CHAPTER 1 INTRODUCTION Dimensional Drawings E1 Dimensions 25 6 35mm 4 60 116 84mm 378 9 521 4 000 101 60mm 3 50 88 9mm 2 0 6 05
115. the following analog functions AMEL v leel Read write to point in i Mezo Engineering units P Read write to point in counts e Input averaging sii m Minimum maximum values peak valley recording E2 Brain Board High low limit testing rain Boar e Offset and gain calculation Waveform generation Watchdog timer For detailed descriptions of E2 features see E1 and E2 Features and Specifications on page 5 About this Guide This guide shows you how to install and use E1 and E2 brain boards This guide assumes that you have some familiarity with TCP IP UDP IP and Ethernet networking If you are not familiar with these subjects we strongly suggest you consult commercially available resources to learn about them before attempting to install or use these products If you are using Modbus TCP for communicating with E1 and E2 brain boards this guide assumes that you are already familiar with Modbus TCP The following chapters are included in this user s guide Chapter 1 Introduction provides a brief description of the E1 and E2 brain boards the contents of this guide a list of other important documents and how to reach Opto 22 Product Support Chapter 2 Installation details what you will need install E1 and E2 brain boards how to mount the brain board and how to connect to a serial or Ethernet network E1 and E2 User s Guide CHAPTER
116. thernet network you can access them over the Internet in exactly the same way you would access a computer Remote monitoring data acquisition and control applications can communicate with the brain boards over the Internet The details of doing so depend on your network and Internet connection Consult your system or network administrator or your Internet Service Provider ISP for more information System Architecture E1 and E2 brain boards provide processing power for Opto 22 input output 170 modules brain boards support digital 1 0 modules and E2 brain boards support analog modules Digital The E1 can be used with single point G4 or G1 modules four point Quad Pak modules or integral racks digital built into the rack Analog The E2 can be used with single point G1 modules The combination of brain board 1 0 modules and mounting rack is often referred to as an unit Because E1 and E2 brain boards communicate over both serial and Ethernet networks you can use them for remote monitoring data acquisition and industrial control using Optomux OptoOPCServer Modbus TCP and software applications built with Opto 225 ioProject software suite requires an Opto 22 SNAP PAC industrial controller OPC and ioProject applications use Opto 22 memory mapped protocol OptoMMP The following sections include information and architectural diagrams illustrating these uses E1 and E2 User s Guide CHAPTER 3 ARCHITECTURE AND
117. tion and expansion opportunities For example you can use ioProject software applications with or E2 1 0 systems to control monitor and acquire data E1 and E2 brain boards can communicate using Optomux over serial and Ethernet and using Opto 22 OptoMMP protocol over Ethernet OLE for Process Control OPC and Modbus TCP clients can readily obtain data from the system over Ethernet For detailed information on protocols and system architecture see Chapter 3 E1 Brain Board The E1 brain board is a digital only processor that can be used with a variety of input output modules and mounting racks The E1 supports up to 16 I O modules In addition to On Off control the E1 brain board provides the following digital functions Read write to point e Input latches e Counters e Pulse duration measurement E1 Brain Board e Pulse generation e Time delays Watchdog timer E1 and User s Guide ABOUT THIS GUIDE For detailed descriptions of E1 features see E1 and E2 Features and Specifications on 5 E2 Brain Board The E2 brain board is an 22 E2 processor used with G1 Standard ETHERNET FOR analog modules and G1 series a le el mounting racks Ed le el In addition to simple input and 62 gn ut output the E2 brain board provides E 4 id ej
118. tribute that work under terms of your choice provided that the terms permit modification of the work for the customer s own use and reverse engineering for debugging such modifications You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License You must supply a copy of this License If the work during execution displays copyright notices you must include the copyright notice for the Library among them as well as a reference directing the user to the copy of this License Also you must do one of these things a Accompany the work with the complete corresponding machine readable source code for the Library including whatever changes were used in the work which must be distributed under Sections 1 and 2 above and if the work is an executable linked with the Library with the complete machine readable work that uses the Library as object code and or source code so that the user can modify the Library and then relink to produce a modified executable containing the modified Library It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions b Use suitable shared library mechanism for linking with the Library A suitable mechanism is one that 1 uses at run time a of the library already present on the user s comp
119. using output modules with a 5 VDC logic voltage OAC5 ODCS etc Sometimes modules with a 15 VDC or 24 VDC logic voltage ODC15 24 etc are used by mistake The LED may turn on or be dim with the 15 VDC and 24 VDC modules but there will be no output on the field side e Ifthe output LED is on but the load does not turn on check the field voltage wiring and fuse This could result in a field device not turning on E1 and E2 User s Guide GENERAL TROUBLESHOOTING When I read point 3 an E2 Optomux unit via the Optomux protocol receive 0000 hex which converts to a decimal 4096 value when I subtract the 1000 hex offset A 4096 decimal reading may indicate one of the following You are reading a point where no input module is installed e Youare reading a point on a thermocouple module that has no thermocouple installed or the thermocouple probe is open e AnICTD module has the ICTD wired in reverse e A4 20mA module is wired with reverse polarity e The field connections are made to the wrong terminals Field connections vary with each module Refer to the module data sheet for information on wiring each module In general field connections made to the terminals on the rack are made to the terminals labeled UPPER closest to module and if the module has terminals on the top of the module connections would be made there Analog racks have the module positions labeled from 1 to 10 These points corresp
120. uter system rather than copying library functions into the executable and 2 will operate properly with a modified version of the library if the user installs one as long as the modified version is interface compatible with the version that the work was made with c Accompany the work with a written offer valid for at least three years to give the same user the materials specified in Subsection 6a above for a charge no more than the cost of performing this distribution E1 and E2 User s Guide APPENDIX C LICENSING INFORMATION d If distribution of the work is made by offering access to copy from a designated place offer equivalent access to copy the above specified materials from the same place e Verify that the user has already received a copy of these materials or that you have already sent this user a copy For an executable the required form of the work that uses the Library must include any data and utility programs needed for reproducing the executable from it However as a special exception the materials to be distributed need not include anything that is normally distributed in either source or binary form with the major components compiler kernel and so on of the operating system on which the executable runs unless that component itself accompanies the executable It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accomp
121. ux brain boards consist of a metal jumper on the inside covered by red plastic Sometimes the metal portion of the jumper will separate from the red plastic piece This can cause incorrect jumper settings even though the jumpers seem to look correct For example if a jumper is removed but the internal metal pieces stay attached to the brain board the jumper will look like it is removed but the brain will detect that it is installed On the other hand the jumper can appear to be installed when it is not This happens when the red plastic part is installed but is missing the metal internal piece In this case the brain board will detect that the jumper is removed Make certain that the addresses are set correctly No two brain boards on the same network can have the same address If two or more brains on the same network have the same addresses they will respond at the same time causing a garbled response received at the host Make certain that the baud rates are set correctly The host device and all brain boards must be operating at the same baud rate A brain board set for the wrong baud rate will not respond Make certain the last Optomux brain board on the communications link has the correct termination jumpers installed jumpers AO and for brains set up in multi drop mode Make sure the host RS 422 485 device is configured to provide the correct termination and biasing host receive pair FO must provide both termination and bia
122. vailable 144 192 unavailable 1 clear latches 0 do nothing Clear Off latch digital modules 193 208 available 208 256 unavailable 1 clear latches 0 do nothing Clear Counters digital modules 257 272 available 272 320 unavailable 1 clear counters 0 do nothing 321 336 available e 336 384 unavailable Clear Analog 1 minimum values 0 do nothing Minimum Values Clear Analog Maximum Values 385 400 available 400 448 unavailable 1 clear maximum values 0 do nothing Inputs Digital inputs latch states and counter states Fach address contains the data for one point Data is either 0 or 1 Digital inputs are only available on an 1 1 16 available E 17 64 unavailable Read Digital Inputs 1 0 Off 65 80 available Read State of On latches 1 On 0 Off 81 128 unavailable digital modules 129 144 available Read State of Off latches 1 0 Off 145 192 unavailable digital modules 193 208 available Read Counter Active State 209 256 unavailable digital modules E1 and 22 User s Guide CHAPTER 5 USING MODBUS TCP Input Registers Analog input values and digital counter values Register data is in the form of 32 bit floats or 32 bit integers Because Modbus registers contain only 16 bits you must u
123. we offer you this license which gives you legal permission to copy distribute and or modify the library To protect each distributor we want to make it very clear that there is no warranty for the free library Also if the library is modified by someone else and passed on the recipients should know that what they have is not the original version so that the original author s reputation will not be affected by problems that might be introduced by others Finally software patents pose a constant threat to the existence of any free program We wish to make sure that a company cannot ffectively restrict the users of a free program by obtaining a restrictive license from a patent holder Therefore we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license D ost GNU software including some libraries is covered by the ordinary GNU General Public License This license the GNU Lesser General Public License applies to certain designated libraries and is quite different from the ordinary General Public License We use this license for certain libraries in order to permit linking those libraries into non free programs When a program is linked with a library whether statically or using a shared library the combination of the two is legally speaking combined work a derivative of the original library The ordinary General Public License therefore permits suc
124. y from the software running over the serial network As shown below simply replace the existing B1s and B2s with E1s and E2s keeping the same racks and 1 0 and link the and E2s to the Ethernet network Because the new brain boards have a serial port they work exactly like the old ones over serial and your existing Optomux software application needs no changes Use OptoOPCServer sold separately to acquire system data from E1 and E2s over the Ethernet link and to read and write data to E1 and E2s See the OptoOPCServer Users Guide form 1439 for more information Ethernet network Host collecting data using OPC over Ethernet network Host controlling system using Optomux over serial ooo LLL 4444 LEEEEEEEEEEELELEL E1 and E2 User s Guide MIGRATION OPTIONS Adding Modbus TCP Communication You can communicate with the 1 and E2 using Modbus TCP over Ethernet without disturbing the existing software running over serial Replace the existing B1s and B2s with E1s and E2s as shown below keeping the same racks and 1 0 and attach the new brain boards to the Ethernet network Because the E1s and E2s have a serial port with the same capabilities as the B1 and B2 your existing Optomux software application does not need to be changed Modbus TCP clients can read and write to E1 and E2s over the Ethernet
125. you see receive LEDs blinking on the brain boards but not transmit LEDs the cause of the problem could be incorrect address or baud rate settings on one or more brain boards It can also be caused by wiring problems low voltage or noisy power 4 Computer Issues If you are using an ISA bus RS 422 485 card in the host computer make sure that there are no port or IRQ conflicts 5 Loopback test If the host device is a it is possible to verify the operation of the RS 422 485 port by jumping TX to RX and TX RX these are and FO Opto 22 brain boards at the computer A communication program such as Windows Terminal or Hyperterminal can be used to test the communications with the port Make sure the terminal test utility is set up with flow control set to None and that the local echo is turned off Once started anything typed on the keyboard should be displayed on the screen If this does not happen there may be a hardware or configuration problem with the communication port Also remember that Opto 22 ISA bus serial adapter cards do not use standard Windows port settings 1 0 port base address and for COM3 Make sure that the host software is using the correct 1 0 port base address and IRQ 6 Call Opto 22 Product Support Contact information is on page 4 Errors Codes When Using Opto 22 Optomux Driver This is a list of the most common driver error codes relating to problems with the R

Download Pdf Manuals

image

Related Search

Related Contents

BAT-I3 USER MANUAL Preface  (H-42044)*本製品は - バルブ事業部  Printed in Hong Kong PA: OI-AL/EN-1301-V4.0  User Manual for types of exercises only    TA剛TA - タニタ TANITA  Differo DF-32TCHDUG LCD TV  Becker Traffic Assist Z 250 Ferrari Edition  Tripp Lite SmartOnline 208/120V or 240/120V 16kVA 11.2kW On-Line Double-Conversion UPS, Extended Run, SNMP, Webcard, 8U Rack/Tower, USB, DB9 Serial  YST-SW010 YST-SW030  

Copyright © All rights reserved.
Failed to retrieve file