随着以太网技术的不断发展,嵌入式系统与以太网相结合应用于工业控制系统领域已 经成为了一种趋势。本文在嵌入式实时操作系统μC/OS-II 下开发出了基于工业以太网的现场控制系统。该设备完成必需的控制任务的同时,实现了基于RTOS 的TCP/IP 通信,作为嵌入式Web Server 接入工业以太网中。在实现了HTTP 协议的基础上,利用公共网关技术完成了在浏览器端对嵌入式系统的内部参数设置及端口控制等功能。 关键字: 嵌入式系统;以太网;Web 服务器; Abstract: As the development of the Ethernet technology, it has become the developing trend combining the embedding system with the Ethernet in the industry control system field. A field device running under the real-time operating system μC/OS-II was developed in this paper. This device accomplished the necessary supervisory and control tasks, as well as the TCP/IP communication based on a real-time operating system. It can act as a Web Server in the industrial Ethernet environment. Keywords: Embedded System; Ethernet; Web Server;