Abstract:
PURPOSE: A method for converting a PLC(programmable logic circuit) based control code into universal program code using an XML(eXtensible Markup Language) interface and framework system are provided to promote the reusability and flexibility of a program using an XML element table. CONSTITUTION: A PLC open code creation unit(110) creates a PLC open code using a function block diagram language. An XML interface creation unit(120) creates an XML interface using the PLC open code. An universal code creation unit(130) creates a universal program code using the XML interface. The XML interface creation unit includes a configuration element classification unit, an XML element table unit, an attribution allocation unit, and an interface conversion unit.
Abstract:
PURPOSE: A method and system for converting an FBN(Function Block diagram Network) based PLC(Programmable Logic Circuit)code into a universal program code are provided to promote the reliability of data and the reusability of a program by supporting compatibility between a C language and FBN. CONSTITUTION: An execution unit extraction unit(120) extracts an execution part from an FB(Function Block) classified by an FB classification unit(110). An execution unit classification unit(130) classifies the execution part of the FB into a static part and a dynamic part. A base creation unit(140) creates a base class by combining the static part with the dynamic part. When a user definition parameter or a user definition algorithm exists in the FB, a POI(Point Of Interest) FBN creation unit(150) creates a user definition POU class by modifying the base class.
Abstract:
본 발명은 IEC 61131-3 기반의 제어 프로그램 개발을 위한 프레임워크(Framework) 제공 방법으로서, IEC 61131-3에 명시된 펑션 블록(Function Block)을 비주얼한 블록 다이어그램으로 구현하는 단계, 블록 다이어그램을 그래픽 코드화하는 단계, 그래픽 코드가 IEC 61131-3의 제약조건에 따라 올바르게 작동하는지 검증하는 단계, 검증된 그래픽 코드를 객체 저장소에 저장하는 단계, 저장된 그래픽 코드를 C언어 코드 템플릿을 사용하여 C언어 제어 코드로 변환하는 단계를 거쳐 C 언어 제어 코드를 생성하고 C언어 기반의 제어코드를 타켓 PC로 전송하는 단계, 전송된 코드를 C언어 기반의 제어코드를 C언어 기반의 프레임워크에 적용하는 단계, 및 적용된 제어코드를 제어 프레임워크에 맞춰 프로세싱하는 단계를 포함하는 것을 특징으로 한다. 본 발명은 IEC 61131-3 기반의 펑션 블록을 블록 다이어그램으로 시각화하여 상이한 분야의 엔지니어들이 손쉽게 이해할 수 있는 제어 프로그램 개발을 위한 프레임워크 제공 방법 및 시스템을 제공한다.
Abstract:
본 발명에 따른 XML 인터페이스 기반의 범용 프로그램 코드로 변환하는 방법은 IEC 61131-3에 따른 펑션 블록 다이어그램 언어를 사용하여 PLCopen 코드가 작성되는 S1 단계, S1 단계의 PLCopen 코드가 XML 요소 테이블에 구성요소 별로 저장되는 S2 단계, S2 단계에서 XML 요소 테이블을 이용하여 XML 인터페이스가 생성되는 S3 단계 및 S3 단계에서 생성된 XML 인터페이스를 이용하여 범용 프로그램 코드가 생성되는 S4 단계를 포함한다. 전용 PLC 컨트롤러에서만 동작하는 PLCopen 프로그램이 범용 PC에서 동작 가능하므로, 프로그램 재사용성 및 유연성이 높아진다.