1、 IEC 61158-4-8 Edition 1.0 2007-12 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 4-8: Data-link layer protocol specification Type 8 elements Rseaux de communication industriels Spcifications de bus de terrain Partie 4-8: Spcification du pr
2、otocole de couche liaison de donnes lments de Type 8 IEC 61158-4-8:2007 THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2007 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 o
3、r mechanical, including photocopying 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
4、the address below or your 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
5、la photocopie et les microfilms, 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 nat
6、ional de la CEI de votre pays 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 publi
7、shes International Standards 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.
8、Useful links: IEC publications 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
9、.ch/justpublished Stay up 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 0
10、00 terms and definitions in 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,
11、 please contact the Customer 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 prop
12、os des publications CEI Le 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 pe
13、rmet de trouver des publications 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
14、 la CEI. Just Published dtaille 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
15、et en franais, ainsi que les 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-n
16、ous: csciec.ch. IEC 61158-4-8 Edition 1.0 2007-12 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 4-8: Data-link layer protocol specification Type 8 elements Rseaux de communication industriels Spcifications de bus de terrain Partie 4-8: Spc
17、ification du protocole de couche liaison de donnes lments de Type 8 INTERNATIONAL ELECTROTECHNICAL COMMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE XF ICS 35.100.20; 25.040.40 PRICE CODE CODE PRIX ISBN 978-2-83220-637-9 Registered trademark of the International Electrotechnical Commission Marqu
18、e dpose de la Commission Electrotechnique Internationale Warning! 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. 2 61158-4-8 IEC:2007 CONTENTS FOREWORD . 7 INTRODUCTION . 9
19、1 Scope . 10 1.1 General . 10 1.2 Specifications 10 1.3 Procedures 10 1.4 Applicability . 10 1.5 Conformance . 11 2 Normative references . 11 3 Terms, definitions, symbols and abbreviations 11 3.1 Reference model terms and definitions 11 3.2 Service convention terms and definitions . 12 3.3 Common t
20、erms and definitions 13 3.4 Additional Type 8 definitions 14 3.5 Symbols and abbreviations 15 4 DL-protocol 17 4.1 Overview . 17 4.2 DL-service Interface (DLI) . 18 4.3 Peripherals data link (PDL) 22 4.4 Basic Link Layer (BLL) 58 4.5 Medium Access Control (MAC) 74 4.6 Peripherals network management
21、for layer 2 (PNM2) 108 4.7 Parameters and monitoring times of the DLL . 116 Annex A (informative) Implementation possibilities of definite PNM2 functions . 122 A.1 Acquiring the current configuration 122 A.2 Comparing the acquired and stored configurations prior to a DL-subnetwork error 126 Bibliogr
22、aphy 132 Figure 1 Relationships of DLSAPs, DLSAP-addresses and group DL-addresses 13 Figure 2 Data Link Layer Entity 18 Figure 3 Location of the DLI in the DLL 18 Figure 4 State transition diagram of DLI . 20 Figure 5 Location of the PDL in the DLL . 22 Figure 6 PDL connection between slave and mast
23、er 23 Figure 7 Interface between PDL-user (DLI) and PDL in the layer model . 24 Figure 8 Overview of the PDL services 24 Figure 9 PDL_Data_Ack service between master and only one slave . 26 Figure 10 Parallel processing of PDL_Data_Ack services 26 Figure 11 PSM and GSM service for buffer access 26 F
24、igure 12 Buffer_Received service to indicate successful data transfer 27 Figure 13 Data flow between PDL-user, PDL and BLL of a PDL_Data_Ack service 30 Figure 14 Interface between PDL and PNM2 in the layer model . 30 61158-4-8 IEC:2007 3 Figure 15 Reset, Set Value and Get Value PDL services . 32 Fig
25、ure 16 Event PDL service 32 Figure 17 Transmit and receive FCBs on the master and slave sides . 35 Figure 18 Data transmission master slave with SWA Message 36 Figure 19 Time sequence of the data transmission master slave with SWA Message . 36 Figure 20 Data transmission slave master with SWA/RWA Me
26、ssage 37 Figure 21 Time sequence of the data transmission slave master with SWA/RWA Message . 37 Figure 22 Allocation of actions of the PDL protocol machines and data cycles . 38 Figure 23 Message transmission: master slave 39 Figure 24 Message transmission: slave master 39 Figure 25 Code octet of a
27、 PDLPDU 40 Figure 26 Structure of a message with a size of one word 41 Figure 27 Structure of a SPA Message 41 Figure 28 Structure of a SVA Message 42 Figure 29 Structure of a FCB_SET Message 42 Figure 30 Structure of a RWA Message . 42 Figure 31 Structure of a SWA Message . 43 Figure 32 Structure o
28、f a confirmation for SPA or SVA Messages 43 Figure 33 Structure of a FCB_SET as confirmation 43 Figure 34 Structure of the data octet for FCB_SET as requests and confirmations . 43 Figure 35 Structure of a message with a size of more than one word . 44 Figure 36 PDL base protocol machine 45 Figure 3
29、7 Locations of the PDL and the PDL protocol machines in the master and slaves . 48 Figure 38 PDL protocol machine 49 Figure 39 TRANSMIT protocol machine . 52 Figure 40 RECEIVE protocol machine 55 Figure 41 Location of the BLL in the DLL . 58 Figure 42 Interface between PDL and BLL in the layer model
30、 59 Figure 43 BLL_Data service . 60 Figure 44 Interface between PNM2 and BLL in the layer model 62 Figure 45 Reset, Set Value and Get Value BLL services 64 Figure 46 Event BLL service 64 Figure 47 BLL operating protocol machine of the master 68 Figure 48 BLL-BAC protocol machine 70 Figure 49 BLL ope
31、rating protocol machine of the slave 73 Figure 50 Location of the MAC in the DLL 74 Figure 51 Model details of layers 1 and 2 . 75 Figure 52 DLPDU cycle of a data sequence without errors . 76 Figure 53 DLPDU cycle of a data sequence with errors 76 Figure 54 Data sequence DLPDU transmitted by the mas
32、ter 77 Figure 55 Data sequence DLPDU received by the master 77 4 61158-4-8 IEC:2007 Figure 56 Check sequence DLPDU 77 Figure 57 Loopback word (LBW) 77 Figure 58 Checksum status generated by the master . 80 Figure 59 Checksum status received by the master . 80 Figure 60 MAC protocol machine of a mast
33、er: transmission of a message . 81 Figure 61 MAC protocol machine of a master: receipt of a message 84 Figure 62 MAC sublayer of a master: data sequence identification . 88 Figure 63 Data sequence DLPDU received by a slave 91 Figure 64 Data sequence DLPDU transmitted by a slave . 91 Figure 65 Checks
34、um status received by the slave 91 Figure 66 Checksum status generated by the slave . 92 Figure 67 State transitions of the MAC sublayer of a slave: data sequence 93 Figure 68 State transitions of the MAC sublayer of a slave: check sequence . 94 Figure 69 Interface between MAC-user and MAC in the la
35、yer model 99 Figure 70 Interactions at the MAC-user interface (master) . 100 Figure 71 Interactions at the MAC-user interface (slave) 101 Figure 72 Interface between MAC and PNM2 in the layer model 104 Figure 73 Reset, Set Value and Get Value MAC services. 106 Figure 74 Event MAC service . 106 Figur
36、e 75 Location of the PNM2 in the DLL 108 Figure 76 Interface between PNM2-user and PNM2 in the layer model 109 Figure 77 Reset, Set Value, Get Value and Get Active Configuration services . 111 Figure 78 Event PNM2 service . 111 Figure 79 Set Active Configuration, Get Current Configuration service .
37、111 Figure 80 The active_configuration parameter . 115 Figure 81 Device code structure 118 Figure 82 Relations between data width, process data channel and parameter channel . 120 Figure 83 Structure of the control code 121 Figure A.1 DL-subnetwork configuration in the form of a tree structure 122 F
38、igure A.2 State machine for the acquisition of the current configuration . 124 Figure A.3 State machine for comparing two configurations . 128 Figure A.4 State machine for comparing one line of two configuration matrices 130 Table 1 Primitives issued by DLS-/DLMS-user to DLI . 19 Table 2 Primitives
39、issued by DLI to DLS-/DLMS-user . 19 Table 3 DLI state table sender transactions 20 Table 4 DLI state table receiver transactions 21 Table 5 Function GetOffset 22 Table 6 Function GetLength . 22 Table 7 Function GetRemAdd 22 Table 8 Function GetDlsUserId 22 Table 9 PDL_Data_Ack 27 61158-4-8 IEC:2007
40、 5 Table 10 PDL_Data_Ack L_status values . 27 Table 11 PSM 28 Table 12 GSM 28 Table 13 PDL_Reset 32 Table 14 PDL_Set_Value . 32 Table 15 PDL variables 33 Table 16 PDL_Get_Value. 33 Table 17 PDL_Event 34 Table 18 Events . 34 Table 19 Encoding of the L_status . 40 Table 20 FCT code (PDLPDU-Types) 40 T
41、able 21 State transitions of the PDL base protocol machine . 46 Table 22 Counters of the PDL protocol machines . 48 Table 23 Meaning of the “connection“ flag . 49 Table 24 State transitions of the PDL protocol machine . 50 Table 25 State transitions of the TRANSMIT protocol machine 53 Table 26 State
42、 transitions of the RECEIVE protocol machine . 55 Table 27 BLL_Data 61 Table 28 BLL_Data 64 Table 29 BLL_Reset 65 Table 30 BLL_Set_Value . 65 Table 31 BLL variables 66 Table 32 BLL_Get_Value . 66 Table 33 BLL_Event. 66 Table 34 BLL_Event. 67 Table 35 State transitions of the BLL operating protocol m
43、achine of the master . 69 Table 36 State transitions of the BLL-BAC protocol machine 71 Table 37 State transitions of the BLL operating protocol machine of the slave . 73 Table 38 FCS length and polynomial 78 Table 39 MAC_Reset . 106 Table 40 MAC_Set_Value 106 Table 41 MAC variables . 107 Table 42 M
44、AC_Get_Value 107 Table 43 MAC_Event . 107 Table 44 MAC_Event . 108 Table 45 PNM2_Reset . 112 Table 46 M_status values of the PNM2_Reset . 112 Table 47 PNM2_Set_Value 112 Table 48 M_status values of the PNM2_Set_Value 113 Table 49 PNM2_Get_Value 113 Table 50 M_status values of the PNM2_Get_Value 113
45、Table 51 PNM2_Event . 114 Table 52 MAC Events 114 6 61158-4-8 IEC:2007 Table 53 PNM2_Get_Current_Configuration 114 Table 54 PNM2_Get_Active_Configuration 115 Table 55 PNM2_Set_Active_Configuration . 116 Table 56 Data direction 118 Table 57 Number of the occupied octets in the parameter channel . 119
46、 Table 58 Device class 119 Table 59 Control data 119 Table 60 Data width . 120 Table 61 Medium control 121 Table A.1 DL-subnetwork configuration in the form of a matrix . 123 Table A.2 Acquire_Configuration 123 Table A.3 State transitions of the state machine for the acquisition of the current confi
47、guration . 125 Table A.4 Check_Configuration 126 Table A.5 Compare_Slave . 127 Table A.6 State transitions of the state machine for comparing two configurations . 129 Table A.7 State transitions of the state machine for comparing one line of two configuration matrixes . 131 61158-4-8 IEC:2007 7 INTE
48、RNATIONAL ELECTROTECHNICAL COMMISSION _ INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 4-8: Data-link layer protocol specification Type 8 elements FOREWORD 1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC National Committees). The object of IEC is to promote international co-operat