1、 KSKSKSKSKSKSKSK KSKSKS KSKSK KSKS KSK KS KS C IEC 61158 4-3 4-3: 3 KS C IEC 61158 4-3:2011 2011 12 30 http:/www.kats.go.krKS C IEC 61158 4-3:2011 : ( ) ( ) ( ) : (http:/www.standard.go.kr) : :2011 12 30 2011-0721 : : ( 02-509-7 294) (http:/www.kats.go.kr). 10 5 , . KS C IEC 61158 4-3:2011 i v vii 1
2、 1 1.1 .1 1.2 .1 1.3 .1 1.4 2 1.5 .2 2 2 3 , , .2 3.1 2 3.2 (Service convention terms and definitions).5 3.3 - (Common data-link service terms and definitions).6 3.4 3 (Additional Type 3 definitions).8 3.5 (Common symbols and abbreviations) 10 3.6 3 .11 4 DL- (Common DLS-protocol elements)17 4.1 (Fr
3、ame check sequence) .17 5 DL- 19 5.1 .20 5.2 .20 5.3 DL- .22 5.4 PhL .26 5.5 (Operational elements) .30 5.6 (Cycle and system reaction times)46 6 DLPDU 49 6.1 DLPDU (Granularity) .49 6.2 Length octet (LE, LEr) 50 6.3 (Address octet) .50 6.4 Control octet (FC).53 6.5 DLPDU (Content error detection).5
4、6 6.6 57 6.7 (Error control procedures) .58 7 DLPDU- , (DLPDU-specific structure, encoding and elements of procedure)58 7.1 DLPDU(DLPDUs of fixed length with no data field) .58 7.2 DLPDU(DLPDUs of fixed length with data field) 60 7.3 DLPDU(DLPDUs with variable data field length).62 7.4 (Token) DLPDU
5、.63 7.5 ASP DLPDU .64 KS C IEC 61158 4-3:2011 ii 7.6 DLPDU(SYNCH DLPDU) 64 7.7 (Time Event: TE) DLPDU64 7.8 (Clock Value: CV) DLPDU65 7.9 (Transmission procedures) 65 8 DLE (Other DLE elements of procedure)67 8.1 DL- (DL-entity initialization) .67 8.2 DL- (States of the media access control of the D
6、L-entity) 68 8.3 (Clock synchronization protocol) 74 A( ) DL- 80 A.1 80 A.2 (Variation of state machines in different devices).81 A.3 DL (DL Data Resource) .82 A.4 FLC/DLM 86 A.5 MAC119 A.6 SRU 155 B( ) 3( ): FCS 177 C( ) 3: .179 C.1 .179 C.2 : 180 C.3 .185 C.4 .185 187 1 TYPE 3 FCS , 17 2 - 20 3 .5
7、4 4 FCB, FCV56 5 68 A.1 82 A.2 82 A.3 DL- FLC 86 A.4 FLC DL- 87 A.5 DL- DLM 89 A.6 DLM DL- .89 A.7 DL- FLC 90 A.8 DL- DLM .90 A.9 FLC/DLM .91 A.10 FLC/DLM .110 A.11 DLM MAC 119 A.12 MAC DLM 120 A.13 DLM MAC 120 A.14 MAC .121 A.16 MAC .151 A.17 DLM SRC .158 KS C IEC 61158 4-3:2011 iii A.18 SRC DLM .1
8、58 A.19 MAC SRC 158 A.20 SRC MAC 159 A.21 MAC SRC 159 A.22 FC .159 A.23 SRC 160 A.24 SRC .160 A.25 SRC 176 1 DLSAP, DLSAP- DL- 7 2 - .23 3 PhL .27 4 TID1.33 5 TID2(SDN, CS)33 6 TID2(MSRD)33 7 TSL134 8 TSL234 9 TSL139 10 TSL240 11 .46 12 47 13 UART .49 14 Octet structure50 15 50 16 50 17 DLPDU DAE/SA
9、E 51 18 52 19 / DLPDU FC 53 20 DLPDU FC 53 21 FCS .56 22 .57 23 57 24 DLPDU 59 25 DLPDU 60 26 DLPDU 61 27 DLPDU 61 28 DLPDU 62 29 DLPDU 63 30 DLPDU63 31 DLPDU64 32 / DLPDU65 33 DLPDU / DLPDU .65 34 / DLPDU.66 35 / DLPDU66 36 DLPDU / DLPDU .66 37 / DLPDU.67 KS C IEC 61158 4-3:2011 iv 38 DL- - .69 39
10、76 40 .77 41 (Time receiver state machine).78 42 .79 A.1 .81 A.2 SRU .156 B.1 3 ( ) FCS .177 B.2 3( ) FCS 177 C.1 (TTH) .180 C.2 (TTH) .181 C.3 (TTH) ( TTH ) 182 C.4 (TTH) .184 KS C IEC 61158 4-3:2011 v . KS C IEC/TR 61158 1 “3 ”(three-layer) . - (data-link) - . - (DLE) . . a) b) c) d) OSI (time-cri
11、tical) , . OSI , . (IEC) 3 (normative elements) . SI 3 . EP0604668-A1 (06.07.1994); EP0604668-B1 (18.02.1998) (Logical ring with monitoring of rotation time) EP0604669-A1 (06.07.1994); EP0604669-B1 (01.04.1998) (Bus system with monitoring of the activity state of participants) IEC , . IEC . , IEC .
12、. SI: Siemens AG CT IP L . ( ) requestor.deliver (primitive) 3.2.4 ( ) deliver (primitive) 3.2.5 DL- - (DL-confirmed-facility) 3.2.6 DL- (DL-facility) 3.2.7 DL- - (DL-local-view) 3.2.8 DL- - (DL-mandatory-facility) KS C IEC 61158 4-3:2011 6 3.2.9 DL- - (DL-non-confirmed-facility) 3.2.10 DL- - - (DL-
13、provider-initiated-facility) 3.2.11 DL- - - (DL-provider-optional-facility) 3.2.12 DL- - (DL-service-primitive); (primitive) 3.2.13 DL- - (DL-service-provider) 3.2.14 DL- - (DL-service-user) 3.2.15 DLS- - (DLS-user-optional-facility) 3.2.16 ( ) indication (primitive); . ( ) acceptor.deliver (primiti
14、ve) 3.2.17 (multi-peer) 3.2.18 ( ) request (primitive); . ( ) requestor.submit (primitive) 3.2.19 (requestor) 3.2.20 ( ) response (primitive); . ( ) acceptor.submit (primitive) 3.2.21 ( ) submit (primitive) 3.2.22 (symmetrical service) 3.3 - (Common data-link service terms and definitions) . . 3.3.1
15、 DL- , , (DL-segment, link, local link) , DLE DL- DL- , DLE DL- 3.3.2 DLSAP DL- DL- KS X ISO/IEC 7498 1 , DLSAP DL- ( 1 ). KS C IEC 61158 4-3:2011 7 PhSA P PhSA P DL-entity DLS-user-entity DLS-user-entity DLSA P DLSA P DLSA P DLSA P- addresses group DL- address DLSA P- address Ph-layer DL-layer DLS-
16、use rs DLSA P- address 1 DLSAP PhSAP . 2 DL- DLSAP DLL ( ) . 3 DL- DLSAP- DLSAP DL- . 1 DLSAP, DLSAP- DL- 3.3.3 DL(SAP)- DL(SAP)-address DLS- DLSAP DLSAP- , DLS- DLSAP DL- KS X ISO/IEC 7498 3 DLSAP- DLS- DLSAP , . 3.3.4 ( ) DLSAP- (individual) DLSAP-address DLSAP DL- DL- DLSAP DLSAP- . 3.3.5 (extend
17、ed link) DL- (DL- ) , DL- (relay) DL- , DL- DL- . . KS C IEC 61158 4-3:2011 8 3.3.6 (frame) DLPDU 3.3.7 DL- (group DL-addres) DLSAP DL- . DL- DLSAP DL- . , DL- DLSAP DL- . 3.3.8 (node) DL- 3.3.9 DLS- (receiving DLS-user) DLS- DL- DL- DLS DLS- . 3.3.10 DLS- (sending DLS-user) DLS- - (source) DL- 3.4
18、3 (Additional Type 3 definitions) 3.4.1 DLPDU (acknowledge DLPDU) DLSDU DLPDU 3.4.2 (address extension) DLSAP / (region/segment address) 3.4.3 (bit time) 3.4.4 (confirmed message exchange) (request) (acknowledgement) DLPDU 3.4.5 (controller_type) 3.4.6 (current master) KS C IEC 61158 4-3:2011 9 3.4.
19、7 DLPDU (data DLPDU) DLS- DLS- DLSDU DLPDU 3.4.8 DL_ (DL_status) 3.4.9 GAP (token ring) (TS) (NS) (DLE) DL- , HSA . 3.4.10 GAP (GAP maintenance) 3.4.11 (isochronous mode) ( ) , DLS- ( ) 3.4.12 DLS- (local DLS-user) DLS- 3.4.13 (message exchange) 3.4.14 / (region/segment address) DL- . 3.4.15 (reques
20、t data) DLS- DLS- DLSDU 3.4.16 DLE (remote DLE) DLE( , / DLPDU DLE) 3.4.17 DLS- (remote DLS-user) DLS- ( , ) KS C IEC 61158 4-3:2011 10 3.4.18 DLPDU (reply DLPDU) DLE ( ) DLE DLE DLPDU DLE (publisher) , DLE DLPDU . 3.4.19 DLPDU (response DLPDU) DLSDU DLS- DLS- DLPDU 3.4.20 (send data) DLS- DLS- DLSD
21、U 3.4.21 / DLPDU (send/request DLPDU) DLS- DLS- , DLSDU DLPDU 3.4.22 (time master) DLPDU . 3.4.23 (time receiver) 3.4.24 (token holder) 3.4.25 (token passing) (ring) 3.5 (Common symbols and abbreviations) 3.5.1 3.5.1.1 DLPDU DL- 3.5.1.2 DLSDU DL- 3.5.1.3 PhIDU Ph- 3.5.1.4 PhPDU Ph KS C IEC 61158 4-3
22、:2011 11 3.5.2 (Miscellaneous) 3.5.2.1 DL- - ( ) 3.5.2.2 DLCEP DL- (DL-connection endpoint) 3.5.2.3 DLE DL- (DL-entity) ( ) 3.5.2.4 DLL DL- (DL-layer) 3.5.2.5 DLM- DL- (DL-management)( ) 3.5.2.6 DLMS DL- - (DL-management-service) 3.5.2.7 DLS DL- (DL-service) 3.5.2.8 DLSAP DL- (DL-service access poin
23、t) 3.5.2.9 FIFO (first-in first-out)( ) 3.5.2.10 LLC (logical link control) 3.5.2.11 MAC (medium access control) 3.5.2.12 OSI 3.5.2.13 Ph- ( ) 3.5.2.14 PhE Ph- ( ) 3.5.2.15 PhL Ph- 3.5.2.16 PhS Ph- 3.5.2.17 PhSAP Ph- 3.5.2.18 QoS 3.6 3 3.6.1 ACK DLPDU 3.6.2 ASM (active spare time message) 3.6.3 ASP
24、(active spare time period) 3.6.4 Bus ID ID, DL- ( /DL- ) KS C IEC 61158 4-3:2011 12 3.6.5 CRX (character receive execution) 3.6.6 CS (clock synchronization) 3.6.7 CTX (character transmit execution) 3.6.8 DA DLPDU (destination address) 3.6.9 DAE DLPDU , D_SAP_index / ID . 3.6.10 D_SAP , DLS- DLSAP 3.
25、6.11 D_SAP_index - DLE DLSAP DLS- DLSAP- . 3.6.12 DXM (data exchange multicast) 3.6.13 ED DLPDU (end delimiter) 3.6.14 EOA END-OF-ACTIVITY 3.6.15 EOD END-OF-DATA 3.6.16 EODA END-OF-DATA-AND-ACTIVITY 3.6.17 EXT DLPDU (address extension bit) 3.6.18 FC DLPDU (DLPDU ) 3.6.19 FCB DLPDU(FC ) , DLPDU 3.6.2
26、0 FCV DLPDU , FCB 3.6.21 FCS ( ) ( ) 3.6.22 FLC 3.6.23 G GAP , GAP ( ) 3.6.24 GAPL GAP , GAP . 3.6.25 IsoM 3.6.26 Hd , DLPDU , DLPDU KS C IEC 61158 4-3:2011 13 3.6.27 HSA (installed) ( ) 3.6.28 L , DLPDU FCS . 3.6.29 LE DLPDU 3.6.30 LEr DLPDU 3.6.31 LMS (list of master stations) 3.6.32 LR ( DL/DLM_status) 3.6.33 LS DL-service DLSAP( DL/DLM_status) 3.6.34 lsb 3.6.35 max (arithmetic maximum function) 3.6.36 MCT (multicast) 3.6.37 MP , 3.6.38 mr (number of retries) 3.6.39 msb 3.6.40 MSRD DLS: 3.6.41 mt (token rotation) 3.6.42 n 3.6.43 NA / ( DL/DLM_st