1、 KSKSKSKSKSKSKSK KSKSKS KSKSK KSKS KSK KS KS C IEC 61158 4-18 4-18: 18 KS C IEC 61158 4-18:2011 2011 12 30 http:/www.kats.go.krKS C IEC 61158 4-18:2011 : ( ) ( ) ( ) : (http:/www.standard.go.kr) : :2011 12 30 2011-0721 : :(IEC/TC65) ( 02-509-7294) (http:/www.kats.go.kr). 10 5 , . KS C IEC 61158 4-18
2、:2011 i . iv 1 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 18: 3 3.3 18: .4 4 DL- 4 4.1 .4 4.2 DLE .4 4.3 DLE .4 5 DLPDU 4 5.1 DL PhL .4 5.2 DLPDU 5 6 DLPDU .8 6.1 .8 6.2 8 6.3 9 6.4 11 7 DLPDU , .14 8 17 8.1 .17 8.2 - 17 8.3 A - 19 8.4 B - 20 8.5 C - .20 8.6 - .21 8.7 - .21 9 DL- .
3、22 9.1 .22 9.2 - DLE .23 9.3 - DLE .24 9.4 - DLE .25 9.5 - DLE .26 9.6 .28 KS C IEC 61158 4-18:2011 ii 9.7 .28 9.8 .28 9.9 29 30 1 HDLC .7 2 HDLC 7 3 - DLE 0 .8 4 - DLE 08 5 - DLE 09 6 - DLE 0 .10 7 - DLE 1 .10 8 - DLE 011 9 - DLE 111 10 - DLE .11 11 DLPDU- DLE 12 12 DLPDU- - DLE .13 13 - RY .14 14
4、- DLE RX 14 15 - DLE RWw 15 16 - DLE RWr 15 17 - 15 18 DLE .17 19 - DLE 17 20 DLPDU- 18 21 - DLE 18 22 DLPDU- .18 23 DLPDU .19 24 - DLE 19 25 DLPDU A .19 26 DLPDU B .20 27 DLPDU C .20 28 DLPDU .21 29 - DLE .21 30 - DLE .22 31 DLPDU .22 32 - DLE 22 33 DLPDU .23 34 - DLE 23 35 DLPDU .23 36 - DLE 24 37
5、 DLPDU 24 38 - DLE 25 39 DLPDU 26 40 DLPDU .26 KS C IEC 61158 4-18:2011 iii 41 - DLE .26 42 DLE - DLE 27 43 - DLE 27 44 - DLE .27 45 DLPDU .28 1 HDLC 6 KS C IEC 61158 4-18:2011 iv 2010 2 IEC 61158 4-18, Industrial communication networks Fieldbus specifications Part 4-18: Data-link layer protocol spe
6、cification Type 18 elements , . KS C IEC 61158 4-18:2011 4-18: 18 Industrial communication networks Fieldbus specifications Part 4-18: Data-link layer protocol specification Type 18 elements 1 1.1 . . a) , b) , , , . 1.2 . a) , b) DL- , 1 ms c) d) e) ISO/IEC 8802 3 f) DLPDUs 1.3 KS C IEC 61158 4-18:
7、2011 2 . a) DLPDU DL- (DLEs) b) DLS DL- (DLS) DLS- c) Ph- DLS- Ph- 1.4 OSI , . , . 1.5 . . 18 . 2 . . ( ) . KS X ISO/IEC 7498 1, 1: KS X ISO/IEC 7498 3, 3: ISO/IEC 13239: 2002, Information technology Telecommunications and information exchange between systems High-level data link control(HDLC) proce
8、dures 3 , , , , , , . 3.1 KS X ISO/IEC 7498 1 KS X ISO/IEC 7498 3 , . 3.1.1 DLE DLE KS C IEC 61158 4-18:2011 3 3.1.2 DLE DLE ( ) ( ) DLE . 3.1.3 DLE DLE 3.1.4 DLE DLE 3.1.5 - DLE DLE 3.1.6 DLE 3.1.7 / 3.1.8 DLE DLE 3.1.9 DLE DLE 3.1.10 DLE DLE 3.2 18: RX DLE DLE DLS RY DLE DLE DLS RWr DLE DLE DLS RW
9、w DLE DLE KS C IEC 61158 4-18:2011 4 DLS 3.3 18: 3.3.1 DLE DLE 3 . y A y B A y C B 4 DL- 4.1 18 DLE 4 . a) - DLE b) - DLE c) - DLE d) - DLE DLE . DLE DLE . 4.2 DLE - DLE DLE DLE . . 4.3 DLE - DLE DLE . DLE DLE . . 5 DLPDU 5.1 DL PhL 5.1.1 DLE 18 Ph-MDS . DLE 18 Ph-MDS . PhE , , , DLE KS C IEC 61158
10、4-18:2011 5 . 5.1.2 18 DLE . 1) 5.1 HDLC DLPDUs PhSDUs( ) 2) PH- ( ) 3) PH- (PhSDU) 4) PH- ( ) 5) 3) 4) 6) PH-DATA ( ) DLE PH- PhS . 5.1.3 18 DLE . 1) Ph- ( ) 2) Ph- (PhSDU) 3) Ph- ( ), 2) , 4) . 4) 5.1 HDLC PhSDUs(single bits) DLPDU . DLE PhS . 5.1.4 18 DLE PhE . PH- PH- ( ) 5.2 DLPDU 5.2.1 18 ISO/
11、IEC 13239: 2002 - (HDLC) . , HDLC . 5.2.2 DLE 5.2.2.1 3 HDLC ISO/IEC 13239: 2002 1 . KS C IEC 61158 4-18:2011 6 0 1 1 1 1 1 1 0 1 HDLC 5.2.2.2 3 HDLC (EOF) ISO/IEC 13239: 2002 1 . 5.2.3 DLE 5.2.3.1 HDLC ISO/IEC 13239: 2002 1 . 5.2.3.2 HDLC (EOF) ISO/IEC 13239: 2002 1 . 5.2.4 HDLC 5.2.4.1 KS X 9314 1
12、 NRZI . 5.2.4.2 5.2.5.1 , 5.2.5.2 . 5.2.4.3 (frame checking sequence field) 16- ( , CRC) DLE . 8- (CRC) DLE . 5.2.4.4 (header check sequence field) . 5.2.4.5 (operational mode) (NRM) . 5.2.4.6 / (basic transparency) . KS C IEC 61158 4-18:2011 7 5.2.4.7 DL HDLC 1 . 1 HDLC NRZI 16- /8- . / . 5.2.5 HDL
13、C 5.2.5.1 DLE 2- HDLC . ( 0). 5.2.5.2 DLE 2- HDLC . , . . 4- . 5.2.5.3 (inter-frame time fill) DLE HDLC . DLE 0 1 (stream) . 5.2.5.4 DLE HDLC 2 . 2 HDLC 16- 16- /4- 0-1 /1 . 5.2.6 KS C IEC 61158 4-18:2011 8 HDLC , , , ISO/IEC 13239: 2002 DLS- . a) b) crc- CRC c) - (abor-error) . d) - DLE . e) - . 6
14、DLPDU 6.1 DLPDU . 18 DLPDU , , . (zero length) 18 DL- . DLPDU 7. . 6.2 6.2.1 - DLE 2 . ( 0) 3 . ( 1) (DLE ) . 3 - DLE 0 () FF Poll-with-data FE Poll FD FC Poll-test FA End-of-cycle 6.2.2 - 2 . ( 0) (DLE ) . ( 1) 4 . 4 - DLE 0 () FF Poll-with-data-response FE Poll-response FD - response FC Poll-test-
15、response (echo) . KS C IEC 61158 4-18:2011 9 6.2.3 - 2 . ( 0) 5 . - DLE . ( 1) DLE DLE . ( ) 64 . 5 - DLE 0 () DE 9E 4 AE 8 BE 16 (poll-with-test-data) 9A 4 AA 8 BA 16 - DLE 5E 4 6E 8 7E 16 (poll-with-data) 6.2.4 - DLE - DLE 0( ) . 6.3 6.3.1 - DLE 2 . 6 7 . DL- DLSDU . KS C IEC 61158 4-18:2011 10 6
16、- DLE 0 0 DLS- (0 , 1 ) 1 DLS- (0 , 1 ) 2 (0 , 1 ) 3 (0 , 1 ) 4 (0 , 1 ) 5 6 6(0), 5(0) . 6(0), 5(1) . 6(1), 5(0) 6(1), 5(1) 7 DLE (0 , 1 ) 7 - DLE 1 0 0 1 32 2 64 3 96 4 128 5 160 6 192 7 224 8 256 3 0 9 15 0 0 1 64 2 128 3 192 4 256 5 320 6 384 7 448 8 512 7 4 9 15 6.3.2 - DLE 2 . 8 9 . DL- DLSDU
17、. KS C IEC 61158 4-18:2011 11 8 - DLE 0 0 DLS- (0 , 1 ) 1 DLS- (0 , 1 ) 2 (0 , 1 .) 3 DLE (0 , 1 .) 4 DLS- (0 , 1 ) 5 (0 , 1 ) 6 7 DLS- (0 , 1 WDT ) 9 - DLE 1 0 (0 , 1 ) 1 (0 , 1 ) 2 (0 / , 1 / ) 3 4 (0 , 1 ) 5 (1 ) 6 7 0 1 x ( .) 1 2 x 2 4 x 3 8 x 6.3.3 DLE DLE . 6.3.4 DLE DLE 10 4 . 10 - DLE 0 - D
18、LE (0 , 1 ) 1 - DLE (0 , 1 ) 2 ( ) 3 ( 0) 6.4 6.4.1 - DLE KS C IEC 61158 4-18:2011 12 6.4.1.1 , , 3 . 9. . 6.4.1.2 . 4 DLE (DLE 1 4 ). 6.4.1.3 - . 4 DLE (DLE 1 4 ). 6.4.1.4 11 . 11 DLPDU- DLE () 1 0 148 1 3 0 ( 0) - DLE: 4 7 1 7 (7 1 - 1 ) - DLE: 6 4 DL- . 7 - 0 1 0 1 7.1.3 . 0 1 b7 (0 , 1 ) b6 (0 , 1 ) b6 b0 0 1 DLE DLE 0 1 DLE - DLSDU DLE 0 144 7.1.3 6.4.2 - DLE 6.4.2.1 KS C IEC 61158 4-18:2011 13 - , - , 3 . 9. . 6.4.2.2 - - DLE . 4 . 6.4.2.3 - - DLE . 4 . 6.4.2.4