KR101409070B1 - Apparatus and method for data processing - Google Patents
Apparatus and method for data processing Download PDFInfo
- Publication number
- KR101409070B1 KR101409070B1 KR1020120098499A KR20120098499A KR101409070B1 KR 101409070 B1 KR101409070 B1 KR 101409070B1 KR 1020120098499 A KR1020120098499 A KR 1020120098499A KR 20120098499 A KR20120098499 A KR 20120098499A KR 101409070 B1 KR101409070 B1 KR 101409070B1
- Authority
- KR
- South Korea
- Prior art keywords
- input
- data
- operands
- output
- data processing
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/28—Error detection; Error correction; Monitoring by checking the correct order of processing
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
Abstract
본 발명은 데이터 처리 장치 및 데이터 처리 방법에 관한 것으로, 특히 PLC 명령어를 검사하기 위한 데이터 처리 장치 및 데이터 처리 방법에 관한 것이다.
본 발명의 일 실시 예에 따른 데이터 처리 장치는 복수의 입력 오퍼랜드들로 구성된 입력 데이터를 수신하고, 상기 입력 데이터에 포함된 복수의 입력 오퍼랜드들을 구성된 순서에 따라 분리하는 데이터 수신부, 상기 분리된 순서에 따라 복수의 입력 오퍼랜드들을 이용하여 순차적으로 명령어를 실행하는 명령어 실행부 및 상기 명령어 실행 결과 상기 복수의 입력 오퍼랜드에 대응하는 복수의 출력 오퍼랜드들을 출력하고, 상기 복수의 출력 오퍼랜드들로 구성된 출력 데이터를 전송하는 데이터 송신부를 포함한다.The present invention relates to a data processing apparatus and a data processing method, and more particularly, to a data processing apparatus and a data processing method for inspecting PLC commands.
A data processing apparatus according to an embodiment of the present invention includes a data receiving unit that receives input data composed of a plurality of input operands and separates a plurality of input operands included in the input data in a configured sequence, Outputting a plurality of output operands corresponding to the plurality of input operands as a result of execution of the instruction, and outputting the output data composed of the plurality of output operands And a data transmission unit.
Description
본 발명은 데이터 처리 장치 및 데이터 처리 방법에 관한 것으로, 특히 PLC 명령어를 검사하기 위한 데이터 처리 장치 및 데이터 처리 방법에 관한 것이다.The present invention relates to a data processing apparatus and a data processing method, and more particularly, to a data processing apparatus and a data processing method for inspecting PLC commands.
산업 현장의 자동화 설비는 릴레이 등을 사용한 기계적인 장비로 구성된다. 기계적인 장비로 구성된 자동화 설비를 변경하기 위해서는 설비의 내부 회로 배선을 변경하여야 하는 어려움이 있다. 이와 같은 어려움을 극복하기 위하여 PLC(Programmable Logic Controller)를 이용한다.The automation equipment of the industrial site consists of mechanical equipment using relays and so on. It is difficult to change the internal circuit wiring of the equipment in order to change the automatic equipment constituted by the mechanical equipment. In order to overcome such difficulties, PLC (Programmable Logic Controller) is used.
PLC의 CPU(Central Processing Unit)는 PLC의 연산 모듈로서, 복수의 PLC 명령어를 실행할 수 있다.The CPU (Central Processing Unit) of the PLC is an operation module of the PLC, and can execute a plurality of PLC commands.
PLC 명령어의 기능을 검사하기 위하여, 임의의 데이터를 명령어의 입력 값으로 설정할 때 기대되는 출력 값과 실제로 PLC 상에서 명령어를 수행하여 얻은 출력 값을 비교할 수 있다. PLC 명령어의 기능을 보다 정확하게 검사하기 위하여, 보다 많은 수의 데이터를 명령어의 입력 값 및 출력 기대 값으로 설정하여 PCL 명령어의 실제 결과 값과 비교할 수 있다.In order to check the function of the PLC command, it is possible to compare the expected output value when the arbitrary data is set as the input value of the command and the output value obtained by actually executing the command on the PLC. In order to check the function of the PLC instruction more accurately, a larger number of data can be set to the input value and output expected value of the instruction and compared with the actual result value of the PCL instruction.
이때, 하나의 입력 데이터를 이용하여 PLC 명령어를 검사하는 방법은 많은 시간이 소요될 수 있다. 따라서, PLC 명령어의 기능을 보다 효율적으로 검사할 필요성이 있다.At this time, a method of inspecting PLC commands using one input data may take a long time. Therefore, there is a need to more efficiently inspect the functions of the PLC commands.
본 발명은 PLC 명령어를 효율적으로 검사하는 데이터 처리 장치 및 데이터 처리 방법을 제공한다.The present invention provides a data processing apparatus and a data processing method for efficiently inspecting PLC commands.
본 발명의 일 실시 예에 따른 데이터 처리 장치는 복수의 입력 오퍼랜드들로 구성된 입력 데이터를 수신하고, 상기 입력 데이터에 포함된 복수의 입력 오퍼랜드들을 구성된 순서에 따라 분리하는 데이터 수신부, 상기 분리된 순서에 따라 복수의 입력 오퍼랜드들을 이용하여 순차적으로 명령어를 실행하는 명령어 실행부 및 상기 명령어 실행 결과 상기 복수의 입력 오퍼랜드에 대응하는 복수의 출력 오퍼랜드들을 출력하고, 상기 복수의 출력 오퍼랜드들로 구성된 출력 데이터를 전송하는 데이터 송신부를 포함한다.A data processing apparatus according to an embodiment of the present invention includes a data receiving unit that receives input data composed of a plurality of input operands and separates a plurality of input operands included in the input data in a configured sequence, Outputting a plurality of output operands corresponding to the plurality of input operands as a result of execution of the instruction, and outputting the output data composed of the plurality of output operands And a data transmission unit.
본 발명의 일 실시 예에 따른 데이터 처리 방법은 오퍼랜드의 개수를 결정하는 단계; 상기 결정된 개수만큼의 입력 오퍼랜드 및 기준 출력 오퍼랜드를 추출하는 단계; 상기 결정된 개수만큼의 입력 오퍼랜드로 구성되는 입력 데이터를 생성하는 단계; 상기 입력 데이터를 이용하여 명령어를 실행하는 단계; 상기 명령어가 실행된 결과, 상기 결정된 개수만큼의 입력 오퍼랜드에 대응하는 출력 오퍼랜드를 생성하는 단계; 및 상기 기준 출력 오퍼랜드와 상기 입력 오퍼랜드에 대응하는 출력 오퍼랜드를 비교하는 단계를 포함한다.A data processing method according to an embodiment of the present invention includes: determining a number of operands; Extracting the determined number of input operands and reference output operands; Generating input data composed of the determined number of input operands; Executing instructions using the input data; Generating an output operand corresponding to the determined number of input operands as a result of execution of the instruction; And comparing the reference output operand with an output operand corresponding to the input operand.
본 발명에 따르면, PLC 명령어를 단시간 내에 효율적으로 검사할 수 있다.According to the present invention, PLC commands can be efficiently checked in a short time.
도 1은 본 발명의 일 실시 예에 따른 데이터 처리 장치의 동작을 설명하기 위한 레더 다이어그램이다.
도 2는 본 발명의 일 실시 예에 따른 데이터 처리 방법을 설명하기 위한 흐름도이다.
도 3은 본 발명의 다른 실시 예에 따른 데이터 처리 장치의 구성 및 데이터 처리 시스템을 설명하기 위한 도면이다.
도 4는 본 발명의 다른 실시 예에 따른 데이터 처리 장치가 복수의 데이터를 처리하기 위한 데이터 처리 프로토콜을 설명하기 위한 도면이다.
도 5는 본 발명의 다른 실시 예에 따른 데이터 처리 장치의 동작을 설명하기 위한 레더 다이어그램이다.
도 6은 본 발명의 다른 실시 예에 따른 데이터 처리 방법을 설명하기 위한 흐름도이다.1 is a ladder diagram for explaining the operation of the data processing apparatus according to an embodiment of the present invention.
2 is a flowchart illustrating a data processing method according to an embodiment of the present invention.
3 is a diagram for explaining a configuration of a data processing apparatus and a data processing system according to another embodiment of the present invention.
4 is a diagram for explaining a data processing protocol for processing a plurality of data by a data processing apparatus according to another embodiment of the present invention.
5 is a ladder diagram for explaining the operation of the data processing apparatus according to another embodiment of the present invention.
6 is a flowchart illustrating a data processing method according to another embodiment of the present invention.
아래에서는 첨부한 도면을 참고로 하여 본 발명의 실시 예에 대하여 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나 본 발명은 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시 예에 한정되지 않는다. 그리고 도면에서 본 발명을 명확하게 설명하기 위해서 설명과 관계없는 부분은 생략하였으며, 명세서 전체를 통하여 유사한 부분에 대해서는 유사한 도면 부호를 붙였다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily carry out the present invention. The present invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. In order to clearly illustrate the present invention, parts not related to the description are omitted, and similar parts are denoted by like reference characters throughout the specification.
명세서 전체에서, 어떤 부분이 다른 부분과 "연결"되어 있다고 할 때, 이는 "직접적으로 연결"되어 있는 경우뿐 아니라, 그 중간에 다른 소자를 사이에 두고 "전기적으로 연결"되어 있는 경우도 포함한다.Throughout the specification, when a part is referred to as being "connected" to another part, it includes not only "directly connected" but also "electrically connected" with another part in between .
명세서 전체에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있는 것을 의미한다.Throughout the specification, when an element is referred to as "comprising ", it means that it can include other elements as well, without excluding other elements unless specifically stated otherwise.
이하에서는, 도 1을 참조하여 본 발명의 일 실시 예에 따른 데이터 처리 장치의 구성 및 데이터 처리 시스템을 설명한다.Hereinafter, a configuration of a data processing apparatus and a data processing system according to an embodiment of the present invention will be described with reference to FIG.
도 1은 본 발명의 일 실시 예에 따른 데이터 처리 장치의 구성 및 데이터 처리 시스템을 설명하기 위한 도면이다.1 is a diagram for explaining a configuration of a data processing apparatus and a data processing system according to an embodiment of the present invention.
도 1을 참조하면, 데이터 처리 시스템은 테스트케이스 저장부(130), 비교부(110) 및 PLC(500)를 포함한다.Referring to FIG. 1, the data processing system includes a test
테스트케이스 저장부(130)는 복수의 테스트케이스들(testcases)을 포함한다. 복수의 테스트케이스들은 각각 입력 값과 입력 값의 메모리 주소(Memory Address)를 포함하는 입력 데이터(input)와 입력 데이터(input)에 대한 명령어 실행 결과 예상되는 기대 출력 값과 기대 출력 값의 메모리 주소를 포함하는 제2 출력 데이터(output2)를 포함할 수 있고, 명령어별로 입력 데이터(input)와 제2 출력 데이터(output2)가 대응되어 포함될 수 있다. 테스트케이스 저장부(130)는 PC일 수도 있고, PC 이외의 저장 장치일 수도 있다.The test
PLC(500)의 CPU는 일종의 명령어 실행부로서, 명령어를 실행한다. 이하, PLC(500)의 명령어 실행 동작은 명령어 실행부인 PLC(500)의 CPU의 동작을 의미한다. PCL(500)는 입력 데이터(input)를 수신할 수 있다. PLC(500)는 입력 데이터(input)에 포함된 입력 값의 메모리 주소에서 입력 값을 추출하여 명령어를 실행할 수 있다. PLC(500)는 명령어 연산을 수행한 결과로서 실제 출력 값인 제1 출력 데이터(output1)을 출력할 수 있다. PLC(500)는 PLC 명령어 연산 프로그램을 통하여 실행할 명령어를 선택하고, 선택된 명령어의 연산을 수행할 수 있다.The CPU of the
비교부(110)는 예컨대, PC(Personal Computer)일 수 있다. PC는 명령어 자동 검사 프로그램을 구동할 수 있는 PC 시스템을 의미할 수 있다. 명령어 자동 검사 프로그램은 테스트케이스를 이용하여 명령어의 기능을 시험하는 프로그램일 수 있으며, 본 발명의 일 실시 예에 의한 테스트케이스 저장부(130) 및 비교부(110) 중 적어도 하나를 통하여 구동될 수 있다.The
예를 들면, 비교부(110)는 PLC(500)로부터 특정한 입력 데이터(input)에 대응하는 제1 출력 데이터(output1)를 전송받을 수 있다. 또한, 비교부(110)는 테스트케이스 저장부(130)로부터 해당 입력 데이터(input)에 대응하는 제2 출력 데이터(output2)가 포함된 테스트케이스를 전송받을 수 있다. 이어서, 비교부(110)는 제1 출력 데이터(output1)와 제2 출력 데이터(output2)를 비교함으로써, 해당 명령어의 기능을 판단할 수 있다. 예컨대, 비교부(110)는 제1 출력 데이터(output1)과 제2 출력 데이터(output2)의 오차를 계산하여 출력할 수도 있고, 오차가 적을수록 명령어의 기능에 오류가 적음을 판단하는 판단 결과를 출력할 수도 있다. 비교부(110)는 명령어 자동 검사 프로그램상에서 복수의 테스트케이스들을 이용하여 명령어의 기능을 보다 정확하게 시험할 수 있다.For example, the
도면에 도시되지 않았으나, 테스트케이스 저장부(130), 비교부(110) 중 적어도 하나를 포함하는 PC와 PLC(500)는 RS-232C(Recommended Standard), USB(Universal Serial Bus), Ethernet과 같은 통신 방법을 통하여 연결될 수 있다.Although not shown in the figure, the PC including at least one of the test
이하에서는, 도 2를 참조하여 본 발명의 일 실시 예에 따른 데이터 처리 방법을 설명한다.Hereinafter, a data processing method according to an embodiment of the present invention will be described with reference to FIG.
도 2는 본 발명의 일 실시 예에 따른 데이터 처리 방법을 설명하기 위한 흐름도이다.2 is a flowchart illustrating a data processing method according to an embodiment of the present invention.
도 2를 참조하면, PLC(500)는 PLC에 포함된 메모리를 초기화한다(S101).Referring to FIG. 2, the PLC 500 initializes a memory included in the PLC (S101).
이어서, PLC(500)는 명령어 실행시 연산의 대상이 되는 오퍼랜드들 각각에 PLC 메모리 주소를 할당한다(S103).Subsequently, the
PLC(500)는 명령어의 입력 오퍼랜드에 입력 값을 기록한다(S105). 입력 오퍼랜드는 명령어 실행을 위하여 입력되는 대상을 의미할 수 있다. PLC(500)는 PC에서 동작하는 명령어 자동 검사 프로그램으로부터 특정 명령어의 입력 데이터(input)를 전송받을 수 있다.The PLC 500 records the input value in the input operand of the instruction word (S105). An input operand may mean an object to be input for instruction execution. The PLC 500 can receive input data of a specific command from an automatic command checking program running on the PC.
PCL(500)는 명령어 연산을 수행한다(S107). PLC(500)는 PLC 명령어 연산 프로그램을 통하여 입력 값에 명령어가 정의하는 연산을 수행할 수 있다. PLC(500)가 명령어 연산을 수행한 결과 값을 제1 출력 데이터(output1)라고 가정한다. 제1 출력 데이터(output1)는 PLC(500)의 출력 오퍼랜드에 기록될 수 있다. PLC(500)는 명령어 연산 시작을 위하여 입력 접점을 온(ON)으로 변환할 수 있고, 명령어 연산이 수행된 후에는 입력 접점을 오프(OFF)로 변환하여 연산을 종료할 수 있다.The PCL 500 performs an instruction operation (S107). The
비교부(110)는 PLC(500)의 해당 명령어 출력 오퍼랜드에서 명령어 연산을 수행한 결과 값을 추출한다(S109). 예컨대, 비교부(110)는 PLC(500)의 출력 오퍼랜드에 기록된 제1 출력 데이터(output1)를 추출할 수 있다.The
비교부(110)는 실제 PLC 연산 결과 값과 기대 출력 값을 비교한다(S111). 비교부(110)는 테스트케이스 저장부(130)로부터 해당 입력 값을 이용한 해당 명령어 수행시 예상되는 기대 출력 값인 제2 출력 데이터(output2)를 추출할 수 있다. 이어서, 비교부(110)는 제1 출력 데이터(output1)와 제2 출력 데이터(output2)를 비교할 수 있다.The comparing
비교부(110)는 비교 결과에 따른 명령어 기능을 판단한다(S113). 비교부(110)는 제1 출력 데이터(output1)와 제2 출력 데이터(output2)를 비교한 결과, 출력 값의 차이를 통하여 명령어 기능에 오류가 있는지, 오류의 정도가 어느 정도인지 등을 판단할 수 있다. 비교부(110)는 출력 값의 차이가 일정한 값 이상인 경우에는 해당 명령어 기능을 불합격으로 판단할 수도 있다. 도면에 도시되지 않았으나, 비교부(110)는 판단 결과를 출력할 수 있다. PLC(500)와 비교부(110)는 도면 부호 S101 단계 내지 S113 단계를 복수회 수행하여 보다 정확한 판단 결과를 출력할 수 있다.The
도 3을 참조하여, 본 발명의 다른 실시 예에 따른 데이터 처리 장치의 구성 및 데이터 처리 시스템을 설명한다.Referring to FIG. 3, a configuration of a data processing apparatus and a data processing system according to another embodiment of the present invention will be described.
도 3은 본 발명의 다른 실시 예에 따른 데이터 처리 장치의 구성 및 데이터 처리 시스템을 설명하기 위한 도면이다.3 is a diagram for explaining a configuration of a data processing apparatus and a data processing system according to another embodiment of the present invention.
데이터 처리 시스템은 데이터 처리 장치(300), 데이터베이스(400), PLC(500)를 포함한다.The data processing system includes a
데이터 처리 장치(300)는 데이터 통합부(310), 데이터 분리부(330), 데이터 비교부(350)를 포함한다.The
데이터 통합부(310)는 복수의 입력 오퍼랜드(operand)들을 통합(integration)하여 하나의 입력 오퍼랜드 세트를 생성한다. 하나의 입력 오퍼랜드 세트는 복수의 입력 오퍼랜드들과 복수의 입력 오퍼랜드들 각각에 대응되는 메모리 주소들을 포함할 수 있다. 데이터 통합부(310)는 데이터베이스(400)로부터 복수의 입력 오퍼랜드들과 복수의 입력 오퍼랜드들 각각에 대응되는 메모리 주소들을 추출할 수 있다. 입력 오퍼랜드는 명령어 실행의 대상이 되는 피연산자를 의미할 수 있으며, 입력 오퍼랜드는 특정 입력 값을 포함할 수 있다. 데이터 통합부(310)는 일정한 데이터 처리 프로토콜을 기초로 하여 복수의 입력 오퍼랜드들과 복수의 메모리 주소들을 통합하여 하나의 입력 오퍼랜드 세트를 생성할 수 있다.The
데이터 통합부(310)는 생성된 하나의 입력 오퍼랜드 세트를 PLC(500)에 전송할 수 있다.The
데이터 분리부(330)는 하나의 실제 출력 오퍼랜드 세트를 분리하여 복수의 실제 출력 오퍼랜드들을 생성한다. 데이터 분리부(330)는 PLC(500)로부터 전송된 하나의 실제 출력 오퍼랜드 세트를 수신할 수 있다. 하나의 실제 출력 오퍼랜드 세트는 복수의 실제 출력 오퍼랜드들을 포함할 수 있다.The
데이터 비교부(350)는 실제 출력 오퍼랜드와 기준 출력 오퍼랜드를 비교한다. 데이터 비교부(350)는 데이터베이스(400)로부터 복수의 입력 오퍼랜드들 각각에 대응되는 복수의 기준 출력 오퍼랜드들을 추출할 수 있다. 명령어가 실행되는 것은 명령어의 연산자가 지정한 기능이 수행되는 것을 의미할 수 있다. 즉, 명령어가 실행되면, 입력 오퍼랜드에 지정된 연산 기능이 수행된 결과인 출력 오퍼랜드를 얻을 수 있다. 기준 출력 오퍼랜드는 입력 오퍼랜드를 이용하여 명령어를 실행한 경우에 기대할 수 있는 출력 값을 의미할 수 있다. 또한, 데이터 비교부(350)는 데이터 분리부(330)가 출력하는 복수의 실제 출력 오퍼랜드들을 수신할 수 있다. The
데이터 비교부(350)는 기준 출력 오퍼랜드와 실제 출력 오퍼랜드를 비교하여 비교 값을 출력할 수 있다. 데이터 처리 장치(300)는 비교 값을 이용하여, PLC 명령어의 기능을 검사할 수 있다. 예컨대, 데이터 처리 장치(300)는 비교 값이 작을수록, PLC 명령어 기능의 오차 범위가 적은 것으로 판정할 수 있다.The
데이터베이스(400)는 복수의 테스트 케이스들을 저장한다. 테스트 케이스는 명령어 실행시 입력되는 값인 입력 오퍼랜드, 기준 출력 오퍼랜드, 메모리 주소 정보를 포함할 수 있다. 데이터베이스(400)는 입력 오퍼랜드, 기준 출력 오퍼랜드와 각각의 메모리 주소를 매칭하여 저장할 수 있다.The
PLC(500)는 데이터 처리 장치(300)의 테이터 통합부(101)에서 생성된 하나의 입력 오퍼랜드 세트를 전송받는다. PLC(500)는 전송된 하나의 입력 오퍼랜드 세트를 임시 영역에 저장할 수 있다.The
PLC(500)는 하나의 입력 오퍼랜드 세트에 저장된 복수의 입력 오퍼랜드들과 복수의 입력 오퍼랜드들 각각에 대응되는 메모리 주소를 이용하여 하나 이상의 명령어들을 실행할 수 있다. PLC(500)는 임시 영역에 저장된 하나의 입력 오퍼랜드 세트로부터 복수의 입력 오퍼랜드들을 각각 순차적으로 읽고, 명령어 실행시 입력 데이터로 이용할 수 있다.The
PLC(500)는 명령어를 실행한 결과, 복수의 실제 출력 오퍼랜드들을 출력할 수 있다.As a result of executing the instruction, the
도 4를 참조하여, 본 발명의 일 실시 예에 따라서 데이터 처리 장치가 복수의 데이터를 처리하기 위한 데이터 처리 프로토콜을 설명한다.4, a data processing protocol for processing a plurality of data by a data processing apparatus according to an embodiment of the present invention will be described.
도 4는 본 발명의 다른 실시 예에 따른 데이터 처리 장치가 복수의 데이터를 처리하기 위한 데이터 처리 프로토콜을 설명하기 위한 도면이다.4 is a diagram for explaining a data processing protocol for processing a plurality of data by a data processing apparatus according to another embodiment of the present invention.
앞서 설명한 바와 같이, 데이터 처리 장치(300)의 데이터 통합부(310)는 데이터 처리 프로토콜을 기초로 하여 하나의 입력 오퍼랜드 세트를 생성할 수 있다.As described above, the
본 발명의 일 실시 예에 따른 데이터 처리 프로토콜의 구조는 테스트케이스 개수 정보(10)와 테스트케이스 내용 정보(30,50)를 순차적으로 저장하는 구조를 포함한다. 테스트케이스 개수 정보(10, Testcase Count)는 데이터 처리 장치(300)가 한 번에 검사하는 테스트케이스의 개수에 대한 정보를 의미할 수 있다. 예컨대, 데이터 처리 장치(300)가 한 번에 하나의 명령어를 검사하는 경우, 테스트케이스 개수 정보는 하나의 명령어를 검사하기 위하여 필요한 입력 오퍼랜드 세트의 개수(예컨대, N개)를 의미할 수도 있고, 하나의 명령어를 검사하기 위한 입력 오퍼랜드 세트의 순서(1~N)를 의미할 수도 있다.The structure of the data processing protocol according to an embodiment of the present invention includes a structure for sequentially storing the test
테스트케이스 내용 정보(30,50)는 데이터 처리 장치(300)가 한 번에 검사하는 테스트케이스들 각각의 내용에 대한 정보를 의미할 수 있다. 테스트케이스 내용 정보는 테스트케이스 헤더 정보(30, Testcase Header)와 테스트케이스 바디 정보(50, Testcase Body)를 포함할 수 있다.The test
테스트케이스 헤더 정보(30)는 명령어에 대한 정보, 오퍼랜드 개수(Operand Count)에 대한 정보, 입력 오퍼랜드 개수(Input Operand Count)에 대한 정보를 포함할 수 있다.The test
명령어에 대한 정보는 명령어 인덱스(Instruction Index)와 같이 명령어를 식별할 수 있는 정보를 의미할 수 있다. 명령어 인덱스는 명령어 고유 번호를 의미할 수도 있다.The information on the command may mean information that can identify the command, such as an instruction index. A command index may also denote a command unique number.
오퍼랜드 개수에 대한 정보는 하나의 테스트케이스에 포함된 오퍼랜드의 총 개수(예컨대, M개)에 대한 정보, 하나의 테스트케이스에 포함된 오퍼랜드의 순서에 대한 정보 등을 포함할 수 있다. 입력 오퍼랜드 개수에 대한 정보는 하나의 테스트케이스에 포함된 입력 오퍼랜드의 총 개수에 대한 정보, 하나의 테스트케이스에 포함된 입력 오퍼랜드의 순서에 대한 정보 등을 포함할 수 있다. 이때, 데이터 분리부(330)는 오퍼랜드의 총 개수에 대한 정보와 입력 오퍼랜드의 총 개수에 대한 정보를 이용하여 출력 오퍼랜드의 총 개수에 대한 정보를 알 수도 있다.The information on the number of operands may include information on the total number (for example, M) of operands included in one test case, information on the order of operands included in one test case, and the like. The information on the number of input operands may include information on the total number of input operands contained in one test case, information on the order of input operands included in one test case, and the like. At this time, the
테스트케이스 바디 정보(50)는 해당 테스트케이스에 포함된 복수의 오퍼랜드 데이터에 대한 정보를 포함할 수 있다. 하나의 테스트케이스는 복수의 입력 오퍼랜드 데이터와 이에 각각 대응하는 복수의 기준 출력 오퍼랜드 데이터를 포함할 수 있다. 입력 오퍼랜드 데이터는 입력 오퍼랜드에 기록된 입력 값과 메모리 주소를 의미할 수 있고, 기준 출력 오퍼랜드 데이터는 출력 오퍼랜드에 기록된 기준 출력 값과 메모리 주소를 의미할 수 있다. 테스트케이스 바디 정보(50)는 테스트케이스 헤더 정보(30)에 따른 개수(예컨대, M개)만큼의 오퍼랜드에 대한 정보를 테스트케이스 헤더 정보(30)에 따른 순서(1~M)대로 저장할 수 있다. 또한, 테스트케이스 바디 정보(50)는 복수의 오퍼랜드 데이터 각각의 크기(size)에 대한 정보를 포함할 수도 있다.The test
데이터 처리 장치(300)는 앞서 설명한 바와 같은 데이터 처리 프로토콜을 기초로 생성된 입력 오퍼랜드 세트를 이용하여 보다 효율적이고 정확하게 명령어의 성능을 검사할 수 있다.The
도 5를 참조하여 본 발명의 다른 실시 예에 따른 데이터 처리 장치의 동작을 설명한다.The operation of the data processing apparatus according to another embodiment of the present invention will be described with reference to FIG.
도 5는 본 발명의 다른 실시 예에 따른 데이터 처리 장치의 동작을 설명하기 위한 레더 다이어그램이다.5 is a ladder diagram for explaining the operation of the data processing apparatus according to another embodiment of the present invention.
데이터 처리 장치(300)는 데이터베이스(400)로부터 전송된 복수의 오퍼랜드들 중에서 테스트케이스에 포함될 입력 오퍼랜드를 추출할 수 있다(S301).The
데이터 통합부(310)는 추출된 입력 오퍼랜드를 이용하여 입력 데이터를 생성한다(S303). 입력 데이터는 하나 또는 그 이상의 테스트케이스를 의미할 수 있다. 데이터 통합부(310)는 앞서 설명한 데이터 처리 프로토콜을 적용하여 하나 또는 그 이상의 테스트케이스를 생성할 수 있다. 테스트케이스는 적어도 하나 이상의 입력 오퍼랜드들로 구성될 수 있다. 데이터 처리 장치(300)는 PLC(500)에 하나의 입력 데이터를 전송할 수 있다.The
PLC(500)는 데이터 처리 장치(300)로부터 입력 데이터를 전송받아 명령어를 실행한다(S305). PLC(500)는 전송받은 입력 데이터를 임시 영역에 저장하고, 입력 데이터에 포함된 하나 또는 그 이상의 테스트케이스를 순차적으로 이용하여 명령어를 실행할 수 있다. 이때, PLC(500)는 PLC 명령어 연산 프로그램을 통하여 명령어를 실행할 수 있다. PLC(500)는 복수의 테스트케이스에 포함된 모든 입력 오퍼랜드의 개수만큼 명령어 실행 단계를 반복할 수 있다. PLC(500)는 명령어 실행 단계의 반복이 종료될 때까지 명령어 실행시 출력되는 실제 출력 오퍼랜드들을 임시 영역에 저장할 수 있다. 이후, PLC(500)는 명령어 실행 단계가 종료된 이후, 복수의 실제 출력 오퍼랜드들이 포함된 하나의 출력 데이터를 데이터 처리 장치(300)에 전송할 수 있다. The
데이터 처리 장치(300)는 데이터베이스(400)로부터 전송된 복수의 오퍼랜드들 중에서 테스트케이스에 포함될 입력 오퍼랜드에 대응하는 기준 출력 오퍼랜드를 추출할 수 있다(S307). 도면 부호 S307 단계는 도면 부호 S311 단계 이전이라면 언제든지 실행될 수 있다.The
데이터 분리부(330)는 PLC(500)로부터 전송된 실제 출력 데이터를 분리한다(S309). 데이터 분리부(330)는 전송된 하나의 출력 데이터를 복수의 실제 출력 오퍼랜드들로 분리할 수 있다.The
데이터 비교부(350)는 도면 부호 S307 단계에서 추출한 기준 출력 오퍼랜드와 도면 부호 S309 단계에서 분리한 실제 출력 오퍼랜드를 비교한다(S311). 이때, 데이터 비교부(350)는 동일한 명령어 수행시 입력된 동일한 입력 오퍼랜드에 대응하는 기준 출력 오퍼랜드와 실제 출력 오퍼랜드를 비교할 수 있다.The
데이터 처리 장치(300)는 도면 부호 S311 단계에서 기준 출력 오퍼랜드와 실제 출력 오퍼랜드를 비교한 결과를 출력한다(S313). 데이터 처리 장치(300)는 비교 값을 출력할 수도 있고, 비교 값을 이용하여 PLC 명령어의 성능을 판단한 결과를 출력할 수도 있다.The
도 6을 참조하여, 도 6은 본 발명의 다른 실시 예에 따른 데이터 처리 방법을 설명한다.Referring to FIG. 6, FIG. 6 illustrates a data processing method according to another embodiment of the present invention.
도 6은 본 발명의 다른 실시 예에 따른 데이터 처리 방법을 설명하기 위한 흐름도이다.6 is a flowchart illustrating a data processing method according to another embodiment of the present invention.
데이터 처리 장치(300)는 테스트케이스의 개수를 결정한다(S501). 예컨대, 하나의 명령어를 검사하기 위하여 하나의 테스트케이스가 이용된다고 가정하면, 데이터 처리 장치(300)는 하나의 명령어를 검사하는 경우에는 테스트케이스의 개수를 1개로 결정하고, 복수의 명령어를 검사하는 경우에는 테스트케이스의 개수를 검사하고자 하는 명령어의 개수와 동일한 개수로 결정할 수 있다. 또한, 데이터 처리 장치(300)는 하나의 테스트케이스를 구성하는 입력 오퍼랜들의 개수를 결정할 수도 있다.The
데이터 처리 장치(300)는 데이터베이스(400)로부터 입력 오퍼랜드를 추출한다(S503). 데이터 처리 장치(300)는 도면 부호 S501 단계에서 결정된 개수만큼의 입력 오퍼랜드를 추출할 수 있다.The
데이터 통합부(100)는 입력 데이터를 생성하여 PLC(500)에 전송한다(S505). 데이터 통합부(100)는 도면 부호 S501 단계에서 결정된 개수만큼의 입력 오퍼랜드를 이용하여 입력 데이터를 생성할 수 있다.The data integration unit 100 generates input data and transmits it to the PLC 500 (S505). The data integration unit 100 may generate input data using the number of input operands determined in step S501.
데이터 처리 장치(300)는 PLC(500)로부터 도면 부호 S501 단계에서 결정된 개수만큼의 출력 오퍼랜드가 포함된 출력 데이터를 수신한다(S507).The
데이터 분리부(330)는 출력 데이터를 분리하여 복수의 실제 출력 오퍼랜드를 추출한다(S509).The
데이터 처리 장치(300)는 데이터베이스(400)로부터 기준 출력 오퍼랜드를 추출한다(S511). 데이터 처리 장치(300)는 도면 부호 S501 단계에서 결정된 개수만큼의 기준 출력 오퍼랜드를 추출할 수 있다. 기준 출력 오퍼랜드는 도면 부호 S501 단계에서 추출한 입력 오퍼랜드와 대응될 수 있다.The
데이터 비교부(350)는 기준 출력 오퍼랜드와 실제 출력 오퍼랜드를 비교한다(S513). 이어서, 데이터 처리 장치(300)는 데이터 비교부(350)가 비교한 결과를 이용하여 명령어의 기능을 검사할 수 있다.The
이상에서 설명한 본 발명의 실시 예는 장치 및 방법을 통해서만 구현이 되는 것은 아니며, 본 발명의 실시 예의 구성에 대응하는 기능을 실현하는 프로그램 또는 그 프로그램이 기록된 기록 매체를 통해 구현될 수도 있으며, 이러한 구현은 앞서 설명한 실시 예의 기재로부터 본 발명이 속하는 기술분야의 전문가라면 쉽게 구현할 수 있는 것이다. The embodiments of the present invention described above are not only implemented by the apparatus and method but may be implemented through a program for realizing the function corresponding to the configuration of the embodiment of the present invention or a recording medium on which the program is recorded, The embodiments can be easily implemented by those skilled in the art from the description of the embodiments described above.
이상에서 본 발명의 실시 예에 대하여 상세하게 설명하였지만 본 발명의 권리범위는 이에 한정되는 것은 아니고 다음의 청구범위에서 정의하고 있는 본 발명의 기본 개념을 이용한 당업자의 여러 변형 및 개량 형태 또한 본 발명의 권리범위에 속하는 것이다.While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, It belongs to the scope of right.
300: 데이터 처리 장치 310: 데이터 통합부
330: 데이터 분리부 350: 데이터 비교부
400: 데이터베이스 500: PLC300: Data processing unit 310: Data integration unit
330: Data separation unit 350: Data comparison unit
400: Database 500: PLC
Claims (4)
상기 결정된 개수만큼의 입력 오퍼랜드 및 기준 출력 오퍼랜드를 추출하는 단계;
상기 결정된 개수만큼의 입력 오퍼랜드로 구성되는 입력 데이터를 생성하는 단계;
상기 입력 데이터를 이용하여 명령어를 실행하는 단계;
상기 명령어가 실행된 결과, 상기 결정된 개수만큼의 입력 오퍼랜드에 대응하는 출력 오퍼랜드를 생성하는 단계; 및
상기 기준 출력 오퍼랜드와 상기 입력 오퍼랜드에 대응하는 출력 오퍼랜드를 비교하는 단계를 포함하는
데이터 처리 방법.Determining a number of operands;
Extracting the determined number of input operands and reference output operands;
Generating input data composed of the determined number of input operands;
Executing instructions using the input data;
Generating an output operand corresponding to the determined number of input operands as a result of execution of the instruction; And
And comparing the reference output operand with an output operand corresponding to the input operand
Data processing method.
상기 입력 오퍼랜드 및 기준 출력 오퍼랜드를 추출하는 단계는
데이터베이스로부터 전송된 복수의 입력 오퍼랜드들 및 복수의 기준 출력 오퍼랜드들을 수신하는 단계;
상기 수신된 복수의 입력 오퍼랜드들 중에서 상기 결정된 개수만큼의 입력 오퍼랜드를 추출하는 단계; 및
상기 수신된 복수의 기준 출력 오퍼랜드들 중에서 상기 결정된 개수만큼의 기준 출력 오퍼랜드를 추출하는 단계를 포함하는
데이터 처리 방법.The method according to claim 1,
The step of extracting the input operand and the reference output operand
Receiving a plurality of input operands sent from a database and a plurality of reference output operands;
Extracting the determined number of input operands from the received plurality of input operands; And
And extracting the determined number of reference output operands from the received plurality of reference output operands
Data processing method.
상기 입력 데이터를 이용하여 명령어를 실행하는 단계는
상기 입력 데이터에 포함된 복수의 입력 오퍼랜드들을 구성된 순서대로 분리하는 단계; 및
상기 분리된 순서대로 복수의 입력 오퍼랜드들을 이용하여 순차적으로 명령어를 실행하는 단계를 포함하는
데이터 처리 방법.The method according to claim 1,
The step of executing an instruction using the input data
Separating a plurality of input operands included in the input data in a configured order; And
And sequentially executing the instructions using the plurality of input operands in the separated order
Data processing method.
상기 분리된 순서에 따라 복수의 입력 오퍼랜드들을 이용하여 순차적으로 명령어를 실행하는 명령어 실행부; 및
상기 명령어 실행 결과 상기 복수의 입력 오퍼랜드에 대응하는 복수의 출력 오퍼랜드들을 출력하고, 상기 복수의 출력 오퍼랜드들로 구성된 출력 데이터를 전송하는 데이터 송신부를 포함하는
데이터 처리 장치.A data receiving unit receiving input data composed of a plurality of input operands and separating a plurality of input operands included in the input data according to a configured sequence;
A command execution unit that sequentially executes a command using a plurality of input operands according to the separated order; And
And a data transmission unit for outputting a plurality of output operands corresponding to the plurality of input operands as a result of executing the instruction and transmitting output data composed of the plurality of output operands
Data processing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020120098499A KR101409070B1 (en) | 2012-09-05 | 2012-09-05 | Apparatus and method for data processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020120098499A KR101409070B1 (en) | 2012-09-05 | 2012-09-05 | Apparatus and method for data processing |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20140031765A KR20140031765A (en) | 2014-03-13 |
KR101409070B1 true KR101409070B1 (en) | 2014-06-18 |
Family
ID=50643716
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020120098499A KR101409070B1 (en) | 2012-09-05 | 2012-09-05 | Apparatus and method for data processing |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101409070B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106527335B (en) * | 2016-12-08 | 2019-03-19 | 湖南戈人自动化科技有限公司 | A kind of PLC controller for supporting association Cheng Gongneng |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100279511B1 (en) | 1996-12-24 | 2001-02-01 | 신현준 | PI instruction high speed processing system |
-
2012
- 2012-09-05 KR KR1020120098499A patent/KR101409070B1/en active IP Right Grant
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100279511B1 (en) | 1996-12-24 | 2001-02-01 | 신현준 | PI instruction high speed processing system |
Non-Patent Citations (1)
Title |
---|
심재우 외 2인, '모델 기반의 PLC 명령어 검증 방법', CICS 2011 정보 및 제어 학술대회 논문집, 2011년 pp. 247-248 * |
Also Published As
Publication number | Publication date |
---|---|
KR20140031765A (en) | 2014-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2017142088A (en) | SELF DIAGNOSTICS OF THE AUTONOMOUS VEHICLE PROCESSOR | |
US20170168885A1 (en) | System and Method for Testing Internet of Things Network | |
US9140745B1 (en) | System and method for cloud testing and remote monitoring of integrated circuit devices | |
US9495492B1 (en) | Implementing synchronous triggers for waveform capture in an FPGA prototyping system | |
CN108959678B (en) | Method and apparatus for testing the design of satellite wiring harnesses and signal processing units | |
CN105205249A (en) | SOC (System on Chip) debugging validation system and software/hardware collaboration method thereof | |
CN106445800A (en) | Chip verification method and device | |
US10108763B2 (en) | Method and simulation arrangement for simulating an automated industrial plant | |
CN107797928B (en) | Instrument control system platform logic algorithm block testing device and method | |
CN104834576B (en) | The computer system and method for hardware device test are carried out based on virtual machine | |
TWI598819B (en) | Computer system and method for testing hardware device based on virtual machine | |
JPWO2016151716A1 (en) | Sensor terminal failure or abnormality detection method | |
KR101409070B1 (en) | Apparatus and method for data processing | |
JP4695638B2 (en) | Failure pattern estimation method, failure pattern estimation device, and program | |
CN112035346B (en) | Automatic test method, system and medium based on embedded DSP operating system | |
CN110968004B (en) | Cable test system based on FPGA prototype verification development board | |
CN107222332A (en) | Method of testing, device, system and machinable medium | |
EP3015931B1 (en) | Plc system with a webserver and a partitioned memory | |
CN111190786A (en) | UVM-based test framework, test platform and test method | |
US9304171B2 (en) | Computer-implemented method for generating software, a battery, and a motor vehicle | |
US11665165B2 (en) | Whitelist generator, whitelist evaluator, whitelist generator/evaluator, whitelist generation method, whitelist evaluation method, and whitelist generation/evaluation method | |
CN106919748B (en) | Device and method for improving FPGA prototype verification efficiency | |
JP6765374B2 (en) | Information processing device and information processing method | |
WO2018138816A1 (en) | Test device, test method, and test program | |
CN111552263B (en) | Method, computer-readable storage medium and system for inspecting industrial facilities |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20180402 Year of fee payment: 5 |
|
FPAY | Annual fee payment |
Payment date: 20190429 Year of fee payment: 6 |