Developing OPC HMI for a Web Browser

Document Sample
Developing OPC HMI for a Web Browser Powered By Docstoc
					Developing OPC HMI for a Web Browser




            Colin Winchester VP Operations
         Nathan Pocock Chief Architect & Developer
Developing OPC HMI for a
           Web Browser


      You may
    private chat
    with the host
        here




       Ask
    questions to
     panelists
       here
Developing OPC HMI for a
           Web Browser




     While we are sharing applications, the
     toolbar shown below appears in the
     bottom right corner of your screen.
     You can access Chat with Host and the
     Q&A with Presenters Panels by clicking on
     the icons as shown.



          Private Chat               Q&A with
           with Host                 Panelists
             Developing OPC HMI for a
                        Web Browser

Agenda – 60 Minutes
 Overview of Web based HMI’s
 Overview of the OPC DataHub
 Live Demonstration
 Overview of OPCSystems.NET
 Live Demonstration
 Additional Information
 Questions & Answers
                                     OPC to Browsers
                                               Why?
   Availability
       Everyone has a browser
       Everyone knows how to use one
       Avoid special software installs, sometimes
   Portable Access
       Cell-phone based web browsers
       Handheld devices
   Network Access
       Standard transport protocols = firewall friendly
       Usually can handle slower connections better than a
        “thick client” application
   Administration & Development
       Single application updates all clients
       Development is easier than ever!
                   Web-App Capabilities


   Display data from OPC Servers
   Get user-input for writing to OPC Items
   Trending/Charting live OPC Data
   Alarm displays and acknowledgements
                     Example Configurations
                             Single Server Solution
                           OPC Systems Tag Repository
                                  OPC Server?
                                  Web Server
 GREEN ZONE                     Web Application



Browsers                                  Firewall
inside the                          First-line of defense
 network                            from outside world.



                                             Secure
       Browsers                             access?
       outside the
        network
                            Example Configurations
                                      “OPC”
       OPC Cluster                    Cluster

    high availability for                           Web Server
   your OPC Server(s)                                 Cluster
      GREEN ZONE                                  high availability
  and/or OPC Systems
  .NET Tag Repository                            for your Web HMI
                                                   application(s)
                                    Web Server
                                     Cluster




Tolerance Achieved:
OPC   Layer
Web Servers
                                         Web Challenges

   Security/Networking
       Controlling the number of connections to the
        server
       Controlling access
           Firewall
           Password
           Encryption of data (SSL)
   Speed – data update rates
       Aren’t the fastest at executing client side code
       Aren’t good at remembering “state” or “where I’ve been”
           Cookies, query strings attempt to work around this!
   Wide variety of versions and service
    pack levels
                      OPC DataHub
              Functionality Overview




                           OPC to Web




      System Monitoring


http://www.softwaretoolbox.com/opcdatahub
                                     What can you do?

                    System Data
Multiple & Varied
                    PC uptime
 Data Sources
                    Running processes
                    Memory usage




                                 Web
                                Server


                       OPC
                      DataHub
                                          HMI
                                         Client
                                OPC to Web Methods
                           ASP – Active Server Pages
    Webserver reads some “live” or active data one time, and puts
     it into the web page
    No client side plug-ins or ActiveX required
    Easy to implement
    Easy on system resources – client and server
    Requires page reload to refresh data
    Good for reports or one-shot, one-off data needs
  OPC Servers (1 to N)                             Standard Web Browsers on
Local or Remote/Tunneled
                                OPC DataHub
                                                   Desktop or Mobile Devices




                                 Processing of data in DataHub on Server
                                 Side and value inserted into HTM L web page
                              OPC to Web Methods
                                     AJAX Polling
    Asynchronous Javascript And XML
    Provides live updates in the browser without a page reload
    No plug-ins or ActiveX required
    Polling -Mediocre Update Speeds – faster than ASP
    Can consume a lot of client & server side resources
    Used in web monitoring and troubleshooting applications


  OPC Servers (1 to N)                          Standard Web Browsers on
Local or Remote/Tunneled
                               OPC DataHub
                                                Desktop or Mobile Devices




                                       Processing of data happens on client and
                                             client polls the WebServer for data
                              OPC to Web Methods
                                  AJAX Streaming
    Asynchronous Javascript And XML
    Provides live updates in the browser without a page reload
    No plug-ins or ActiveX required
    Streaming – Very fast updates – similar to Java applets
    Can consumes less resources then polling
    Used in remote monitoring and diagnostic systems


  OPC Servers (1 to N)                          Standard Web Browsers on
Local or Remote/Tunneled
                               OPC DataHub
                                                Desktop or Mobile Devices




                                       Processing of data happens on client and
                                             client polls the WebServer for data
                                     OPC to Web Methods
                                            Java Applets
    Java Applets are another alternative
    Very, very fast update rates
    Very thrifty on server and client side compared to AJAX
    Speed of AJAX with thriftiness of ASP
    But you will have to allow the Java Applets to install
    Used in process control systems for monitoring and HMI
     displays
  OPC Servers (1 to N)                                   Standard Web Browsers w/
Local or Remote/Tunneled
                                     OPC DataHub
                                                         Java on Desktop PCs only
                       OPC DataHub


                                                                              #1
                                                                       Method #2

                                     IIS or Apache WebServer serves up web pages
                                         DataHub WebServer serves up web pages
                  Developing OPC HMI for a
                             Web Browser

   Live Demo
       OPC DataHub with ASP
       OPC DataHub with AJAX
           Polling
           Streaming
       OPC DataHub with Java Applets
                                       Summary of Web Methods

               ASP               AJAX – Polling    AJAX - Streaming         Java applets

    Browsers   Desktop and       Desktop and       Desktop and Mobile       Desktop Only
               Mobile            Mobile
        Plug- No                 No                No                       Yes, Java plug-in
   in/ActiveX
     required
     Update Slow-manual          Fast updates      Very Fast updates        Very Fast updates
     Speeds page refreshes
            required
      System Very low on         Relatively high   Moderate to low          Moderate to low
   Resources client and server
     Security Yes                Yes               Yes                      Yes
Password/SSL
     Firewall Yes – simply       Yes – simply      Yes – simply open port   Dedicated Port # must
     Friendly open port 80       open port 80      80                       be opened
   Licensing   Web Server and    Web Server and    Web Server and Node      Web Server and Node
               Node License      Node License      License + TCP License    License + TCP License
                                                   for each Concurrent      for each Concurrent
                                                   connection               connection
Programming VB Script            Uses JavaScript   Uses JavaScript          Requires Java to build
   Language                                                                 custom applets
               Web Development Changed



   Code-less, no more learning “languages”

   AJAX delivers dynamic pages, no reload

   Winform/Webform development = same!

   Easy debugging with Visual Studio.NET

   Live OPC data in the Browser is now Easy!
               Web-HMI, does it make sense?

When it makes sense               Not a good fit!
   Simple screens with         High-speed data
    few graphics                 (sub 1-second)
   Data response can           Large quantities of
    be slow                      data on-screen.
   Restrict access to          High concurrent user
    users/groups                 # with above.
   Must be accessible          Continuous process
       Inside/outside LAN       control / monitoring
       Desktop, Laptop,
        Phone etc.
                                                   OPC Systems .NET Benefits

  OPC Systems .NET provides these benefits:
          Central “always-on” tag repository = faster performance
          Tag data can come from OPC DA, UA* and/or Databases

          Multi-Threaded for faster, and more Reliable operations

          Buffers data, eliminating data-loss for short outages as
           well as maximizing the performance of your web-link

          Modular, components available separately or as a suite
          Affordable, not as expensive as you might think

          OPC Self-Certified, for assurance in quality


* While OPC UA is not yet released, OPC Systems .NET was one of the first to implement OPC UA back in 2006 and
will support OPC UA once the OPC Foundation releases the necessary Tools.
                               How it works…

   Tag repository stores
    Data, and some history
   Data can come from OPC
                               AJAX Polling
    Servers (DA, UA etc.)
   OPC Connection is         OPC Systems .NET
                                   Service
    always ON eliminating       (Tag Repository)
    connectivity overhead
   Browsers see OPC Data       Data Source
    when page opens
                                      OPC
   Async polling retrieves          Server
    data to be shown in
    page, no refresh!         PLC     DCS          Other
                                       How it works…

   Browser requests an
    “update” of the
    items/tags it needs.
                                       AJAX Polling
   OPC Systems .NET
    Server responds with              OPC Systems .NET
    values that have                       Service
    changed:                            (Tag Repository)
       If value remains same,
        empty data-set returned         Data Source
       If 1-value changed, that
        value is returned                     OPC
       If the value changed                 Server
        multiple times, all updates
        sent
                                      PLC     DCS          Other
                                       Live Demo


   Create a multi-page Web Site
       Use Visual Studio .NET 2005 Master Pages

       Display some (almost) real-time data
           Simple Form Controls

           Charting page

           Alarm display and acknowledgement page
                                                           Tolerance

                             OPC Systems .NET
                                  Service
                              (Tag Repository)




                 Queue            Queue            Queue




                Local         Network            Internet
                 Client           Client           Client
               Application      Application      Application




   Tag Repository individually “caches” data to
    each client
   If a client goes temporarily offline, it will
    “catch-up” on the next update.
   Applies to ALL OPC Systems .NET Clients
    (data logging, alarms, WinForms, WebForms etc.)
                Other Features Available


   Data Logging (text files and databases)
   Report generation
   Alarm logging and notification
   Windows Forms development tools
   Recipe management
   Lightweight HMI developer studio
                                               Summary


   Convenience: Quickly and easily build & deploy HMIs

   Scalable Framework: allowing your system to grow

   Reliable: OPC Self-Certified, plus Buffering

   Alerting: Data Logging, Reporting, Alarming &
    Notifications

   Open: API provides interface for your apps to control

   Affordable: modular, buy what you need.
                                 More Information

                       … get through to an expert!
    Visit www.softwaretoolbox.com/webinars for future events

Questions:    Nathan Pocock:
                 Email: npocock@softwaretoolbox.com
                 Tel: +1 (704) 708-6482
                 www.softwaretoolbox.com/opcsystems
              Colin Winchester
                 Email: cwinchester@softwaretoolbox.com
                 Tel: 704-849-2773 x1327
                 www.softwaretoolbox.com/opcdatahub
              Technical Support:
                 Tel: +1 (704) 849-2773
                 Web: http://support.softwaretoolbox.com
                                           Affordable


   License the entire system for just $1,995.00

   No OPC Server Connection or Tag Counts

   No Client counts at the OPCSystems Service

   No Text File or Database Connection Counts

   Code-less development tools are Runtime-free

   Fully documented, lots of examples

   SmartClient Technology ready
                What Tools are Needed?
                 ASP or AJAX Polling Scenario




                      $995
                     $3750



   Unlimited # of client connections
   OPC bridging, scripting, aggregation &
    Excel connections are included!
   No license limits on # of OPC items you
    access!
   No Server Operating system required
                 What Tools are Needed?
                   AJAX Streaming and Java Applets
                             w/DataHub WebServer




                       $995

                                         $595/ea
                      $3750


   No Server class Operating System Needed! i.e.
    Run on Windows XP
   TCP/Link Licenses are concurrent connection
    licenses
   DataHub other features included!
   No license limits on # of OPC items you access!
                     What Tools are Needed?
                Java Applets w/IIS or Apache WebServer




                              IIS or Apache WebServer
                              serves up web pages

                              $995

                                                        $595/ea
                             $3750


   IIS or Webserver may be free, but will require IT involvement
   IIS is not really “free” – requires a Server Grade Operating System
   And, IIS & Apache present much bigger attack surface
   TCP/Link Licenses are concurrent connection licenses
   OPC bridging, scripting, aggregation & Excel connections included!
   No license limits on # of OPC items you access!

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:122
posted:4/26/2012
language:English
pages:31