EtherNet/IP与CIP协议详解

3星 · 超过75%的资源 需积分: 50 181 下载量 198 浏览量 更新于2024-07-22 1 收藏 935KB PDF 举报
"cip协议 ab" 本文档详细介绍了 EtherNet/IP 协议,它是 Control and Information Protocol (CIP) 在 Ethernet 上的应用版本。CIP 是一种工业网络协议,由 ControlNet International 和 Open DeviceNet Vendor Association 共同制定,用于实现设备间的通信。EtherNet/IP 规范是 CIP 的一个关键组成部分,它允许工业设备通过标准的以太网技术进行通信,提高了网络的互操作性和效率。 在第二版的 EtherNet/IP Adaptation of CIP Specification 中,包含了多个关键章节,这些章节详细阐述了协议的各种方面: 1. **Chapter 1 - Introduction to EtherNet/IP**:这一章引入了 EtherNet/IP 协议的基本概念,解释了其设计目标、工作原理以及如何在工业自动化环境中集成以太网技术。 2. **Chapter 2 - Encapsulation Protocol**:封装协议章节讨论了如何将 CIP 数据包封装到 TCP/IP 帧中,以便在以太网上传输。这涉及到网络层和传输层的协议交互,如 IP 和 TCP 的使用。 3. **Chapter 3 - Mapping of Explicit and I/O Messaging to TCP/IP**:此章节详细说明了显式消息(Explicit Messaging)和服务数据单元(SDU)如何映射到 TCP/IP 协议栈,以及输入/输出(I/O)消息如何通过网络进行处理。 4. **Chapter 4 - Object Model**:对象模型章节介绍了 EtherNet/IP 中的对象结构,这些对象定义了设备的功能和通信接口,是设备之间交换信息的基础。 5. **Chapter 5 - Object Library**:对象库章节列出了可用的 CIP 对象,包括它们的属性、服务和数据类型,这对于开发者理解如何与 EtherNet/IP 设备交互至关重要。 6. **Chapter 6 - Device Profiles**:设备配置文件章节规定了不同类型的工业设备如何遵循特定的配置文件,以确保兼容性和一致性。 7. **Chapter 7 - Electronic Data Sheets**:电子数据表章节详细说明了设备如何通过 EDS 文件提供自我描述信息,便于网络配置和诊断。 8. **Chapter 8 - Physical Layer**:物理层章节涵盖了 EtherNet/IP 使用的物理媒介和接口标准,如 IEEE 802.3。 9. **Chapter 9 - Indicators and Middle Layers**:指示器和中间层章节探讨了网络管理和诊断工具,以及它们如何与 EtherNet/IP 的其他层交互。 10. **Chapter 10 - Bridging and Routing**:桥接和路由章节描述了在 EtherNet/IP 网络中如何实现数据包的转发和寻址,以支持多跳通信。 此外,文档还包括了多个附录,如: - **Appendix A - Explicit Messaging Services**:详细介绍了显式消息服务,这是 CIP 通信的一个重要部分,用于设备之间的点对点通信。 - **Appendix B - Status Codes**:提供了 CIP 消息的响应状态代码,帮助开发者理解和处理错误条件。 - **Appendix C - Data Management**:讨论了数据管理机制,包括数据的存储、更新和同步。 - **Appendix D - Engineering Units**:这部分可能涉及工程单位的表示和转换,对于处理测量和控制应用的数据至关重要。 通过这些章节,读者可以全面了解 EtherNet/IP 协议如何在工业自动化环境中实现高效、可靠的设备通信,从而为设备制造商、系统集成商和最终用户提供强大而灵活的网络解决方案。
2014-06-14 上传
Contents 3-1 Introduction........................................................................................................................................................ 3 3-2 Scope.................................................................................................................................................................. 3 3-3 CIP packets over TCP/IP ................................................................................................................................... 3 3-3.1 Unconnected messages .............................................................................................................................. 3 3-3.2 CIP transport class 0 and class 1 connections ............................................................................................ 5 3-3.2.1 CIP transport class 0 and class 1 packets ............................................................................................... 5 3-3.2.2 Behavior of class 0 and class 1 connections (informative) .................................................................... 5 3-3.3 CIP Transport class 2 and class 3 connections ........................................................................................... 6 3-3.4 CIP Transport classes 4 through 6 ............................................................................................................. 6 3-4 Connection Manager object ............................................................................................................................... 6 3-4.1 Connection parameters............................................................................................................................... 6 3-4.2 Connection type ......................................................................................................................................... 7 3-4.3 Priority ....................................................................................................................................................... 7 3-4.4 Trigger Type .............................................................................................................................................. 7 3-4.5 Connection size .......................................................................................................................................... 7 3-4.6 Connection request time-out ...................................................................................................................... 7 3-4.7 Connection path ......................................................................................................................................... 7 3-4.7.1 Network connection ID .......................................................................................................................... 8 3-4.8 Forward_open for CIP transport class 2 and class 3 connections ............................................................ 11 3-4.9 Forward_open for CIP transport class 0 and class 1 connections ............................................................ 11 3-4.9.1 General ................................................................................................................................................. 11 3-4.9.2 Mapping connections to IP multicast addresses ................................................................................... 11 3-4.9.3 Completing the multicast connection (informative) ............................................................................. 12 3-5 CIP transport class 0 and class 1 connected data ............................................................................................. 12 3-5.1 UDP datagrams ........................................................................................................................................ 12 3-5.2 CIP transport class 0 and class 1 packet ordering .................................................................................... 12 3-5.3 Screening incoming connected data ......................................................................................................... 13 3-6 IP multicast scoping and address allocation..................................................................................................... 13 3-6.1 Background (informative) ........................................................................................................................ 13 3-6.1.1 General ................................................................................................................................................. 13 3-6.1.2 Current scoping practices ..................................................................................................................... 14 3-6.1.3 Current address allocation practices..................................................................................................... 14 3-6.1.4 Evolving Internet standards.................................................................................................................. 14 3-6.2 Interim scoping strategy ........................................................................................................................... 15 3-6.3 Interim allocation strategy........................................................................................................................ 15