没有合适的资源?快使用搜索试试~ 我知道了~
首页CANopen application layer and communication profile
CANopen application layer and communication profile
需积分: 9 100 浏览量
更新于2023-05-27
评论
收藏 3.25MB PDF 举报
英文完整版CANopen应用层通信协议,是学习CANopen通信的基础资料。
资源详情
资源评论
资源推荐

CiA
®
301
CANopen application layer and communication profile
Application layer and communication profile
Version: 4.2.0
21 February 2011
CAN in Automation (CiA) e. V.

CANopen application layer and communication profile
2 © CiA 2011 – All rights reserved
HISTORY
Date Changes
1994-11-01 Publication of version 1.0 as draft standard proposal
1995-01-01 Publication of version 1.1 as draft standard proposal
1995-09-22 Publication of version 2.0 as draft standard proposal
1996-10-30 Publication of version 3.0 as draft standard
1999-06-16 Publication of version 4.0 as draft standard
2000-06-01 Publication of version 4.0.1 as draft standard
2002-02-13 Publication of version 4.0.2 as draft standard
2006-08-15 Publication of version 4.1 as draft standard proposal
2007-12-07 Publication of version 4.2 as draft standard proposal
2011-02-21 Publication of version 4.2.0 as public specification
NOTE: This document has been converted into “docx format”.
The conversion caused minor layout differences to the predecessor document in “doc format”. The
technical content word-by-word is the very same.
General information on licensing and patents
CAN in AUTOMATION (CiA) calls attention to the possibility that some of the elements of this CiA
specification may be subject of patent rights. CiA shall not be responsible for identifying any or all such
patent rights.
Because this specification is licensed free of charge, there is no warranty for this
specification, to the extent permitted by applicable law. Except when otherwise stated in
writing the copyright holder and/or other parties provide this specification “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
correctness and completeness of the specification is with you. Should this specification prove
failures, you assume the cost of all necessary servicing, repair or correction.
Trademarks
CANopen and CiA are registered community trademarks of CAN in Automation. The use is
restricted for CiA members or owners of CANopen® vendor ID. More detailed terms for the
use are available from CiA.
© CiA 2011
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or
utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm,
without permission in writing from CiA at the address below.
CAN in Automation e. V.
Kontumazgarten 3
DE - 90429 Nuremberg, Germany
Tel.: +49-911-928819-0
Fax: +49-911-928819-79
Url: www.can-cia.org
Email: headquarters@can-cia.org

CANopen application layer and communication profile
© CiA 2011 – All rights reserved 3
CONTENTS
1
Scope ............................................................................................................................................. 12
2 References .................................................................................................................................... 13
2.1 Normative references .............................................................................................................. 13
2.2 Informative references ............................................................................................................ 13
3 Abbreviations and definitions ..................................................................................................... 14
3.1 Abbreviations .......................................................................................................................... 14
3.2 Definitions ............................................................................................................................... 14
4 Modeling ........................................................................................................................................ 16
4.1 Field device model .................................................................................................................. 16
4.2 Communication reference model ............................................................................................ 17
4.2.1 General ............................................................................................................................ 17
4.2.2 CANopen application layer .............................................................................................. 17
4.2.2.1 General ........................................................................................................................ 17
4.2.2.2 Service primitives ........................................................................................................ 17
4.2.2.3 Application layer services ............................................................................................ 18
4.3 CANopen device model .......................................................................................................... 18
4.3.1 General ............................................................................................................................ 18
4.4 Communication protocol sequences ....................................................................................... 19
4.4.1 General ............................................................................................................................ 19
4.4.2 Master/slave protocol ....................................................................................................... 19
4.4.3 Client/server protocol ....................................................................................................... 20
4.4.4 Producer/consumer protocol – pull/push model .............................................................. 20
4.4.5 The object dictionary ........................................................................................................ 21
4.5 Network system model ............................................................................................................ 21
4.5.1 Device profile ................................................................................................................... 21
4.5.2 Application profile ............................................................................................................ 21
5 Physical layer ............................................................................................................................... 22
5.1 Reference to OSI model ......................................................................................................... 22
5.2 Medium dependent interface .................................................................................................. 22
5.3 Physical medium attachment .................................................................................................. 22
5.4 Physical signaling .................................................................................................................... 22
6 Data link layer ............................................................................................................................... 24
6.1 General ................................................................................................................................... 24
6.2 CAN frame type ....................................................................................................................... 24
7 Application layer .......................................................................................................................... 25
7.1 Data types and encoding rules ............................................................................................... 25
7.1.1 General description of data types and encoding rules .................................................... 25
7.1.2 Data type definitions ........................................................................................................ 25
7.1.3 Bit sequences .................................................................................................................. 26
7.1.3.1 Definition of bit sequences .......................................................................................... 26
7.1.3.2 Transfer syntax for bit sequences ............................................................................... 26
7.1.4 Basic data types............................................................................................................... 27
7.1.4.1 General ........................................................................................................................ 27
7.1.4.2 NIL ............................................................................................................................... 27

CANopen application layer and communication profile
4 © CiA 2011 – All rights reserved
7.1.4.3 Boolean ....................................................................................................................... 27
7.1.4.4 Void ............................................................................................................................. 27
7.1.4.5 Unsigned Integer ......................................................................................................... 27
7.1.4.6 Signed Integer ............................................................................................................. 28
7.1.4.7 Floating-Point Numbers ............................................................................................... 28
7.1.5 Compound data types ...................................................................................................... 29
7.1.6 Extended data types ........................................................................................................ 30
7.1.6.1 General ........................................................................................................................ 30
7.1.6.2 Octet String .................................................................................................................. 30
7.1.6.3 Visible String ................................................................................................................ 30
7.1.6.4 Unicode String ............................................................................................................. 30
7.1.6.5 Time of Day ................................................................................................................. 30
7.1.6.6 Time Difference ........................................................................................................... 30
7.1.6.7 Domain ........................................................................................................................ 31
7.2 Communication objects ........................................................................................................... 31
7.2.1 General ............................................................................................................................ 31
7.2.2 Process data object (PDO) .............................................................................................. 31
7.2.2.1 General ........................................................................................................................ 31
7.2.2.2 Transmission modes ................................................................................................... 32
7.2.2.3 Triggering modes ......................................................................................................... 33
7.2.2.4 PDO services ............................................................................................................... 33
7.2.2.4.1 General ............................................................................................................... 33
7.2.2.4.2 Service PDO write .............................................................................................. 33
7.2.2.4.3 Service PDO read ............................................................................................... 34
7.2.2.5 PDO protocol ............................................................................................................... 34
7.2.2.5.1 Protocol PDO write ............................................................................................. 34
7.2.2.5.2 Protocol PDO read .............................................................................................. 35
7.2.3 Multiplex PDO (MPDO) .................................................................................................... 35
7.2.3.1 General ........................................................................................................................ 35
7.2.3.2 MPDO address modes ................................................................................................ 35
7.2.3.2.1 Destination address mode (DAM) ...................................................................... 35
7.2.3.2.2 Source address mode (SAM) ............................................................................. 35
7.2.3.3 MPDO service ............................................................................................................. 36
7.2.3.3.1 General ............................................................................................................... 36
7.2.3.3.2 Service MPDO write ........................................................................................... 36
7.2.3.4 MPDO protocol ............................................................................................................ 36
7.2.3.4.1 Protocol MPDO write .......................................................................................... 36
7.2.4 Service data object (SDO) ............................................................................................... 37
7.2.4.1 General ........................................................................................................................ 37
7.2.4.2 SDO services ............................................................................................................... 38
7.2.4.2.1 General ............................................................................................................... 38
7.2.4.2.2 Service SDO download ....................................................................................... 39
7.2.4.2.3 Service SDO download initiate ........................................................................... 39
7.2.4.2.4 Service SDO download segment ........................................................................ 40
7.2.4.2.5 Service SDO upload ........................................................................................... 41
7.2.4.2.6 Service SDO upload initiate ................................................................................ 41
7.2.4.2.7 Service SDO upload segment ............................................................................ 42

CANopen application layer and communication profile
© CiA 2011 – All rights reserved 5
7.2.4.2.8 Service SDO block download ............................................................................. 43
7.2.4.2.9 Service SDO block download initiate .................................................................. 43
7.2.4.2.10 Service SDO block download sub-block ............................................................. 44
7.2.4.2.11 Service SDO block download end ...................................................................... 44
7.2.4.2.12 Service SDO block upload .................................................................................. 45
7.2.4.2.13 Service SDO block upload initiate ...................................................................... 45
7.2.4.2.14 Service SDO block upload sub-block ................................................................. 46
7.2.4.2.15 Service SDO block upload end ........................................................................... 47
7.2.4.2.16 Service SDO abort transfer ................................................................................. 47
7.2.4.3 SDO protocols ............................................................................................................. 48
7.2.4.3.1 General ............................................................................................................... 48
7.2.4.3.2 Protocol SDO download ..................................................................................... 48
7.2.4.3.3 Protocol SDO download initiate .......................................................................... 49
7.2.4.3.4 Protocol SDO download segment ...................................................................... 50
7.2.4.3.5 Protocol SDO upload .......................................................................................... 50
7.2.4.3.6 Protocol SDO upload initiate............................................................................... 51
7.2.4.3.7 Protocol SDO upload segment ........................................................................... 52
7.2.4.3.8 Protocol SDO block download ............................................................................ 53
7.2.4.3.9 Protocol SDO block download initiate ................................................................ 53
7.2.4.3.10 Protocol SDO block download sub-block ........................................................... 55
7.2.4.3.11 Protocol SDO block download end ..................................................................... 56
7.2.4.3.12 Protocol SDO block upload................................................................................. 57
7.2.4.3.13 Protocol SDO block upload initiate ..................................................................... 58
7.2.4.3.14 Protocol SDO block upload sub-block ................................................................ 59
7.2.4.3.15 Protocol SDO block upload end ......................................................................... 59
7.2.4.3.16 CRC calculation algorithm to verify SDO block transfer ..................................... 60
7.2.4.3.17 Protocol SDO abort transfer ............................................................................... 61
7.2.5 Synchronization object (SYNC) ....................................................................................... 62
7.2.5.1 General ........................................................................................................................ 62
7.2.5.2 SYNC services ............................................................................................................ 62
7.2.5.2.1 General ............................................................................................................... 62
7.2.5.2.2 Service SYNC write ............................................................................................ 62
7.2.5.3 SYNC protocol ............................................................................................................. 63
7.2.5.3.1 Protocol SYNC write ........................................................................................... 63
7.2.6 Time stamp object (TIME) ............................................................................................... 63
7.2.6.1 General ........................................................................................................................ 63
7.2.6.2 TIME services .............................................................................................................. 63
7.2.6.2.1 General ............................................................................................................... 63
7.2.6.2.2 Service TIME write .............................................................................................. 63
7.2.6.3 TIME protocol .............................................................................................................. 64
7.2.6.3.1 Protocol TIME write ............................................................................................ 64
7.2.7 Emergency object (EMCY) .............................................................................................. 64
7.2.7.1 Emergency object usage ............................................................................................. 64
7.2.7.2 Emergency object services ......................................................................................... 67
7.2.7.2.1 General ............................................................................................................... 67
7.2.7.2.2 Service EMCY write ............................................................................................ 67
7.2.7.3 Emergency object protocol .......................................................................................... 67
剩余157页未读,继续阅读


















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0