• 【profinet】从站开发要点


    目录

    0、常见缩写及关键字注释

    1、profinet简介

    2、profinet协议栈

    3、profinet数据帧

    4、profinet网络解决方案示例

    5、Application areas

    6、FAL体系结构组成部分

    7、PTCP服务

    8、MRP媒体冗余服务

    9、RPC服务

    10、应用过程

    11、应用关系

    12、ASE


    注:本文主要简述profinet从站开发涉及到的知识点。【不足之处后续慢慢补充】。

    0、常见缩写及关键字注释

    1. MRP: Media Redundancy Manager,媒体冗余管理。
    2. MRP 定义了环中节点的类型:一个节点是 Media Redundancy Manager(MRM),
    3. 其它节点是 Media Redundancy Clients (MRC). MRM 监视着PROFINET ring。
    4. Test Packets 成功,表明环是好的, MRM forwards no data between its ring ports。
    5. 只要网络连接由MRP恢复的时间小于: 3x cyclic I/O update rate ( othersupplier might 1~10x) ; 则无扰。
    6. PROFINET IO 协议是允许网络间歇中断的。
    7. DAP: Device Access Point
    8. LLDP: Link Layer Discovery Protocol (see IEEE 802.1AB-2009)
    9. NAP: Network Access Point (PNIO interface with its port submodules, see PNO-7.122 PROFINET
    10. IO System Redundancy)
    11. SAP: Service Access Point
    12. UUID: Universally Unique Identifier (see ISO/IEC 11578:1996)
    13. Signal: A process data object with acertain type, for example a UINT32 counter.
    14. Terminology and abbreviations
    15. =============================
    16. Abstract syntax
    17. Describes the parts (and their subparts) of different messages. See also "Transfer syntax".
    18. Configuration
    19. IO-device and IO-controller definition in an engineering tool.
    20. Commissioning
    21. Device initialization (Configuration is downloaded to IO-controller).
    22. Engineering tool
    23. A desktop program for configuring PLC. For example Siemens TIA portal.
    24. Interface
    25. Abstract group of ports. In Profinet context, interface typically doesn't mean a
    26. specific network interface. This is a common cause of confusion.
    27. Parameterization
    28. Write parameter values to all submodules. Parameterization is done via
    29. the Write and Control commands.
    30. Port
    31. Network interface. The physical connectors are referred to as "physical ports".
    32. A "management port" is the network interface to which a controller / PLC connects.
    33. Record data
    34. Data that can be accessed with acyclic Profinet Read and Write. Addressed by
    35. slot, subslot and index.
    36. Transfer syntax
    37. Coding of the different fields in a message. See also "Abstract syntax".
    38. Abbreviations
    39. -------------
    40. ACK
    41. Positively acknowledge
    42. AKA
    43. Also Known As
    44. ALPMI
    45. Alarm Protocol Machine Initiator. Trigger alarms.
    46. ALPMR
    47. Alarm Protocol Machine Responder. Responds to incoming alarms.
    48. ALPMX
    49. General term for ALPMI and ALPMR
    50. AMR
    51. Asset Management Record
    52. AP
    53. Application Process
    54. APDU
    55. Application (layer) Protocol Data Unit
    56. API
    57. Application Process Identifier (uint32). Used to differentiate between for example user profiles. Sometimes named "Profile ID".
    58. API
    59. Application Programming Interface. Application implementers use the API of the P-Net Profinet stack.
    60. APMR
    61. Acyclic Protocol Machine Receiver. Receives incoming alarm frames.
    62. APMS
    63. Acyclic Protocol Machine Sender. Sends alarm frames.
    64. APMX
    65. General term for APMR and APMS
    66. APO
    67. Application Process Object
    68. AR
    69. Application Relation. Consists of several communication relations (CR). Typically an IO AR, which is a connection to a PLC, but can also be an Supervisor AR.
    70. ARP
    71. Address Resolution Protocol, used to translate from an IP address to a MAC address.
    72. AREP
    73. Application Relationship End Point (uint32), pretty much an index into an array of AR.
    74. ASDU
    75. Application Service Data Unit
    76. ASE
    77. Application Service Element. For example logbook, time and diagnosis.
    78. CBA
    79. Component Based Automation, for the legacy Profinet CBA system. It used communication profile CP 3/3.
    80. CC
    81. Conformance Class (Performance level A to D)
    82. CDML
    83. Controller Description Markup Language. An XML file describing a controller, for certification.
    84. CE
    85. A marking for European Union declaration of conformity
    86. CIDR
    87. Classless Inter-Domain Routing. The CIDR notation ``/24`` tells how many bits of the netmask that should be enabled.
    88. CIM
    89. Communication Interface Management
    90. CiR
    91. Configuration in Run
    92. CM
    93. Context Management
    94. CMDEV
    95. Context Management Protocol Machine Device
    96. CMI
    97. CM Initiator
    98. CMINA
    99. Context Management Ip and Name Assignment protocol machine
    100. CMIO
    101. Context Management Input Output protocol machine
    102. CMPBE
    103. Context Management Parameter Begin End protocol machine
    104. CMRDR
    105. Context Management Read Record Responder protocol machine, responds to parameter read from the IO-controller.
    106. CMRPC
    107. Context Management RPC protocol machine
    108. CMWRR
    109. Context Management Write Record Responder protocol machine, responds to parameter write from the IO-controller.
    110. CMSM
    111. Context Management Surveillance protocol Machine, monitors the establishment of a connection. Also written as CM Server Protocol machine.
    112. CP
    113. Communication Profile. For example Profinet conformance class B is also known as CP 3/5.
    114. CPF
    115. Communication Profile Family. Profinet and Profibus is CPF = 3, Ethercat is CPF = 12.
    116. CPM
    117. Consumer Protocol Machine, for receiving cyclic data.
    118. CPU
    119. Central Processing Unit
    120. CR
    121. Communication Relation (Part of AR).
    122. CREP
    123. Communication Relationship EndPoint (uint32), pretty much an index into an array of input and output CR.
    124. DA
    125. Destination Address. It is the MAC address of the receiver.
    126. DAP
    127. Device Access Point
    128. DCE
    129. Distributed Computing Environment. Used with RPC.
    130. DCP
    131. Discovery and basic Configuration Protocol. Runs over Ethernet layer 2 (not IP or UDP).
    132. DFP
    133. Dynamic Frame Packing. Used with IRT protocol.
    134. DHCP
    135. Dynamic Host Configuration Protocol, for allocating IP addresses to devices.
    136. DHT
    137. Data Hold Timer
    138. DLL
    139. Data Link Layer
    140. DLPDU
    141. ?
    142. DNS
    143. Domain Name System, for converting from host name to IP address.
    144. DT
    145. Device Tool
    146. DUT
    147. Device Under Test
    148. EMC
    149. ElectroMagnetic Compatibility
    150. EPM
    151. EndPoint Mapper
    152. ES
    153. Engineering System
    154. FACK
    155. Fragment acknowledge
    156. FAL
    157. Fieldbus Application Layer
    158. FD
    159. Full Duplex
    160. FDB
    161. Forwarding Database, used in MRP
    162. FO
    163. Fiber Optics
    164. FSPM
    165. FAL Service Protocol Machines
    166. FSU
    167. Fast Start Up (Store communication parameters in IO devices)
    168. GAP
    169. ?
    170. GSD
    171. General Station Description. An XML file describing an IO-Device.
    172. GSDML
    173. GSD Markup Language
    174. GUI
    175. Graphical User Interface
    176. HTTP
    177. Hypertext Transfer Protocol
    178. I&M
    179. Identification & Maintenance. Has different blocks; IM0 to IM??.
    180. ICMP
    181. Internet Control Message Protocol. (Sent in an IP packet)
    182. IDNA
    183. Internationalized Domain Names for Applications
    184. IE
    185. Industrial Ethernet
    186. IGMP
    187. Internet Group Management Protocol. For multicast groups. Used in IPv4.
    188. IO
    189. Input Output
    190. IOC
    191. IO Controller. Typically a PLC.
    192. IOD
    193. IO Device. An input-output device controlled by a PLC via Profinet communication.
    194. IOCS
    195. IO Consumer Status. Reported by IO-device (for output data) and IO-controller (for input data), per subslot. (uint8)
    196. IOCR
    197. IO Communication Relation
    198. IOPS
    199. IO Provider Status. Describes validity of IO data per subslot. Sent by IO-device (for input data) or IO-controller (for output data) together with data. (uint8)
    200. IOxS
    201. General term for IOCS and IOPS.
    202. IOS
    203. IO Supervisor. Typically an engineering tool running on a personal computer.
    204. IP
    205. Internet Protocol
    206. IP
    207. Ingress Protection. For example IP65 is a housing class suitable for outdoor installation.
    208. iPar
    209. Individual Parameters. Backups of these parameters are typically stored in a separate parameter server.
    210. IRT
    211. Isochronous Real-Time
    212. LAN
    213. Local Area Network
    214. LED
    215. Light Emitting Diode
    216. LLC
    217. ?
    218. LLDP
    219. Link Layer Discovery Protocol, for neighbourhood detection.
    220. LMPM
    221. data Link layer Mapping Protocol Machine. Receives Ethernet frames.
    222. LT
    223. Length and Type field in Ethernet frame. Also known as EtherType.
    224. MAC
    225. Media Access Control
    226. MAU
    227. Medium Attachment Unit. Ethernet transceiver type. 0x0 = radio, 0x10 = Media type copper 100BaseTXFD
    228. MC
    229. Multicast (as opposed to unicast)
    230. MC
    231. Multicore (Codesys runtime variant for Raspberry Pi)
    232. MCR
    233. Multicast Communication Relationship
    234. MDNS
    235. Multicast DNS. A UDS based protocol for resolving hostname to IP address. Implemented by Bonjour and Avahi.
    236. MIB
    237. Management Information Base. A text file format describing Object Identifiers (OID) for Simple Network Management Protocol (SNMP) frames.
    238. MIC
    239. MRP interconnection Client. Routes traffic between two Ethernet rings (which are using MRP).
    240. MIM
    241. MRP Interconnection Manager. Controls the traffic between two Ethernet rings (which are using MRP).
    242. MRA
    243. Media redundancy manager with auto negotiation
    244. MRC
    245. Media redundancy client
    246. MRM
    247. Media redundancy manager
    248. MRP
    249. Media Redundancy Protocol. Use a normally off path in the Ethernet network, to form a ring topology.
    250. MRPIC
    251. Media Redundancy Protocol Interconnect (connects two MRP rings). Nodes have MIM or MIC roles.
    252. MRPD
    253. Media Redundancy for Planned Duplication. Send similar frames in both directions on an Ethernet ring.
    254. MTU
    255. Maximum Transfer Unit. The largest packet a network interface can handle. Typically 1500 bytes. This includes the IP header, but not the Ethernet header.
    256. NACK
    257. Negatively acknowledge
    258. NDR
    259. Network Data Representation. A header as first part of the DCE/RPC payload (sent via UDP). Contains info on how large the payload is, and how large responses that can be accepted.
    260. NME
    261. Network Management Engine
    262. NRT
    263. Non-Real Time Ethernet frames
    264. NVM
    265. Non-Volatile Memory. Typically flash memory chips.
    266. OID
    267. Object Identifier. Describes a field in a Simple Network Management Protocol (SNMP) frame.
    268. OS
    269. Operating System
    270. OUI
    271. Organizationally Unique Identifier. This is the three first bytes of the MAC address. The value for Profinet Multicast is 01:0E:CF.
    272. PA
    273. Process Automation (as opposed to production automation)
    274. PCA
    275. Provider, Consumer or Alarm.
    276. PCF
    277. Polymer Clad Fiber
    278. PCP
    279. Priority Code Point, for VLAN
    280. PD
    281. Physical Device. This is information related to an Ethernet port.
    282. PDEV
    283. Physical Device management. Physical interface and switch ports of a Profinet field device.
    284. PDF
    285. Portable Document Format
    286. PDU
    287. Protocol Data Unit
    288. PI
    289. PROFIBUS & PROFINET International. The Profinet interest group. See also PNO.
    290. PICO
    291. PI Certification Office
    292. PITL
    293. PI Test Laboratories. Performs certification testing.
    294. PLC
    295. Programmable Logic Controller. Often used as a Profinet IO-controller.
    296. PN
    297. See PROFINET
    298. PNI
    299. Primary Network Initialization. Siemens SinecPni is a tool for configuration of Profinet equipment.
    300. PNIO
    301. Profinet IO protocol
    302. PNO
    303. PROFIBUS Nutzerorganisation e.V, located in Germany. See also PI.
    304. POF
    305. Plastic Optical Fiber
    306. PPM
    307. Cyclic Provider Protocol Machine
    308. PROFINET
    309. Process Field Net
    310. PS
    311. ?
    312. PTCP
    313. Precision Transparent Clock Protocol
    314. RED
    315. Redundancy
    316. RPC
    317. Remote Procedure Call. The protocol DCE/RPC runs on UDP and is used for configuration of the IO-Device during startup.
    318. RS
    319. Reporting system
    320. RSI
    321. Remote Service Interface
    322. RTA
    323. RealTime Acyclic protocol, for alarms.
    324. RTC
    325. Real Time Class
    326. RTC
    327. RealTime Cyclic protocol
    328. RTE
    329. Real Time Ethernet
    330. RTOS
    331. Real Time Operating System
    332. SA
    333. Source Address. It is the MAC address of the sender.
    334. SAM
    335. Source Address of ? Uses to restrict incoming DCP communication to a single remote MAC address (for 3 seconds).
    336. SCL
    337. Structured Control Language. Siemens name for the structured text (ST) programming language for PLCs.
    338. SDU
    339. Service Data Unit. This is the payload of a PDU.
    340. SMA
    341. Sample Moving Average. A smoothing function in the Wireshark Ethernet frame capture software.
    342. SNMP
    343. Simple Network Management Protocol. For network topology detection.
    344. SOE
    345. Sequence Of Events
    346. ST
    347. Structured Text. A programming language for PLCs.
    348. STP
    349. Spanning Tree Protocol. An alternative to MRP (but slower)
    350. STX
    351. Structured Text. See ST.
    352. TACK
    353. Transport Acknowledge. Used for alarm transmission.
    354. TED
    355. Topology and Engineering Discovery
    356. TIA
    357. Totally Integrated Automation. An automation portal (engineering tool) by Siemens.
    358. TIAP
    359. See TIA.
    360. TCI
    361. Tool Calling Interface (The engineering tool can call specialized device-related tools)
    362. TCP
    363. Transmission Control Protocol, used on top of IP.
    364. TLV
    365. Type-Length-Value. A data structure in an LLDP Ethernet frame.
    366. TPID
    367. Tag protocol identifier, for VLAN.
    368. TSDU
    369. ?
    370. TSN
    371. Time-Sensitive Networking
    372. TTL
    373. Time to live. A field in an LLDP Ethernet frame.
    374. UC
    375. Unicast (as opposed to multicast)
    376. UDP
    377. User Datagram Protocol, used on top of IP.
    378. USI
    379. User Structure Identifier (unit16) Describes alarm payloads.
    380. UUID
    381. Universally Unique Identifier. A 128-bit number for uniquely identifying information.
    382. VLAN
    383. Virtual LAN
    384. VID
    385. VLAN identifier
    386. WLAN
    387. Wireless LAN
    388. XML
    389. eXtended Markup Language
    1. 一般概念
    2. FAL被定义为一组面向对象的ASE,每个ASE规范由三个部分组成:类定义、服务和协议规范。

    1、profinet简介

            profinet符合 IEEE 802.xx 标准的工业以太网, 具有自动协商和自动交叉功能
            ■ 全双工传输

            ■ 交换式以太网

            ■ 百兆级以太网

    2、profinet协议栈

    3、profinet数据帧

    4、profinet网络解决方案示例

    5、Application areas

    6、FAL体系结构组成部分

    1. AR:应用关系
    2. ASE:应用服务元素。提供用于对象管理的服务。它的服务可用来访问对象属性,删除和创建对象实例。
    3. AREP: Application Relationship End Point (uint32)。相当于数组索引。

            

    7、PTCP服务

     PTCP:精确透明时钟协议(Precision Transparent Clock Protocol)。

            

            

    8、MRP媒体冗余服务

            

            

    9、RPC服务

    RPC: Remote Procedure Call. The protocol DCE/RPC runs on UDP and is used for configuration of the IO-Device during startup.

            此证实服务用于CL RPC(无连接RPC)建立连接、释放连接。通过CL RPC传送高层的读服务、写服务,传送高层的“End of Parameter”和“Application Ready”服务。

    10、应用过程

            

            

                    

                            

                            

    11、应用关系

            

    12、ASE

    12.1 记录数据ASE

            

            

  • 相关阅读:
    Debezium同步之DB2数据同步配置
    趣味证书制作生成微信小程序源码
    高防服务器防护效果怎么样?
    计算机毕业设计java共享单车小程序源码
    新零件编辑器发布(官方文档)
    详细解读_SpringMvc类型转换&数据格式化&数据验证
    人工智能轨道交通行业周刊-第3期(2022.6.20-6.26)
    IOS课程笔记[4-5] 计算器实现与更换主题 的使用
    又不是程序员,凭什么要求产品经理懂技术?
    怎样判断一个数为素数
  • 原文地址:https://blog.csdn.net/qq_46211259/article/details/139813613