TD-03011E. Identifier Usage in CANopen Networks



Similar documents
Getting Started with CANopen Version Application Note AN-AON

CIA405.lib. Contents. WAGO-I/O-PRO 32 Library

LENORD. +BAUER... automates motion. Fieldbus connection absolute encoders CANopen. Reference. Communication profile DS-301 Device profile DS-406

Jena er Antriebstechnik. GmbH. 1. Introduction. 2. Properties. 3. Hardware. 4. Baud Rates. Brief Instructions - CANopen Interface

CANopen high-level protocol for CAN-bus

RPDO 1 TPDO 1 TPDO 5 TPDO 6 TPDO 7 TPDO 8

Positioning Controller

Introduction To The CANopen Protocol Version 1.1 Application Note AN-ION

CANopen Fieldbus Documentation

Positioning Controllers. Communication Guide. Document ID: rel4054

CANopen Communication Protocol

LIN (Local Interconnect Network):

In-Vehicle Networking

How To Write A Canopen Program For A Network (Auv) With A Network And Data Communication (Can) On A Computer (Canopen) (Canconnect) (Aui) (Cannopen) And A Network) (

ACCELENS (ACS) INCLINOMETER WITH CANOPEN INTERFACE

Introduction to. LIN (Local Interconnect Network)

SANMOTION AC SERVO SYSTEMS

38 CANOPEN SLAVE M1. Technical Document. Epec Oy

Local Interconnect Network Training. Local Interconnect Network Training. Overview

ANTAL ELECTRONIC Field Bus and Communication Technology. Manual PDP2CAN. Version 3.08

/2008. Altivar 312. Variable speed drives for asynchronous motors. CANopen communication manual 09/2009 BBV

PROTOCOL CONVERTER. Innovation Lives in ADFweb.com. 1) Modbus to M Bus (code order: HD67029M serie)

Single Board Controller (pcb controller) CS0015

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

User Manual Revision English

Configuring PCAN-Explorer to Monitor Data Traffic on a CANopen Network

The Answer to the 14 Most Frequently Asked Modbus Questions

9chapter. Indutrial networks. Presentation: Needs and available components. Technologies. Schneider Electric policy

SafeSPI - Serial Peripheral Interface for Automotive Safety

Modbus Protocol. PDF format version of the MODBUS Protocol. The original was found at:

CANopen communication protocol

USER S MANUAL for MPNC100 series

Distributed Real-Time Systems (TI-DRTS) Track 2. CAN-BUS Introduction. Version Ref. VECTOR application note & Motorola note

EUROMAP Protocol for Communication with Peripheral Equipment. General Description

Features and application fields for the CANopen Safety Chip CSC01

Process Control and Automation using Modbus Protocol

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

Automotive electronics CAN and LIN buses. Copyright 2006 Matrix Multimedia Limited

Modicon Modbus Protocol Reference Guide. PI MBUS 300 Rev. J

Nilar High voltage energy storage solutions

Absolute rotary encoder GEL 235EC

How To Use A Network Card With A Network Box (Ios) On A Microsoft Powerbook 2.5 (I2) (I3) (Io2) And I2 (Io) (Net) (Ipo) (

Comparison of FlexRay and CAN-bus for Real-Time Communication

DCP COMMAND. bringing two-way communications to your DCPs

4511 MODBUS RTU. Configuration Manual. HART transparent driver. No. 9107MCM100(1328)

INCLINOMETER WITH CAN-BUS INTERFACE USER MANUAL

EDSMF2178IB.Li. L force Communication. Ä.Li ä. Communication Manual. CANopen EMF2178IB. Communication module

Vorlesung Kommunikationsnetze Fieldbus Systems

C-Bus Application Messages & Behaviour Chapter 25 Air Conditioning

EtherCAT Communication Manual

Chapter 4. Medium Access Control. IN2P3 Octobre 2002 Jean-Pierre Thomesse

LIN (Local Interconnected Network)

I.S. 1 remote I/O system Redundant coupling via PROFIBUS DP

COMMMONITOR SOFTWARE MANUAL

Introduction to RACE FUELS Hans-Christian von der Wense Munich, Germany

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

Modbus and ION Technology

EtherCAT Fieldbus Documentation

FPGA INTEGRATION MANUAL SATURN-SIL 2 MODULES. Dictionary Code. Edition 01. Revision 00. Number of pages 18

Integration of FlexRay-based control units in existing test benches

Additional Setup Instructions for Modbus: RTU, ASCII, TCP, Omni & Enron

Vehicle Networks. CAN-based Higher Layer Protocols. Univ.-Prof. Dr. Thomas Strang, Dipl.-Inform. Matthias Röckl

AXIS CONTROLVALVES WITH CANOPEN INTERFACE

Software Development for Multiple OEMs Using Tool Configured Middleware for CAN Communication

EMS. EtherCAN CI. Ethernet/CAN Interface. User Manual THOMAS WÜNSCHE. Documentation for Ethernet/CAN interface EtherCAN CI version 2.1.

Packet-over-SONET Interface Commands on the Cisco IOS XR Software

DeviceNet Communication Manual

AKD EtherNet/IP Communication

Remote control of CAN-based industrial equipment using Internet technologies

CAN-Bus for CVP - User manual

UG103.5 EMBER APPLICATION DEVELOPMENT FUNDAMENTALS: SECURITY

The intelligent Protocol Converter

Data sheet GIOD.1 Input/output module with CAN bus. ERP no.: Data sheet GIOD.1 V_3.0

Bluetooth for device discovery. Networking Guide

CAM-VGA100 User Manual

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

FlexRay A Communications Network for Automotive Control Systems

Configuring PROFINET

Operating Manual EX120-SCA1 EX121-SCA1 EX122-SCA1. CANopen SI units

APR-PRT3 Printer Module: C-Bus Programming Instructions

CANnes PC CAN Interface Manual

DeviceNet Motor Control

Application Note. EtherCAT Master Architecture. Applicable Products: Yaskawa Servodrives with CANopen over EtherCAT

Altivar 32. Variable speed drives for synchronous and asynchronous motors. CANopen Communication Manual 03/

LOCAL INTERCONNECT NETWORK (LIN)

Instruction manual. testo easyheat Configuration and Analysis software

Dolphin In-Circuit programming Updating Firmware in the field

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

Bus Data Acquisition and Remote Monitoring System Using Gsm & Can

Industrial Networks & Databases

A DIY Hardware Packet Sniffer

DeviceNet Bus Software Help for Programming an Allen Bradley Control System

AN017. CAN Bus Monitor for Kvaser. Introduction. CAN Monitor


SIM CARD PROTOCOLS. This paper attempts in broad strokes to outline the construction of these protocols and how they are used.

LOW COST AUTOMOTIVE NETWORKS. Local Interconnect Network (LIN)

Welcome to the Introduction to Controller Area Network web seminar My name is William Stuart, and I am a Applications Engineer for the Automotive

Tebis application software

ControlNet Traffic Analyzer

Transcription:

Identifier Usage in CANopen Networks Author : U. Koppe Published : January 2003 This document describes the usage of identifiers in CANopen networks. The paper is intended for CANopen newcomers and system integrators. In order to understand the various abbrevations for CANopen services, a short introduction is given. More details can be found in the corresponding specification DS-301. The default identifier setup is explained and examples are given on how to change the identifier values for various services. MicroControl 2003

Introduction into CANopen Services Introduction into CANopen Services NMT SYNC TIME EMCY PDO SDO NMT-EC LSS The Network Management (NMT) is node oriented and follows a master-slave-structure. The service is used to start, stop, reset and initialize a CANopen node. Through the important nature of the service the highest identifier priority is used. The NMT message has two bytes of data. The Synchronisation Object (SYNC) is broadcasted periodically by the SYNC producer (one CANopen node in a network). The SYNC provides the basic network clock. In order to give the SYNC message a short access time to the CAN bus a very high priority identifier is used by default. The SYNC message has no data. By means of the Time Stamp Object (TIME) a common time frame reference is provided to all devices in the CANopen network. The data length of the TIME message is fixed to six bytes. A Emergency Object (EMCY) is triggered by the occurence of a device internal error situation. The data length of the EMCY message is fixed to eight bytes. Real-time data transfer is performed by means of Process Data Objects (PDO). The transfer of PDOs is performed with no protocol overhead. The data length of a PDO message is variable. With Service Data Objects (SDO) the access to a device object dictionary is provided. By means of a SDO a peer-topeer communication channel between two devices is established. The data length of a SDO message is fixed to eight bytes. Through Network Management Error Control (NMT- EC) failures in a CANopen network can be detected (change of node state). The data length of the two possible message types (Heartbeat / Nodeguarding) is fixed to one byte. With Layer Setting Services (LSS) it is possibe to change the node ID and the baudrate of a CANopen device. The LSS is described in the specification DSP-305. MicroControl 2003 Page 2

Default Identifier Setup Default Identifier Setup The default identifier setup is described as Pre-defined Connction Set inside the communication profile DS-301. Every CANopen node can be reset to this behaviour with a specific command (Restore Default Parameters, Object 1011 h ). Identifier Service Direction COB-ID calculation Remarks 000 h NMT Receive n/a mandatory service 080 h SYNC Recv./Trmt. n/a change via index 1005 h 081h - 0FFh EMCY Transmit COB-ID = 080 h + Node ID change via index 1014 h 100 h TIME Recv./Trmt. n/a change via index 1012 h 181 h - 1FF h PDO1 Transmit COB-ID = 180 h + Node ID change via index 1800 h 201 h - 27F h PDO1 Receive COB-ID = 200 h + Node ID change via index 1400 h 281 h - 2FF h PDO2 Transmit COB-ID = 280 h + Node ID change via index 1801 h 301 h - 37F h PDO2 Receive COB-ID = 300 h + Node ID change via index 1401 h 381 h - 3FF h PDO3 Transmit COB-ID = 380 h + Node ID change via index 1802 h 401 h - 47F h PDO3 Receive COB-ID = 400 h + Node ID change via index 1402 h 481 h - 4FF h PDO4 Transmit COB-ID = 480 h + Node ID change via index 1803 h 501 h - 57F h PDO4 Receive COB-ID = 500 h + Node ID change via index 1403 h 581 h - 5FF h SDO Transmit COB-ID = 580 h + Node ID mandatory service 601 h - 67F h SDO Receive COB-ID = 600 h + Node ID mandatory service 701 h - 77F h NMT-EC Transmit COB-ID = 680 h + Node ID mandatory service 7E4 h - 7E5 h LSS Recv./Trmt. n/a identifiers are fixed Table 1: Pre-defined Connection Set The direction in the table is given with respect to the CANopen slave device. The node ID (address) of a CANopen device must be within the range from 1 to 127. The communication object identifier (COB-ID) is directly dependent on the selected node ID. The services in the highlighted lines (NMT, SDO, NMT-EC) are mandatory services, which are implemented in every CANopen device. The COB-ID of these services can not be changed. Also the COB-IDs for the Layer Setting Services (LSS) can not be changed. The LSS service is not mandatory for a CANopen device. MicroControl 2003 Page 3

Using CANopen devices in Non-CANopen networks Within the pre-defined connection set, the following identifiers are not used: COB-ID (Identifier values) 001 h - 07F h 101 h - 180 h 200 h / 280 h / 300 h / 380 h / 400 h / 480 h / 500 h / 580 h 600 h / 680 h 780 h - 7E3 h 7E6 h - 7FF h Table 2: Unused identifiers in the Pre-defined Connection Set Using CANopen devices in Non-CANopen networks Is it possible to use a CANopen device in a CAN network that runs with another protocol? The answer to that question is: Yes, unless you keep two limitations in mind: 1. The Non-CANopen network shall not use the identifier value 0 (CANopen NMT). 2. The Non-CANopen network shall not use the identifiers for SDO and NMT-EC services. This can be achieved by changing the CANopen device address in most cases. But how can the CANopen device be set into Operational state in a Non-CANopen network? Simply by configuration of the object 1F80 h (NMT Startup). Writing and storing a value of 0x0000 00C0 h to this object will tell the CANopen device to enter automatically Operational state. Example: Automotive Test Application A car manufacturer has to acquire many additional temperatures in a new vehicle during the test runs (e.g. brakes, clutch, etc). In most cases it makes sense to feed this information into the existing CAN network, which knows nothing about CANopen. Let us assume the car manufacturer wants to acquire 4 temperatures, where the data is transmitted with the identifier value 312 h periodically. A standard MicroControl 2003 Page 4

Changing Identifiers CANopen device for temperature acquisition can be used for that automotive application if the above mentioned limitations are met. Before connecting the CANopen temperature module to the CAN network of the vehicle, the following configuration must be applied to the CANopen device: Configure the Transmit PDO identifier to the value 321 h Configure the Transmit PDO to cyclic transmission, using the desired update rate Configure the NMT Startup object to auto-start Store this configuration Figure 1: CANopen device for temperature measurement It is, however, nearly impossible to use CANopen devices in a Non-CANopen network when this network requires a certain protocol (Higher-Layer Protocol). It is, for example, not possible to use a CANopen module in a DeviceNet network. Changing Identifiers With the exception of the NMT service, the SDO and the NMT-EC service, identifiers for all other CANopen services can be changed. The NMT service has always the identifier value 0. It can not be modified by any means. The identifiers for the SDO service and the NMT-EC service are always bound to the node ID of a CANopen slave device (refer to Pre-defined Connection Set on page 3.). MicroControl 2003 Page 5

Changing Identifiers The identifier value of a CANopen service is changed by a communication via SDO (peer-to-peer). Details concerning the SDO communication can be found in the DS-301 [1]. An Expedited SDO message has the following structure: 8 CD Index SI Data Byte 0 of the message (CD = command byte) has the following contents for a 32-bit read or write operation: SDO Operation by Master Value Master reads from Slave Master writes to Slave 40 h 23 h Table 3: Command byte values for Expedited SDO The addressed CANopen slave answers with the identical message structure, where the command byte may have the following values: SDO Answer from Slave Value Successful read response Succesfull write response Abort operation 43 h 60 h 80 h Table 4: Command byte response for Expedited SDO Bytes 1 and 2 define the index for the parameter, byte 3 defines the sub-index for the parameter. The byte order for the fields "Index" and "Data" is least significant byte first (Intel format). MicroControl 2003 Page 6

Usage of Extended-CAN Frames Example: Changing the SYNC identifier In the following example the identifier value for the SYNC service is changed to 120 h. The CANopen node ID is 2. For calculation of the SDO identifiers refer to Pre-defined Connection Set on page 3. The index for the SYNC identifier is 1005 h. This leads to the following SDO write operation: 602 h 8 23 h 05 h 10 h 00 h 20 h 01 h 00 h 00 h As response the requested CANopen slave will send: 582 h 8 60 h 05 h 10 h 00 h 00 h 00 h 00 h 00 h Now the CANopen slave will receive SYNC messages with the identifier value 120 h. Usage of Extended-CAN Frames Extended-CAN frames (CAN 2.0B) are possible for the following services in a CANopen network: Service Default Identifier SYNC EMCY TIME 080 h 081 h - 0FF h 100 h PDO refer to Pre-defined Connection Set on page 3. Table 5: Services with the possibility of using 29-bit identifiers Please note that allthough you can use 29-bit identifiers for the PDO service, the total number of PDOs inside a CANopen network is limited to 512. The limitation is caused by the CANopen object dictionary, which allows only up to 512 entries for each PDO direction (receive / transmit). In order to enable Extended-Frame operation, bit 29 of the COB-ID parameter must be set to 1. MicroControl 2003 Page 7

References Example: Changing the EMCY identifier (29-Bit) In the following example the identifier value for the EMCY service is changed to 7F1234 h. The CANopen node ID is 2. For calculation of the SDO identifiers refer to Pre-defined Connection Set on page 3. The index for the EMCY identifier is 1014 h. This leads to the following SDO write operation: 602 h 8 23 h 14 h 10 h 00 h 34 h 12 h 7F h 20 h As response the requested CANopen slave will send: 582 h 8 60 h 14 h 10 h 00 h 00 h 00 h 00 h 00 h Now the CANopen slave will transmit emergency messages with the identifier value 7F1234 h. References [1] CANopen Application Layer and Communication Profile, DS-301, Version 4.02, CAN in Automation, Erlangen/Germany [2] CANopen Framework for Programmable CANopen Devices, DSP-302, Version 3.1, CAN in Automation, Erlangen/Germany MicroControl 2003 Page 8