1、 IEC 61131-9 Edition 1.0 2013-09 INTERNATIONAL STANDARD NORME INTERNATIONALE Programmable controllers Part 9: Single-drop digital communication interface for small sensors and actuators (SDCI) Automates programmables Partie 9: Interface de communication numrique point point pour petits capteurs et a
2、ctionneurs (SDCI) IEC61131-9:2013 colourinsideTHIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2013 IEC, Geneva, Switzerland 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 ph
3、otocopying and microfilm, without permission in writing from either IEC or IECs member National Committee in the country of the requester. If you have any questions about IEC copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or your
4、local IEC member National Committee for further information. Droits de reproduction rservs. Sauf indication contraire, aucune partie de cette publication ne peut tre reproduite ni utilise sous quelque forme que ce soit et par aucun procd, lectronique ou mcanique, y compris la photocopie et les micro
5、films, sans laccord crit de la CEI ou du Comit national de la CEI du pays du demandeur. Si vous avez des questions sur le copyright de la CEI ou si vous dsirez obtenir des droits supplmentaires sur cette publication, utilisez les coordonnes ci-aprs ou contactez le Comit national de la CEI de votre p
6、ays de rsidence. IEC Central Office Tel.: +41 22 919 02 11 3, rue de Varemb Fax: +41 22 919 03 00 CH-1211 Geneva 20 infoiec.ch Switzerland www.iec.ch About the IEC The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes International Standar
7、ds for all electrical, electronic and related technologies. About IEC publications The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the latest edition, a corrigenda or an amendment might have been published. Useful links: IEC publicat
8、ions search - www.iec.ch/searchpub The advanced search enables you to find IEC publications by a variety of criteria (reference number, text, technical committee,). It also gives information on projects, replaced and withdrawn publications. IEC Just Published - webstore.iec.ch/justpublished Stay up
9、to date on all new IEC publications. Just Published details all new publications released. Available on-line and also once a month by email. Electropedia - www.electropedia.org The worlds leading online dictionary of electronic and electrical terms containing more than 30 000 terms and definitions i
10、n English and French, with equivalent terms in additional languages. Also known as the International Electrotechnical Vocabulary (IEV) on-line. Customer Service Centre - webstore.iec.ch/csc If you wish to give us your feedback on this publication or need further assistance, please contact the Custom
11、er Service Centre: csciec.ch. A propos de la CEI La Commission Electrotechnique Internationale (CEI) est la premire organisation mondiale qui labore et publie des Normes internationales pour tout ce qui a trait llectricit, llectronique et aux technologies apparentes. A propos des publications CEI Le
12、 contenu technique des publications de la CEI est constamment revu. Veuillez vous assurer que vous possdez ldition la plus rcente, un corrigendum ou amendement peut avoir t publi. Liens utiles: Recherche de publications CEI - www.iec.ch/searchpub La recherche avance vous permet de trouver des public
13、ations CEI en utilisant diffrents critres (numro de rfrence, texte, comit dtudes,). Elle donne aussi des informations sur les projets et les publications remplaces ou retires. Just Published CEI - webstore.iec.ch/justpublished Restez inform sur les nouvelles publications de la CEI. Just Published dt
14、aille les nouvelles publications parues. Disponible en ligne et aussi une fois par mois par email. Electropedia - www.electropedia.org Le premier dictionnaire en ligne au monde de termes lectroniques et lectriques. Il contient plus de 30 000 termes et dfinitions en anglais et en franais, ainsi que l
15、es termes quivalents dans les langues additionnelles. Egalement appel Vocabulaire Electrotechnique International (VEI) en ligne. Service Clients - webstore.iec.ch/csc Si vous dsirez nous donner des commentaires sur cette publication ou si vous avez des questions contactez-nous: csciec.ch. IEC 61131-
16、9 Edition 1.0 2013-09 INTERNATIONAL STANDARD NORME INTERNATIONALE Programmable controllers Part 9: Single-drop digital communication interface for small sensors and actuators (SDCI) Automates programmables Partie 9: Interface de communication numrique point point pour petits capteurs et actionneurs
17、(SDCI) INTERNATIONAL ELECTROTECHNICAL COMMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE XH ICS 25.040.40; 35.240.50 PRICE CODE CODE PRIX ISBN 978-2-8322-1076-5 Registered trademark of the International Electrotechnical Commission Marque dpose de la Commission Electrotechnique Internationale Warn
18、ing! Make sure that you obtained this publication from an authorized distributor. Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agr. colourinside 2 61131-9 IEC:2013 CONTENTS FOREWORD . 14 INTRODUCTION . 16 1 Scope . 18 2 Normative references . 18 3 Terms
19、, definitions, symbols, abbreviated terms and conventions 19 3.1 Terms and definitions 19 3.2 Symbols and abbreviated terms. 23 3.3 Conventions 25 3.3.1 General . 25 3.3.2 Service parameters . 25 3.3.3 Service procedures 26 3.3.4 Service attributes 26 3.3.5 Figures 26 3.3.6 Transmission octet order
20、. 26 3.3.7 Behavioral descriptions . 27 4 Overview of SDCI (IO-LinkTM) . 27 4.1 Purpose of technology . 27 4.2 Positioning within the automation hierarchy . 28 4.3 Wiring, connectors and power . 29 4.4 Communication features of SDCI . 29 4.5 Role of a Master 31 4.6 SDCI configuration 32 4.7 Mapping
21、to fieldbuses . 32 4.8 Standard structure . 32 5 Physical Layer (PL) 33 5.1 General . 33 5.1.1 Basics . 33 5.1.2 Topology . 33 5.2 Physical layer services 34 5.2.1 Overview . 34 5.2.2 PL services 35 5.3 Transmitter/Receiver . 37 5.3.1 Description method 37 5.3.2 Electrical requirements 37 5.3.3 Timi
22、ng requirements 41 5.4 Power supply . 44 5.4.1 Power supply options 44 5.4.2 Power-on requirements 45 5.5 Medium . 45 5.5.1 Connectors 45 5.5.2 Cable. 47 6 Standard Input and Output (SIO) 48 7 Data link layer (DL) 48 7.1 General . 48 7.2 Data link layer services . 50 7.2.1 DL-B services 50 61131-9 I
23、EC:2013 3 7.2.2 DL-A services 61 7.3 Data link layer protocol 66 7.3.1 Overview . 66 7.3.2 DL-mode handler . 67 7.3.3 Message handler . 75 7.3.4 Process Data handler 82 7.3.5 On-request Data handler . 85 7.3.6 ISDU handler . 88 7.3.7 Command handler . 92 7.3.8 Event handler 95 8 Application layer (A
24、L) . 98 8.1 General . 98 8.2 Application layer services 99 8.2.1 AL services within Master and Device 99 8.2.2 AL Services . 100 8.3 Application layer protocol 108 8.3.1 Overview . 108 8.3.2 On-request Data transfer . 108 8.3.3 Event processing . 114 8.3.4 Process Data cycles 117 9 System management
25、 (SM) . 118 9.1 General . 118 9.2 System management of the Master . 118 9.2.1 Overview . 118 9.2.2 SM Master services . 120 9.2.3 SM Master protocol . 125 9.3 System management of the Device . 133 9.3.1 Overview . 133 9.3.2 SM Device services . 135 9.3.3 SM Device protocol . 141 10 Device 148 10.1 O
26、verview . 148 10.2 Process Data Exchange (PDE) 149 10.3 Parameter Manager (PM) 149 10.3.1 General . 149 10.3.2 Parameter manager state machine 149 10.3.3 Dynamic parameter . 151 10.3.4 Single parameter . 152 10.3.5 Block parameter 153 10.3.6 Concurrent parameterization access 155 10.3.7 Command hand
27、ling 155 10.4 Data Storage (DS) . 155 10.4.1 General . 155 10.4.2 Data Storage state machine 155 10.4.3 DS configuration 157 10.4.4 DS memory space . 157 10.4.5 DS Index_List 158 10.4.6 DS parameter availability . 158 10.4.7 DS without ISDU 158 4 61131-9 IEC:2013 10.4.8 DS parameter change indicatio
28、n 158 10.5 Event Dispatcher (ED) . 158 10.6 Device features . 158 10.6.1 General . 158 10.6.2 Device backward compatibility . 159 10.6.3 Protocol revision compatibility . 159 10.6.4 Factory settings . 159 10.6.5 Application reset 159 10.6.6 Device reset 159 10.6.7 Visual SDCI indication . 159 10.6.8
29、 Parameter access locking 160 10.6.9 Data Storage locking . 160 10.6.10 Device parameter locking 160 10.6.11 Device user interface locking . 160 10.6.12 Offset time . 160 10.6.13 Data Storage concept 161 10.6.14 Block Parameter 161 10.7 Device design rules and constraints 161 10.7.1 General . 161 10
30、.7.2 Process Data . 161 10.7.3 Communication loss 161 10.7.4 Direct Parameter . 161 10.7.5 ISDU communication channel 162 10.7.6 DeviceID rules related to Device variants 162 10.7.7 Protocol constants . 162 10.8 IO Device description (IODD) 163 10.9 Device diagnosis . 163 10.9.1 Concepts . 163 10.9.
31、2 Events . 164 10.9.3 Visual indicators 165 10.10 Device connectivity . 166 11 Master 166 11.1 Overview . 166 11.1.1 Generic model for the system integration of a Master 166 11.1.2 Structure and services of a Master 166 11.2 Configuration Manager (CM) . 169 11.2.1 General . 169 11.2.2 Configuration
32、parameter 171 11.2.3 State machine of the Configuration Manager . 173 11.3 Data Storage (DS) . 175 11.3.1 Overview . 175 11.3.2 DS data object . 175 11.3.3 DS state machine 175 11.3.4 Parameter selection for Data Storage 181 11.4 On-Request Data exchange (ODE) 181 11.5 Diagnosis Unit (DU) . 182 11.6
33、 PD Exchange (PDE) 183 11.6.1 General . 183 11.6.2 Process Data mapping. 183 61131-9 IEC:2013 5 11.6.3 Process Data invalid/valid qualifier status 184 11.7 Port and Device configuration tool (PDCT) 185 11.7.1 General . 185 11.7.2 Basic layout examples . 185 11.8 Gateway application 186 11.8.1 Genera
34、l . 186 11.8.2 Changing Device configuration including Data Storage 186 11.8.3 Parameter server and recipe control 186 11.8.4 Anonymous parameters . 186 11.8.5 Virtual port mode DIwithSDCI 187 Annex A (normative) Codings, timing constraints, and errors . 190 Annex B (normative) Parameter and command
35、s 211 Annex C (normative) ErrorTypes (ISDU errors) 228 Annex D (normative) EventCodes (diagnosis information) 233 Annex E (normative) Data types 236 Annex F (normative) Structure of the Data Storage data object 247 Annex G (normative) Master and Device conformity . 248 Annex H (informative) Residual
36、 error probabilities . 254 Annex I (informative) Example sequence of an ISDU transmission . 256 Annex J (informative) Recommended methods for detecting parameter changes . 258 Bibliography 259 Figure 1 Example of a confirmed service . 26 Figure 2 Memory storage and transmission order for WORD based
37、data types 27 Figure 3 SDCI compatibility with IEC 61131-2 27 Figure 4 Domain of the SDCI technology within the automation hierarchy 28 Figure 5 Generic Device model for SDCI (Masters view) . 29 Figure 6 Relationship between nature of data and transmission types 30 Figure 7 Object transfer at the ap
38、plication layer level (AL) . 31 Figure 8 Logical structure of Master and Device. 32 Figure 9 Three wire connection system 33 Figure 10 Topology of SDCI . 34 Figure 11 Physical layer (Master) . 34 Figure 12 Physical layer (Device) . 35 Figure 13 Line driver reference schematics 37 Figure 14 Receiver
39、reference schematics 37 Figure 15 Reference schematics for SDCI 3-wire connection system . 38 Figure 16 Voltage level definitions . 38 Figure 17 Switching thresholds 39 Figure 18 Format of an SDCI UART frame . 41 Figure 19 Eye diagram for the H and L detection 42 Figure 20 Eye diagram for the correc
40、t detection of a UART frame 42 Figure 21 Wake-up request 44 Figure 22 Power-on timing for Power1 . 45 6 61131-9 IEC:2013 Figure 23 Pin layout front view . 46 Figure 24 Class A and B port definitions 47 Figure 25 Reference schematic for effective line capacitance and loop resistance . 47 Figure 26 St
41、ructure and services of the data link layer (Master) . 49 Figure 27 Structure and services of the data link layer (Device) . 49 Figure 28 State machines of the data link layer 67 Figure 29 Example of an attempt to establish communication 67 Figure 30 Failed attempt to establish communication . 68 Fi
42、gure 31 Retry strategy to establish communication . 68 Figure 32 Fallback procedure . 69 Figure 33 State machine of the Master DL-mode handler . 70 Figure 34 Submachine 1 to establish communication . 71 Figure 35 State machine of the Device DL-mode handler . 73 Figure 36 SDCI message sequences . 75
43、Figure 37 Overview of M-sequence types . 76 Figure 38 State machine of the Master message handler . 77 Figure 39 Submachine “Response 3“ of the message handler 78 Figure 40 Submachine “Response 8“ of the message handler 78 Figure 41 Submachine “Response 15“ of the message handler 78 Figure 42 State
44、machine of the Device message handler . 81 Figure 43 Interleave mode for the segmented transmission of Process Data 83 Figure 44 State machine of the Master Process Data handler 83 Figure 45 State machine of the Device Process Data handler 85 Figure 46 State machine of the Master On-request Data han
45、dler . 86 Figure 47 State machine of the Device On-request Data handler . 87 Figure 48 Structure of the ISDU . 88 Figure 49 State machine of the Master ISDU handler . 90 Figure 50 State machine of the Device ISDU handler . 91 Figure 51 State machine of the Master command handler 93 Figure 52 State m
46、achine of the Device command handler 94 Figure 53 State machine of the Master Event handler 96 Figure 54 State machine of the Device Event handler 97 Figure 55 Structure and services of the application layer (Master) . 98 Figure 56 Structure and services of the application layer (Device) . 99 Figure
47、 57 OD state machine of the Master AL 109 Figure 58 OD state machine of the Device AL 110 Figure 59 Sequence diagram for the transmission of On-request Data . 112 Figure 60 Sequence diagram for On-request Data in case of errors . 113 Figure 61 Sequence diagram for On-request Data in case of timeout
48、. 113 Figure 62 Event state machine of the Master AL 114 Figure 63 Event state machine of the Device AL 115 Figure 64 Single Event scheduling . 116 Figure 65 Sequence diagram for output Process Data 117 61131-9 IEC:2013 7 Figure 66 Sequence diagram for input Process Data 118 Figure 67 Structure and
49、services of the Master system management . 119 Figure 68 Sequence chart of the use case “port x setup“ . 120 Figure 69 Main state machine of the Master system management 126 Figure 70 SM Master submachine CheckCompatibility_1 . 128 Figure 71 Activity for state “CheckVxy“ 130 Figure 72 Activity for state “CheckCompV10“ . 130 F