OPC for CANopen and DeviceNet

Similar documents
PROFI104. PC/104 Board for Use as Master or Slave

and Emerging Instrument Technologies

FIELDBUS OVERVIEW Graham Traill 02/09/2015

Making the decision to switch from PLC to PC-based Control has gotten even easier with the introduction of MachineLogic Control Software.

Fieldbus technology An Overview

The economical solution for continuous communication in automation

Chapter 2 Communication for Control in Heterogeneous Power Supply

OPC-Solutions from Softing. Haar, Peter Jüngling V3.0

Single device test requirements for reliable CAN-Based multi-vendor networks

FIELDBUS TRAINING 1.01

TB20. DISTRIBUTED FIELDBUS I/O SYSTEM

Station Automation based on IEC 61850

OM5 versus OM4 Solution concepts and potential applications WHITEPAPER

CHOOSING THE RIGHT TECHNOLOGY FOR A DIGITAL AUTOMATION ARCHITECTURE

VALUE IN PROCESS AUTOMATION

IO-Link point-to-point communication.

Designing Next Generation Test Systems An In-Depth Developers Guide

Featured Articles II Security Research and Development Research and Development of Advanced Security Technology

POWER SUBSTATIONS. High available switches for power substations

Press Brief. Update on FieldComm Group Technologies and Alignment with NAMUR Open Architecture and Industrie 4.0

Extracting Energy Data from MODBUS Devices Using CIP

Standardized Tool Components for NRMM-Diagnostics

Guide to Wireless Communications, Third Edition. Objectives

HEIDENHAIN DNC and RemoTools SDK Tools for Creating PC-Based Applications for the TNC

TECHNICAL SPECIFICATION

Wir leben Elektronik! Sontheim. We live electronics! PLCs. Overview of our PLCs with CODESYS V3

echocollect Configuring a Softing echocollect to establish data exchange between a Siemens S7-300 and an Allen-Bradley ControlLogix How to...

At Miele, Beckhoff bus terminals represent the corner points of remote automation

PLC Laboratories The Next Generation

Gateways. Industrial networking made easy

Lookout 4.5 For Quick Return on Your Investment

Programming CANopen from an IEC1131 point of view

The world of BAOS. Easy connectivity for KNX with Bus Access and Object Server. Overview and applications

Industrial Automation Automation Industrielle Industrielle Automation. 4 Access to devices. 4.3 OPC (Open Process Control ) 4.3.

SPECTRA GMBH & CO. KG KNOW-HOW IN INDUSTRIAL COMPUTING

AVL PUMA Open 2. The ease of automation

Holger Zeltwanger CAN CAN. protocol and its impacts on CANopen. CiA

C ed P d ed b Em 184

An Open Membership Consortium now over 260 companies strong

Intelligent Solutions for PCs CAN and PROFIBUS. Communication with PCs and PC/104

2. REAL-TIME CONTROL SYSTEM AND REAL-TIME NETWORKS

Integrating IO-Link Devices into CIP Networks

CAN for Medical Automation. HMS offers proven and reliable products for data communication in medical devices and systems

4 Access to devices. Prof. Dr. H. Kirrmann. ABB Research Centre, Baden, Switzerland

MatrikonOPC and HMS. Presenting the Anybus OPC server

ARC VIEW. Honeywell s New PLC Brings Digital Transformation to the ControlEdge. Keywords. Summary. The Edge and IIoT.

Intelligent vibration monitoring.

Introduction to Fieldbus Technology

Ovation Controller Model OCR1100

Components of a simple PC

INTELLIGENT SCADA FOR LOAD CONTROL

CoNet Mobile Lab: EtherNet/IP on Allen Bradley platform

worldwide germany PC Control

NXP s innovative GX packages: Saving space, reducing cost

ADI Solution for Industrial Communications

Test requirements in networked systems

Society A Publish/Subscribe Architecture for Behavior Based Control

Inform IT Information Management Tenore. SCADA Extension ABB

PC-based Control for the Field Installation of PV and CSP Systems

Automation innovations in material handling. Smart solutions to meet logistics challenges

DataFlow. DataFlow. Electronics & Software. Quality Monitoring System. DataFlow Statistics. Type 2805A...

IO-Link for more Production Efficiency

Gateway Design for Network based Multi-Motor Control with CAN and Profibus (ICCAS 2005)

Aspects of the Integration of P-NET into Intranet Technologies

CAN PC Interface. CPC PCIe. User manual

Balluff smart safety BE ON THE SAFE SIDE. SAFETY OVER IO-LINK

Solutions in conveyor technology

ELEVATING ETHERNET INTELLIGENCE:

A Smart HMI with Advanced Controls Great for tight spaces when there is no more room for additional I/O on your PLC rack

L-force remote maintenance

JMobile. The X Platform Software

Your Global Automation Partner. Elevating Ethernet Intelligence: Implementing Ethernet Technology in Industrial Applications. White Paper - W1004

H1 + HSE FFB Integrated Architecture Demonstration

products PC Control

Transportation Solutions LÜTZE Rail Technology. Product overview Control Technology

Industrial Ethernet for Proline flowmeters The system integration of the future

Inductive sensors with IO-Link interface

P-NET Management with Java based Components

Wireless# Guide to Wireless Communications. Objectives

Informations-, Prozess- und Kommunikations-Systeme GmbH

PC-Based Control for Process Automation: products for hazardous areas and integration of relevant interfaces

LINK LINK MS NS USR SD. From the Field Level up to the Cloud WAGO Cloud Connectivity and WAGO Cloud Data Control

This document contains 89 FAQ for Brainchild HMI products.

Connectivity solutions for Schneider Electric

DIS-2 series Decentralised servo drive

Distributed Control Systems in New Nuclear Power Plants

STANDARD I/O INTERFACES

McGill University - Faculty of Engineering Department of Electrical and Computer Engineering

Welcome to the Future of Industrial Communication. Introducing the netx Family of Controllers by Hilscher

DATA TRANSMISSION PHOTOELECTRIC SENSORS. For contact-free, optical free-space data transmission.

White paper The future role of ethernet and the trend to decentralised control solutions

A Smart Transducer Interface for Sensors and Actuators

Introduction to Computer Graphics (CS602) Lecture No 03 Graphics Systems

INTERNATIONAL STANDARD

The Development of CompoNet Gateway with Common Network Interface

Highly functional and versatile, Evolving to accommodate IT systems: Announcing the birth of a controller totally surpassing PLC.

Having communication issues? Model 6 intelligent Motor Control Centers communicate on all platforms. Make the most of your energy SM

The PXI Modular Instrumentation Architecture

Training and Seminars

CODESYS in Building Automation

Transcription:

OPC for CANopen and DeviceNet Rainer Gallus, Softing GmbH, Haar, Germany OPC for CANopen and DeviceNet Abstract The availability of the Layer 7 Communications CANopen, DeviceNet and SDS has opened opportunities for increasingly complex applications in the CAN application area. At the same time, the applications are expected to be executable for multiple operating system environments and a wide range of interface formats. For the developer of application software, this means that s/he is increasingly confronted with the task of adapting the application for operation in the new and different environments over the lifetime of the product. Therefore, the large demand for standard software and interfaces exists in order to obtain a general overview on the costs and duration of development. This article describes which requirements must are to be taken into consideration in the implementation and how modern APIs ( Programming Interface) and new standards such as OPC (OLE for Process Control) can simplify development and maintenance of CAN applications, thereby reducing the expenses for maintenance and development considerably. Introduction Up to now, CAN was primarily employed as an OSI Layer 2 implementation in closed systems. These systems consist of a network having several CAN nodes and habitually do not exchange data with other systems. Typical applications are common, for example, in the textile industry or medical technology. In these applications, company-specific proprietary solutions developed which could not be rehosted in another system environment without related effort. However, due to the development of standardized communication protocols such as CANopen, DeviceNet TM and SDS, all of which are based on CAN, new opportunities emerge for the usage of CAN. In addition to the fast exchange of process information representative for CAN, these standards offer the functionality of a fieldbus system for integrating and configuring diverse components of various manufactures. Since controls such as PLCs, industrial PCs or standard PCs are increasingly being applied in these applications, a strong demand for PC interfaces exists for interfacing the control to the CAN network. The different methods of implementation are presented below, whereby the affects of the applied interfaces and associated software on the project to be implemented are taken into account. Program requirements Before development is initiated, the exact requirements of the system to be developed must be defined. These requirements include, for example: Transfer rates; network expansion; type of device to be developed (PLC, industrial PC; sensor or actuator). 1

Moreover, the communication protocol must be defined. A CAN OSI Layer 2, CANopen, DeviceNet TM or SDS Communication Protocol can be used for the communication. In this respect, selection of the communication protocol can be determined by a variety of factors such as: Previously existing devices or software; hardware performance capability; target market for the aggregate system. Which operating system is to be employed has a major influence on the development in the PC sector. Can a standard operating system such as Windows 95 or Windows NT be used? Or is a real-time operating system required? When standard operating systems are used, pre-written portations of the communication and driver software are available. When real-time operating systems are used, in contrast, expensive rehosting must still be made under certain circumstances. The type of the device applied determines which interface formats (ISA, PCI, PCMCIA or PC/104) are supported. When previously existing device families are applied, a customer-specific re-design of a standard interface may be necessary. If a customer-specific new development is necessitated, the matching microcontroller and CAN chips generally have to be selected, whereby the following must considered: Microcontroller performance; availability of corresponding communication software for these components; long-term availability of the selected components. OSI Layer 7 Communication Protocols for CAN In addition to numerous, user-specific solutions, three high-level, standardized and application-independent protocols (CANopen, DeviceNet TM and SDS) are available for CAN. These high-level communication protocols correspond to the three fieldbus layers in the ISO/OSI model, whereby the following are implemented: physics; data exchange; application layer. Services and objects are defined in the application layer for running the communication. These functions defined in the specification can be implemented by the user, alone, or assumed from protocol software already implemented by various companies. The protocol software is provided in the scope of delivery along with the standard interfaces offered or as source code for rehosting to special devices. In order to simplify the use of standardized devices, the high-level protocols support so-called device profiles. These device profiles describe the typical behavior of device families. This allows the user to use devices of a device family of various suppliers without having to undergo expensive modifications in case of a change. CANopen is the further development of CAL (CAN Layer). The device profiles are specified and defined via the CAN User Group CiA (CAN in Automation). CANopen presently focuses on the European market. DeviceNet TM was originally developed by Allen-Bradley. The former is managed and represented internationally by ODVA (Open DeviceNet TM Vendor Association). Even DeviceNet TM disposes of objects consisting of data (attributes) and services. Access is made via a hierarchical addressing scheme. DeviceNet TM has gained wide acceptance in the USA, Japan and UK. SDS (Smart Distribution Systems) was developed as the third OSI Layer 7 Protocol by Honeywell Micro Switch. SDS provides a special application layer and defines an object-oriented, hierarchical device model. It is specifically employed in applications utilizing sensors and actuators; e.g., conveyor belts in airports and breweries. Operating systems and driver software Derivative CAN interfaces and the complementary APIs and libraries are available for all standard operating systems such as DOS, Windows 3.1, 2

Windows 95, Windows NT as well as UNIX. Suppliers of the corresponding CAN technology support the user in applications involving special operating systems such as real-time or proprietary operating systems. Rehosting in the user-specific operating system environment can be achieved either by the supplier of the CAN technology or by users themselves. For this purpose, the relevant program sections of the API are provided as source code, allowing the portation. Qualified system providers also back the user extensively and provide the necessary support. networks and processing the complex Layer 7 Communication (see Fig. 2). PC Board API Program Interface Communication Layer 2 / Layer 7 CAN Chip Physical Layer1 (Standard ISO 11898 ) Fig 2 PC Integration with a non-intelligent CAN interface API ( Program Interface) Communication Layer2 / Layer 7 CAN Chip (integrated or external) Physical Layer 1 (CAN Standard / ISO 11898) Fig 1 Schematic of a CAN Interface Standard formats available for PC CAN interfaces In applications involving non-intelligent interfaces, the communication software is processed on the PC. Due to the fewer number of components, these interfaces are less expensive, but have restrictions in processing networks having higher data transfer speeds and larger quantities of data. Before being applied, however, these cards must be checked whether suitable for the proposed application (see Fig. 3). CAN interfaces are offered as both "intelligent" and "non-intelligent" interfaces. The difference between these are that intelligent interfaces exhibit a separate microcontroller, whereas non-intelligent interfaces only provide CAN controllers and transceivers (see Fig. 1). PC Program Interface Common Memory An intelligent interface uploads the communication software to the interface. All time-critical factors associated with the communication software are executed on the interface, thereby relieving the PC considerably. Data is usually transferred between the interface and the PC via a dual-port RAM which can be mutually read and written. Interfaces of these types are especially suitable for implementing applications intended for high-speed Board Fig 3 PC Integration with an intelligent CAN interface Communication CAN-Chip Physical Layer1 CAN interfaces are offered in all common formats. ISA and PCI interface formats are available for use in the PC. PC Cards in 3

PCMCIA format type II (see Fig. 4) are specially available for mobile use, together with tools used in the configuration, integration, maintenance and service. Fig 4 PC Card CAN Interface ( PCMCIA Type II ) PC/104 is another industry-accepted interface format. The bus interface of a PC/104 board behaves similar to the bus interface of a board having ISA format. This technology permits extremely small and compact devices to be implemented. All standard PC components such as motherboards, interface cards, etc. are offered in PC/104 format. Together with the corresponding CAN interfaces, extremely powerful CAN stations can be developed in this technology. These devices, with their almost cube-like enclosures, are already applied today in diverse industrial solutions. API Programming Interface The CAN Programming Interface, simply API, forms the interface between the customer application and the communication software. The API provides services and interfaces for transferring the data of the respective communication software, the API of which represents the conversion of the specification relating to the applied communication software. Even though, however, the different suppliers refer to the respective standard when implementing their communication software, the products offered are always company-specific solutions; i.e., the call interface of manufacturer A does not match that of manufacturer B! However, it is not self-evident - even within a product family - that all call interfaces offered are compatible to one another. In most of the solutions offered, the API 4 operates directly with the device drivers supplied for the respective interface. Moreover, different APIs are usually offered for the various operating systems. It is therefor important that the call interfaces offered are not only intercompatible for the various interface formats, but also for the different operating systems. Some system developers place special attention on this compatibility under various API versions in the implementation and further enhancement of the communication software, meaning no unnecessarily high portation expenses occur when varying the operating system environment or the CAN interface. A exemplary 32-bit API implementation is depicted in Fig. 5. The application (a CANopen implementation in this case) can be employed with both Windows 95 and Windows NT. Which device drivers are required (device drivers for Windows 95 or Windows NT) is decided first in a library below the API, designated Vcard32.dll in Fig. 4. Another essential aspect is that hardware-relevant information does not exist any more in the API. Hence, long-term assurance is made that a large number of different interface formats for various operating systems can be operated via a single API. This type of implementation offers the advantage that the number of program versions which must be maintained is significantly reduced. Reduction of the application program versions signifies a considerable savings in cost and time in the continued development and support of these products. OPC - A new standard for visualization and fieldbus systems A further development of this concept is OPC, OLE for Process Control, whose objective is to achieve a standardized, PCinternal and computer-wide communication standard, enabling the interfacing of manufacturer-neutral programs and the

use of these as components in a complete system. Among components, the aim of the open, vendor-independent communication between field equipment is continued here within the PC. Similar to the use of printer drivers in Windows, devices and/or driver specifications beyond the OPC interface are to remain concealed. PC controlled Slot Interface CAN API ( Program Interface) CAN.dll Windows NT 32bit Windows 95 Vcard32.dll device driver Windows NT Operating system C&S Windows 95 DPRAM DPRAM CANopen communication CAN interface CANopen Communication Figure 5 Example of a modern CANopen API In this case, clear demarcation of component manufacturers and software manufactures occurs (see Fig. 6). The suppliers of components such as CAN interfaces need only develop an (OPC) driver for the respective hardware component. X... Y X... Y API API OPC Interface OPC Interface PLC DCS CONTROLLER PLC DCS CONTROLLER without OPC with OPC Figure 6 Proprietary interfaces versus OPC interfaces The integration of standards for CAN such as CANopen, DeviceNet TM and SDS with OPC leads to solutions compatible and interoperable to solutions of other OPC suppliers. What is concealed behind OPC technology? 5 As OPC Client, various application programs such as visualization systems and process control systems can use the functionality integrated in the OPC Server (interface with OPC driver). OPC Clients and OPC Servers can be executed in a PC or even distributed in the network over several PCs. Distribution of the

components among several PCs is backed by DCOM (Distributed COM), Microsoft's distributed interaction protocol. In this case, DCOM utilizes the Ethernet technology and is a constituent of all new Windows operating systems for Windows NT 4.0 or later. An update can be obtained for Windows 95. The OPC Server enables process variables to be read and written, not only variable values can be transferred, but status and time information as well. In addition, the OPC Server features further functionality, enabling both the OPC Client and the user to differently combine the process variables to be captured and to adapt their acquisition to specific requirements. Examples of this are the combination of dynamic variables in a group with common values in regard to update rate and threshold value for reporting changes. How the available technology is applied is presented below: OPC is based on the well-known OLE/COM technology by Microsoft. Two requirements were the basis for developing OLE: 1. To be able to process documents with different information representations in a program. 2. To ensure binary compatibility between software components (backward compatibility, autonomous upgrades, co-existence of old and new software). The efforts led to the definition of a Component Object Module (COM) by Microsoft in the first half of the decade. The aim of this model is the guarantee of binary compatibility between software components. Special aspects of this model are interaction between the components based on access to methods, components and objets combined in interfaces. A Component Object contains several interfaces which encapsulate access to the object. Furthermore, the term "Object" is used as a synonym for the term "Component Object". The following are defined in COM: - A methodology how an object can be interrogated at runtime to determine whether it supports a specific interface. - A procedure how the life cycle of objects is managed. For his purpose, a reference counter is used which is incremented the first time an interface is used and decremented again when released. If the counter has the value zero, the object is no longer required and is able to terminate itself. - How interactions between objects can be executed beyond process limits. This is necessary because pointers to interfaces and method parameters are only valid within a process space. - Procedure for identifying and loading objects. OPC defines two objects: - Object structure - Interfaces, methods and parameters for individual objects. The term "OPC Server" was used twice in the definition of the terms. An OPC Sever denotes an executable file which yields 6

Visualization OPC-Client OPC Client DCOM via TCP/IP OPC-Server OPC-Server OPCServer CANopen, DeviceNet OPC Group OPC Group (PLC,fielddevice OPC Item OPC Item OPC Item OPC Item Fisher Digital Output Digital Input Aktuator Sensor Figure 7 OPC functionality as determined in the OPC specification. Parallel to this, an "Object" is also termed as OPC Server within the latter. An OPC Server can contain entities of the objects: OPCServer (1x); OPCGroup (at least 1x); OPCItem (at least 1x) (see Fig. 7). In concern to this, an OPC Server always accesses the object interfaces; i.e., in order to properly terminate an OPC Server, an OPC Client must release all objects again by calling "Release". Where can OPC Servers optimally be applied? One particular area of application for the OPC Server is use as a constituent in visualization systems. Potential use also exists, however, in process control systems as well as systems used in remote maintenance and diagnostics. The use of the OPC Servers is in its pioneer phase, meaning that further applications are certainly still to evolve in the future. Summary CAN and the CAN-based OSI Layer 7 implementations CANopen, DeviceNet TM and SDS give the user access to powerful technologies, allowing implementation of projects in industrial automation. Moreover, the costs for further development and maintenance can be significantly reduced through the selection of modern CAN interfaces and corresponding call interfaces. New technologies such as OPC provide users with additional opportunities in ensuring long-term interfacing of their program systems to many different applications, thereby eliminating expensive portations. OPC is operated by an independent organization. A large number of companies which cooperate in the advanced development and maintenance of OPC are represented in this organization. Corresponding committees perform conformity and interoperability tests and therefor act as superior inspection authority. The main advantages in using OPC are all that the suppliers of software solutions (e.g., a visualizations system) still need is a generic driver, namely an OPC Client 7

interface and no longer a large variety of specific drivers, as in the past. Hence, system integrators can combine a desired process visualization with various PC cards, for which OPC software is available. The solutions which result are also network-capable due to the Distributed COM incorporated by OPC. can be conducted either in-house at the supplier or remotely at the customer site. Softing GmbH Richard-Reitzner-Allee 6 85540 Haar near Munich Tel: ++49 / 89 / 45656 323 Fax: ++49 / 89 / 45656 399 Email: rainer.gallus@softing.com Homepage: http:\\www@softing.com Despite all the simplification of the interfaces in the project design, an important factor remains which should not to be overlooked: Training of employees involved in the project. Training for CAN, CANopen, DeviceNet TM and SDS and corresponding OPC interfaces is offered by various system houses. The training 8