Development of an Editor and Howling Engine for Realtime Software Programmable Logic Controller based on Intelligent Agents

지능적 에이전트에 의한 실시간 소프트웨어 PLC 편집기 및 실행엔진 개발

  • 조영임 (수원대학교 IT대학 컴퓨터학과)
  • Published : 2005.12.01

Abstract

Recently, PC-based control is incredibly developed in the industrial control field, but it is difficult for PLC programming in PC. Therefore, I need to develop the softeware PLC, which support the international PLC programming standard(IECl131-3) and can be applied to diverse control system by using C language. In this paper, I have developed the ISPLC(Intelligent Agent System based Software Programmable Logic Controller). In ISPLC system, LD programmed by a user which is used over $90\%$ among the 5 PLC languages, is converted to IL, which is one of intermediate codes, and IL is converted to the standard C rode which can be used in a commercial editor such as Visual C++. In ISPLC, the detection of logical error in high level programming(C) is more eaier than PLC programming itself The study of code conversion of LD->IL->C is firstly tried in the world as well as KOREA. I developed an execution engine with a good practical application. To show the effectiveness of the developed system, 1 applied it to a practical case, a real time traffic control(RT-TC) system. ISPLC is minimized the error debugging and programming time owing to be supported by windows application program.

PC-based control은 현재 제어분야에서 비약적 발전을 하고 있으나 일반 사용자들이 PC에서 PLC 프로그래밍하기에는 어렵다는 단점이 있다. 따라서 본 논문은 국제 PLC 표준언어로 제정된 5가지 언어 중 $90\%$이상 사용하는 LD언어에 대한 표준규격을 연구하고, 이것을 중간코드인 IL(Instruction List) 언어로 변환하고 기존 상용화된 편집기(Visual C++)에서 활용 가능한 표준 C코드로 변환함으로써 LD에 익숙한 사용자나 고급언어에 익숙한 사용자 모두 사용할 수 있는 편집기 및 실행엔진 기능을 갖춘 지능적 에이전트 기반의 통합 시스템 ISPLC(Intelligent Agent System based Software Programmable Logic Controller)를 개발하였다. ISPLC에서는 LD에서보다 C에서 논리오류 검출기능이 훨씬 용이하며, GUI기반 인터페이스를 제공하며 에이전트에 의한 프로그래밍 코드를 제공하므로 가독성이 높다. 이러한 LD->H->C로의 코드변환체제에 관한 연구는 국내외적으로 처음 시도되는 연구이다. ISPLC를 실제 실시간 교통량 제어 시스템(Real Time Traffic Control System)에 적용하여 현장 적응성이 우수한 실행엔진을 개발하여 시뮬레이션 하였으며, ISPLC는 오류검색 뿐 아니라 프로그래밍 시간을 매우 단축시켜줌을 알 수 있었다.

Keywords

References

  1. 원태현외 6인, PLC 제어기술, 제 2판, 복두 출판사, 2001
  2. 박양수외 2인, FA를 위한 PLC 실습, 복두 출판사, 1998
  3. 김종부외 3인, PLC 이론 및 실습, 복두 출판사, 2002
  4. PLC 이론과 실습, 삼성전자 사내교육 자료
  5. Norme Internationale International Standard, CEI IEC 1131-3, Premiere edition, First edition, 1993
  6. KW 시스템 개발사이트: http://www.kw-software.com
  7. 리얼게인 개발사이트: http://www.realgain.co.kr
  8. Russell and Norvig, Artificial Intelligence a Modern Approach 2/E Chap 2, Prentice Hall International Co., 1994
  9. FIPA Agent Management Specifications http://www.fipa.org/repository/managementspecs.html
  10. John Graham, Real-Time Scheduling in Distributed Multi Agent Systems, Ph.D. Dissertation, University of Delaware, January, 2001
  11. John Graham, 'Real-Time Scheduling for Distributed Agents,' AAAI-Spring Symposium on Real-Time Autonomous Systems, Palo Alto, CA, March, 2000