Intro to CANopen Networks E. Zivi Nov 6, 2014 References: 1.A CAN Physical Layer Discussion Microchip Application Note AN00228a 2.Controller Area Network.

Slides:



Advertisements
Similar presentations
Introduction to CANBUS
Advertisements

Control Area Network CAN Developed by Bosch in 1983 as an automotive protocol, it was adopted by the Society of Automotive Engineers (SAE) in As.
Software setup with PL7 and Sycon V2.8
Protocol Configuration in Horner OCS
Overview  CANopen is a CAN-based higher layer protocol. It was developed as a standardized embedded network with highly flexible configuration capabilities.
In this presentation you will:
CAL (CAN Application Layer) and CANopen J. Novák Czech Technical University in Prague Faculty of Electrical Engineering Department of Measurement.
Slide 1 Industrial Automation - Customer View - Training PhW - CANopen_en 02/ 2002 CANopen QUIZ CANopen QUIZ.
Intro to Controller Area Networks (CAN) Part 2 of 2, E. Zivi, April 1, 2015 References: 1.A CAN Physical Layer Discussion Microchip Application Note AN00228a.
What is the CAN Bus ? A two wire electronic communication data bus between ‘processors’ – i.e. computer computer controllers Developed by Robert Bosch.
EC312 CANopen mbed Intrusion E. Zivi April 26, 2015
Control Area Network CAN Developed by Bosch in 1983 as an automotive protocol, it was adopted by the Society of Automotive Engineers (SAE) in As.
Applying Wireless / SI/O Architecture To NeSSI March 7, 2001 John Crawford VP, Business Development Crossbow Technology, Inc.
System Level. Total Costs 3 fully powered and steering, 4 idler modules Prototyping Costs (1 fully powered and steering, tested on bench): –Power.
Digital I/O Connecting to the Outside World
Notes: For the installation of a PB network, you can use shielded twisted pair copper cable, glass or plastic FO and infrared components. And you can mix.
DeviceNet and SDS Presented by : Ramesh Vishwanathan Biosystems and Agl. Engineering.
 What is a Controller Area Network?  History of CAN  CAN communication protocol  Physical layer  ISO  CiA  CANopen  DeviceNet  Applying.
Intro to Controller Area Networks (CAN) Part 1 of 2, E. Zivi, April 1, 2015 References: 1.A CAN Physical Layer Discussion Microchip Application Note AN00228a.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
SERIAL BUS COMMUNICATION PROTOCOLS
SCADA and Telemetry Presented By:.
January 9, 2008BAE In-Vehicle Networking Lecture 1 Introduction to CAN (Controller Area Network) BAE 5030 – 363 Spring 2009 Instructors: Marvin.
EtherCAT Protocol Implementation Issues on an Embedded Linux Platform
© 2011 Pearson Education, Inc. All Rights Reserved Automotive Technology, Fifth Edition James Halderman COMPUTER FUNDAMENTALS 71.
Background   Who does this project addresses to?   Handicapped.   Amputated limbs.   Paralyzed.   Motivation Statistics.
Professor: Chi-Jo Wang Student : Nguyen Thi Hoai Nam DIGITAL SIGNAL PROCESSOR AND ENERGY CONTROL.
In-Vehicle Networking for Heavy Duty Systems Review of CAN / SAE J1939/ ISO BAE 5030 Fall 2001 Instructor: Marvin Stone BAE 5030 Fall 2001 Instructor:
Introducing Network Standards
ESA – UNCLASIFIED – For official use Introduction to CANopen.
Jiří Novák, CTU FEE in Prague, Dept. of Measurement Industrial Distributed Systems Technology overview Technology overview Important features Important.
DeviceNet Solution December, 2003
Digital Electronics and Computer Interfacing
Automotive Engine Performance, 3/e By James D. Halderman Copyright © 2010, 2007, 2003 Pearson Education, Inc., Upper Saddle River, NJ All rights.
Section 2 - Slide 1 / 74 P&T - GPS - Training PhW - CANopen_offer_en 09/2004 Industrial Automation CANopen offer September 2004 Industrial Automation CANopen.
Other Chapters From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
OSI Model. Topics What is the OSI Model? What is a Protocol? Why 7 Layers? The 7 Layers – Application – Presentation – Session – Transport – Network –
Disc Thickness Measurement System. NI Based Measurement System NI Channel, 100 kS/s, 16-bit, ±10 V Simultaneous Sampling Analog Input Module.
Slide 1/64 Industrial Automation - Customer View - Services - Training PhW - CANopen_offer_en 09/2003 Industrial Automation CANopen offer June 2003 Industrial.
Section 3 - Slide 1/19 P&T - GPS - Formation PhW - CANopen_lev1_en - 01/2004 History CANopen and the ISO model Physical layer Link layer Application layer.
Chapter 2. Network Models
Home Networking Digital TV based on LnCP Introduction LnCP (Living Network Control Protocol) - Devised by LG Electronics Inc. - Optimized communication.
National Institute Of Science & Technology CAN-based Higher Layer Protocols and Profiles Rajaaranjan Mishra 1 EI DECEMBER-2004 CAN-based Higher.
MECH1500 Chapter 3.
Gaziantep University Department of Electrical and Electronics Engineering 1 Development of Monitoring Blood Bank Center Based PIC Microcontroller Using.
1 Chap. 2 Protocol. 2 Communication model Simplified communication model  source node  gather data from sensor or switch using ADC (analog-to-digital.
4 Linking the Components Linking The Components A computer is a system with data and instructions flowing between its components in response to processor.
New IP Drivers using drvIpac Module Driver:CANopen Carrier Driver:GPFC drvIpac ?? CANopen Tip810 CAN Tip810 mv162GPFCatc40vipc310vipc616 Module driver.
Reconfigurable Communication Interface Between FASTER and RTSim Dec0907.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. Overview of Ethernet Networking A Rev /31/2011.
An Introduction to CAN CAN Basics 2 Renesas Interactive
Computer Fundamentals 14 © 2013 Pearson Higher Education, Inc. Pearson Prentice Hall - Upper Saddle River, NJ Advanced Automotive Electricity and.
 PROFIBUS (Process Field Bus) is a standard for fieldbus communication  Based on a token bus/floating master system.  Three Types 1.FMS ( Field bus.
CHAPTER Computer Fundamentals 13 Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Automotive Electrical and Engine Performance, 7e James.
LonWorks Introduction Hwayoung Chae.
An Overview When Connecting to Yaskawa Drives Date: 8/14/06, Rev: PP.AFD.26.
Pulse-Width Modulation: Simulating variable DC output
R. Frahm ESO Instrumentation Software Workshop R. Frahm RMC Motor Controller.
CAN CANopen.
Industrial communication protocols
Generic Remote Interface Unit (RIU) Interface Control Document (ICD)
DELLSOFT Technologies Pvt. Ltd.
Programmable Logic Controllers: I/O
Chapter 11: Inter-Integrated Circuit (I2C) Interface
DT80 range Modbus capability
Radiation- and Magnet field- Tolerant Power Supply System
DeviceNet Communication Solution for Discrete Devices
Pulse-Width Modulation: Simulating variable DC output
Computer Fundamentals
Presentation transcript:

Intro to CANopen Networks E. Zivi Nov 6, 2014 References: 1.A CAN Physical Layer Discussion Microchip Application Note AN00228a 2.Controller Area Network (CAN) Implementation Guide Analog Devices Application Note AN Controller Area Network, CANPRES Version 2.0, Siemens Microelectronics, Inc., October CAN physical layer ref: 6.Controller Area Network Physical Layer Requirements, TI SLLA270–January CAN Tutorial, 8.CANopen Introduction, ref: 1.Embedded Networking with CAN and CANopen, by Pfeiffer, Ayre and Keydel 2.CANopen Implementation: Applications to Industrial Networks, by Farsi and Barbosa 3.CAN in Automation,

Recall CAN & ISO/OSI Reference Model 2

CAN in Automation (CiA) CANopen & ISO / OSI Reference Models 3 High level CAN Protocols implement Application layer and skip the four intervening layers ISO CAN Data Link Layer ISO CAN Physical Layer Application CiA 301 CANopen Application Layer & Communication Profile CiA 302 CANopen Framework for CANopen Managers & Programmable Devices CiA 4xx Device Profiles CiA 401 Generic I/O Profile CiA 402 Motion Control Profile IEC Programmable Devices Profile Not Implemented by CAN or CANopen

CAN &CANopen Protocol Layers Application Layer Device profile for generic I /O modules (CiA 401, V3.0) Device profile drives and motion control (CiA 402, V2.0)... Interface and device profile for IEC programmable devices (CiA 405, V2.0)... CANopen application layer and communication profile (CiA 301, V4.1, EN ) CANopen framework for CANopen managers and programmable CANopen devices (CiA 302, V3.4) CAN data link layer (ISO 11898:2003) CAN physical layer (ISO 11898:2003) CAN Bus We’ll investigate CANopen high level protocols after we have a basic understanding of CAN 4

CAN Higher Level Protocol Examples 1.CANopen : In the late 1990’s CANopen device profile specifications where established. CANopen includes a.A node addressing scheme b.Communication protocols supporting network management, device monitoring and communication between nodes c.Application layer device profiles 2.SAE J1939 : In 1998, the Society of Automotive Engineers (SAE) published the J1939 application layer protocols on top of CAN for vehicle applications. J1939 based standards include: truck and trailer communication (ISO 11992), agriculture and forestry vehicles (ISO 11783) and marine navigation systems (NMEA 2000). 3.ARINC 825 : Newer commercial aircraft such as the Airbus A380 and the Boeing DeviceNet : Allen-Bradley (now Rockwell Automation) created DeviceNet as an application layer protocol on top of CAN in the 1990’s. DeviceNet CONFORMANCE TESTED® products have been certified by the Open DeviceNet Vendors Association (ODVA) to conform to the specification. 5

CANopen Attributes 1.Unique node IDs 1.7 bits of 11-bit CAN Message ID is node address 2.4 bits of 11-bit CAN Message ID is CANopen message type 2.Network Management (NMT) including NMT state machine, Boot-up, Heartbeat 3.Service Data Objects (SDOs) for network management 4.Process Data Objects (PDOs) for real-time process data 5.Each node contains an Object Dictionary with pre-defined entries for: 1.Node configuration 2.Process data 3.Mapping of process data to PDO messages 6.Electronic Data Sheets to automation network systems integration

CANopen Network Management State Machine Network States Available Services Pre- operational Operational Stopped PDO SDO Sync Time- stamp Emcy NMT Error control

MicroMod CANopen I/O

MicroMod CANopen Preprogrammed I/O MicroMod CANopen Generic I/O Message Implementation Comm Obj Message # of Data Elements Message Data TypeI/O Definitions TPDO 11unsigned byteDigital In 0..7 RPDO 11unsigned byteDigital Out 0..6 TPDO 2410 bits in unsigned intsAnalog In 0..3 RPDO 248 bit duty cycle in unsigned intsPWM Out 0..3 TPDO 3410 bits in unsigned intAnalog In 4..7 Implements subset of DS401 CANopen Generic I/O Specifications. Electronic Data Sheet Configures system.

MicroMod CANopen DS-401 Generic Digital I/O TPDO 1 & RPDO 1 Message Mapping Digital Output (7bits) RPDO1 (1 byte) CID: 0100 nnnnnnn2 Data: xbbbbbbb2 Transmit Process Data Object TPDO1 on change of any of 8 digital inputs Update 7 bits of digital output upon Reception of Receive Process Data Object RPDO 1 Digital Input (8 bits) TPDO1 (1 byte) CID: 0011 nnnnnnn2 Data: bbbbbbbb2

MicroMod CANopen DS-401 Generic Analog Input TPDO 2 Message Mapping Transmit Process Data Object TPDO 2 on change of any of Analog Inputs 0 thru 3 Resolution = 5V range / (2 10 – 1) TPDO2 Analog Input 3 CID: 0101 nnnnnnn 2 Data: BBBBBBBB 16 (2 bytes) Data transmitted in little endian (Least Significant Byte First) form TPDO3 Provides a second bank of 4 Analog inputs Analog Input 3 10-bit Analog input is backed into 16 bit data words

MicroMod CANopen DS-401 Generic Analog (PWM) Output RPDO 2 Message Mapping Receive Process Data Object RPDO 2 changes Duty Cycle of PWM outputs 0 thru 3 Resolution = 1 / (2 8 – 1) RPDO2 PWM Output3 CID: 0101 nnnnnnn 2 Data: BBBBBBBB 16 (2 bytes) Data transmitted in little endian (Least Significant Byte First) form PWM Output3 8-bit PWM duty cycle is packed into every other byte

CANopen DS-401 Generic I/O 11-bit Message ID Format Comm Objects4-bit Msg ID7-bit Node IDDS-401 Generic I/O Definitions Msg bits b 10 … b 7 b 10 b9b9 b8b8 b7b7 b6b6 b5b5 b4b4 b3b3 b2b2 b1b1 b0b0 NMT Service0x SYNC Msg0x Emergency0x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Time Stamp0x TPDO 10x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Digital In 0..7 RPDO 10x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Digital Out 0..6 TPDO 20x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Analog In 1..4 RPDO 20x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Analog Out 1..4 TPDO 30x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Analog In 5..8 RPDO 30x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Analog Out 5..8 TPDO 40x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Analog In RPDO 40x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Analog Out TSDO0x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 RSDO0x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Heartbeat0x n6n6 n5n5 n4n4 n3n3 n2n2 n1n1 n0n0 Constructing DS-401 Generic IO Message IDs 4-bit Msg ID + 7-bit Node ID

CANopen Motor Lab Configuration CANopen Magic Node CANopen MicroMod Node L298 Driver Board MotorEncoder Frequency to Voltage Converter Bench Power Supply PWM Power Shaft Rotation Modulated Power Position Pulse Train Analog Voltage Proportional to Motor Speed CAN Messages Graphical User Interface

Maxon Motor Tachometer Calibration Angular Velocity (rad. / sec. ) = (rad. / sec. / V) × Tachometer Output (V) Tachometer Output is connected to MicroMod input Ain4

Maxon Motor Transfer Function Using CAN Lab #3 Procedure

CAN Lab #3 CANopen Magic Window Configuration MicroMod Heartbeat, Operational & PWM Duty Cycle (with Function key) messages added Filtered Trace windows added New Process Data visual display