1、 KSKSKSKSKSKSKSK KSKSKS KSKSK KSKS KSK KS KS C IEC 61158 6-3 6-3: 3KS C IEC 61158 6-3:2011 2011 12 30 http:/www.kats.go.krKS C IEC 61158 6-3:2011 : ( ) ( ) ( ) () AC EP0604668 B1(18.02.1998) Logical ring with monitoring of rotation time EP0604669 A1(06.07.1994); EP0604669 B1(01.04.1998) Bus system w
2、ith monitoring of the activity state of participants IEC , . IEC . , IEC . . SI: Siemens AG CT IP L&T Hr. Hans Jrg Mller Otto Hahn Ring 6 D 81739 Munich Germany KS C IEC 61158 6-3:2011 6-3: 3 Industrial communication networks Fieldbus specifications Part 6-3: Application layer protocol specification
3、 Type 3 elements 1 1.1 (FAL) . , FAL “ ” . 3 (time-critical) (non-time-critical) . “ ” , (time-window) , . , . 3 (FAL) . a) (abstract syntax), b) (transfer syntax), c) (application context state machine) d) (application relation state machine) . a) KS C IEC 61158 5-3 (wire-representation) KS C IEC 6
4、1158 6-3:2011 2 b) OSI (KS X ISO 7498 1) OSI (KS X ISO/IEC 9545) 3 (FAL) . 1.2 KS C IEC 61158 5-3 . . IEC 61158 6 . 1.3 , . . . 2 . . ( ) . KS C IEC 61158 3-3, 3-3: 3 KS C IEC 61158 4-3, 4-3: 3 KS C IEC 61158 5-3, 5-3: 3 KS C IEC 61158 6-10, 6-10 : 10 KS C IEC 10731, KS X ISO 7498 1, 1: KS X ISO/IEC
5、 8824 1, 1(ASN.1) 1: KS X ISO/IEC 9545, IEC 60559, Binary floating point arithmetic for microprocessor systems ISO/IEC 8822, Information technology Open Systems Interconnection Presentation service definition 3 , , 3.1 3.1.1 KS X ISO 7498 1 KS C IEC 61158 6-3:2011 3 KS X ISO 7498 1 . a) (application
6、 entity) b) (application process) c) (application protocol data unit) d) (application service element) e) (application entity invocation) f) (application process invocation) g) (application transaction) h) (real open system) i) (transfer syntax) 3.1.2 ISO/IEC 8822 ISO/IEC 8822 . a) (abstract syntax)
7、 b) (presentation context) 3.1.3 KS X ISO/IEC 9545 KS X ISO/IEC 9545 . a) - (application-association) b) - (application-context) c) (application context name) d) - (application-entity-invocation) e) - (application-entity-type) f) - (application-process-invocation) g) - (application-process-type) h)
8、- (application-service-element) i) (application control service element) 3.1.4 KS X ISO/IEC 8824 1 KS X ISO/IEC 8824 1 : a) (object identifier) b) (type) 3.1.5 KS C IEC 61158-3-3 KS C IEC 61158-4-3 . a) DL-Time b) DL-Scheduling-policy c) DLCEP d) DLC KS C IEC 61158 6-3:2011 4 e) DL-connection-orient
9、ed mode f) DLPDU g) DLSDU h) DLSAP i) link j) network address k) node address l) node m) scheduled 3.2 3.2.1 (access protection) . 3.2.2 (address-assignment-table) I/O . 3.2.3 (channel) . 3.2.4 (channel related diagnosis) , 3.2.5 (configuration check) IO (start-up) IO . 3.2.6 (configuration fault) ,
10、 IO IO 3.2.7 (configuration identifier) / IO . 3.2.8 (configuration identifier related diagnosis) . 3.2.9 (control commands) , , KS C IEC 61158 6-3:2011 5 3.2.10 (data consistency) 3.2.11 (Data eXchange Broadcast, DXB) DP (Publisher) (Subscriber) , DP ( 1) DP 3.2.12 DL (default DL address) DL 126, D
11、P ( 1) ( , DL ) 3.2.13 (device related diagnosis) DP . 3.2.14 (diagnosis information) 3.2.15 (diagnosis information collection) 3.2.16 DP ( 1) DP ( ) . 3.2.17 DP ( 2) DP ( 1) ( ) , DP ( 1) 3.2.18 DP I/O DP ( 1) . , . 3.2.19 DXB DP , DP ( 1) DP DL KS C IEC 61158 6-3:2011 6 3.2.20 DXB DP ( 1) ( 127) 3
12、.2.21 (freeze) DP 3.2.22 (group) DP 3.2.23 I/O 3.2.24 (ident number) DP ( 1) DP 3.2.25 (index) 3.2.26 (isochronous mode) / DP DP DP DP ( 1) DP DP 3.2.27 (master parameter set) DP DP 3.2.28 (module) DP 3.2.29 (process data) 3.2.30 (publisher) APDU CR , CR APDU (publish) . KS C IEC 61158 6-3:2011 7 3.
13、2.31 (real configuration) , DP 3.2.32 (subscriber) APDU CREP 3.2.33 (slot) DP 3.2.34 (sync) DP 3.3 Ack (Acknowledgement) Add (Address) AP (Application Process) APDU (Application Protocol Data Unit) API (Application Process Identifier) AR (Application Relationship) AREP (Application Relationship End
14、Point) ARL (Application Relationship List) ASE (Application Service Element) Cfg (Configuration) cnf (confirmation primitive) CREP (Communication Relationship End Point) CRL (Communication Relationship List) D_ (Destination) DLL (Data Link Layer) DLM (Data Link management) DLSAP (Data Link Service A
15、ccess Point) DLSDU (Data Link Service Data Unit) DMPM (Data Link Mapping Protocol Machine) DMPMM1 DP (Data Link Mapping Protocol Machine DP master) ( 1) DMPMM2 DP (Data Link Mapping Protocol Machine DP master) ( 2) DMPMS DP (Data Link Mapping Protocol Machine DP slave) DSAP (Destination Service Acce
16、ss Point) DXB (Data eXchange Broadcast) FAL (Fieldbus Application Layer) FIFO (First In First Out) FSPMM1 FAL DP (FAL Service Protocol Machine DP master) ( 1) KS C IEC 61158 6-3:2011 8 FSPMM2 FAL DP (FAL Service Protocol Machine DP master) ( 2) FSPMS FAL DP (FAL Service Protocol Machine DP slave)HSA
17、 (Highest Station Address) I&M (Identification and Maintenance Profile) ID (Identifier) IEC (International Electrotechnical Commission) ind (indication primitive) Inp (Input) ISO (International Organization For Standardization) IsoM (Isochronous Mode) L_sdu (Link Service Data Unit) lsb (least signif
18、icant bit) msb (most significant bit) OSI (Open Systems Interconnection) Outp (Output) Param (Parameter) PDU (Protocol Data Unit) RD_ (Read) Rem (Remote) Req (Request) (APDU .) req (request primitive) REQ PDU (Request to indicate a Request PDU) RES PDU (Response to indicate a Response PDU) RM (Resou
19、rce Manager) RPL_UPD (Reply Update) Rsp (Response) (APDU .) rsp (response primitive) S_ (Source) SAP (Service Access Point) SCL (Security Level) SD (Start Delimiter) SDN (Send Data with no Acknowledge) SDR (Station Delay Responder) Seq (Sequence) Src (Source) SRD (Send and Request Data with Reply) S
20、SAP (Source Service Access Point) TR (Technical Report) USIF (User Interface) WD (Watchdog) 3.4 3.4.1 FAL ASE . ASE . ASE 3 . , . KS C IEC 61158 6-3:2011 9 2 KS C IEC 61158 5-3 . ASE . ASE . KS C IEC 61158 5-3 ASE . ASE . KS C IEC 10731 . 3.4.2 PDU . a) . . b) “ ” . c) “*” . . d) . e) . f) (substitu
21、tion) APDU ( ). g) “” . 1 PDU AP_PDU = Octet1, OctetGroup1, Octet2, Octet3, OctGroup2*, OctetGroup3 Octet4 ( ): 1: Octet1, OctetGroup1, Octet2, Octet3, OctetGroup2, OctetGroup3 2: Octet1, OctetGroup1, Octet2, Octet3, OctetGroup2, OctetGroup2, OctetGroup2, OctetGroup3 3: Octet1, OctetGroup1, OctetGro
22、up2, OctetGroup2, OctetGroup2, OctetGroup3, OctetGroup2 4: Octet1, OctetGroup1, OctetGroup2, OctetGroup3, OctetGroup2, OctetGroup2, OctetGroup2, OctetGroup2 5: Octet1, OctetGroup1, Octet3, Octet4 2 (arbitrary order) . 3 APDU DLSDU APDU 244 . 3.4.3 “ ” . 0 . . “ ” . . 3.4.4 KS C IEC 61158 6-3:2011 10
23、 APDU (primitive) (condensed) . 1 . msb lsb Octet 7 6 5 4 3 2 1 0 Bit Identification Bit 0Bit 1Bit 2Bit 3Bit 4Bit 5Bit 6Bit 7 1 . ( 0, 1 4) . . (alias name) ( ) . . , , 16 . 8 . 16 msb . 1 Bit 0: Bit 1 3: Reason_Code 2 . Bit 4 7: 1 . (msb) Bit 7 1, Bit 6 1, Bit 5 1, Bit 4 1, Bit 3 0, Bit 2 1, Bit 1
24、0, (lsb) Bit 0 0. 1 3 “0 1 0” 2 . 3.5 3.5.1 . , (state transition) . KS C IEC 61158 6-3:2011 11 . ( 1 ). . (current state) . “/” (Conditions) “=” (Actions) . (next state) . , . 1 . 2 . 1 # Current state Event or condition = action Next state 2 Description element Meaning Current state Next state Name of the given states. # Name or number of the state transition. Event Name or description of the event /Condition Boolean expression. The preceding “” is n