作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (1): 113-115.

• 软件技术与数据库 • 上一篇    下一篇

基于 XML 的PLC 数据描述

邹光华 1,2,刘毅 3   

  1. 1.中国矿业大学北京校区资源学院,北京 100083;2.华北科技学院教务处,北京 101601;3.清华大学计算机系,北京100084
  • 出版日期:2006-01-05 发布日期:2006-01-05

PLC Data Description Based on XML

ZOU Guanghua1,2, LIU Yi3   

  1. 1.School of Resource Safety Engineering, China University of Mining & Technology, Beijing 100083; 2. Office of Education Administrator, North China Institute of Science & Technology, Beijing 101601;3. Departmant of Computer, Tsinghua University, Beijing 100084
  • Online:2006-01-05 Published:2006-01-05

摘要: 将PLC 梯形图逻辑表示为XML 数据,不同于采用二叉树来描述节点连接结构。根据不同的PLC 设备,配置相应的语言转换程序,可将XML 结构数据自动转换成PLC 设备的编程语言,如指令表或结构文本。若以通用单片机系统作为PLC 底层硬件,则可将XML数据转换为汇编语言或C 语言等,从而实现PLC 功能。面向新的IEC61131-3 标准,采用XML 作为与硬件无关的PLC 的编程数据具有极大的灵活性和扩展性。

关键词: 可编程控制器;梯形图;扩展标识语言;单片机系统

Abstract: The methods turning TC(trapeziform chart) logical into XML data are discussed. It differs from using bintree in describing node-link-structure. Collocating language transform program corresponding according to various equipment, it may automatic change XML structure data into the program language of PLC, for example repertoire or structural text. Transforming XML data into assembly language or C may carry out the PLC function if universal SCM(single chip micyoco) is used in PLC bottom hardware. Facing new IEC61131-3 standard, it is of huge flexibility and expansibility that the program language of PLC uses XML irrespective with hardware.

Key words: Programmable logic controller (PLC); Trapeziform chart; eXtensible markup language(XML); Single chip micyoco