KR101445275B1 - A method for generation of communication frame of IT-based industrial equipment - Google Patents

A method for generation of communication frame of IT-based industrial equipment Download PDF

Info

Publication number
KR101445275B1
KR101445275B1 KR1020120155914A KR20120155914A KR101445275B1 KR 101445275 B1 KR101445275 B1 KR 101445275B1 KR 1020120155914 A KR1020120155914 A KR 1020120155914A KR 20120155914 A KR20120155914 A KR 20120155914A KR 101445275 B1 KR101445275 B1 KR 101445275B1
Authority
KR
South Korea
Prior art keywords
frame
bcc
communication
character
input
Prior art date
Application number
KR1020120155914A
Other languages
Korean (ko)
Other versions
KR20140085975A (en
Inventor
김명진
Original Assignee
주식회사휴비스
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사휴비스 filed Critical 주식회사휴비스
Priority to KR1020120155914A priority Critical patent/KR101445275B1/en
Publication of KR20140085975A publication Critical patent/KR20140085975A/en
Application granted granted Critical
Publication of KR101445275B1 publication Critical patent/KR101445275B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

본 발명은, MODBUS 등의 표준 프로토콜 뿐만 아니라 산업기기 제조사별 고유의 비표준 프로토콜에서도 용이하게 통신 프레임의 생성이 가능한 IT기반 산업기기의 통신 프레임 생성 방법에 관한 것으로서, 상기 통신 프레임이 적용될 프로토콜의 선택 단계와, 상기 프로토콜의 방식에 맞게 문자열을 입력받는 단계 및 입력된 상기 문자열이 조합되는 단계를 포함하여 구성되는 문자열 입력 단계; 및 상기 문자열 입력 단계에서 입력된 상기 문자열이 연산되어 BCC(Block Check Code)가 생성되는 단계;를 포함하여 구성되는 것을 특징으로 한다.The present invention relates to a communication frame generation method of an IT-based industrial device capable of easily generating a communication frame not only in a standard protocol such as MODBUS but also in a nonstandard protocol specific to an industrial device manufacturer, Inputting a character string according to the protocol, and inputting the character string; And a step in which the character string input in the character string input step is operated to generate a BCC (Block Check Code).

Description

IT기반 산업기기의 통신 프레임 생성 방법{A method for generation of communication frame of IT-based industrial equipment}TECHNICAL FIELD [0001] The present invention relates to a method of generating a communication frame of an IT-

본 발명은, IT 기반 산업기기의 통신 프레임 생성 방법에 관한 것으로서, 더욱 상세하게는, MODBUS 등의 표준 프로토콜 뿐만 아니라 산업기기 제조사별 고유의 비표준 프로토콜에서도 용이하게 통신 프레임의 생성이 가능한 IT기반 산업기기의 통신 프레임 생성 방법에 관한 것이다.TECHNICAL FIELD The present invention relates to a method for generating a communication frame of an IT-based industrial device, and more particularly, to an IT-based industrial device capable of easily generating a communication frame not only in a standard protocol such as MODBUS, To a method of generating a communication frame.

현대 시대는 IT기술이 발전함에 따라 IT융합 기술이 다양한 산업 분야 곳곳으로 확산되고 있으며 모든 산업은 지능형, 고부가가치형 산업으로 변화하고 있다.In the modern era, as IT technology develops, IT convergence technology is spreading to various industrial fields and all industries are changing into intelligent, high value-added industries.

또한, IT 융합 기술은 자동차, 조선, 건설, 의료, 섬유 등 다양한 전통산업과 IT를 접목함으로써 새로운 비즈니스의 장을 만들고 있으며 정부도 IT 융합 확산 전략을 발표하고 역량강화를 위해 적극적인 추진을 하고 있는 실정이다.In addition, IT convergence technology is creating a new business place by combining IT with various traditional industries such as automobile, shipbuilding, construction, medical, and textile, and the government is actively promoting IT convergence expansion strategy and strengthening capacity. to be.

또한, 공장자동화, 빌딩자동화, 공정자동화 등 모든 산업에서 IT기술을 기반으로 시스템을 자동화하고 감시, 제어하려는 요구가 크게 급속도로 확대되어가고 있다.In addition, demands for automation, monitoring, and control of systems based on IT technology are rapidly expanding in all industries such as factory automation, building automation, and process automation.

그러나, IT 융합기술에 있어서 통신 인터페이스를 통하여 산업기기와 데이터를 송수신하는 것은 가장 기본적이며 필수적인 업무인데, 이를 위하여 시스템 개발자는 통신 인터페이스를 위하여 비표준화된 새로운 통신프로토콜을 학습해야 하며, 또한, 해당 프로토콜에 맞는 통신 프레임와 BCC(Block Check Code)를 프로그래밍하여 테스트하여야 하므로 많은 개발시간을 투자하여야 하였다.However, in IT convergence technology, it is the most basic and essential task to send and receive data to and from industrial devices through the communication interface. For this purpose, the system developer must study a new communication protocol that is not standardized for the communication interface, The communication frame and the BCC (Block Check Code) must be programmed and tested.

따라서, MODBUS 등의 표준 프로토콜 뿐만 아니라 산업기기 제조사별 고유의 비표준 프로토콜에서도 용이하게 통신 프레임의 생성이 가능한 IT기반 산업기기의 통신 프레임 생성 방법이 필요로 하게 되었다.Therefore, there is a need for a method of generating a communication frame of an IT-based industrial device capable of easily generating a communication frame not only in a standard protocol such as MODBUS but also in a nonstandard protocol specific to an industrial device manufacturer.

한국공개특허 10-2007-0014646(공개번호) 2007.02.01Korean Patent Publication No. 10-2007-0014646 (Publication No.) 2007.02.01

본 발명은, MODBUS 등의 표준 프로토콜 뿐만 아니라 산업기기 제조사별 고유의 비표준 프로토콜에서도 용이하게 통신 프레임의 생성이 가능한 IT기반 산업기기의 통신 프레임 생성 방법을 제공하는데 그 목적이 있다.An object of the present invention is to provide a communication frame generation method of an IT-based industrial device capable of easily generating a communication frame not only in a standard protocol such as MODBUS but also in a non-standard protocol specific to an industrial device manufacturer.

본 발명은, IT기반 산업기기와의 통신을 위한 통신 프레임을 생성하는 방법에 있어서, 상기 통신 프레임이 적용될 프로토콜의 선택 단계와, 상기 프로토콜의 방식에 맞게 문자열을 입력받는 단계 및 입력된 상기 문자열이 조합되는 단계를 포함하여 구성되는 문자열 입력 단계; 및 상기 문자열 입력 단계에서 입력된 상기 문자열이 연산되어 BCC(Block Check Code)가 생성되는 단계;를 포함하여 구성되는 것을 특징으로 한다.The present invention provides a method of generating a communication frame for communication with an IT-based industrial device, the method comprising: selecting a protocol to which the communication frame is to be applied; inputting a character string in accordance with the protocol; A character string input step comprising a step of combining characters; And a step in which the character string input in the character string input step is operated to generate a BCC (Block Check Code).

또한, 본 발명은, 상기 문자열의 문자가 한 번의 키보드 입력으로 입력될 수 있는 경우 상기 키보드를 통해 상기 문자를 입력받고, 상기 문자열의 문자가 두 번 이상의 키보드 입력을 필요로 하는 경우 아스키 코드표를 통해 상기 문자를 입력받는 것을 특징으로 한다.In addition, the present invention is characterized in that when a character of the character string can be input by one keyboard input, the character is input through the keyboard, and when the character of the character string requires keyboard input two or more times, And the character is input through the input unit.

또한, 본 발명은, 상기 아스키 코드표를 통해 입력받은 상기 문자가 "\x"와 16진수 2문자의 조합으로 이루어진 것을 특징으로 한다.Further, the present invention is characterized in that the character input through the ASCII code table is composed of a combination of " \ x "and two hexadecimal characters.

또한, 본 발명은, BCC 연산 조건 입력 단계;를 더 포함하여 구성되며, 상기 BCC 연산 조건 입력 단계는, BCC 종류, BCC 시작 위치, BCC 끝 위치, BCC 삽입 위치 정보를 포함하여 구성되는 것을 특징으로 한다.The BCC calculation condition input step may include a BCC type, a BCC start position, a BCC end position, and a BCC insertion position information. do.

본 발명은, 직관적인 GUI(Graphical User Interface)를 사용하여 해당 프로토콜의 방식에 맞게 문자열을 입력하고 BCC 생성 규칙을 설정하는것만으로 통신 프레임의 생성이 가능하므로, MODBUS 등의 표준 프로토콜 뿐만 아니라 산업기기 제조사별 고유의 비표준 프로토콜에서도 용이하게 통신 프레임의 생성이 가능하며, 따라서 통신 시스템의 신속한 프로토타입 개발이 가능한 효과가 있다.The present invention can generate a communication frame by inputting a character string in accordance with the protocol of an intuitive GUI (Graphical User Interface) and setting a BCC generation rule. Therefore, not only standard protocols such as MODBUS, It is possible to easily generate the communication frame even in the unique nonstandard protocol of the star, so that the prototype of the communication system can be developed rapidly.

또한, 본 발명은, 송수신 데이터가 리스트화되어 출력되고, 이를 문서화할 수 있으므로, 산업기기 계측 데이터의 활용 뿐만 아니라 통신 상태 모니터링 및 통신 장애 분석 도구로 활용할 수 있는 효과가 있다.In addition, since the transmission / reception data can be listed and output and can be documented, the present invention can be utilized not only as an industrial instrument measurement data but also as a communication status monitoring and communication fault analysis tool.

또한, 본 발명은, 통신 프레임을 상용 프로그래밍 소프트웨어의 프로그래밍 언어 소스로 자동 생성 가능하므로, 시스템 개발 시간을 단축할 수 있고, 시스템 개발 비용이 절감되는 효과가 있다.In addition, since the communication frame can be automatically generated as a programming language source of commercial programming software, the present invention can reduce system development time and system development cost.

도 1 은 본 발명의 실시예에 따른 IT기반 산업기기의 통신 프레임을 생성하기 위한 인터페이스부의 예시도.
도 2 는 본 발명의 실시예에 따른 IT기반 산업기기의 통신 프레임 생성 방법의 순서도.
도 3 은 본 발명의 실시예에 따른 IT기반 산업기기의 통신 프레임을 생성하기 위한 인터페이스부의 New Project 실행창.
도 4 는 본 발명의 실시예에 따른 IT기반 산업기기의 통신 프레임을 생성하기 위한 인터페이스부의 프레임 편집창.
도 5 는 본 발명의 실시예에 따른 IT기반 산업기기의 통신 프레임을 생성하기 위한 인터페이스부의 통신 환경 설정창(Serial).
도 6 은 본 발명의 실시예에 따른 IT기반 산업기기의 통신 프레임을 생성하기 위한 인터페이스부의 통신 환경 설정창(Ethenet).
1 is an exemplary diagram illustrating an interface unit for generating a communication frame of an IT-based industrial device according to an embodiment of the present invention;
2 is a flowchart of a method of generating a communication frame of an IT-based industrial device according to an embodiment of the present invention.
3 is a window for executing a new project of an interface unit for generating a communication frame of an IT-based industrial device according to an embodiment of the present invention.
4 is a frame editing window of an interface unit for generating a communication frame of an IT-based industrial device according to an embodiment of the present invention.
FIG. 5 is a diagram illustrating a communication environment setting window of an interface unit for generating a communication frame of an IT-based industrial device according to an exemplary embodiment of the present invention. FIG.
6 is a diagram illustrating a communication environment setting window (Ethenet) of an interface unit for generating a communication frame of an IT-based industrial device according to an embodiment of the present invention.

이하에서, 첨부한 도면을 참조하여 본 발명의 실시예에 따른 IT기반 산업기기의 통신 프레임 생성 방법에 대하여 상세히 설명한다.
Hereinafter, a method for generating a communication frame of an IT-based industrial device according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings.

본 발명은 도 1 내지 도 6 에 도시된 바와 같이, 문자를 입력하는 입력부(미도시)와, 입력부에서 문자를 입력할 수 있도록 입력 폼을 제공하고, 입력된 문자열에 기초한 변환된 통신 프레임을 출력하는 인터페이스부를 포함하여 구성된다.As shown in FIGS. 1 to 6, the present invention provides an input unit (not shown) for inputting characters and an input form for inputting characters in the input unit, and outputs a converted communication frame based on the input character string And an interface unit.

입력부는 키보드, 마우스 또는 터치패드 등의 입력장치를 포함하여 구성되며, 인터페이스부에서 제공되는 입력폼에 문자를 입력하거나 또는 인터페이스부의 각 실행단추를 실행하고, 인터페이스부의 선택창에서 제공되는 목록 중 어느 하나를 선택할 수 있도록 하는 역할을 한다. 이러한 입력부는 상술한 입력장치에 국한되지 않고, 음성인식, 바코드 인식, RFID 등 어느 것이든 가능함은 물론이다.
The input unit is configured to include an input device such as a keyboard, a mouse, or a touch pad. The input unit inputs characters to the input form provided by the interface unit or executes each execution button of the interface unit. And to select one of them. It is needless to say that such an input unit is not limited to the above-described input device, and may be any of voice recognition, barcode recognition, and RFID.

인터페이스부는 입력부에 문자 입력 폼을 제공하고, 입력된 문자를 조합하여 통신 프레임을 출력하는 역할을 한다. 즉, 인터페이스부는 에디터 소프트웨어(Editor Software)(1)의 역할 및 디스플레이 장치의 역할을 통칭하는 구성으로서, 사용자가 변환하고 싶은 프로토콜의 선택 및 문자의 입력, 변환된 결과의 확인 등을 할 수 있도록 구성된다.
The interface unit provides a character input form to the input unit, and outputs a communication frame by combining inputted characters. That is, the interface unit is a configuration collectively referred to as a role of the editor software (1) and a role of the display device, and is configured to allow a user to select a protocol to be converted, input characters, do.

이를 좀 더 상세히 설명하면, 인터페이스부의 에디터 소프트웨어(1)는 각종 기능 실행 버튼이 제공되는 메뉴창(2)와, 송수신 데이터를 리스트화하여 실시간으로 보여주는 송수신 데이터리스트창(3)과, 통신 프레임의 리스트를 표시하는 송신프레임 리스트창(4)과, 키보드 입력이 불가한 아스키문자를 입력하기 위한 아스키 코드표(5)를 포함하여 구성된다.
The editor software 1 of the interface unit includes a menu window 2 in which various function execution buttons are provided, a transmission / reception data list window 3 in which transmission / reception data is listed and displayed in real time, A transmission frame list window 4 for displaying a list, and an ASCII code table 5 for inputting ASCII characters for which keyboard input is not possible.

메뉴창(2)은 파일관리, 데이터 가공, 통신 설정, 통신 명령 등 기능 실행 버튼이 도시됨으로써, 각 기능 실행 버튼을 실행하면 해당 기능이 수행될 수 있도록 이루어지며, New, Open, Save, Save As, Wizard, Export, Code Gen, Tag List, Memory, Setting, Gain, Start, Stop, Exit 버튼을 포함하여 구성된다.The menu window (2) is provided with function execution buttons such as file management, data processing, communication setting, communication command, and so on. , Wizard, Export, Code Gen, Tag List, Memory, Setting, Gain, Start, Stop and Exit buttons.

New 버튼은 새로운 통신 프레임을 생성하기 위하여 프로젝트 파일을 생성하는 기능을 하며, 이때 만들어진 프로젝트 파일에는 문자열 편집 내용, 통신 프레임, 통신설정, 통신데이터 등의 정보가 모두 포함된다.The New button creates a project file to create a new communication frame. The created project file contains all the information such as string editing contents, communication frame, communication settings, and communication data.

Open 버튼은 기 저장된 프로젝트 파일을 불러오는 기능을 하며, 확장자로서 '*.npj' 형식을 사용한다.Open button is used to load pre-saved project file and use '* .npj' format as extension.

Save 및 Save As 버튼은 프로젝트를 저장하거나 또는 다른 이름으로 저장하는 기능을 하며, 통상의 상용 소프트웨어와 마찬가지로 저장 경로를 선택할 수 있다.The Save and Save As buttons allow you to save your project or save it under a different name, and you can select a save path as you would with regular commercial software.

Wizard 버튼은 프레임 생성 마법사를 호출하는 기능을 하며, 프레임 생성 마법사는 표준 MODBUS 프로토콜 및 범용 PLC 프로토콜에 대해 ID, 레지스터 등을 입력하면 자동으로 통신 프레임이 생성될 수 있도록 한다.The Wizard button calls the frame creation wizard. The frame creation wizard automatically generates a communication frame when ID, register, etc. are input to the standard MODBUS protocol and general PLC protocol.

Export 버튼은 화면상에 출력되는 송신 데이터 및 수신 데이터를 엑셀에서 열기 가능한 CSV파일 형태로 출력하여 저장하는 기능을 한다.The Export button is used to output the transmitted data and the received data on the screen in the form of a CSV file that can be opened in Excel.

Code Gen 버튼은 편집된 통신 설정 및 통신 프레임에 대하여 Visual Basic 또는 Labview 등의 프로그래밍 언어에 맞게 소스코드를 생성하는 기능을 한다.The Code Gen button is used to generate the source code for the edited communication settings and communication frames in accordance with programming languages such as Visual Basic or Labview.

Tag List 버튼은 수신 데이터 중 사용자가 지정한 문자에 대해 저장된 태그의 내역을 확인할 수 있는 화면으로 전환하는 기능을 한다.The Tag List button switches to a screen that allows you to check the details of the stored tags for the characters specified by the user among the received data.

Memory 버튼은 수신 데이터 중 사용자가 지정한 문자를 지정된 메모리영역에 저장할 수 있으며, 메모리에 저장된 데이터를 확인할 수 있는 화면으로 전환하는 기능을 한다.The Memory button is used to store the user-specified characters of the received data in the designated memory area, and to switch to the screen for checking the data stored in the memory.

Setting 버튼은 이더넷 또는 시리얼 통신 등의 통신 방식과, 상대주소, 통신포트 및 통신속성 등 통신을 위한 환경설정을 하는 기능을 하며, 버튼의 선택시 환경설정 화면으로 전환하는 기능을 한다.The Setting button is used to set communication settings such as Ethernet or serial communication, relative address, communication port, and communication properties, and switches to the configuration screen when a button is selected.

Gain 버튼은 사용자가 지정한 태그에 대하여 Gain, Offset, 소수점자릿수 등을 설정함으로써 수신 데이터를 사용자가 원하는 데이터로 가공하여 사용할 수 있도록 하는 기능을 한다. 이때 버튼의 선택시 게인 설정 화면으로 전환된다.The Gain button sets the Gain, Offset, and the number of decimal places for the tag specified by the user so that the received data can be processed into data desired by the user and used. At this time, the gain setting screen is displayed when the button is selected.

Start 버튼은 사용자가 지정한 통신 설정 및 편집된 통신 프레임을 기준으로 일정 주기로 통신 프레임을 전송하며 통신을 시작하는 기능을 한다.The Start button transmits the communication frame at regular intervals based on the communication setting specified by the user and the edited communication frame, and starts communication.

Stop 버튼은 Start 버튼에 의해 시작된 통신을 중지하는 기능을 하며, Exit 버튼은 에디터 소프트웨어(1)를 종료하는 기능을 한다.
The Stop button stops communication started by the Start button, and the Exit button closes the editor software (1).

송수신 데이터리스트창(3)은 송신 데이터와 수신 데이터를 구분하여 각 행에 표시하며, 이때 각 행에는 송수신 시간, 바이트수, 통신 프레임 문자열, HEX코드(Hexadecimal Code) 등의 내용이 실시간으로 확인 가능하도록 표시된다.
The transmission / reception data list window (3) distinguishes the transmission data from the reception data and displays them on each line. At this time, contents such as transmission / reception time, byte number, communication frame string, HEX code (Hexadecimal Code) Lt; / RTI >

송신프레임 리스트창(4)은 사용자가 작성한 문자열에 따른 통신 프레임의 리스트를 표시하며, 리스트화된 통신 프레임 중 원하는 프레임만을 체크하여 통신이 가능하도록 구성된다.
The transmission frame list window 4 displays a list of communication frames according to a character string created by a user and is configured to enable communication by checking only a desired one of the communication frames listed.

아스키 코드표(5)는 키보드 입력이 불가한 아스키 문자에 대하여 문자열 작성을 할 경우, 문자 편집란에 커서를 위치시킨 후 제공된 아스키 코드의 목록 중 하나를 선택하여 더블클릭하면 커서의 위치에 해당된 선택 문자가 입력될 수 있도록 한다.
If ASCII code table (5) is used to create a string for an ASCII character that can not be input on the keyboard, place the cursor in the character edit box and then select one of the provided ASCII codes and double click it. Let characters be entered.

이러한 에디터 소프트웨어(1)를 이용하여 본 발명의 주요 목적 중 하나인 비표준 프로토콜을 위한 통신 프레임을 작성하는 과정은, 예를 들어, 일본의 RKC사(社)의 AE500 온도표시기의 경우, 통신 프레임의 구성은 다음과 같다.The process of creating a communication frame for a nonstandard protocol, which is one of the main objects of the present invention, using the editor software 1 is as follows. For example, in the case of the AE500 temperature indicator of RKC of Japan, The configuration is as follows.

순번turn 1One 22 33 44 55 66 77 88 99 1010 1111 ASCIIASCII STXSTX MM 1One 00 00 00 55 00 00 ETXETX z(BCC)z (BCC) HEXHEX 0202 4D4D 3131 3030 3030 3030 3535 3030 3030 0303 7A7A

참고로, 위 표에서 사용된 BCC 코드의 함수는 XOR SUM 방식으로, 시작 문자인 STX를 제외한 나머지 문자들의 XOR SUM 값에 의해 16진수 7A가 도출된 것이며, 이에 대응되는 아스키코드값은 'z'가 된다.
For reference, the function of the BCC code used in the above table is the XOR SUM method. Hexadecimal 7A is derived from the XOR SUM value of the characters other than the start character STX, and the corresponding ASCII code value is 'z' .

이러한 프로토콜의 구성에 따라 통신 프레임을 작성하기 위하여 우선 인터페이스부의 에디터 소프트웨어(1)를 실행한 후 New 버튼을 선택하고, 이후 도시되는 선택 화면에서 New Project 버튼을 선택하여 새 프로젝트를 생성한다. 도 3 에 이러한 New Project 생성 화면이 도시되어 있다.In order to create a communication frame in accordance with the configuration of the protocol, first execute the editor software 1 of the interface unit, select the New button, and then select a New Project button on the selection screen shown below to create a new project. This New Project creation screen is shown in Fig.

이후 생성되는 송신프레임 리스트창(4)의 우측 하단 '새프레임' 버튼을 클릭하면 도 4 와 같은 문자 입력 폼, 즉 프레임 편집창이 제공된다.
When the 'new frame' button at the lower right of the transmission frame list window 4 is clicked, a character input form as shown in FIG. 4, that is, a frame editing window is provided.

프레임 편집창 입력에 앞서 프레임 편집창의 각부 기능을 살펴보면, 프레임 이름란은 현재 작성하려는 프레임의 저장 이름을 입력하는 공간이고, 전송 프레임란은 텍스트박스 형태로서 현재 작성하려는 프로토콜의 방식에 맞게 송신 프레임의 문자열을 입력하는 공간이다. 이때, STX(Start Text)와 같은 시작문자를 뜻하는 제어 신호의 약어로 정의되는 아스키코드는 키보드를 이용하여 입력시 3바이트(Byte)의 입력 길이를 필요로 하므로, 통상의 키보드를 이용하여 입력할 수 없게 된다. 따라서 이러한 키보드의 자판(통상 106~108키) 범위를 벗어나는 문자에 대한 입력 방법이 필요하게 되며, 본 발명에서는 이를 아스키 코드표(5)를 제공함으로써 아스키 코드표(5)에 제시된 아스키 코드의 목록 중 하나인, 예를들어, STX를 선택하여 더블클릭하게 되면 "\x02" 등과 같이 역슬래시, 소문자x 및 아스키 코드 STX에 대응되는 16진수 값 2의 합성코드가 생성되어 입력된다.The frame name field is a space for inputting the storage name of the current frame to be created. The transmission frame field is a text box type, and a character string of the transmission frame is selected according to the protocol of the current protocol to be created. It is space to input. At this time, since the ASCII code defined by the abbreviation of the control signal indicating the start character such as STX (Start Text) requires an input length of 3 bytes when inputting using the keyboard, I can not do it. Therefore, it is necessary to input an input method for a character which is out of the range of the keyboard (normally 106 to 108 keys) of the keyboard. In the present invention, by providing the ASCII code table 5, the list of ASCII codes presented in the ASCII code table 5 For example, STX is selected and double-clicked, a composite code of a hexadecimal value 2 corresponding to a backward slash, a lowercase x, and an ASCII code STX, such as "\ x02"

전송 프레임 문자표는 전송 프레임란에 입력된 내용에 대해 1바이트씩 구분하여 문자를 표시한다.Transmission frame The character table displays characters separated by 1 byte for the contents input in the transmission frame field.

종료 문자란은 작성된 프레임의 마지막 문자 뒤에 설정한 종료 문자를 결합할 수 있도록 한다.The termination character field allows you to combine the termination character set after the last character of the created frame.

BCC(Block Check Code)란은 사용자가 지정한 BCC 방식에 의해 최종 연산된 결과값을 표시하는데, 이때 BCC 방식은 BCC 설정란에서 설정할 수 있다.The BCC (Block Check Code) field displays the final value calculated by the BCC method specified by the user. In this case, the BCC method can be set in the BCC setting field.

BCC 설정란은 BCC 종류, BCC 시작 위치, BCC 끝 위치, BCC 삽입 위치, ASCII 변환, 스왑 란으로 구성되며, BCC를 계산하는 방식 및 BCC의 위치, 표시 방법 등을 결정한다.The BCC setting field is composed of BCC type, BCC start position, BCC end position, BCC insertion position, ASCII conversion, and swap column, and determines the method of calculating BCC and the position and display method of BCC.

BCC 설정란에 대하여 좀 더 상세히 설명하면, BCC 종류란은 프로토콜에 BCC가 포함되어야 할 경우 해당 BCC 함수를 선택하는 기능을 하며, 세부적으로는, 사용자가 직접 BCC를 입력하는 'USER_INPUT', 지정한 문자열에 대하여 모든 바이트의 아스키 코드값을 합한 값을 256으로 나눈 나머지인 'BYTE SUM', 다항식 코드를 이용한 32비트 순환 중복 검사 방식인 'CRC_32', 16비트의 순환 중복 검사 방식인 'CRC_16', 수평 체크 방식의 BCC인 'LRC' 및 지정한 문자열에 대하여 각 바이트의 아스키 코드값을 XOR(Exclusive OR: 배타적 논리합) 연산한 결과값인 'XOR_SUM' 등으로 구성되어 선택할 수 있게 된다.In detail, the BCC type field is a function for selecting a corresponding BCC function when the BCC should be included in the protocol. More specifically, the user type 'USER_INPUT' for inputting the BCC directly, Quot; CRC_32 ", which is a 32-bit cyclic redundancy check method using a polynomial code, " CRC_16 ", which is a 16-bit cyclic redundancy check method, a horizontal check , And 'XOR_SUM' which is the result of XOR (Exclusive OR: Exclusive OR) operation of the ASCII code value of each byte with respect to the designated character string.

BCC 시작 위치는 BCC 연산을 위한 문자열의 시작 위치를 입력할 수 있도록 하며, BCC 끝 위치는 BCC 연산을 위한 문자열의 끝 위치를 입력할 수 있도록 한다.The BCC start position allows input of the start position of the character string for BCC operation, and the end position of BCC enables to input the end position of the character string for BCC operation.

BCC 삽입 위치는 지정한 시작 위치와 끝 위치의 문자열에 대하여 연산할 BCC 코드를 삽입할 위치를 지정하며, 통상 종료 문자의 앞 또는 뒤에 지정된다.The BCC insertion position specifies the position to insert the BCC code to be operated on the string at the specified start position and end position, and is usually specified before or after the termination character.

ASCII 변환은 체크박스 형태로서, BCC 연산값을 아스키 문자로 변환하는 기능을 하며, 예를 들어 BYTE_SUM 결과값이 255인 경우, 1바이트로 구성되는 255를 2바이트 문자인 "FF"로 변환하여 프레임에 적용한다.For example, when BYTE_SUM result value is 255, 255 which is composed of 1 byte is converted into 2-byte character "FF ", and the frame .

스왑은 체크박스 형태로서, BCC 연산 결과값이 2바이트인 경우 첫번째 바이트와 두번째 바이트의 순서를 변경하여 적용한다.
Swap is a check box type. When the result of BCC operation is 2 bytes, the order of first byte and second byte is changed and applied.

이러한 프레임 편집창에 프레임 문자열을 작성하는 과정을 살펴보면, 프레임 이름란에 임의의 프레임 이름을 입력하고, 전송 프레임란에 작성하려는 프로토콜의 양식에 맞게 송신 프레임의 문자열을 입력한다. 이때, 상기에서 예로 든 일본의 RKC사(社)의 AE500 온도표시기의 송신 프레임을 기준으로 보면, "STX + M1000500 + ETX + BCC"의 총 11바이트 문자열의 형태가 되는데, 'STX' 와 'ETX'같은 키보드로 입력할 수 없는 문자는 아스키 코드표(5)를 통해 입력하고, 'M1000500'은 키보드를 통해 입력하며, BCC 코드는 BCC란에서 설정된 BCC의 종류 및 시작 위치, 끝 위치, 삽입 위치 등의 설정 항목에 맞게 계산되어 자동으로 입력된다.
To create a frame string in the frame edit window, input an arbitrary frame name in the frame name field, and input a character string of the transmission frame in the transmission frame field according to the format of the protocol to be created. STX + M1000500 + ETX + BCC "in the form of a total of 11-byte character strings, STX and ETX are used for the transmission frame of the AE500 temperature indicator of Japan RKC Co., 'Is input through the ASCII code table (5),' M1000500 'is input through the keyboard, and the BCC code is the type of the BCC set in the BCC field and the start position, end position, insertion position And is input automatically.

통신 프레임의 문자열 입력이 완료되면, 통신 속성을 설정하게 되는데, 에디터 소프트웨어(1)의 기능 실행 버튼 중 Setting 버튼을 클릭하면 도 5 및 도 6과 같은 통신 환경 설정창이 표시된다.When the string input of the communication frame is completed, the communication attribute is set. When the setting button among the function execution buttons of the editor software 1 is clicked, the communication environment setting window as shown in Figs. 5 and 6 is displayed.

통신 환경 설정창에서는 가장 먼저 통신 타입 설정을 해야 하는데, 'Serial' 또는 'Ethernet' 등으로 선택 가능하며, Serial 선택시의 설정창이 도 5 에 도시되어 있고, Ethernet 선택시의 설정창이 도 6 에 도시되어 있다. 도 5 및 도 6 에 도시된 바와 같이, 선택된 통신 타입에 맞게 하부의 세팅 목록이 변경된다.In the communication environment setting window, first, the communication type must be set. It can be selected by 'Serial' or 'Ethernet', and a setting window when Serial is selected is shown in FIG. 5 and a setting window when Ethernet is selected is shown in FIG. have. As shown in Figs. 5 and 6, the lower setting list is changed according to the selected communication type.

통신 타입 설정 후 원하는 송신 프레임의 전송 주기인 통신 주기를 입력하고, 하부의 통신 포트 및 통신 속성을 설정한다.After setting the communication type, input the communication period which is the transmission period of the desired transmission frame, and set the lower communication port and communication property.

통신 포트 및 통신 속성은 'Serial' 과 'Ethernet'에서 각각 다른 메뉴가 나타나는데, 먼저 'Serial'의 경우 포트번호, 전송속도, 패리티비트, 데이터비트, 정지비트, 흐름제어 등의 항목이 나타나고, 'Ethernet'의 경우 TCP/IP 프로토콜 선택, IP주소, 리모트포트, 로컬포트 등의 항목이 나타나 이를 설정할 수 있게 된다.
In the case of 'Serial', items such as port number, transmission speed, parity bit, data bit, stop bit and flow control are displayed in 'Serial' and ' Ethernet ', items such as TCP / IP protocol selection, IP address, remote port and local port are displayed and can be set.

상기와 같이 통신을 위한 기본 송신 프레임의 편집과 통신 환경의 설정이 완료되면 Save 버튼을 실행하여 현재 설정을 저장하고, 현재 설정이 저장되면 에디터 소프트웨어(1)는 통신 준비상태로 대기하게 된다. 이후 메뉴창(2)의 Start 버튼을 실행하면 설정된 전송 주기로서 편집된 송신 프레임이 주기적으로 전송되며, 송신 프레임 및 송신 프레임에 따른 응답 데이터인 수신 프레임을 송수신 데이터리스트창(3)을 통해 모니터링할 수 있게 된다.When the editing of the basic transmission frame for communication and the setting of the communication environment are completed as described above, the Save button is executed to store the current setting. When the current setting is stored, the editor software 1 waits for the communication ready state. Thereafter, when the Start button of the menu window 2 is executed, the edited transmission frame is periodically transmitted as the set transmission period, and the reception frame which is the response data corresponding to the transmission frame and the transmission frame is monitored through the transmission / reception data list window 3 .

이때, 전송되는 통신 프레임, 즉, 송신 프레임 중 \x 형태로 시작되는 문자는 아스키 코드값으로 변경되어 전송하게 되는데, \x에 후속되는 16진수 2자리 숫자에 대응되는 아스키 코드가 아스키 코드값이 된다.At this time, the communication frame to be transmitted, that is, the character starting from the format of \ x in the transmission frame is changed to the ASCII code value and transmitted. The ASCII code corresponding to the two- do.

또한, 송수신 데이터리스트창(3)에 모니터링되는 정보는 Expert 버튼을 실행함으로써 엑셀 파일로 저장 가능하며, Code Gen 버튼을 실행함으로써 Visual Basic 또는 Labview 등의 프로그래밍 언어의 소스를 생성할 수 있다. 이때, 프로그래밍 언어의 소스를 생성하기 위하여 에디터 소프트웨어(1)는 해당 프로그래밍 언어에 대한 기본적인 샘플소스를 내장하고 있는 것이 바람직하며, 따라서 개발자로 하여금 현장의 상황에 맞는 상용 프로그래밍 소프트웨어를 통해 기술 개발을 할 수 있도록 한다.
In addition, information monitored in the transmission / reception data list window 3 can be stored in an Excel file by executing an Expert button, and a source of a programming language such as Visual Basic or Labview can be generated by executing a Code Gen button. At this time, in order to generate a source of the programming language, the editor software (1) preferably includes a basic sample source for the programming language, so that the developer can perform the technical development through the commercial programming software .

상술한 구성으로 이루어진 본 발명은, 직관적인 GUI(Graphical User Interface)를 사용하여 해당 프로토콜의 방식에 맞게 문자열을 입력하고 BCC 생성 규칙을 설정하는것만으로 통신 프레임의 생성이 가능하므로, MODBUS 등의 표준 프로토콜 뿐만 아니라 산업기기 제조사별 고유의 비표준 프로토콜에서도 용이하게 통신 프레임의 생성이 가능하며, 따라서 통신 시스템의 신속한 프로토타입 개발이 가능한 효과가 있다.According to the present invention having the above-described configuration, it is possible to generate a communication frame by inputting a character string and setting a BCC generation rule in accordance with the protocol of the protocol using an intuitive GUI (Graphical User Interface) In addition, it is possible to easily generate a communication frame even in a nonstandard protocol specific to an industrial device manufacturer, and thus it is possible to rapidly develop a prototype of a communication system.

또한, 본 발명은, 송수신 데이터가 리스트화되어 출력되고, 이를 문서화할 수 있으므로, 산업기기 계측 데이터의 활용 뿐만 아니라 통신 상태 모니터링 및 통신 장애 분석 도구로 활용할 수 있는 효과가 있다.In addition, since the transmission / reception data can be listed and output and can be documented, the present invention can be utilized not only as an industrial instrument measurement data but also as a communication status monitoring and communication fault analysis tool.

또한, 본 발명은, 통신 프레임을 상용 프로그래밍 소프트웨어의 프로그래밍 언어 소스로 자동 생성 가능하므로, 시스템 개발 시간을 단축할 수 있고, 시스템 개발 비용이 절감되는 효과가 있다.In addition, since the communication frame can be automatically generated as a programming language source of commercial programming software, the present invention can reduce system development time and system development cost.

1 : 에디터 소프트웨어 2 : 메뉴창
3 : 송수신 데이터리스트창 4 : 송신프레임 리스트창
5 : 아스키 코드표
1: Editor software 2: Menu window
3: Transmission data list window 4: Transmission frame list window
5: ASCII code table

Claims (6)

IT기반 산업기기와의 통신을 위한 통신 프레임을 생성하는 방법에 있어서,
상기 통신 프레임이 적용될 프로토콜의 선택 단계와, 상기 프로토콜의 방식에 맞게 문자열을 입력받되, 상기 문자열의 문자가 한 번의 키보드 입력으로 입력될 수 있는 경우 상기 키보드를 통해 상기 문자를 입력받고, 상기 문자열의 문자가 두 번 이상의 키보드 입력을 필요로 하는 경우 아스키 코드표를 통해 "\x"와 16진수 2문자의 조합으로 이루어진 상기 문자를 입력받는 단계 및 입력된 상기 문자열이 조합되는 단계를 포함하여 구성되는 문자열 입력 단계;
상기 문자열 입력 단계에서 입력된 상기 문자열이 BCC 종류, BCC 시작 위치, BCC 끝 위치, BCC 삽입 위치 정보가 포함된 BCC 연산 조건 입력 단계를 거쳐 연산되는 BCC(Block Check Code)가 생성되는 단계; 및
조합된 상기 문자열에 생성된 상기 BCC가 삽입되는 단계;
를 포함하여 구성되되,
\x로 시작되는 문자는 아스키 코드값으로 변경되어 상기 산업기기에 전송되되, 상기 아스키 코드값은 상기 \x에 후속되는 16진수 2자리 숫자에 대응되는 아스키 코드인 것을 특징으로 하는 통신 프레임 전송 단계; 및
상기 통신 프레임 전송 단계에서 전송되는 송신 프레임 및 상기 송신 프레임에 따른 응답 데이터인 수신 프레임이 리스트화 되어 출력되고 출력된 상기 송신 프레임 및 상기 수신 프레임을 엑셀 파일로 저장하는 모니터링 단계:
를 더 포함하여 구성되고,
상기 모니터링 단계는 상기 송신 프레임 및 상기 수신 프레임이 상용 프로그래밍 소프트웨어에서 활용 가능하도록, 상기 상용 프로그래밍 소프트웨어의 프로그래밍 언어의 형식에 맞게 상기 송신 프레임 및 상기 수신 프레임의 소스코드를 생성하는 단계를 포함하여 구성되는 것을 특징으로 하는 IT기반 산업기기의 통신 프레임 생성 방법.
A method for generating a communication frame for communication with an IT-based industrial device,
Selecting a protocol to which the communication frame is to be applied; inputting a character string according to the protocol type; receiving a character through the keyboard when characters of the character string can be input by one keyboard input; When the character requires keyboard input more than once, inputting the character composed of a combination of "\ x" and two hexadecimal characters through an ASCII code table, and combining the inputted character string A character string input step;
Generating a BCC (Block Check Code) to be operated through a BCC operation condition input step including the BCC type, the BCC start position, the BCC end position, and the BCC insertion position information inputted in the character string input step; And
Inserting the generated BCC into the combined string;
, ≪ / RTI >
wherein the character starting with \ x is changed to an ASCII code value and transmitted to the industrial equipment, wherein the ASCII code value is an ASCII code corresponding to a two-digit hexadecimal number following the " x "; And
A monitoring step of storing a transmission frame transmitted in the communication frame transmission step and a reception frame, which is response data according to the transmission frame, in a list, outputting the output transmission frame and the reception frame as an Excel file,
Further comprising:
Wherein the monitoring step comprises generating the source frame of the transmission frame and the reception frame according to a format of the programming language of the commercial programming software so that the transmission frame and the reception frame can be utilized in commercial programming software Wherein the method comprises the steps of:
삭제delete 삭제delete 삭제delete 삭제delete 삭제delete
KR1020120155914A 2012-12-28 2012-12-28 A method for generation of communication frame of IT-based industrial equipment KR101445275B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020120155914A KR101445275B1 (en) 2012-12-28 2012-12-28 A method for generation of communication frame of IT-based industrial equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120155914A KR101445275B1 (en) 2012-12-28 2012-12-28 A method for generation of communication frame of IT-based industrial equipment

Publications (2)

Publication Number Publication Date
KR20140085975A KR20140085975A (en) 2014-07-08
KR101445275B1 true KR101445275B1 (en) 2014-09-26

Family

ID=51735334

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120155914A KR101445275B1 (en) 2012-12-28 2012-12-28 A method for generation of communication frame of IT-based industrial equipment

Country Status (1)

Country Link
KR (1) KR101445275B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060081926A (en) * 2005-01-11 2006-07-14 엘지전자 주식회사 Packet configuration apparatus for communication control

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060081926A (en) * 2005-01-11 2006-07-14 엘지전자 주식회사 Packet configuration apparatus for communication control

Also Published As

Publication number Publication date
KR20140085975A (en) 2014-07-08

Similar Documents

Publication Publication Date Title
KR101936027B1 (en) Engineering tools, systems and modules
CN102867010B (en) The system and method that taking-up, storage and supply arrangement define fileinfo
US20220011753A1 (en) Generating and distributing configuration data structures for control systems
CN104935076A (en) Apparatus for data processing of energy management system
CN103970061A (en) Data creating device and method
JP5921765B2 (en) Program graph display device, program graph display method, and program graph display program
CN103970053A (en) Data creating device and method
KR101445275B1 (en) A method for generation of communication frame of IT-based industrial equipment
CN107407923A (en) PLC control datas generating means, PLC control datas generation method and PLC control datas generation program
CN111695238A (en) System and method for visualizing transient simulation data of power system
KR102076754B1 (en) Diagnostic system for control logic and method for diagnosing the same
Cherfia et al. Towards Formal Modeling and Verification of Context-Aware Systems.
US11726467B2 (en) Systems and methods for automatic configuration of intelligent electronic devices
JP2012174179A (en) Operation definition generation device for monitoring control system
CN113545013B (en) Network management device, management method, and recording medium
JP4738086B2 (en) Protocol conversion program creation support apparatus and creation support program
TW201243713A (en) Human machine interface device and interface integration method thereof
JP2015103160A (en) Component list creating system, component list creating method, and component list creating program
KR102482526B1 (en) Method for Providing of User Interface for Designing of Data Model
JP5504109B2 (en) Change display device for skeleton screen for power management
JP7391269B1 (en) FA control program generation support program, FA control program generation support device, FA control program generation support method
Kusriyanto et al. Android smart home system based on ATmega16
JP2007128363A (en) Programmable controller system
CN115796139A (en) Production report template establishing method and production report generating method
KR101718086B1 (en) Apparatus and method for processing tag of hmi

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E90F Notification of reason for final refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20171018

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20180710

Year of fee payment: 5