KR20130112676A - Program creation supporting device and program creation supporting method - Google Patents
Program creation supporting device and program creation supporting method Download PDFInfo
- Publication number
- KR20130112676A KR20130112676A KR1020120115274A KR20120115274A KR20130112676A KR 20130112676 A KR20130112676 A KR 20130112676A KR 1020120115274 A KR1020120115274 A KR 1020120115274A KR 20120115274 A KR20120115274 A KR 20120115274A KR 20130112676 A KR20130112676 A KR 20130112676A
- Authority
- KR
- South Korea
- Prior art keywords
- label
- text
- program
- accessory information
- extracted
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/169—Annotation, e.g. comment data or footnotes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Automation & Control Theory (AREA)
- User Interface Of Digital Computer (AREA)
- Programmable Controllers (AREA)
- Stored Programmes (AREA)
Abstract
Description
본 발명은 프로그램 작성 지원 장치 및 프로그램 작성 지원 방법에 관한 것으로, 특히, 입출력 단자를 구비하는 컨트롤러(controller)가 실행하는 동작 프로그램(program)을, 디바이스(device)나 라벨(lavel)을 이용하여 텍스트 언어 형식으로 작성하기 위한 프로그램 작성 지원 장치 및 프로그램 작성 지원 방법에 관한 것이다.BACKGROUND OF THE
종래의 입출력 단자를 구비하는 컨트롤러로서, PLC(Programmable Logic Controller)나 CNC(Computerized Numerical Control) 컨트롤러, 모션 컨트롤러(motion controller), 로봇 컨트롤러(robot controller), 데이터 수집 컨트롤러(data collection controller) 등이 알려져 있다.As a controller having a conventional input / output terminal, a PLC (Programmable Logic Controller), a Computerized Numerical Control (CNC) controller, a motion controller, a robot controller, a data collection controller, and the like are known. have.
이들의 컨트롤러는, 정적인 메모리 영역(memory area, memory space)과 동적인 메모리 영역을 구비하고 있다. 정적인 메모리 영역은, 입출력 단자의 값 및 복수의 프로그램에 의해 제어되는 글로벌(global)한 값을 유지한다. 동적인 메모리 영역은, 하나의 프로그램에 의해서만 제어되는 로컬(local)의 값을 유지한다. 이하, 이들의 메모리 영역인 것을 디바이스(device)라고 부른다.These controllers have a static memory area (memory area) and a dynamic memory area. The static memory area maintains the values of the input / output terminals and the global values controlled by the plurality of programs. Dynamic memory areas maintain local values that are controlled only by one program. Hereinafter, these memory areas are called devices.
하기하는 비특허 문헌 1에 기재된 PLC에서는, 데이터 종류별에 의해 디바이스 문자(X, Y, M, D 등)가 미리 결정되어 있다. 예를 들면, 입력을 할당한 디바이스를 X디바이스로 하고 있다. 출력을 할당한 디바이스를 Y디바이스로 하고 있다. 내부적으로 사용하는 비트 데이터(bit data)(내부 릴레이)를 M디바이스로 하고 있다. 내부적으로 사용하는 워드 데이터(word data)(레지스터)를 D디바이스로 하고 있다.In PLC described in
프로그램(program)은, 디바이스의 어드레스(address)를 이용하여 기술된다. 프로그램 작성 지원 장치는, 이 프로그램의 작성을 지원하는 에디터(editor)를 구비하고 있다. 또한, 프로그램 작성 지원 장치는, 컨트롤러와 통신한다. 프로그램 작성 지원 장치는, 완성한 프로그램을 컨트롤러에 전송하는 기능이나, 컨트롤러가 실행중의 프로그램을 모니터링하는 기능을 구비하고 있다.The program is described using the address of the device. The program creation support apparatus is provided with an editor that supports creation of this program. The program creation support device also communicates with a controller. The program creation support apparatus has a function of transferring a completed program to a controller and a function of monitoring a program being executed by the controller.
예를 들면, 하기한 비특허 문헌 1의 프로그램 작성 지원 장치에서는, 래더 다이어그램(ladder diagram)에 의한 프로그램 작성 에디터가 구비되어 있다. 프로그램 작성 에디터는, 보다 알기 쉽게 프로그램 작성할 수 있도록, 프로그램의 보충 설명문을 프로그램 코멘트(program comment)로서 삽입하는 기능(당해 코멘트는, 하기 비특허 문헌 1에서는, 스테이트멘트(statement)라고 불린다)를 갖고 있다. 또한, 프로그램 작성 에디터는, 디바이스의 내용을 상세히 설명한 디바이스 코멘트(device comment)를 설정하는 기능을 갖고 있다.For example, in the program creation support device of Non-Patent
또한, 프로그램 작성 에디터에는, 래더 다이어그램 중에 기술된 디바이스에 대해, 디바이스 코멘트를 표시하는 기능이 구비되어 있다. 이에 의해, 프로그램 작성자가 프로그램 코멘트를 삽입하는 일 없이, 래더 다이어그램의 가독성을 좋게 하는 것이 가능하게 되어 있다. 특히, 컨트롤러의 계측 제어 프로그램에서는, 정적인 디바이스가 많이 사용되기 때문에, 이와 같은 정적인 디바이스에 대해 디바이스 코멘트를 설정하고, 이것을 래더 다이어그램에서 표시하는 것은 유용(useful)하다.The program creation editor is also provided with a function for displaying device comments for the device described in the ladder diagram. This makes it possible to improve the readability of the ladder diagram without the program author inserting a program comment. In particular, since many static devices are used in the measurement control program of the controller, it is useful to set a device comment for such a static device and display it in the ladder diagram.
또한, 근래에는, 프로그램의 재이용성을 높이기 위해, 디바이스에 대한 별명인 라벨(label)을 정의하고, 라벨을 이용하여 프로그램을 작성하고, 라벨을 디바이스에 할당하는 설정을 별도로 행하도록 하는 기능도 구비되어 있다. 이 라벨에 대해서도, 라벨의 내용을 상세히 설명한 라벨 코멘트를 설정하는 기능이 있다.In addition, in recent years, in order to increase the reusability of a program, a function of defining a label that is an alias for a device, creating a program using the label, and assigning a label to the device is also provided. It is. This label also has a function of setting a label comment that details the contents of the label.
그리고, 래더 다이어그램 중에 기술된 라벨에 대해, 라벨 코멘트를 표시하는 기능이 구비되어 있다. 이에 의해, 프로그램 작성자가 프로그램 코멘트를 기술하는 일 없이, 래더 다이어그램의 가독성을 좋게 하는 것이 가능하게 되어 있다. 특히, 재이용성이 높은 계측 제어 프로그램에서는, 라벨이 많이 사용되기 때문에, 이와 같은 라벨에 대해 라벨 코멘트를 설정하고, 이것을 래더 다이어그램으로 표시하는 것은, 유용하다.A function for displaying a label comment is provided for the label described in the ladder diagram. This enables the programmer to improve the readability of the ladder diagram without writing the program comments. In particular, since a lot of labels are used in a highly reusable measurement control program, it is useful to set a label comment for such a label and display it in a ladder diagram.
프로그램은, 래더 다이어그램이나 FBD(Function Block Diagram), SFC(Sequential Function Chart)라는 도적(圖的) 표현에 의한 언어 형식 외에, IL(InstructionList)이나 ST(Structured Text)라는 텍스트 언어 형식에 의해 작성된다.The program is written in the form of a text language such as IL (InstructionList) or ST (Structured Text), in addition to the language form of a rogue representation such as a ladder diagram, a function block diagram (FBD), or a sequential function chart (SFC). .
그런데, 텍스트 언어 형식(textual language)에 의한 프로그램 작성 에디터의 경우에는, 텍스트 프로그램 중에 기술(記述)된 디바이스나 라벨에 대해, 디바이스 코멘트나 라벨 코멘트를 표시하는 기능이 구비되어 있지 않다. 그 때문에, 텍스트 언어 형식으로 기재된 텍스트 프로그램의 가독성을 좋게 하기 위해서는, 프로그램 작성자가 스스로 코멘트 아웃 지정 기호를 이용하여 프로그램의 보충 설명문을 프로그램 코멘트로서 기술 삽입하는 이외에 방법이 없고, 프로그램 작성의 작업 시간이 쓸데없이 걸려 버린다는 문제점이 있다.By the way, in the case of a program creation editor in a text language format, a device comment or label comment is not provided for a device or label described in the text program. Therefore, in order to improve the readability of a text program written in a text language format, the program author has no option but to insert a supplementary description of the program as a program comment by using the comment-out designator himself, There is a problem that it takes unnecessary use.
본 발명은 이러한 문제점을 해결하기 위해 이루어진 것으로, 텍스트 프로그램 중에 기술된 디바이스나 라벨에 대해, 디바이스 코멘트나 라벨 코멘트를 표시함에 의해, 프로그램 작성의 작업시간을 억제하면서, 텍스트 프로그램의 가독성의 향상을 도모하기 위한, 프로그램 작성 지원 장치 및 프로그램 작성 지원 방법을 얻는 것을 목적으로 하고 있다.SUMMARY OF THE INVENTION The present invention has been made to solve such a problem, and by displaying device comments and label comments on devices and labels described in a text program, it is possible to improve the readability of the text program while suppressing the working time of the program creation. An object of the present invention is to obtain a program creation support device and a program creation support method.
본 발명은, 컨트롤러가 실행하는 프로그램을, 디바이스나 라벨을 이용하여 텍스트 언어 형식으로 기재하여, 텍스트 프로그램을 작성하는 텍스트 프로그램 편집부와, 상기 디바이스나 라벨에 관한 내용 설명을 부속 정보로서 설정하는 부속 정보 설정부와, 상기 부속 정보 설정부에서 설정된 상기 부속 정보를 보존하는 부속 정보 보존부를 구비하고, 상기 텍스트 프로그램 편집부는, 상기 텍스트 프로그램으로부터, 그곳에 기재되어 있는 디바이스나 라벨을 추출하는 디바이스·라벨 추출부와, 상기 부속 정보 설정부에서 설정된 상기 부속 정보 또는 상기 부속 정보 보존부에 보존된 상기 부속 정보를 참조하여, 상기 추출된 디바이스나 라벨의 상기 부속 정보를 추출하는 부속 정보 추출부와, 상기 텍스트 프로그램을 참조하여, 상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치를 추출하는 표시 위치 추출부와, 상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치의 직전의 행(行) 또는 직후의 행에, 상기 표시 위치 추출부에 의해 추출된 상기 디바이스나 라벨의 표시 위치에 대응시켜서, 상기 추출한 부속 정보를 표시하는 텍스트 부속 정보 표시부를 구비한 것을 특징으로 하는 프로그램 작성 지원 장치이다.The present invention provides a text program editing unit for writing a program to be executed by a controller in a text language format using a device or a label, and creating a text program, and appended information for setting a description of the content of the device or label as accessory information. And a sub information storage section for storing the sub information set in the sub information setting section, wherein the text program editing section extracts a device and a label described therefrom from the text program. And an accessory information extraction unit for extracting the accessory information of the extracted device or label by referring to the accessory information set in the accessory information setting unit or the accessory information stored in the accessory information storage unit. With reference to the extracted device or A display position extracting unit for extracting a display position of the bell in the text program, and a display position extracting unit in a row immediately before or after a display position of the extracted device or label in the text program; And a text accessory information display unit for displaying the extracted accessory information in correspondence with the display position of the device or label extracted by the apparatus.
본 발명은, 컨트롤러가 실행하는 프로그램을, 디바이스나 라벨을 이용하여 텍스트 언어 형식으로 기재하여, 텍스트 프로그램을 작성하는 텍스트 프로그램 편집부와, 상기 디바이스나 라벨에 관한 내용 설명을 부속 정보로서 설정하는 부속 정보 설정부와, 상기 부속 정보 설정부에서 설정된 상기 부속 정보를 보존하는 부속 정보 보존부를 구비하고, 상기 텍스트 프로그램 편집부는, 상기 텍스트 프로그램으로부터, 그곳에 기재되어 있는 디바이스나 라벨을 추출하는 디바이스·라벨 추출부와, 상기 부속 정보 설정부에서 설정된 상기 부속 정보 또는 상기 부속 정보 보존부에 보존된 상기 부속 정보를 참조하여, 상기 추출된 디바이스나 라벨의 상기 부속 정보를 추출하는 부속 정보 추출부와, 상기 텍스트 프로그램을 참조하여, 상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치를 추출하는 표시 위치 추출부와, 상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치의 직전의 행 또는 직후의 행에, 상기 표시 위치 추출부에 의해 추출된 상기 디바이스나 라벨의 표시 위치에 대응시켜서, 상기 추출한 부속 정보를 표시하는 텍스트 부속 정보 표시부를 구비한 것을 특징으로 하는 프로그램 작성 지원 장치이기 때문에, 텍스트 프로그램 중에 기술된 디바이스나 라벨에 대해, 디바이스 코멘트나 라벨 코멘트를 표시함에 의해, 프로그램 작성의 작업시간을 억제하면서, 텍스트 프로그램의 가독성의 향상을 도모할 수 있다.The present invention provides a text program editing unit for writing a program to be executed by a controller in a text language format using a device or a label, and creating a text program, and appended information for setting a description of the content of the device or label as accessory information. And a sub information storage section for storing the sub information set in the sub information setting section, wherein the text program editing section extracts a device and a label described therefrom from the text program. And an accessory information extraction unit for extracting the accessory information of the extracted device or label by referring to the accessory information set in the accessory information setting unit or the accessory information stored in the accessory information storage unit. With reference to the extracted device or A display position extraction section for extracting a display position of the bell in the text program, and a row immediately before or immediately after the display position of the extracted device or label in the text program; The device is a program creation support apparatus characterized by comprising a text accessory information display unit for displaying the extracted accessory information in correspondence with the displayed position of the device or label. By displaying the label comments, it is possible to improve the readability of the text program while suppressing the working time of the program creation.
도 1은 본 발명에 관한 프로그램 작성 지원 장치의 하드웨어(hardware) 구성을 도시하는 구성도.
도 2는 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치의 구성을 도시하는 블록도.
도 3은 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치의 처리 플로를 도시하는 플로차트.
도 4는 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치의 텍스트 프로그램 편집부의 예를 도시하는 설명도.
도 5는 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치의 다른 처리 플로를 도시하는 플로차트.
도 6은 본 발명의 실시의 형태 2에 관한 프로그램 작성 지원 장치의 구성을 도시하는 블록도.
도 7은 본 발명의 실시의 형태 2에 관한 프로그램 작성 지원 장치의 인쇄용 출력의 예를 도시하는 설명도.
도 8은 본 발명의 실시의 형태 3에 관한 프로그램 작성 지원 장치의 구성을 도시하는 블록도.
도 9는 본 발명의 실시의 형태 3에 관한 프로그램 작성 지원 장치의 처리 플로를 도시하는 플로차트.
도 10은 본 발명의 실시의 형태 3에 관한 프로그램 작성 지원 장치의 텍스트 프로그램 편집부의 예를 도시하는 설명도.
도 11은 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치의 구성을 도시하는 블록도.
도 12는 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치의 처리 플로를 도시하는 플로차트.
도 13은 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치의 텍스트 프로그램 편집부의 예를 도시하는 설명도.
도 14는 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치의 인쇄용 출력의 예를 도시하는 설명도.BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing a hardware configuration of a program creation support device of the present invention.
Fig. 2 is a block diagram showing the configuration of a program creation support device according to
Fig. 3 is a flowchart showing the processing flow of the program creation support device according to
4 is an explanatory diagram showing an example of a text program editing unit of the program creation support device according to the first embodiment of the present invention.
Fig. 5 is a flowchart showing another processing flow of the program creation support apparatus according to the first embodiment of the present invention.
6 is a block diagram showing a configuration of a program creation support device according to
FIG. 7 is an explanatory diagram showing an example of printing output of the program creation support device according to the second embodiment of the present invention; FIG.
8 is a block diagram showing the configuration of a program creation support apparatus according to
Fig. 9 is a flowchart showing the processing flow of the program creation support device according to
Fig. 10 is an explanatory diagram showing an example of a text program editing unit of the program creation support device according to the third embodiment of the present invention.
Fig. 11 is a block diagram showing the structure of a program creation supporting apparatus according to
Fig. 12 is a flowchart showing the processing flow of the program creation supporting apparatus according to
Fig. 13 is an explanatory diagram showing an example of a text program editing unit of the program creation support device according to the fourth embodiment of the present invention.
14 is an explanatory diagram showing an example of output for printing by the program creation support device according to the fourth embodiment of the present invention.
실시의 형태 1.
본 발명은, 입출력 단자를 구비하는 컨트롤러가 실행하는 프로그램을, 디바이스나 라벨을 이용하여 텍스트 언어 형식으로 작성하기 위한 프로그램 작성 지원 장치이다. 도 1에, 본 발명에 관한 프로그램 작성 지원 장치(1)의 하드웨어(hardware) 구성을 도시한다. 프로그램 작성 지원 장치(1)는, 예를 들면, 퍼스널 컴퓨터(personal computer)로 구성된다. 프로그램 작성 지원 장치(1)는, 도 1에 도시하는 바와 같이, 마이크로 프로세서(microprocessor)(2), 표시부(3), 입력부(4), 보존부(5) 및 통신부(6)를 구비한다. 또한, 프로그램 작성 지원 장치(1)에는, 도 1에 도시하는 바와 같이, 컨트롤러(7)가 접속되어 있다. 프로그램 작성 지원 장치(1)는, 컨트롤러(7)와 통신하여, 완성한 프로그램을 컨트롤러(7)에 전송하거나, 컨트롤러(7)에서 실행중의 프로그램을 모니터링(monitoring)하거나 한다. 컨트롤러(7)를 동작시키는 프로그램은, 보존부(5)에 파일로서 보존된다. 표시부(3)는, 프로그램 작성 지원 장치(1)의 각종 정보를 표시하는 모니터이다. 입력부(4)는, 마우스(mouse)나 키보드(keyboard) 등이다. 즉, 프로그램 작성자는, 입력부(4)를 이용하여 프로그램을 입력하고, 그 내용이 표시부(3)에 표시된다. 작성된 프로그램은, 통신부(6)를 통하여, 컨트롤러(7)에 전송되고, 컨트롤러(7)에서 실행된다.The present invention is a program creation support apparatus for creating a program executed by a controller having an input / output terminal in a text language format using a device or a label. 1 shows a hardware configuration of a program
도 2에, 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치(1)의 구성(소프트웨어 구성)을 도시한다. 도 2에 도시하는 바와 같이, 프로그램 작성 지원 장치(1)에는, 디바이스의 내용 설명을 기술한 디바이스 코멘트(device comments)를 설정하기 위한 디바이스 부속 정보 설정부(12)가 마련되어 있다. 디바이스 부속 정보 설정부(12)는, 설정된 디바이스 코멘트를 디바이스 부속 정보 보존 파일(9)로서 보존함과 함께, 디바이스 부속 정보 보존 파일(9)로부터, 보존한 디바이스 코멘트를 판독한다.2 shows a configuration (software configuration) of the program
또한, 프로그램 작성 지원 장치(1)에는, 컨트롤러(7)가 실행하는 프로그램을, 디바이스를 이용하여 텍스트 언어 형식(textual language)으로 작성하는 텍스트 프로그램 편집부(11)가 마련되어 있다.In addition, the program
텍스트 프로그램 편집부(11)에는, 텍스트 프로그램 표시부(18)가 마련되어 있다. 텍스트 프로그램 편집부(11)는, 텍스트 프로그램 표시부(18)에, 작성중의 텍스트 프로그램을 표시하고, 프로그램 작성자로부터의 입력에 의거하여, 그것을 편집한다. 또한, 텍스트 프로그램 편집부(11)는, 편집한 텍스트 프로그램을, 텍스트 프로그램 보존 파일(8)로서 보존함과 함께, 텍스트 프로그램 보존 파일(8)로부터, 보존된 텍스트 프로그램을 판독한다.The text
또한, 텍스트 프로그램 편집부(11)에는, 또한, 도 2에 도시하는 바와 같이, 사용 디바이스 추출부(13)와, 사용 디바이스 부속 정보 추출부(14)와, 사용 디바이스 표시 위치 추출부(15)와, 사용 디바이스 부속 정보 생략부(16)와, 텍스트 부속 정보 표시부(19)가 마련되어 있다.In addition, the text
사용 디바이스 추출부(13)는, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 텍스트 프로그램중에 기술된 디바이스를 추출한다. 추출한 디바이스는, 사용 디바이스 부속 정보 추출부(14)와 사용 디바이스 표시 위치 추출부(15)에 입력된다.The using device extraction unit 13 refers to the text
사용 디바이스 부속 정보 추출부(14)는, 디바이스 부속 정보 설정부(12) 또는 디바이스 부속 정보 보존 파일(9)을 참조하여, 사용 디바이스 추출부(13)에 의해 추출된 디바이스에 대해 설정된 디바이스 코멘트를 추출한다.The used device accessory
사용 디바이스 표시 위치 추출부(15)는, 텍스트 프로그램 표시부(18)를 참조하여, 사용 디바이스 추출부(13)에 의해 추출된 디바이스의 표시 위치를 추출한다.The use device display
사용 디바이스 부속 정보 생략부(16)는, 사용 디바이스 표시 위치 추출부(15)에 의해 추출된 디바이스 표시 위치와 같은 행에서의 다음의 디바이스 표시 위치에 의거하여, 디바이스 코멘트로서 표시 가능한 문자수를 산출한다. 사용 디바이스 부속 정보 생략부(16)는, 산출한 표시 가능한 문자수와, 사용 디바이스 부속 정보 추출부(14)에 의해 추출된 디바이스 코멘트의 문자수를 비교한다. 사용 디바이스 부속 정보 생략부(16)는, 비교의 결과, 추출된 디바이스 코멘트의 문자수가, 표시 가능한 문자수보다도 크면, 당해 디바이스 코멘트의 문자수가 표시 가능한 문자수의 범위 내가 되도록, 디바이스 코멘트의 일부를 생략하는 처리(이하, 생략 처리라고 한다.)를 행한다. 한편, 추출된 디바이스 코멘트의 문자수가, 표시 가능한 문자수 이하면, 생략 처리는 행하지 않고, 그대로 한다.The use device attachment
텍스트 부속 정보 표시부(19)는, 사용 디바이스 부속 정보 생략부(16)로부터, 디바이스 코멘트의 문자열과, 그 표시 위치의 정보가, 입력된다. 텍스트 부속 정보 표시부(19)는, 당해 표시 위치에 의거하여, 당해 디바이스 코멘트의 문자열을, 텍스트 프로그램 표시부(18)에 의해 표시되어 있는 텍스트 프로그램의 행 사이에 표시한다.The text appended
텍스트 부속 정보 표시부(19)에 관해, 도 4를 이용하여 구체적으로 설명한다. 텍스트 프로그램 표시부(18)에 의해, 도 4(a)에 도시하는 바와 같이, 텍스트 프로그램이 표시부(3)에 표시되어 있다고 한다. 당해 텍스트 프로그램에서, 예를 들면, 3행째의 「D124」나 「D123」이 디바이스이다. 이때, 텍스트 부속 정보 표시부(19)는, 도 4(b)에 도시하는 바와 같이, 이들의 디바이스가 표시되어 있는 텍스트 프로그램의 행(즉, 3행째)과 그 직후의 행(즉, 4행째)과의 사이의 행 사이에, 텍스트 부속 정보 표시 영역(30)을 마련하고, 그곳에, 「연산 결과」나 「계측 결과의 격납」 등의 디바이스 코멘트를 표시한다. 또한, 텍스트 부속 정보 표시부(19)는, 사용 디바이스 부속 정보 생략부(16)로부터의 표시 위치의 정보에 의거하여, 각 디바이스의 표시 위치의 선두와, 당해 디바이스에 대응한 디바이스 코멘트의 표시 위치의 선두가, 종방향으로 나열하도록, 디바이스 코멘트의 표시 위치를 설정한다. 도 4(b)의 예에서는, 디바이스 「D124」의 선두의 문자 「D」의 표시 위치와, 그에 대응하는 디바이스 코멘트 「연산 결과」의 선두의 문자 「연」의 표시 위치가, 종방향으로 나열되어 있다. 마찬가지로, 디바이스 「D123」의 선두의 문자 「D」의 표시 위치와, 그에 대응하는 디바이스 코멘트 「계측 결과의 격납」의 선두의 문자 「계」의 표시 위치가, 종방향으로 나열되어 있다.The text appended
또한, 도 4(b)에서는, 디바이스 코멘트를, 디바이스가 표시되어 있는 행의 직후의 행에 표시하는 예를 나타냈지만, 그 경우로 한하지 않고, 디바이스 코멘트를, 디바이스가 표시되어 있는 행의 직전의 행에 표시하도록 하여도 좋다.In addition, although FIG. 4 (b) showed the example which displays a device comment in the line immediately after the line in which the device is displayed, it is not limited to that case, but the device comment is just before the line in which the device is displayed. It may be displayed on the line of.
도 3에, 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치(1)의 처리 플로(processing flowchart)를 도시한다. 우선, 스텝 S1에서, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램 전체에 대해 디바이스 코멘트를 표시하는 지시가, 프로그램 작성자에 의해, 입력되었는지의 여부를 판정한다. 당해 지시가 입력된 경우는, 스텝 S3로 진행하여, 텍스트 프로그램에 포함되는 전 행에 대해, 1행마다 스텝 S3 내지 S11의 처리를 행한다. 한편, 당해 지시를 받지 않은 경우에는, 스텝 S2로 진행한다.FIG. 3 shows a processing flowchart of the program
스텝 S2에서는, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램에 포함되는 하나의 행에 대해 디바이스 코멘트를 표시하는 지시가, 프로그램 작성자에 의해, 입력되었는지의 여부를 판정한다. 당해 지시를 받지 않았으면, 스텝 S1로 되돌아온다. 한편, 당해 지시를 받고 있으면, 그 행에 대해, 스텝 S3 내지 S11의 처리를 행한다.In step S2, the text
스텝 S3에서는, 사용 디바이스 추출부(13)가, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 텍스트 프로그램 중에 기술된 디바이스를 추출한다.In step S3, the use device extraction unit 13 refers to the text
다음에, 스텝 S4에서는, 사용 디바이스 부속 정보 추출부(14)가, 디바이스 부속 정보 설정부(12) 또는 디바이스 부속 정보 보존 파일(9)을 참조하여, 스텝 S3에서 추출된 디바이스에 대해 설정되어 있는 디바이스 코멘트를 추출한다.Next, in step S4, the used device accessory
다음에, 스텝 S5에서는, 사용 디바이스 표시 위치 추출부(15)가, 텍스트 프로그램 표시부(18)를 참조하여, 스텝 S3에서 추출된 디바이스가, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램의 어디에 표시되어 있는지를 검출하고, 그 표시 위치를 추출한다.Next, in step S5, the use device display
다음에, 스텝 S6에서는, 사용 디바이스 부속 정보 생략부(16)가, 스텝 S3에서 추출하는 디바이스가 표시되는 행과 같은 행에 표시되는 다음의 디바이스가 있는지의 여부를 판정한다. 즉, 스텝 S3에서 디바이스의 추출을 행한 하나의 행에, 디바이스가 복수개 있었는지의 여부를 판정한다. 판정의 결과, 다음의 디바이스가 있으면 스텝 S7로 진행하고, 다음의 디바이스가 없으면 스텝 S9로 진행한다.Next, in step S6, the use device attachment
스텝 S7에서는, 사용 디바이스 부속 정보 생략부(16)가, 앞서 추출된 디바이스의 표시 위치와, 다음에 추출된 디바이스의 표시 위치와의 차분을 구하고, 당해 차분을, 앞서 추출된 디바이스에 대한 디바이스 코멘트의 표시 가능한 문자수로서 설정한다.In step S7, the used device attachment
다음에, 스텝 S8에서는, 사용 디바이스 부속 정보 생략부(16)가, 스텝 S7에서 구한 표시 가능한 문자수와, 앞서 추출된 디바이스의 디바이스 코멘트의 문자수를 비교한다. 비교의 결과, 디바이스 코멘트의 문자수가, 표시 가능한 문자수 이하면, 스텝 S9로 진행하고, 디바이스 코멘트의 문자수가, 표시 가능한 문자수를 초과하고 있으면, 스텝 S10으로 진행한다.Next, in step S8, the use device attachment
스텝 S9에서는, 디바이스 코멘트의 문자수가, 표시 가능한 문자수 이하이기 때문에, 디바이스 코멘트를 생략할 필요는 없기 때문에, 사용 디바이스 부속 정보 생략부(16)는, 생략 처리는 행하지 않고, 스텝 S11로 진행한다.In step S9, since the device comment does not need to be omitted because the number of characters in the device comment is less than or equal to the number of characters that can be displayed, the use device attachment
스텝 S10에서는, 디바이스 코멘트의 문자수가, 표시 가능한 문자수를 초과하고 있기 때문에, 사용 디바이스 부속 정보 생략부(16)는, 디바이스 코멘트의 문자수가 표시 가능한 문자수의 범위 내가 되도록, 디바이스 코멘트의 일부를 생략하는 생략 처리를 행하고, 다음에, 스텝 S11로 진행한다.In step S10, since the number of characters in the device comment exceeds the number of characters that can be displayed, the use device attachment
그리고, 표시 가능한 문자수의 설정 방법에 관해서는, 상기한 방법 외에도, 여러 가지의 방법이 생각된다. 예를 들면, 디바이스의 문자수는 대략 반각(半角) 4문자 정도이기 때문에, 반각 4문자로 하는 등, 표시 가능한 문자수를 고정 길이로 하는 방법이 있다. 또는, 당해 디바이스의 문자수를, 디바이스 코멘트의 표시 가능한 문자수로 하고, 디바이스의 문자수의 범위 내에서 디바이스 코멘트를 표시하는 방법도 있다. 그렇지만, 상기한 바와 같이, 표시 가능한 문자수를, 앞의 디바이스의 표시 위치부터 같은 행의 다음의 디바이스의 표시 위치까지의 사이의 문자수로 하는 방법이, 가장 많은 문자수의 디바이스 코멘트의 문자를 표시하는 것이 가능해지는 방법이기 때문에, 본 실시의 형태에서는, 이 방법을 이용하는 것으로 한다.As to the method of setting the number of characters that can be displayed, various methods can be considered in addition to the above methods. For example, since the number of characters of the device is approximately four half-width characters, there is a method in which the number of displayable characters is fixed length, such as four half-width characters. Alternatively, a device comment may be displayed within the range of the number of characters of the device, with the number of characters of the device being the number of characters that can be displayed in the device comment. However, as described above, the method of setting the number of characters that can be displayed as the number of characters between the display position of the previous device to the display position of the next device on the same line is the most characters. Since it is a method which becomes possible to display, this method shall be used in this embodiment.
또한, 스텝 S10에서 행하는, 표시 가능한 문자수로의 디바이스 코멘트의 생략 처리에 관해서는, 디바이스 코멘트의 문자의 선두로부터 표시 가능한 문자수만큼을 남겨 두고, 그 이후의 문자를 삭제하는 방법이나, 디바이스 코멘트가 한자와 히라가나(平假名)로 설정되어 있는 경우에는, 한자만을 남겨 두고, 히라가나를 삭제하는 방법 등을 들 수 있다. 본 실시의 형태에서는, 그 어느 방법을 이용하여도 좋지만, 설명을 간단하게 하기 위해, 이하의 설명에서는, 선두로부터 표시 가능한 문자수만큼을 남겨 두고, 그 이후의 문자를 삭제하는 방법을 예로 들어서 설명한다.In addition, regarding the omission process of the device comment to the number of characters which can be displayed in step S10, the method of deleting the characters after that and leaving only the number of characters that can be displayed from the head of the characters of the device comment, If it is set to kanji and hiragana, there may be mentioned a method of deleting hiragana by leaving only kanji. In the present embodiment, any method may be used, but for the sake of simplicity, the following description will be given by taking a method of deleting the characters afterwards, leaving only the number of characters that can be displayed from the beginning. do.
스텝 S11에서는, 텍스트 부속 정보 표시부(19)는, 사용 디바이스 부속 정보 생략부(16)로부터, 스텝 S9 또는 스텝 S10에서 얻어진 디바이스 코멘트와, 그 표시 위치의 정보를 받아서, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램의 행 사이에, 스텝 S9 또는 스텝 S10에서 얻어진 디바이스 코멘트를 표시한다.In step S11, the text accompanying
또한, 텍스트 부속 정보 표시부(19)는, 프로그램 작성자로부터, 디바이스 코멘트를 표시로 하는 지시를 받은 때에, 디바이스 코멘트를 표시하고, 프로그램 작성자로부터, 디바이스 코멘트를 비표시로 하는 지시를 받은 때에는, 비표시로 전환한다. 또한, 디폴트값은 비표시로 한다.Further, the text accompanying
도 4에, 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치(1)의 텍스트 프로그램 편집부(11)의 동작의 일례를 도시한다. 이하, 이에 따라 구체적으로 설명한다.4 shows an example of the operation of the text
우선, 통상시는, 도 4(a)에 도시하는 바와 같이, 텍스트 프로그램 편집부(11)의 텍스트 프로그램 표시부(18)에 의해, 프로그램 작성자가 스스로 기술한 텍스트 프로그램 및 프로그램 코멘트가 표시된다.First, as shown in Fig. 4A, the text
(도 3의 스텝 S1)(Step S1 of FIG. 3)
이에 대해 프로그램 작성자는, 디바이스 코멘트를 표시하는 취지의 조작을 행한다. 구체적인 조작 방법으로서는, 프로그램 작성 지원 장치(1)의 조작 메뉴로부터 디바이스 코멘트를 표시하는 지시를 행하는 것이 생각되는데, 이 경우에는, 텍스트 프로그램 전체 즉 프로그램 텍스트의 전 행에 대해, 디바이스 코멘트를 표시하는 처리를 행하는 것이 된다.In contrast, the program author performs an operation of displaying a device comment. As a specific operation method, it is conceivable to give an instruction to display the device comment from the operation menu of the program
(도 3의 스텝 S2)(Step S2 of FIG. 3)
다른 방법으로서는, 도 4(a)에 도시하는 바와 같이, 텍스트 프로그램 표시부(18)에 의해 표시되어 있는 텍스트 프로그램의 각 행의 선두에는, 행 번호가 표시되어 있기 때문에, 프로그램 작성자가, 당해 행 번호를 마우스(mouse)로 클릭(click)하는 등에 의해, 디바이스 코멘트를 표시하고 싶은 행 번호를 지정한다. 이 경우에는, 지정된 텍스트 프로그램의 1행에 대해서만, 디바이스 코멘트를 표시하는 처리를 행한다. 이하에서는, 프로그램 작성자로부터, 텍스트 프로그램의 3행째에 관해, 디바이스 코멘트를 표시하는 취지의 조작이 있은 경우에 관해 설명한다.As another method, as shown in Fig. 4 (a), since the line number is displayed at the head of each line of the text program displayed by the text
(도 3의 스텝 S3)(Step S3 of FIG. 3)
사용 디바이스 추출부(13)는, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 텍스트 프로그램의 3행째에 기술된 디바이스를 추출한다. 여기서는, 디바이스로서, 「D124」와 「D123」이 추출된다.The using device extraction unit 13 refers to the text
(도 3의 스텝 S4)(Step S4 of FIG. 3)
다음에, 사용 디바이스 부속 정보 추출부(14)가, 디바이스 부속 정보 설정부(12) 또는 디바이스 부속 정보 보존 파일(9)을 참조하여, 사용 디바이스 추출부(13)에 의해 추출된 2개의 디바이스 「D124」와 「D123」의 각각에 대해 설정되어 있는 디바이스 코멘트를 추출한다. 여기서는, 도 4(d)에 도시되는 바와, 같이, 디바이스 「D124」에 대해 디바이스 코멘트 「연산 결과의 격납」이 추출되고, 디바이스 「D123」에 대해 디바이스 코멘트 「계측 결과의 격납」이 추출된다.Next, the use device attachment
(도 3의 스텝 S5)(Step S5 of FIG. 3)
또한, 사용 디바이스 표시 위치 추출부(15)가, 텍스트 프로그램 표시부(18)를 참조하여, 사용 디바이스 추출부(13)에 의해 추출된 2개의 디바이스 「D124」와 「D123」이, 텍스트 프로그램 표시부(18)에 의해 표시되어 있는 텍스트 프로그램 중의 어디에 표시되어 있는지를 검출하고, 그 표시 위치를 추출한다. 여기서는, 「D124」의 표시 위치가, 그 행의 선두로부터 세어서 반각으로 6문자째이고, 「D123」의 표시 위치가, 그 행의 선두로부터 세어서 반각으로 16문자째인 것이 추출된다.In addition, two device "D124" and "D123" which the use device display
(도 3의 스텝 S6)(Step S6 of FIG. 3)
여기서는, 1행에, 2개의 디바이스가 추출된 것이기 때문에, 앞서 추출된 디바이스 「D124」에 대해 설정된 디바이스 코멘트 「연산 결과의 격납」에 관해서는, 표시 문자수의 제한에 관한 스텝 S8의 판정을 행할 필요가 있고, 표시 가능한 문자수를 초과하고 있으면, 스텝 S10의 생략 처리를 행한다.In this case, since two devices are extracted in one line, the determination of step S8 regarding the limitation of the number of display characters is performed with respect to the device comment "storing of the operation result" set for the previously extracted device "D124". If it is necessary and the number of characters which can be displayed is exceeded, the omission process of step S10 is performed.
(도 3의 스텝 S7)(Step S7 of FIG. 3)
사용 디바이스 부속 정보 생략부(16)는, 우선, 디바이스 「D124」의 표시 위치와, 같은 행에서의 다음의 디바이스 「D123」의 표시 위치로부터, 「D124」와 「D123」의 각 디바이스 코멘트의 표시 가능한 문자수를 산출한다. 디바이스 「D124」에 대해서는, 다음의 디바이스 「D123」이 있기 때문에, 각각의 표시 위치인, 16으로부터 6을 감산하고, 그 차가 10이라고 산출한다. 이 10을 표시 가능한 문자수로 하여도 좋지만, 바람직하게는, 앞의 디바이스의 디바이스 코멘트의 최후의 문자와, 다음의 디바이스의 디바이스 코멘트의 최초의 문자와의 사이에, 반각 1문자분을 확보할 필요가 있다. 그 때문에, 10부터 1을 더욱 감산하여, 표시 가능한 문자수를, 반각으로 9문자로 산출하다. 또한, 「D123」에 대해서는, 그 다음의 디바이스가 없기 때문에, 표시 가능한 문자수에 제한이 없다, 라고 하게 된다.The use device attachment
(도 3의 스텝 S8 내지 S10)(Steps S8 to S10 in Fig. 3)
다음에, 디바이스 코멘트의 문자수와 표시 가능한 문자수를 비교하여, 디바이스 코멘트의 문자수의 쪽이 크면, 디바이스 코멘트를 표시 가능한 문자수의 범위 내가 되도록 그 일부를 생략하는 생략 처리를 행한다. 여기서는, 디바이스 「D124」에 대해서는, 디바이스 코멘트 「연산 결과의 격납」이 전각으로 7문자(반각 환산으로 14문자)이기 때문에, 이것을 반각으로 9문자(전각 환산으로 우수리를 잘라 버려 4문자) 이내에 생략한다. 가장 간단한 방법으로서는, 선두로부터 전각 4문자만을 남겨 두고, 그 이후를 삭제하고, 「연산 결과」로 하다. 그리고, 「D123」에 대해서는, 표시 가능한 문자수에 제한이 없기 때문에, 그대로 「계측 결과의 격납」이 된다.Next, if the number of characters in the device comment is compared with the number of characters that can be displayed, and if the number of characters in the device comment is larger, an omission process of omitting a part of the device comment to be within the range of the number of characters that can be displayed is performed. Here, about device "D124", since device comment "storing of calculation result" is seven characters (14 characters in half size conversion) at full size, this is omitted within nine characters (cutting off part in full size conversion, four characters) in half size do. As the simplest method, only four full-width characters are left from the beginning, and subsequent portions thereof are deleted, and the operation result is set. And since there is no restriction | limiting in the number of characters which can be displayed about "D123", it becomes "storage of a measurement result" as it is.
(도 3의 스텝 S11)(Step S11 of FIG. 3)
최후로, 텍스트 프로그램 편집부(11)는, 텍스트 부속 정보 표시부(19)에 의해, 텍스트 프로그램 표시부(18)에서 표시되는 텍스트 프로그램의 3행째의 직후에, 도 4(b)에 도시하는 바와 같이, 텍스트 부속 정보 표시 영역(30)을 마련하고, 디바이스 「D124」에 관해서는, 행의 선두로부터 반각으로 6문자째를 표시 위치로 하고, 디바이스 코멘트 「연산 결과」를 표시한다. 이것은, 원래의 디바이스 코멘트의 「연산 결과의 격납」을 생략 처리하여 단축한 것이다. 또한, 디바이스 「D123」에 관해서는, 행의 선두로부터 반각으로 16문자째를 표시 위치로 하여, 디바이스 코멘트 「계측 결과의 격납」을 표시한다. 디바이스 코멘트 「계측 결과의 격납」에 관해서는, 생략 처리가 필요 없기 때문에, 원래의 디바이스 코멘트인 채로, 표시된다. 또한, 텍스트 부속 정보 표시부(19)에 의한 텍스트 부속 정보 표시 영역(30)은, 해당하는 행의 직후에 마련한 예에 관해 나타냈지만, 그 경우로 한하지 않고, 해당하는 행의 직전에 마련하여도 좋다.Finally, the text
또한, 텍스트 프로그램 표시부(18)에 의한 표시인 것인지, 또는, 텍스트 부속 정보 표시부(19)에 의한 표시인 것인지를, 명확히 구별하기 위해, 예를 들면, 도 4(b)에서는, 텍스트 프로그램 표시부(18)에 의한 표시에 관해서는, 각 행의 선두에, 행 번호(1, 2, 3, …)를 표시하고, 텍스트 부속 정보 표시부(19)에 의한 표시에 관해서는, 그 행의 선두에, 「D」를 표시하도록 하여, 그들을 구별하고 있다.In addition, in order to distinguish clearly whether it is the display by the text
본 실시의 형태에서는, 도 4(b)와 같이, 일부가 생략된 디바이스 코멘트의 표시에서는, 프로그램 작성자가 충분히 이해할 수가 없는 경우를 고려하고, 도 4(c)에 도시하는 바와 같이, 디바이스 코멘트를 생략하지 않고 표시하는 것도 가능하다.In the present embodiment, as shown in Fig. 4 (b), in the display of a device comment with a part omitted, the device comment is taken into consideration as shown in Fig. 4 (c) in consideration of the case where the program creator cannot fully understand. It is also possible to display without omission.
구체적인 조작 방법으로서는, 프로그램 작성 지원 장치(1)의 조작 메뉴로부터, 디바이스 코멘트를 생략하지 않고 표시하는 지시를 행하는 것이 생각된다. 다른 방법으로서는, 행 번호를 마우스로 클릭하는 등에 의해, 디바이스 코멘트를 표시하고 싶은 행 번호를 지정하면, 상술한 바와 같이, 도 4(b)에 도시하는 바와 같이, 그 행의 직후에, 텍스트 부속 정보 표시부(19)에 의한 텍스트 부속 정보 표시 영역(30)이 마련되기 때문에, 그 상태에서, 다시, 그 텍스트 부속 정보 표시 영역을 마우스로 클릭함으로써, 디바이스 코멘트를 생략하지 않고서, 도 4(c)에 도시하는 바와 같이, 디바이스 코멘트를 전부 표시하도록 지정하는 방법도 있다. 어느 방법에 의해, 그와 같은 지시가 있은 경우에는, 텍스트 부속 정보 표시부(19)는, 도 4(c)에 도시하는 바와 같이, 생략하지 않는 디바이스 코멘트를 복수행에 걸쳐서 반복하여 표시한다(도 4(b)에서는, 「D124」의 디바이스 코멘트 「연산 결과의 격납」을 일부 생략하고, 「연산 결과」로 표시하고 있지만, 도 4(c)에서는, 「D124」의 디바이스 코멘트 「연산 결과의 격납」을 전부 표시하고 있다).As a specific operation method, it is conceivable to give an instruction to display the device comment without omitting from the operation menu of the program
이 경우의 처리 플로는, 도 5와 같이 된다. 도 5에서, 도 3과 다른 점은, 도 5에서는, 도 3의 스텝 S6 내지 S10의 처리가 생략되고, 도 3의 스텝 S1, S2, S3, S4, S5, S11 대신에, 스텝 S1A, S2A, S3A, S4A, S5A, S11A가 마련되어 있는 점이다.The processing flow in this case is as shown in FIG. In FIG. 5, a difference from FIG. 3 is that in FIG. 5, the processing of steps S6 to S10 in FIG. 3 is omitted, and instead of steps S1, S2, S3, S4, S5, and S11 in FIG. 3, steps S1A and S2A. , S3A, S4A, S5A, and S11A are provided.
우선, 스텝 S1A에서, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램 전체에 대한 디바이스 코멘트 비생략 표시의 지시를 받았는지의 여부를 판정한다. 당해 지시를 받고 있으면, 스텝 S3A로 진행하여, 텍스트 프로그램에 포함되는 전 행에 대해, 1행마다 스텝 S3A 내지 S5A 및 S11A의 처리를 행한다. 한편, 당해 지시를 받지 않은 경우에는, 스텝 S2A로 진행한다.First, in step S1A, the text
스텝 S2A에서는, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램에 포함되는 1행에 대한 디바이스 코멘트 비생략 표시의 지시를 받았는지의 여부를 판정한다. 당해 지시를 받지 않았으면, 스텝 S1A로 되돌아온다. 한편, 당해 지시를 받고 있으면, 그 행에 대해, 스텝 S3A 내지 S5A 및 S11A의 처리를 행한다.In step S2A, the text
텍스트 프로그램의 기술에는 디바이스 외에 변수도 사용되기 때문에, 사용 디바이스 추출부(13)는, 스텝 S3A에서, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 디바이스와 함께 변수를 추출한다.In addition to the device, a variable is also used for the description of the text program, so that the used device extraction unit 13 refers to the text
다음에, 스텝 S4A에서, 사용 디바이스 부속 정보 추출부(14)가, 디바이스 부속 정보 설정부(12) 또는 디바이스 부속 정보 보존 파일(9)을 참조하여, 스텝 S3A에서 추출된 디바이스에 대해 설정되어 있는 디바이스 코멘트를 추출한다. 그리고, 스텝 4A의 처리는, 도 3의 스텝 4와 같다.Next, in step S4A, the used device accessory
다음에, 스텝 S5A에서, 사용 디바이스 표시 위치 추출부(15)가, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램을 참조하여, 디바이스 및 변수 각각의 표시 위치를 추출한다. 여기서는, 도 4(c)에 도시하는 바와 같이, 「D124」의 표시 위치가, 행의 선두로부터 세어서 반각으로 6문자째, 「D123」의 표시 위치가, 행의 선두로부터 세어서 반각으로 16문자째 외에, 변수 「sArg」의 표시 위치가, 행의 선두로부터 세어서 반각으로 25문자째인 것이 추출된다. 여기서는, 사용 디바이스 부속 정보 생략부(16)에 의한 디바이스 코멘트의 생략은 필요 없다(즉, 도 3의 스텝 S6 내지 S10에 상당하는 스텝이 없다).Next, in step S5A, the use device display
다음에, 스텝 S11A에서, 텍스트 부속 정보 표시부(19)는, 텍스트 부속 정보 표시 영역(30)을 마련하고, 텍스트 부속 정보 표시 영역(30)에서, 디바이스 「D124」에 관해서는, 행의 선두로부터 반각으로 6문자째를 표시 위치로 하여, 디바이스 코멘트 「연산 결과의 격납」을 표시한다. 단, 이때, 다음의 디바이스인 「D123」의 표시 위치와 간격을 비우기 위해, 「D123」의 표시 위치보다도 반각 1문자분만큼 앞쪽(즉, 행의 선두로부터 반각으로 15문자째)에서 반복하여, 디바이스 코멘트 「연산 결과의 격납」을 표시한다. 구체적으로는, 도 4(c)에 도시하는 바와 같이, 「연산 결과」만을 위의 행에 표시하고, 「의 격납」의 부분은 반복하여, 「연산 결과」의 표시 위치의 바로 아래쪽에 표시한다. 또한, 디바이스 「D123」에 관해서는, 행의 선두로부터 반각으로 16문자째를 표시 위치로 하여, 디바이스 코멘트 「계측 결과의 격납」을 표시한다. 이때도, 마찬가지로, 다음의 변수 「sArg」의 표시 위치와 간격을 비우기 위해, 「sArg」의 표시 위치보다도 반각 1문자분만큼 앞쪽(즉, 행의 선두로부터 반각으로 24문자째)에서 반복하여, 디바이스 코멘트 「계측 결과의 격납」을 표시한다. 구체적으로는, 도 4(c)에 도시하는 바와 같이, 「계측 결과」만을 위의 행에 표시하고, 「의 격납」의 부분은 반복하여, 「계측 결과」의 표시 위치의 바로 아래쪽에 표시한다. 변수 「sArg」에 관해서는, 디바이스 코멘트가 없기 때문에, 아무것도 표시하지 않는다.Next, in step S11A, the text attachment
본 실시의 형태 1에서는, 이와 같이 하여, 입출력 단자를 구비하는 컨트롤러(7)의 프로그램을 텍스트 언어 형식으로 작성하는 경우에도, 텍스트 프로그램에서 사용되고 있는 디바이스의 표시 위치의 직후에(또는 직전에), 디바이스의 내용을 상세히 설명하기 위해 설정된 디바이스 코멘트를 표시하는 것이 가능해지고, 프로그램 작성자가 스스로 코멘트 아웃 지정 기호를 이용하여 프로그램의 보충 설명문을 코멘트로서 기술 삽입하는 수고가 없어지고, 또한, 텍스트 언어 형식의 프로그램의 가독성을 확보할 수 있다.In the first embodiment, even when a program of the
실시의 형태 2.Embodiment 2:
본 실시의 형태에서는, 텍스트 부속 정보 표시부(19)에 의한 텍스트 부속 정보 표시 영역(30)을 마련하는 대신에, 부속 정보가 행 사이에 삽입된 텍스트를 생성하는 실시 형태에 관해 설명한다. 또한, 본 실시의 형태에서의 프로그램 작성 지원 장치(1)의 하드웨어 구성에 관해서는, 상술한 도 1에 도시한 구성과 같기 때문에, 여기서는 설명을 생략한다.In this embodiment, instead of providing the text sub
도 6에, 본 발명의 실시의 형태 2에 관한 프로그램 작성 지원 장치(1)의 구성(소프트웨어 구성)을 도시한다. 도 2에 도시한 실시의 형태 1의 구성과 다른 점은, 도 6의 구성에서는, 도 2의 텍스트 부속 정보 표시부(19)를 마련하는 대신에, 텍스트 부속 정보 삽입부(20)를 마련하여, 인쇄 출력용 텍스트 프로그램 보존 파일(21)을 출력하도록 한 점이다.6 shows a configuration (software configuration) of the program
본 실시의 형태 2의 처리 플로는, 도 3 또는 도 5에 도시한 실시의 형태 1의 처리 플로와 기본적으로 같기 때문에, 도 3 또는 도 5를 참조하는 것으로 한다. 다른 점은, 스텝 S11 또는 S11A에서, 텍스트 부속 정보 표시 영역(30)을 마련하지 않고, 도 7(b)에 도시하는 바와 같이, 해당하는 행의 직후에, 프로그램 코멘트로서, 디바이스 코멘트를 삽입하는 점이다. 따라서, 본 실시의 형태에서는, 도 3 및 도 5의 처리 플로의 스텝 S11 및 S11A의 내용을, 그와 같이 바꾸어 읽는다. 즉, 본 실시의 형태 2에서는, 인쇄 출력용 텍스트 프로그램 보존 파일(21)을 출력할 때에, 스텝 S4에서 추출한 디바이스 코멘트를, 스텝 S5에서 추출한 표시 위치의 행의 직후(또는 직전)에 프로그램 코멘트로서 삽입한다. 이때에, 디바이스 코멘트의 문자수가 표시 가능한 문자수를 초과하고 있는 경우에는, 프로그램 작성자로부터의 지시에 따라, 디바이스 코멘트의 생략 처리를 행하고 삽입하던지, 또는, 디바이스 코멘트를 반복하여 복수행에 걸쳐서 삽입한다. 도 7(b)는, 반복하여 표시한 경우의 예이다. 다른 동작에 관해서는, 실시의 형태 1과 같기 때문에, 여기서는, 그 설명을 생략한다.Since the processing flow of the second embodiment is basically the same as the processing flow of the first embodiment shown in FIG. 3 or FIG. 5, reference is made to FIG. 3 or 5. Another difference is that in step S11 or S11A, as shown in Fig. 7B, the device comment is inserted as a program comment immediately after the corresponding line, without providing the text appended
도 7에, 본 실시의 형태 2에 관한 프로그램 작성 지원 장치(1)의 인쇄용 출력의 예를 도시한다. 도 7(a)의 텍스트 프로그램 편집부(11)에 도시하는 바와 같이, 텍스트 프로그램에는 이미, 프로그램 작성자가 스스로 코멘트 아웃 지정 기호인 「(*」와 「*)」를 이용하여 프로그램의 보충 설명문을 프로그램 코멘트로서 기술 삽입하고 있다. 코멘트 아웃 지정 기호에는, 「(*」와 「*)」의 사이의 문자는 프로그램이 아니라 보충 설명이라는 것과, 「//」 이후의 행의 끝까지의 문자는 보충 설명이라고 하는 것의 2종류 있다. 도 7(a), (b)에서는, 코멘트 아웃 지정 기호 「(*」와 「*)」를 이용하여 프로그램 코멘트를 나타내고, 코멘트 아웃 지정 기호 「//」를 이용하여, 디바이스 코멘트를 삽입하여 출력한 예를 나타내고 있다.FIG. 7 shows an example of the printing output of the program
본 실시의 형태 2에서는, 이와 같이 하여, 입출력 단자를 구비하는 컨트롤러(7)의 프로그램을 텍스트 언어 형식으로 작성하는 경우에도, 텍스트 프로그램에서 사용되어 있는 디바이스의 표시 위치의 직후(또는 직전)에, 디바이스의 내용을 상세히 설명하기 위해 설정한 디바이스 코멘트를, 프로그램 코멘트로서 텍스트 프로그램 내에 삽입한 프로그램 파일을 생성하는 것이 가능해지고, 이것을 인쇄 출력하거나 다른 수단으로 표시하는 등에 의해, 프로그램 작성자가 스스로 코멘트 아웃 지정 기호를 이용하여 프로그램의 보충 설명문을 프로그램 코멘트로서 기술 삽입하는 수고가 없어지고, 또한, 텍스트 언어 형식의 프로그램의 가독성을 확보할 수 있다.In the second embodiment, even when a program of the
또한, 상기한 실시의 형태 2의 설명에서는, 도 6의 구성에서, 도 2의 텍스트 부속 정보 표시부(19)를 마련하는 대신에, 텍스트 부속 정보 삽입부(20)를 마련하고, 인쇄 출력용 텍스트 프로그램 보존 파일(21)을 출력하도록 한 예에 관해 설명하였지만, 그 경우로 한하지 않고, 도 6의 구성에 도 2의 텍스트 부속 정보 표시부(19)도 마련하도록 하여, 본 실시의 형태 2와 실시의 형태 1을 조합시킨 구성으로 하여도 좋다.In addition, in the above description of the second embodiment, in the configuration of FIG. 6, instead of providing the text attachment
실시의 형태 3.
본 실시의 형태에서는, 텍스트 부속 정보 표시부(19)에 의한 텍스트 부속 정보 표시 영역(30)에, 디바이스의 현재치를 표시하는 실시 형태에 관해 설명한다. 또한, 본 실시의 형태에서의 프로그램 작성 지원 장치(1)의 하드웨어 구성에 관해서는, 상술한 도 1에 도시한 구성과 같기 때문에, 여기서는 설명을 생략한다.This embodiment demonstrates embodiment which displays the present value of a device in the text attachment information display area |
도 8에, 본 발명의 실시의 형태 3에 관한 프로그램 작성 지원 장치(1)의 구성(소프트웨어 구성)을 도시한다. 도 2에 도시한 실시의 형태 1의 구성과의 차이는, 도 8의 구성에서는, 도 2의 사용 디바이스 부속 정보 추출부(14) 및 사용 디바이스 부속 정보 생략부(16) 대신에, 사용 디바이스 현재치 정보 취득부(22)를 마련하고, 실행중의 컨트롤러(7)에서의 당해 디바이스의 현재치를 취득하도록 하여, 이것을, 텍스트 부속 정보 표시부(19)에 의한 텍스트 부속 정보 표시 영역(30)에 표시하도록 한 점이다. 또한, 도 8의 구성에서는, 도 2의 사용 디바이스 부속 정보 추출부(14)를 생략한 것에 수반하여, 디바이스 부속 정보 설정부(12) 및 디바이스 부속 정보 보존 파일(9)도 마련되어 있지 않다.8 shows a configuration (software configuration) of the program
도 9에, 본 발명의 실시의 형태 3에 관한 프로그램 작성 지원 장치의 처리 플로를 도시한다. 도 9는, 실시의 형태 1에서 도시한 도 5의 경우의 처리 플로의 디바이스 코멘트(및 변수)를, 디바이스 현재치로 치환한 처리 플로이다.9 shows a processing flow of the program creation support apparatus according to the third embodiment of the present invention. FIG. 9 is a process flow in which device comments (and variables) in the process flow in the case of FIG. 5 shown in
우선, 스텝 S1B에서, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램 전체에 대한 디바이스 현재치 표시의 지시를, 프로그램 작성자로부터 받았는지의 여부를 판정한다. 당해 지시를 받고 있으면, 스텝 S3B로 진행하고, 텍스트 프로그램에 포함되는 전행에 대해, 1행마다 스텝 S3B 내지 S5B 및 S11B의 처리를 행한다. 한편, 당해 지시를 받지 않은 경우에는, 스텝 S2B로 진행한다.First, in step S1B, the text
스텝 S2B에서는, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램에 포함되는 1행에 대한 디바이스 현재치 표시의 지시를, 프로그램 작성자로부터 받았는지의 여부를 판정한다. 당해 지시를 받지 않았으면, 스텝 S1B로 되돌아온다. 한편, 당해 지시를 받고 있으면, 그 행에 대해, 스텝 S3B 내지 S5B 및 S11B의 처리를 행한다.In step S2B, the text
스텝 S3B에서, 사용 디바이스 추출부(13)는, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 디바이스를 추출한다. 도 10의 예에서는, 디바이스 「D124」와 디바이스 「D123」이 추출된다.In step S3B, the use device extraction unit 13 refers to the text
다음에, 스텝 S4B에서, 사용 디바이스 현재치 정보 취득부(22)가, 컨트롤러(7)를 참조하여, 스텝 S3B에서 추출된 디바이스의 현재치를 컨트롤러(7)로부터 취득한다. 도 10의 예에서는, 디바이스 「D124」에 관해서는, 현재치 「789」가 취득되고, 디바이스 「D123」에 관해서는, 현재치 「654」가 취득된다.Next, in step S4B, the use device present value
다음에, 스텝 S5B에서, 사용 디바이스 표시 위치 추출부(15)가, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램을 참조하여, 스텝 S3B에서 추출된 디바이스의 표시 위치를 추출한다. 여기서는, 도 10(b)에 도시하는 바와 같이, 「D124」의 표시 위치가, 행의 선두로부터 세어서 반각으로 6문자째, 「D123」의 표시 위치가, 행의 선두로부터 세어서 반각으로 16문자째인 것이 추출된다. 여기서는, 사용 디바이스 부속 정보 생략부(16)에 의한 디바이스 코멘트의 생략은 필요없다(즉, 도 3의 스텝 S6 내지 S10에 상당하는 스텝이 없다).Next, in step S5B, the use device display
다음에, 스텝 S11B에서, 텍스트 부속 정보 표시부(19)는, 도 10(b)에 도시하는 바와 같이, 텍스트 부속 정보 표시 영역(30)을 마련하고, 텍스트 부속 정보 표시 영역(30)에서, 디바이스 「D124」에 관해서는, 행의 선두로부터 반각으로 6문자째를 표시 위치로 하여, 현재치 「789」를 표시한다. 또한, 디바이스 「D123」에 관해서는, 행의 선두로부터 반각으로 16문자째를 표시 위치로 하여, 현재치 「654」를 표시한다.Next, in step S11B, the text accessory
도 10에, 본 발명의 실시의 형태 3에 관한 프로그램 작성 지원 장치(1)의 텍스트 프로그램 편집부(11)의 예를 도시한다. 여기서는, 상술한 바와 같이, 디바이스 「D124」의 현재치가 「789」이고, 디바이스 「D123」의 현재치가 「456」인 경우를 나타내고 있다. 도 10(a)에 도시하는 바와 같이, 텍스트 프로그램이 표시되어 있는 때에, 프로그램 작성자로부터, 디바이스의 현재치를 표시하는 지시를 받은 때에는, 도 10(b)에 도시하는 바와 같이, 스텝 S3B에서 추출된 디바이스 「D124」 및 「D123」의 행의 직후의 행에, 텍스트 부속 정보 표시 영역(30)이 마련되고, 각 디바이스의 현재치 「789」, 「654」가 각각 표시되어 있다.10 shows an example of a text
또한, 도 10(b)에서는, 디바이스 현재치만을 표시하고 있지만, 도 10(c)에 도시하는 바와 같이, 텍스트 부속 정보 표시 영역(30)을 2개 마련하고, 디바이스 현재치와 디바이스 코멘트를 양쪽 동시에 표시하여도 좋다.In addition, although only the device present value is displayed in FIG. 10 (b), as shown in FIG. 10 (c), two text attachment
또한, 텍스트 부속 정보 표시부(19)에 의한 텍스트 부속 정보 표시 영역(30)의 표시 내용이, 디바이스 코멘트인 것인지 디바이스 현재치인 것인지를 명확히 구별하기 위해, 예를 들면, 도 10(c)의 예에서는, 표시 내용이 디바이스 코멘트인 경우에는, 텍스트 부속 정보 표시 영역(30)의 행의 선두(즉, 텍스트 프로그램 표시부(18)에서 행 번호가 표시되는 부분)에 「D」를 표시하고, 디바이스 현재치인 경우에는, 모니터링을 나타내는 「M」을 표시하여 구별하고 있다.In addition, in order to distinguish clearly whether the display content of the text attachment information display area |
본 실시의 형태 3에서는, 이와 같이 하여, 입출력 단자를 구비하는 컨트롤러(7)의 프로그램을 텍스트 언어 형식으로 작성하는 경우에도, 디바이스의 현재치를, 텍스트 프로그램에서 사용되고 있는 디바이스의 표시 위치의 직후(또는 직전)에 표시하는 것이 가능해지고, 텍스트 언어 형식의 프로그램의 모니터링할 때의 가독성을 확보할 수 있다.In the third embodiment, in this way, even when the program of the
실시의 형태 4.
본 실시의 형태 4에서는, 라벨을 이용한 텍스트 프로그래밍에서의 라벨 부속 정보의 표시 방법에 관해 설명한다. 또한, 본 실시의 형태에서의 프로그램 작성 지원 장치(1)의 하드웨어 구성에 관해서는, 상술한 도 1에 도시한 구성과 같기 때문에, 여기서는 설명을 생략한다.In the fourth embodiment, a display method of label attachment information in text programming using a label will be described. In addition, since the hardware structure of the program
도 11에, 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치(1)의 구성(소프트웨어 구성)을 도시한다. 도 11의 구성과, 도 2에 도시한 실시의 형태 1과의 구성의 차이는, 도 11에서는, 라벨 및 부속 정보 설정부(17)와, 라벨 및 부속 정보 보존 파일(10)이 추가되어 있는 점이다. 다른 구성에 관해서는 기본적으로 도 2의 구성과 같다.11 shows a configuration (software configuration) of the program
도 11에 도시하는 바와 같이, 프로그램 작성 지원 장치(1)에는, 디바이스에 대한 디바이스 코멘트를 설정하기 위한 디바이스 부속 정보 설정부(12)가 마련되어 있다. 또한, 디바이스 코멘트는, 디바이스 부속 정보 보존 파일(9)에 보존되고, 그곳에서 판독할 수도 있다.As shown in FIG. 11, the program
또한, 프로그램 작성 지원 장치(1)에는, 라벨에 대한 라벨 코멘트 및 할당처(割付先) 디바이스를 설정하기 위한, 라벨 및 부속 정보 설정부(17)가 마련되어 있다. 설정된 라벨이나 할당처 디바이스는, 라벨 및 부속 정보 보존 파일(10)에 보존되고, 그곳에서 판독할 수도 있다.In addition, the program
또한, 프로그램 작성 지원 장치(1)에는, 텍스트 프로그램 편집부(11)가 마련되어 있고, 텍스트 프로그램 표시부(18)에 의해, 텍스트 프로그램을 표시하거나 편집하거나 할 수 있도록 되어 있고, 또한, 당해 텍스트 프로그램을, 텍스트 프로그램 보존 파일(8)로서 보존하거나 판독하거나 하도록 되어 있다.In addition, the program
이들의 구성에 더하여, 본 실시의 형태에서는, 또한, 사용 디바이스 추출부(13), 사용 디바이스 부속 정보 추출부(14), 사용 디바이스 표시 위치 추출부(15), 사용 디바이스 부속 정보 생략부(16), 및, 텍스트 부속 정보 표시부(19)가 마련되어 있다. 이들의 구성은, 실시의 형태 1에 마련된 것과 기본적으로 같지만, 각각이, 디바이스뿐만 아니라 라벨에도 대응하도록 한 점이 다르다.In addition to these configurations, in the present embodiment, the use device extraction unit 13, use device attachment
도 12에, 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치(1)의 처리 플로를 도시한다. 본 실시의 형태 4에 관한 프로그램 작성 지원 장치(1)의 처리 플로는, 도 3에 도시한 실시의 형태 1에 관한 프로그램 작성 지원 장치(1)의 처리 플로와 기본적으로 같고, 도 3의 「디바이스」를 「라벨」로 치환한 것이다.12 shows a processing flow of the program
즉, 우선, 스텝 S1C에서, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램 전체에 대한 라벨 부속 정보를 표시하는 지시를 받았는지의 여부를 판정한다. 당해 지시를 받고 있으면, 스텝 S3C로 진행하여, 텍스트 프로그램에 포함되는 전 행에 대해, 1행마다 스텝 S3C 내지 S11C의 처리를 행한다. 한편, 당해 지시를 받지 않은 경우에는, 스텝 S2C로 진행한다.That is, first, in step S1C, the text
스텝 S2C에서는, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램에 포함되는 1행에 대한 라벨 부속 정보의 표시의 지시를 받았는지의 여부를 판정한다. 당해 지시를 받지 않았으면, 스텝 S1C로 되돌아온다. 한편, 당해 지시를 받고 있으면, 그 행에 대해, 스텝 S3C 내지 S11C의 처리를 행한다.In step S2C, the text
스텝 S3C에서는, 사용 디바이스 추출부(13)는, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 텍스트 프로그램 중에 기술된 라벨을 추출하는 처리를 행한다.In step S3C, the use device extraction unit 13 refers to the text
스텝 S4C에서는, 사용 디바이스 부속 정보 추출부(14)가, 라벨 및 부속 정보 설정부(17), 또는, 라벨 및 부속 정보 보존 파일(10)을 참조하여, 스텝 S3C에서 추출된 라벨에 대해 설정되어 있는 라벨 코멘트를 추출한다.In step S4C, the use device accessory
스텝 S5C에서는, 사용 디바이스 표시 위치 추출부(15)가, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램을 참조하여, 스텝 S3C에서 추출된 라벨이, 텍스트 프로그램의 어디에 표시되어 있는 것인지, 그 표시 위치를 추출한다.In step S5C, the use device display
스텝 S6C에서는, 사용 디바이스 부속 정보 생략부(16)가, 스텝 S5C에서 추출된 라벨의 표시 위치와 같은 행에 표시된 다음의 라벨이 있는지의 여부를 판정한다. 다음의 라벨이 있으면 스텝 S7C로 진행하고, 다음의 디바이스가 없으면 스텝 S9C로 진행한다.In step S6C, the use device attachment
스텝 S7C에서는, 사용 디바이스 부속 정보 생략부(16)가, 앞서 추출된 라벨의 표시 위치와, 다음에 추출된 라벨의 표시 위치와의 차분을 구하고, 당해 차분을, 앞서 추출된 라벨의 라벨 코멘트의 표시 가능한 문자수로 한다.In step S7C, the use device attachment
다음에, 스텝 S8C에서는, 사용 디바이스 부속 정보 생략부(16)가, 스텝 S7C에서 구한 표시 가능한 문자수와, 앞서 추출된 라벨의 라벨 코멘트의 문자수를 비교한다. 비교의 결과, 라벨 코멘트의 문자수가, 표시 가능한 문자수 이하면, 스텝 S9C로 진행하고, 라벨 코멘트의 문자수가, 표시 가능한 문자수를 초과하고 있으면, 스텝 S10C로 진행한다.Next, in step S8C, the use device attachment
스텝 S9C에서는, 라벨 코멘트의 문자수가, 표시 가능한 문자수 이하이기 때문에, 라벨 코멘트를 생략할 필요는 없기 때문에, 사용 디바이스 부속 정보 생략부(16)는, 생략 처리는 행하지 않고, 스텝 S11C로 진행한다.In step S9C, since the number of characters in the label comment is less than or equal to the number of characters that can be displayed, it is not necessary to omit the label comment. Therefore, the use device attachment
스텝 S10C에서는, 라벨 코멘트의 문자수가, 표시 가능한 문자수를 초과하고 있기 때문에, 사용 디바이스 부속 정보 생략부(16)는, 라벨 코멘트의 문자수가 표시 가능한 문자수의 범위 내가 되도록, 라벨 코멘트의 일부를 생략하는 생략 처리를 행하고, 다음에, 스텝 S11C로 진행한다.In step S10C, since the number of characters in the label comment exceeds the number of characters that can be displayed, the use device attachment
스텝 S11C에서는, 텍스트 부속 정보 표시부(19)는, 사용 디바이스 부속 정보 생략부(16)로부터, 스텝 S9C 또는 스텝 S10C에서 얻어진 라벨 코멘트와, 그 표시 위치의 정보를 받아서, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램의 행 사이에, 텍스트 부속 정보 표시 영역(30)을 마련하고, 도 13(b)에 도시하는 바와 같이, 스텝 S9C 또는 스텝 S10C에서 얻어진 라벨 코멘트를 표시한다.In step S11C, the text accessory
또한, 도 13(c)에 도시하는 바와 같이, 텍스트 부속 정보 표시 영역(30)을 2개 마련하고, 라벨 코멘트와 라벨의 할당처 디바이스를 양쪽 동시에 표시하여도 좋다.As shown in Fig. 13C, two text attachment
또한, 스텝 S10C의 라벨 코멘트의 생략 처리의 방법에 관해서는, 도 3의 스텝 S10의 디바이스 코멘트의 생략 처리의 방법과 기본적으로 같다. 즉, 표시 가능한 문자수에 관해 고정 길이로 하는 방법이나, 당해 라벨의 문자수와 같은 문자수를 라벨 코멘트의 표시 가능한 문자수로 하는 방법이 생각되는데, 본 실시의 형태에서는 당해 라벨 표시 위치부터 같은 행의 다음의 라벨 표시 위치까지의 사이의 문자수로 하는 것이 가장 라벨 코멘트의 문자수를 표시 가능하기 때문에, 이 방법을 이용한 예에 관해 설명한다.In addition, about the method of the omission process of the label comment of step S10C, it is basically the same as the method of the omission process of the device comment of step S10 of FIG. That is, the method of making the fixed length with respect to the number of characters which can be displayed, or the method of making the number of characters same as the number of characters of the said label into the number of characters which can be displayed in a label comment is considered, In this embodiment, it is the same from the said label display position. Since the number of characters up to the next label display position of the line can be displayed most of the number of characters in the label comment, an example using this method will be described.
또한, 텍스트 부속 정보 표시부(19)는, 프로그램 작성자로부터의 라벨 코멘트를 표시로 하는 취지의 조작을 접수한 때에 라벨 코멘트를 표시하고, 프로그램 작성자로부터의 라벨 코멘트를 비표시로 하는 취지의 조작을 접수한 때에는 비표시로 한다. 디폴트값은 비표시이다.In addition, the text accompanying
도 13에, 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치(1)의 텍스트 프로그램 편집부(11)의 예를 도시한다. 이하, 이에 따라 구체적으로 설명한다. 이하에서는, 텍스트 프로그램의 3행째에 관해, 라벨 코멘트를 표시하는 취지의 조작이 있은 경우에 관해 설명한다.13 shows an example of a text
우선, 통상시는, 도 13(a)에 도시하는 바와 같이, 텍스트 프로그램 편집부(11)의 텍스트 프로그램 표시부(18)에 의해, 프로그램 작성자가 스스로 기술한 텍스트 프로그램 및 프로그램 코멘트가 표시된다.First, as shown in Fig. 13A, the text
(스텝 S1C)(Step S1C)
이에 대해 프로그램 작성자는, 라벨 코멘트를 표시하는 취지의 조작을 행한다. 구체적인 조작 방법으로서는, 프로그램 작성 지원 장치(1)의 조작 메뉴로부터 라벨 코멘트를 표시하는 지시를 행하는 것이 생각되는데, 이 경우에는, 텍스트 프로그램 전체 즉 프로그램 텍스트의 전 행에 대해, 라벨 코멘트를 표시하는 처리를 행하는 것이 된다.In response to this, the program author performs an operation of displaying a label comment. As a specific operation method, it is conceivable to give an instruction to display a label comment from the operation menu of the program
(스텝 S2C)(Step S2C)
다른 방법으로서는, 도 13(a)에 도시하는 바와 같이, 텍스트 프로그램 표시부(18)에 의해 표시되어 있는 텍스트 프로그램의 각 행의 선두에는, 행 번호가 표시되어 있기 때문에, 프로그램 작성자가, 당해 행 번호를 마우스로 클릭하는 등에 의해, 라벨 코멘트를 표시하고 싶은 행 번호를 지정한다. 이 경우에는, 지정된 텍스트 프로그램의 1행에 대해서만, 라벨 코멘트를 표시하는 처리를 행한다. 이하에서는, 프로그램 작성자로부터, 텍스트 프로그램의 3행째에 관해, 라벨 코멘트를 표시하는 취지의 조작이 있은 경우에 관해 설명한다.As another method, as shown in Fig. 13A, the line number is displayed at the head of each line of the text program displayed by the text
(스텝 S3C)(Step S3C)
사용 디바이스 추출부(13)는, 라벨 및 부속 정보 설정부(17), 또는, 라벨 및 부속 정보 보존 파일(10)에 설정되어 있는 라벨을 참조하면서, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 텍스트 프로그램의 3행째에 기술된 라벨을 추출하는 처리를 행한다. 여기서는, 도 13(a)에 도시하는 바와 같이, 「Ravel」과 「Label」이 추출된다.The use device extracting unit 13 refers to the label and the accessory
(스텝 S4C)(Step S4C)
다음에, 사용 디바이스 부속 정보 추출부(14)가, 스텝 S1C에서 추출된 라벨에 대해 설정되어 있는 라벨 코멘트를, 라벨 및 부속 정보 설정부(17), 또는, 라벨 및 부속 정보 보존 파일(10)을 참조하여 추출한다. 여기서는, 도 13(d)에 도시하는 바와 같이, 라벨 「Ravel」에 대해 라벨 코멘트 「전압 보정」이 추출되고, 라벨 「Label」에 대해 라벨 코멘트 「전압 측정」이 추출된다.Next, the use device attachment
(스텝 S5C)(Step S5C)
또한, 사용 디바이스 표시 위치 추출부(15)가, 스텝 S3C에서 추출된 라벨이, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램의 어디에 표시되는 것인지, 그 표시 위치를 추출한다. 여기서는, 「Ravel」의 표시 위치가, 행의 선두로부터 세어서 반각으로 6문자째, 「Label」의 표시 위치가, 행의 선두로부터 세어서 반각으로 16문자째인 것이 추출된다.In addition, the use device display
여기서는, 1행에 2개의 라벨이 추출된 것이기 때문에, 앞서 추출된 라벨 「Ravel」에 대해 설정된 라벨 코멘트 「전압 보정」에 관해서는, 표시 문자수의 제한에 관해 확인하고, 필요 있으면 생략 처리를 행한다.Here, since two labels are extracted in one line, regarding the label comment "voltage correction" set for the previously extracted label "Ravel", the limitation of the number of display characters is checked, and if necessary, the omission process is performed. .
(스텝 S7C)(Step S7C)
사용 디바이스 부속 정보 생략부(16)는, 우선, 스텝 S5C에서 추출된, 라벨 「Ravel」의 표시 위치와, 같은 행에서의 다음의 라벨 「Label」의 표시 위치로부터, 「Ravel」의 라벨 코멘트를 표시 가능한 문자수를 산출한다. 「Ravel」은, 그 다음이 「Label」이기 때문에 16으로부터 6을 감산하고, 그 차가 10으로 산출되지만, 다음의 라벨 「Label」와의 간격을 비우기 위한 반각 1문자분을 확보할 필요가 있기 때문에, 10으로부터, 다시 1을 감산하여, 표시 가능한 문자수가 반각으로 9문자인 것으로 구한다. 또한, 「Label」에 대해서는, 그 다음이 없기 때문에, 표시 가능한 문자수에 제한이 없다, 라는 것이 된다.The use device attachment
(스텝 S9C, S10C)(Step S9C, S10C)
그리고, 라벨 코멘트의 문자수의 쪽이 크면, 라벨 코멘트를 표시 가능한 문자수로 생략하는 처리를 행한다. 여기서는, 「Ravel」에 대해서는 라벨 코멘트 「전압 보정」이 전각으로 4문자(반각으로 8문자)이기 때문에, 이것을 반각으로 9문자(전각에서는, 우수리를 잘라 버려 4문자)로 생략할 필요가 없고, 그대로 좋다. 또한, 「Label」에 대해서는, 표시 가능한 문자수에 제한이 없기 때문에, 그대로 「전압 측정」이 된다.If the number of characters in the label comment is larger, the process of omitting the label comment to the number of characters that can be displayed is performed. Because label comment "voltage correction" is four characters (eight characters at full size) about "Ravel" here, it is not necessary to omit this in nine characters (half point cut in four characters at full size), Just as good. In addition, about "Label", since there is no restriction | limiting in the number of characters which can be displayed, it becomes "voltage measurement" as it is.
(스텝 S11C)(Step S11C)
최후로, 텍스트 프로그램 편집부(11)는, 도 13(b)에 도시하는 바와 같이, 텍스트 프로그램 표시부(18)에서 표시되는 3행째의 직후에, 텍스트 부속 정보 표시부(19)에 의한 텍스트 부속 정보 표시 영역(30)을 마련하고, 「Ravel」에 관해서는, 행의 선두로부터 세어서 반각으로 6문자째를 표시 위치로 하여, 라벨 코멘트인 「전압 보정」을 표시하고, 「Label」에 관해서는, 행의 선두로부터 반각으로 16문자째를 표시 위치로 하여, 디바이스 코멘트 「전압 측정」을 표시한다.Finally, the text
또한, 생략 처리된 라벨 코멘트의 표시에서는 충분히 내용을 이해할 수가 없는 경우를 고려하여, 라벨 코멘트에 대한 생략 처리를 행하지 않고 표시하는 기능을 구비하도록 할 수 있는 것도, 또한, 실시의 형태 1에 마찬가지이다.In addition, the display of the abbreviated-labeled comment can be provided with a function of displaying the label comment without performing abbreviation processing in consideration of the case where the contents cannot be sufficiently understood, which is the same as that of the first embodiment. .
라벨을 이용하여 작성한 프로그램인 경우에는, 라벨 코멘트 표시 외에, 라벨 의 할당처 디바이스에 대해서도, 라벨 부속 정보이기 때문에, 이것을 표시하는 기능을 구비하도록 할 수도 있다.In the case of a program created using a label, in addition to the label comment display, the label assignment information is also provided for the device to which the label is assigned, so that a function for displaying this can be provided.
구체적인 조작 방법으로서는, 프로그램 작성 지원 장치(1)의 조작 메뉴로부터 라벨의 할당처에 관한 부속 정보의 표시의 지시를 행하는 방법이 생각된다. 또는, 행 번호를 마우스로 클릭하는 등에 의해, 라벨 코멘트를 표시하고 싶는 행 번호를 지정하면, 그 행의 직후에, 텍스트 부속 정보 표시부(19)에 의한 텍스트 부속 정보 표시 영역(30)이 마련되기 때문에, 다시, 텍스트 부속 정보 표시 영역을 마우스로 클릭함으로써, 라벨의 할당처 정보를 표시하는 지시에 대신하는 등의 방법도 있다. 그러한 지시가 있은 경우에는, 텍스트 부속 정보 표시부(19)가, 도 13(c)와 같이, 라벨의 할당처에 관한 정보인 디바이스 및 디바이스 코멘트를 표시한다.As a specific operation method, the method of instructing display of the attached information regarding a label assignment destination from the operation menu of the program
이 경우의 처리 플로는, 상술한 도 12와 같은 플로가 된다. 앞의 설명과의 차이는, 스텝 S4C에서, 라벨 코멘트뿐만 아니라, 라벨의 할당처 디바이스의 어드레스도 추출하는 점과, 스텝 S11C에서, 라벨 코멘트뿐만 아니라, 할당처 디바이스도 표시하는 점이다.The processing flow in this case is the same flow as FIG. 12 described above. The difference from the foregoing description is that in step S4C, not only the label comment but also the address of the device to which the label is assigned is extracted, and in step S11C, not only the label comment but also the device to be assigned is displayed.
즉, 우선, 라벨을 추출하고(스텝 S3C, 이것은 스텝 S3과 같다), 다음에 라벨의 할당처의 디바이스 및 디바이스 코멘트를 참조하여(스텝 S4C), 라벨의 표시 위치를 추출한다(스텝 S5C, 이것은 스텝 S5와 같다). 그리고 표시 가능한 문자수를 산출하고(스텝 S7C), 라벨의 할당처의 디바이스에 설정된 디바이스 코멘트에 대해 필요에 응하여 생략 처리를 행한다. 「Ravel」에 관해서는, 다음에 추출된 라벨 「Label」가 있기 때문에, 반각으로 9문자가 표시 가능한 문자수의 제한으로 되기 때문에 「연산 결과」로 생략한다. 한편, 「Label」에 관해서는 제한이 없기 때문에 생략할 필요가 없다. 최후로, 텍스트 부속 정보 표시부(19)는, 텍스트 부속 정보 표시 영역(30)을 마련하고, 라벨 「Ravel」에 관해서는, 당해 라벨의 할당처 디바이스 「D124」와 생략 처리된 디바이스 코멘트 「연산 결과」를 표시하고, 라벨 「Label」에 관해서는, 당해 라벨의 할당처의 디바이스 「D123」와 생략 처리의 필요가 없었던 디바이스 코멘트 「계측 결과의 격납」을 표시한다.That is, the label is first extracted (step S3C, which is the same as step S3), and then the display position of the label is extracted with reference to the device and device comment to which the label is assigned (step S4C) (step S5C, which is Same as step S5). The number of characters that can be displayed is calculated (step S7C), and the omission process is performed as necessary for the device comment set in the device to which the label is assigned. Regarding "Ravel", since there is a label "Label" extracted next, it is omitted as the "calculation result" because the limit of the number of characters that can be displayed by nine characters at half-width is limited. On the other hand, since there is no limitation with respect to "Label", it is not necessary to omit it. Finally, the text attachment
또한, 텍스트 부속 정보 표시부(19)는, 표시 내용이 라벨 코멘트인 것인지 라벨의 할당처 디바이스 코멘트인 것인지를 명확하게 표시하기 위해, 예를 들면, 도 13(c)의 예에서는, 표시 내용이 라벨 코멘트인 경우에는, 텍스트 부속 정보 표시 영역(30)의 행의 선두(즉, 텍스트 프로그램 표시부(18)에서 행 번호가 표시되는 부분)에 「L」을 표시하고, 라벨의 할당처 디바이스 코멘트인 경우에는 「D」를 표시하여, 구별하고 있는 예를 나타내고 있다.In addition, in order to clearly display whether the display content is a label comment or a device assignment destination device comment, for example, in the example of FIG. 13 (c), the display content is a label. In the case of a comment, "L" is displayed at the head of the line of the text sub information display area 30 (i.e., the portion where the line number is displayed in the text program display unit 18), and in the case of a device comment to which the label is assigned. "D" is shown and the example which distinguishes is shown.
본 실시의 형태 4에서는, 이와 같이 하여, 입출력 단자를 구비하는 컨트롤러의 프로그램을 텍스트 언어 형식으로 작성하는 경우에도, 텍스트 프로그램에서 사용되고 있는 라벨의 표시 위치에, 라벨의 내용을 상세히 설명하기 위해 설정한 라벨 코멘트나, 라벨의 할당처인 디바이스나 그 디바이스 코멘트라는, 라벨에 관한 부속 정보를 표시하는 것이 가능해지고, 프로그램 작성자가 스스로 코멘트 아웃 지정 기호를 이용하여 프로그램의 보충 설명문을 코멘트로서 기술 삽입하는 수고를 줄일 수 있고, 또한, 텍스트 언어 형식의 프로그램의 가독성을 확보할 수 있다.In the fourth embodiment, in this way, even when a program of a controller having an input / output terminal is created in a text language format, the display position of the label used in the text program is set to explain the contents of the label in detail. The label comments, the device to which the label is assigned, and the device comments, such as the device comments, can be displayed, and the program author has made the effort of describing and inserting the supplementary description of the program as a comment by using the comment-out designation symbol. In addition, it is possible to ensure the readability of the program in the text language format.
또한, 본 실시의 형태 4에서도, 텍스트 프로그램의 행 사이에 라벨 부속 정보가 삽입된 인쇄 출력용 텍스트 프로그램 보존 파일(21)을 별도 생성하여 출력하는 경우에 관해서는, 실시의 형태 2와 마찬가지로 하여 실현할 수 있다.In addition, also in the fourth embodiment, a case of separately generating and outputting a print output text
도 14에, 실시의 형태 4에 관한 프로그램 작성 지원 장치(1)의 인쇄용 출력의 예를 도시한다. 여기서의 프로그램 작성 지원 장치(1)의 구성은, 상기한 도 11의 구성에, 또한, 도 6의 텍스트 부속 정보 삽입부(20)와 인쇄 출력용 텍스트 프로그램 보존 파일(21)을 마련한 구성으로 한다. 텍스트 부속 정보 삽입부(20)와 인쇄 출력용 텍스트 프로그램 보존 파일(21)의 동작에 관해서는, 실시의 형태 2에서 설명한 바와 같기 때문에, 여기서는, 설명을 생략한다.14 shows an example of the printing output of the program
또한, 도 14(b)의 예에서는, 인쇄 출력용 텍스트 프로그램 보존 파일(21)에, 코멘트 아웃 지정 기호 //를 이용하여, 라벨 부속 정보(라벨 코멘트)와 디바이스 부속 정보(라벨의 할당처인 디바이스 및 디바이스 코멘트)의 양쪽을 삽입하여 출력한 예를 도시하고 있다.In addition, in the example of FIG. 14 (b), the label attachment information (label comment) and the device attachment information (the device to which the label is assigned and the device attachment information) are used for the printout text
본 실시의 형태 4에 의하면, 이와 같이 하여, 입출력 단자를 구비하는 컨트롤러의 프로그램을 텍스트 언어 형식으로 작성하는 경우에도, 텍스트 프로그램에서 사용되고 있는 라벨의 표시 위치의 직후(또는 직전)에, 라벨의 내용을 상세히 설명하기 위해 설정한 라벨 코멘트나 라벨의 할당처 디바이스 부속 정보를, 프로그램 코멘트로서 삽입한 인쇄 출력용 텍스트 프로그램 보존 파일(21)을 생성하는 것이 가능해지고, 이것을 인쇄 출력하든지 또는, 다른 수단으로 표시하는 등에 의해, 프로그램 작성자가 스스로 코멘트 아웃 지정 기호를 이용하여 프로그램의 보충 설명문을 프로그램 코멘트로서 기술 삽입하는 수고를 생략할 수 있고, 또한, 텍스트 언어 형식의 프로그램의 가독성을 확보할 수 있다.According to the fourth embodiment, the contents of the label immediately after (or immediately before) the display position of the label used in the text program, even when the program of the controller having the input / output terminals is produced in the text language format in this way. It becomes possible to generate the printout text
또한, 본 실시의 형태 4에서, 라벨의 현재치를 표시하는 경우에 관해서는, 실시의 형태 3의 디바이스의 경우와 마찬가지로 하여 실현할 수 있다.In addition, in the fourth embodiment, the case where the present value of the label is displayed can be realized in the same manner as in the case of the device of the third embodiment.
또한, 라벨과 디바이스가 혼재하여 사용되고 있는 텍스트 프로그램인 경우에는, (1) 디바이스만을 추출하여 디바이스 부속 정보를 표시하는 방법과, (2) 라벨만을 추출하여 라벨 부속 정보(라벨 코멘트나 라벨의 할당처 디바이스 부속 정보)를 표시하는 방법과, (3) 라벨과 디바이스의 양쪽을 추출하여 라벨 부속 정보와 디바이스 부속 정보를 표시하는 방법이 있다. (1)의 방법은, 실시의 형태 1에서 설명한 바와 같고, (2)의 방법은, 본 실시의 형태 4에서 설명한 바와 같은데, 이것을 조합시키면, (3)의 방법이 실현된다.In the case of a text program in which a label and a device are used in combination, (1) a method of extracting only a device to display device accessory information, and (2) only a label is extracted to provide label accessory information (label comment or label assignment destination). Device accessory information), and (3) a method of extracting both the label and the device to display the label accessory information and the device accessory information. The method of (1) is as described in the first embodiment, and the method of (2) is as described in the fourth embodiment. When combined, the method of (3) is realized.
이처럼, 상기한 실시의 형태 1 내지 4는, 각각 다른 실시 형태로 하여도 좋지만, 각각을 임의로 조합시킨 구성으로 하여도 좋고, 그 경우에도, 실시의 형태 1 내지 4에서 나타낸 각 효과와 같은 효과가, 조합시킨 실시의 형태의 수만큼 얻어짐은 말할 필요도 없다.Thus, although above-mentioned Embodiments 1-4 may be set as another embodiment, respectively, you may make it the structure which combined each arbitrarily, and also in that case, the effect similar to each effect shown in Embodiments 1-4 is also the case. Needless to say, only the number of the combined embodiments is obtained.
1 : 프로그램 작성 지원 장치
2 : 마이크로 프로세서
3 : 표시부
4 : 입력부
5 : 보존부
6 : 통신부
7 : 컨트롤러
8 : 텍스트 프로그램 보존 파일
9 : 디바이스 부속 정보 보존 파일
10 : 라벨 및 부속 정보 보존 파일
11 : 텍스트 프로그램 편집부
12 : 디바이스 부속 정보 설정부
13 : 사용 디바이스 추출부
14 : 사용 디바이스 부속 정보 추출부
15 : 사용 디바이스 표시 위치 추출부
16 : 사용 디바이스 부속 정보 생략부
17 : 라벨 및 부속 정보 설정부
18 : 텍스트 프로그램 표시부
19 : 텍스트 부속 정보 표시부
20 : 텍스트 부속 정보 삽입부
21 : 인쇄 출력용 텍스트 프로그램 보존 파일
22 : 사용 디바이스 현재치 정보 취득부1: Program creation support device
2: microprocessor
3: display unit
4: input unit
5: preservation
6: communication unit
7: controller
8: text program preservation file
9: Device sub information preservation file
10: label and attachment information preservation file
11: text program editor
12: device accessory information setting unit
13: use device extraction unit
14: use device accessory information extraction unit
15: use device display position extraction unit
16: Omit device accessory information
17: label and accessory information setting section
18: text program display unit
19: Text sub information display section
20: text sub information insertion unit
21: Text program storage file for print output
22: device current value information acquisition unit
Claims (9)
상기 디바이스나 라벨에 관한 내용 설명을 부속 정보로서 설정하는 부속 정보 설정부와,
상기 부속 정보 설정부에서 설정된 상기 부속 정보를 보존하는 부속 정보 보존부를 구비하고,
상기 텍스트 프로그램 편집부는,
상기 텍스트 프로그램으로부터, 그곳에 기재되어 있는 디바이스나 라벨을 추출하는 디바이스·라벨 추출부와,
상기 부속 정보 설정부에서 설정된 상기 부속 정보 또는 상기 부속 정보 보존부에 보존된 상기 부속 정보를 참조하여, 상기 추출된 디바이스나 라벨의 상기 부속 정보를 추출하는 부속 정보 추출부와,
상기 텍스트 프로그램을 참조하여, 상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치를 추출하는 표시 위치 추출부와,
상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치의 직전의 행 또는 직후의 행에, 상기 표시 위치 추출부에 의해 추출된 상기 디바이스나 라벨의 표시 위치에 대응시켜서, 상기 추출한 부속 정보를 표시하는 텍스트 부속 정보 표시부를 구비한 것을 특징으로 하는 프로그램 작성 지원 장치.A text program editing unit for writing a program executed by the controller in a text language format using a device or a label to create a text program;
An accessory information setting unit for setting a description of the content of the device or label as accessory information;
An accessory information storage section for storing the accessory information set by the accessory information setting section;
The text program editing unit,
A device label extracting unit for extracting a device or label described therefrom from the text program;
An accessory information extraction unit for extracting the accessory information of the extracted device or label by referring to the accessory information set in the accessory information setting unit or the accessory information stored in the accessory information storage unit;
A display position extraction unit for extracting a display position in the text program of the extracted device or label with reference to the text program;
On the line immediately before or immediately after the display position in the text program of the extracted device or label, the extracted accessory information is displayed in correspondence with the display position of the device or label extracted by the display position extraction unit. And a text appended information display section.
상기 텍스트 프로그램 편집부는,
하나의 행에서 복수의 디바이스나 라벨이 추출된 경우에, 앞서 추출된 디바이스나 라벨의 표시 위치와, 다음에 추출된 디바이스나 라벨의 표시 위치와의 차분으로부터, 앞서 추출된 디바이스나 라벨에 대한 부속 정보의 표시 가능한 문자수를 산출하는 표시 가능 문자 산출부를 또한 구비하고,
상기 텍스트 부속 정보 표시부는, 상기 추출한 표시 위치에 의거하여, 상기 추출한 부속 정보를, 상기 행의 직전 또는 직후의 복수행에 걸쳐서, 상기 산출한 표시 가능한 문자수로 반복하여 표시하는 것을 특징으로 하는 프로그램 작성 지원 장치.The method of claim 1,
The text program editing unit,
When a plurality of devices or labels are extracted in one row, the attachment to the previously extracted device or label is derived from the difference between the display position of the previously extracted device or label and the display position of the next extracted device or label. And further comprising a displayable character calculator which calculates the number of displayable characters of the information,
The text accessory information display unit repeatedly displays the extracted accessory information in the calculated number of displayable characters over a plurality of lines immediately before or after the line based on the extracted display position. Creation support device.
상기 텍스트 프로그램 편집부는,
하나의 행에서 복수의 디바이스나 라벨이 추출된 경우에, 앞서 추출된 디바이스나 라벨의 표시 위치와, 다음에 추출된 디바이스나 라벨의 표시 위치와의 차분으로부터, 앞서 추출된 디바이스나 라벨에 대한 부속 정보의 표시 가능한 문자수를 산출하고, 표시 가능한 문자수의 범위가 되도록, 상기 추출한 부속 정보의 일부를 생략하는 생략 처리를 행한 부속 정보 생략부를 또한 구비하고,
상기 텍스트 부속 정보 표시부는, 상기 행의 직전 또는 직후의 행에, 상기 추출한 표시 위치에 의거하여, 상기 생략 처리된 부속 정보를 표시하는 것을 특징으로 하는 프로그램 작성 지원 장치.The method of claim 1,
The text program editing unit,
When a plurality of devices or labels are extracted in one row, the attachment to the previously extracted device or label is derived from the difference between the display position of the previously extracted device or label and the display position of the next extracted device or label. And further comprising an accessory information omission section for calculating the number of displayable characters of the information and performing an omission process of omitting a part of the extracted accessory information so as to be within the range of displayable characters.
And the text accessory information display unit displays the omitted accessory information on the line immediately before or after the line based on the extracted display position.
상기 텍스트 프로그램 편집부는,
상기 추출된 디바이스나 라벨에 관한 현재치 정보를 상기 컨트롤러로부터 취득하는 현재치 정보 취득부를 또한 구비하고,
상기 텍스트 부속 정보 표시부는, 상기 행의 직전 또는 직후의 행에, 상기 추출된 표시 위치에 의거하여, 상기 취득된 현재치 정보를 표시하는 것을 특징으로 하는 프로그램 작성 지원 장치.The method according to any one of claims 1 to 3,
The text program editing unit,
And a present value information acquisition unit for acquiring present value information on the extracted device or label from the controller,
And the text appended information display unit displays the acquired present value information on the basis of the extracted display position on a line immediately before or after the line.
상기 텍스트 프로그램 편집부는,
상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치의 직전의 행 또는 직후의 행에, 상기 표시 위치 추출부에 의해 추출된 상기 디바이스나 라벨의 표시 위치에 대응시켜서, 상기 추출한 부속 정보를 프로그램 코멘트로서 상기 텍스트 프로그램에 삽입하고, 삽입 후의 상기 텍스트 프로그램을 출력하는 텍스트 부속 정보 삽입부를 또한 구비하고 있는 것을 특징으로 하는 프로그램 작성 지원 장치.The method according to any one of claims 1 to 3,
The text program editing unit,
The extracted accessory information is programmed to correspond to a display position of the device or label extracted by the display position extraction unit in a line immediately before or immediately after a display position in the text program of the extracted device or label. And a text appending information inserting section for inserting into the text program as a comment and outputting the text program after insertion.
상기 디바이스나 라벨에 관한 내용 설명을 설정하는 부속 정보 설정부와,
상기 부속 정보 설정부에서 설정된 상기 부속 정보를 보존하는 부속 정보 보존부를 구비하고,
상기 텍스트 프로그램 편집부는,
상기 텍스트 프로그램으로부터, 그곳에 기재되어 있는 디바이스나 라벨을 추출하는 디바이스·라벨 추출부와,
상기 부속 정보 설정부에서 설정된 상기 부속 정보 또는 상기 부속 정보 보존부에 보존된 상기 부속 정보를 참조하여, 상기 추출된 디바이스나 라벨에 관한 부속 정보를 추출하는 부속 정보 추출부와,
상기 텍스트 프로그램을 참조하여, 상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치를 추출하는 표시 위치 추출부와,
상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치의 직전의 행 또는 직후의 행에, 상기 표시 위치 추출부에 의해 추출된 상기 디바이스나 라벨의 표시 위치에 대응시켜서, 상기 추출한 부속 정보를 프로그램 코멘트로서 상기 텍스트 프로그램에 삽입하고, 삽입 후의 상기 텍스트 프로그램을 출력하는 텍스트 부속 정보 삽입부를 구비하고 있는 것을 특징으로 하는 프로그램 작성 지원 장치.A text program editing unit for writing a program executed by the controller in a text language format using a device or a label to create a text program;
An accessory information setting unit for setting a content description relating to the device and label;
An accessory information storage section for storing the accessory information set by the accessory information setting section;
The text program editing unit,
A device label extracting unit for extracting a device or label described therefrom from the text program;
An accessory information extracting unit for referring to the accessory information set by the accessory information setting unit or the accessory information stored in the accessory information storing unit to extract accessory information about the extracted device or label,
A display position extraction unit for extracting a display position in the text program of the extracted device or label with reference to the text program;
The extracted accessory information is programmed to correspond to a display position of the device or label extracted by the display position extraction unit in a line immediately before or immediately after a display position in the text program of the extracted device or label. And a text appending information inserting section for inserting into the text program as a comment and outputting the text program after insertion.
상기 텍스트 프로그램 편집부는,
상기 추출된 디바이스나 라벨에 관한 현재치 정보를 상기 컨트롤러로부터 취득하는 현재치 정보 취득부를 또한 구비하고,
상기 텍스트 부속 정보 삽입부는, 상기 행의 직전 또는 직후의 행에, 상기 추출된 표시 위치에 의거하여, 상기 취득된 현재치 정보를 프로그램 코멘트로서 삽입하고, 삽입 후의 상기 텍스트 프로그램을 출력하는 것을 특징으로 하는 프로그램 작성 지원 장치.The method according to claim 6,
The text program editing unit,
And a present value information acquisition unit for acquiring present value information on the extracted device or label from the controller,
The text appending information inserting unit inserts the obtained current value information as a program comment on the line immediately before or after the line, based on the extracted display position, and outputs the text program after insertion. Program creation support device.
상기 디바이스나 라벨에 관한 내용 설명을 부속 정보로서 설정하는 부속 정보 설정 스텝과,
상기 부속 정보 설정부에서 설정된 상기 부속 정보를 보존하는 부속 정보 보존 스텝과,
상기 텍스트 프로그램으로부터, 그곳에 기재되어 있는 디바이스나 라벨을 추출하는 디바이스·라벨 추출 스텝과,
상기 부속 정보 설정 스텝에서 설정된 상기 부속 정보 또는 상기 부속 정보 보존 스텝에 보존된 상기 부속 정보를 참조하여, 상기 추출된 디바이스나 라벨의 상기 부속 정보를 추출하는 부속 정보 추출 스텝과,
상기 텍스트 프로그램을 참조하여, 상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치를 추출하는 표시 위치 추출 스텝과,
상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치의 직전의 행 또는 직후의 행에, 상기 표시 위치 추출 스텝에 의해 추출된 상기 디바이스나 라벨의 표시 위치에 대응시켜서, 상기 추출한 부속 정보를 표시하는 텍스트 부속 정보 표시 스텝을 구비한 것을 특징으로 하는 프로그램 작성 지원 방법.A text program editing step of creating a text program by writing a program executed by the controller in a text language format using a device or a label;
An accessory information setting step of setting a content description on the device and label as accessory information;
An accessory information storing step of storing the accessory information set in the accessory information setting unit;
A device label extraction step of extracting a device or label described therefrom from the text program;
An accessory information extraction step of extracting the accessory information of the extracted device or label with reference to the accessory information set in the accessory information setting step or the accessory information stored in the accessory information storage step;
A display position extraction step of extracting a display position in the text program of the extracted device or label with reference to the text program;
The extracted accessory information is displayed in a row immediately before or immediately after a display position in the text program of the extracted device or label in correspondence with the display position of the device or label extracted by the display position extraction step. And a text appended information display step.
상기 디바이스나 라벨에 관한 내용 설명을 설정하는 부속 정보 설정 스텝과,
상기 부속 정보 설정 스텝에서 설정된 상기 부속 정보를 보존하는 부속 정보 보존 스텝과,
상기 텍스트 프로그램으로부터, 그곳에 기재되어 있는 디바이스나 라벨을 추출하는 디바이스·라벨 추출 스텝과,
상기 부속 정보 설정 스텝에서 설정된 상기 부속 정보 또는 상기 부속 정보 보존 스텝에 보존된 상기 부속 정보를 참조하여, 상기 추출된 디바이스나 라벨에 관한 부속 정보를 추출하는 부속 정보 추출 스텝과,
상기 텍스트 프로그램을 참조하여, 상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치를 추출하는 표시 위치 추출 스텝과,
상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치의 직전의 행 또는 직후의 행에, 상기 표시 위치 추출 스텝에 의해 추출된 상기 디바이스나 라벨의 표시 위치에 대응시켜서, 상기 추출한 부속 정보를 프로그램 코멘트로서 상기 텍스트 프로그램에 삽입하고, 삽입 후의 상기 텍스트 프로그램을 출력하는 텍스트 부속 정보 삽입 스텝을 구비한 것을 특징으로 하는 프로그램 작성 지원 방법.A text program editing step of creating a text program by writing a program executed by the controller in a text language format using a device or a label;
An accessory information setting step for setting a description of the content of the device and label;
An accessory information storage step for storing the accessory information set in the accessory information setting step;
A device label extraction step of extracting a device or label described therefrom from the text program;
An accessory information extraction step of extracting accessory information on the extracted device or label with reference to the accessory information set in the accessory information setting step or the accessory information stored in the accessory information storage step;
A display position extraction step of extracting a display position in the text program of the extracted device or label with reference to the text program;
The extracted accessory information is programmed to correspond to the display position of the device or label extracted by the display position extraction step in a line immediately before or immediately after a display position in the text program of the extracted device or label. And a text sub information insertion step of inserting the text program as a comment and outputting the text program after insertion.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JPJP-P-2012-084500 | 2012-04-03 | ||
JP2012084500A JP5490170B2 (en) | 2012-04-03 | 2012-04-03 | Program creation support apparatus and program creation support method |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20130112676A true KR20130112676A (en) | 2013-10-14 |
KR101473530B1 KR101473530B1 (en) | 2014-12-16 |
Family
ID=49367089
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020120115274A KR101473530B1 (en) | 2012-04-03 | 2012-10-17 | Program creation supporting device and program creation supporting method |
Country Status (3)
Country | Link |
---|---|
JP (1) | JP5490170B2 (en) |
KR (1) | KR101473530B1 (en) |
CN (1) | CN103365649B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6079817B2 (en) * | 2015-04-21 | 2017-02-15 | 株式会社安川電機 | Ladder program creation device, computer program, and ladder program creation method |
JP6394516B2 (en) * | 2015-07-01 | 2018-09-26 | 株式会社安川電機 | Development support program, recording medium, development support method, and development support apparatus |
CN108804002B (en) * | 2018-04-25 | 2022-03-08 | 广州视源电子科技股份有限公司 | Text annotation method and device for interactive intelligent equipment |
JP7466088B2 (en) * | 2019-10-28 | 2024-04-12 | パナソニックIpマネジメント株式会社 | Behavior Prediction System |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4001286B2 (en) * | 2003-06-23 | 2007-10-31 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Program maintenance support apparatus, program maintenance support method, and program |
JP4638250B2 (en) * | 2005-02-03 | 2011-02-23 | 三菱電機株式会社 | Program code generation support apparatus and method, and program code generation support method program |
CN100489774C (en) * | 2007-09-13 | 2009-05-20 | 上海交通大学 | Structured code automatic configuration method and device |
JP5045372B2 (en) | 2007-10-30 | 2012-10-10 | 横河電機株式会社 | Ladder program development support device |
JP2009199441A (en) * | 2008-02-22 | 2009-09-03 | Ntt Docomo Inc | Video editing apparatus, terminal device and gui program transmission method |
JP2010020680A (en) * | 2008-07-14 | 2010-01-28 | Mitsubishi Electric Corp | Information processing apparatus and program |
JP5370720B2 (en) * | 2008-07-30 | 2013-12-18 | 横河電機株式会社 | Ladder program development support device, ladder program development support method, and ladder program development support program |
-
2012
- 2012-04-03 JP JP2012084500A patent/JP5490170B2/en not_active Expired - Fee Related
- 2012-10-17 KR KR1020120115274A patent/KR101473530B1/en active IP Right Grant
- 2012-12-10 CN CN201210529437.5A patent/CN103365649B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN103365649B (en) | 2016-06-22 |
KR101473530B1 (en) | 2014-12-16 |
JP2013214218A (en) | 2013-10-17 |
CN103365649A (en) | 2013-10-23 |
JP5490170B2 (en) | 2014-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1650619A1 (en) | Sequence program editing apparatus | |
KR101473530B1 (en) | Program creation supporting device and program creation supporting method | |
JP2002108421A (en) | Plc system construction support tool and program development support tool for plc system which incorporates the same | |
US10139805B2 (en) | Ladder diagram monitoring device capable of additionally displaying operation situation of CNC in comment | |
CN106843141A (en) | Numerical control device | |
JP2005215955A (en) | Numerical controller | |
KR101252050B1 (en) | System and method for converting cad file, and computer readable recording medium having program to implement the method | |
EP3951519A1 (en) | Development support device, method for controlling development support device, information processing program, and recording medium | |
CN109313415B (en) | Parameter editing device for industrial machine control device, industrial machine control system, method for manufacturing industrial machine control system, and storage medium | |
CN105069001A (en) | Computer aided translation method | |
JP4902567B2 (en) | Work procedure manual creation system and work procedure manual creation program | |
CN109741776B (en) | Initialization method, device, equipment and medium of block-shaped static random access memory | |
JP2009230572A (en) | Design support device | |
JP6394516B2 (en) | Development support program, recording medium, development support method, and development support apparatus | |
CN104462046A (en) | Method and system for annotating document contents differently | |
JP5748118B2 (en) | Document creation support method, document creation support device, and document creation support program | |
CN111324088B (en) | Information processing apparatus | |
CN113609433A (en) | Method and device for determining formula layout, electronic equipment and storage medium | |
JP2008020956A (en) | Ladder diagram creation method | |
JP4237040B2 (en) | SCREEN DATA CONVERSION DEVICE, PROGRAM THEREOF, AND RECORDING MEDIUM | |
CN103838903A (en) | Method for creating Label through user-defined font object library | |
JP2009151613A (en) | Program source conversion apparatus | |
JP2011113276A (en) | Engineering tool | |
CN113614659B (en) | Development support device, control method for development support device, and recording medium | |
CN113918509A (en) | Document comparison display method and document comparison display equipment |
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: 20171114 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20181121 Year of fee payment: 5 |
|
FPAY | Annual fee payment |
Payment date: 20191120 Year of fee payment: 6 |