KR20130112676A - Program creation supporting device and program creation supporting method - Google Patents

Program creation supporting device and program creation supporting method Download PDF

Info

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
Application number
KR1020120115274A
Other languages
Korean (ko)
Other versions
KR101473530B1 (en
Inventor
사토루 나카이
키미아키 사토
Original Assignee
미쓰비시덴키 가부시키가이샤
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 미쓰비시덴키 가부시키가이샤 filed Critical 미쓰비시덴키 가부시키가이샤
Publication of KR20130112676A publication Critical patent/KR20130112676A/en
Application granted granted Critical
Publication of KR101473530B1 publication Critical patent/KR101473530B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/169Annotation, e.g. comment data or footnotes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

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

PURPOSE: A programming supporting device and method are provided to reduce programming time as well as to improve the readability of a text program by displaying device comments or label comments. CONSTITUTION: A text program editing part (11) creates a text program by writing a program, which is executed by a controller, in a textual language form based on a device or a label. A supplementary information setting part (12) sets content explanation about the device or label as supplementary information. A supplementary information storing part stores the supplementary information set above. The text program editing part is equipped with a device/label extracting part, a supplementary information extracting part (14), a display position extracting part (15), and a supplementary text information display part (19) displaying the supplementary information by matching with an extracted display position of the device or label. [Reference numerals] (1) Program developing support device; (11) Text program editing part; (12) Device supplementary information setting part; (13) Using device extracting part; (14) Using device supplementary information extracting part; (15) Using device display position extracting part; (16) Using device supplementary information omitting part; (18) Text program display part; (19) Supplementary text information display part; (8) Text program saving file; (9) Device supplementary information saving file

Description

프로그램 작성 지원 장치 및 프로그램 작성 지원 방법{PROGRAM CREATION SUPPORTING DEVICE AND PROGRAM CREATION SUPPORTING METHOD}PROGRAM CREATION SUPPORTING DEVICE AND PROGRAM CREATION SUPPORTING METHOD}

본 발명은 프로그램 작성 지원 장치 및 프로그램 작성 지원 방법에 관한 것으로, 특히, 입출력 단자를 구비하는 컨트롤러(controller)가 실행하는 동작 프로그램(program)을, 디바이스(device)나 라벨(lavel)을 이용하여 텍스트 언어 형식으로 작성하기 위한 프로그램 작성 지원 장치 및 프로그램 작성 지원 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program creation support apparatus and a program creation support method. In particular, an operating program executed by a controller having an input / output terminal is executed by using a device or a label. A program creation support apparatus and a program creation support method for writing in a language format.

종래의 입출력 단자를 구비하는 컨트롤러로서, 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 Non-Patent Document 1 described below, device letters (X, Y, M, D, etc.) are determined in advance by data type. For example, the device to which input is assigned is an X device. The device to which the output is assigned is the Y device. The bit data (internal relay) used internally is set as the M device. Word data (register) used internally is set as the D device.

프로그램(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 Document 1 described below, a program creation editor based on a ladder diagram is provided. The program creation editor has a function of inserting supplementary description of the program as a program comment so that the program can be written more clearly (the comment is called a statement in Non-Patent Document 1 below). have. In addition, the program creation editor has a function of setting a device comment that describes the contents of the device in detail.

또한, 프로그램 작성 에디터에는, 래더 다이어그램 중에 기술된 디바이스에 대해, 디바이스 코멘트를 표시하는 기능이 구비되어 있다. 이에 의해, 프로그램 작성자가 프로그램 코멘트를 삽입하는 일 없이, 래더 다이어그램의 가독성을 좋게 하는 것이 가능하게 되어 있다. 특히, 컨트롤러의 계측 제어 프로그램에서는, 정적인 디바이스가 많이 사용되기 때문에, 이와 같은 정적인 디바이스에 대해 디바이스 코멘트를 설정하고, 이것을 래더 다이어그램에서 표시하는 것은 유용(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.

「GX Developer Version 8 오퍼레이팅 매뉴얼」, 5장 「프로그램을 표준화한다」, 5.1절 「라벨 프로그래밍에 관해」 및 9장 「디바이스 코멘트를 설정한다」, 형명 : GXDEV8-O-J, 형명 코드: 13JV69, 매뉴얼 번호: SH-080356, 미쓰비시전기주식회사, 2011년 11월GX Developer Version 8 Operating Manual, Chapter 5, "Standardizing Programs," Section 5.1, "Label Programming" and Chapter 9, "Setting Device Comments," Type: GXDEV8-OJ, Model Code: 13JV69, Manual Number : SH-080356, Mitsubishi Electric Corporation, November 2011

프로그램은, 래더 다이어그램이나 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 Embodiment 1 of the present invention.
Fig. 3 is a flowchart showing the processing flow of the program creation support device according to Embodiment 1 of the present invention.
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 Embodiment 2 of the present invention.
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 Embodiment 3 of the present invention.
Fig. 9 is a flowchart showing the processing flow of the program creation support device according to Embodiment 3 of the present invention.
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 Embodiment 4 of the present invention.
Fig. 12 is a flowchart showing the processing flow of the program creation supporting apparatus according to Embodiment 4 of the present invention.
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.Embodiment Mode 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 creation support device 1 according to the present invention. The program creation support device 1 is configured of, for example, a personal computer. As illustrated in FIG. 1, the program creation support device 1 includes a microprocessor 2, a display unit 3, an input unit 4, a storage unit 5, and a communication unit 6. In addition, the controller 7 is connected to the program creation support device 1 as shown in FIG. 1. The program creation support device 1 communicates with the controller 7 to transmit the completed program to the controller 7 or to monitor a program being executed by the controller 7. The program for operating the controller 7 is stored in the storage unit 5 as a file. The display unit 3 is a monitor that displays various kinds of information of the program creation support device 1. The input unit 4 is a mouse, a keyboard, or the like. That is, the program author inputs a program using the input part 4, and the content is displayed on the display part 3. As shown in FIG. The created program is transmitted to the controller 7 via the communication unit 6 and executed by the controller 7.

도 2에, 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치(1)의 구성(소프트웨어 구성)을 도시한다. 도 2에 도시하는 바와 같이, 프로그램 작성 지원 장치(1)에는, 디바이스의 내용 설명을 기술한 디바이스 코멘트(device comments)를 설정하기 위한 디바이스 부속 정보 설정부(12)가 마련되어 있다. 디바이스 부속 정보 설정부(12)는, 설정된 디바이스 코멘트를 디바이스 부속 정보 보존 파일(9)로서 보존함과 함께, 디바이스 부속 정보 보존 파일(9)로부터, 보존한 디바이스 코멘트를 판독한다.2 shows a configuration (software configuration) of the program creation support device 1 according to the first embodiment of the present invention. As shown in FIG. 2, the program creation support apparatus 1 is provided with the device attachment information setting part 12 for setting device comments which describe description of the content of a device. The device attachment information setting unit 12 saves the set device comment as the device attachment information storage file 9, and reads the saved device comment from the device attachment information storage file 9.

또한, 프로그램 작성 지원 장치(1)에는, 컨트롤러(7)가 실행하는 프로그램을, 디바이스를 이용하여 텍스트 언어 형식(textual language)으로 작성하는 텍스트 프로그램 편집부(11)가 마련되어 있다.In addition, the program creation support device 1 is provided with a text program editing unit 11 for creating a program executed by the controller 7 in a text language format using a device.

텍스트 프로그램 편집부(11)에는, 텍스트 프로그램 표시부(18)가 마련되어 있다. 텍스트 프로그램 편집부(11)는, 텍스트 프로그램 표시부(18)에, 작성중의 텍스트 프로그램을 표시하고, 프로그램 작성자로부터의 입력에 의거하여, 그것을 편집한다. 또한, 텍스트 프로그램 편집부(11)는, 편집한 텍스트 프로그램을, 텍스트 프로그램 보존 파일(8)로서 보존함과 함께, 텍스트 프로그램 보존 파일(8)로부터, 보존된 텍스트 프로그램을 판독한다.The text program editing unit 11 is provided with a text program display unit 18. The text program editing unit 11 displays the text program being created on the text program display unit 18 and edits it based on input from the program creator. In addition, the text program editing unit 11 saves the edited text program as the text program storage file 8, and reads the saved text program from the text program storage file 8.

또한, 텍스트 프로그램 편집부(11)에는, 또한, 도 2에 도시하는 바와 같이, 사용 디바이스 추출부(13)와, 사용 디바이스 부속 정보 추출부(14)와, 사용 디바이스 표시 위치 추출부(15)와, 사용 디바이스 부속 정보 생략부(16)와, 텍스트 부속 정보 표시부(19)가 마련되어 있다.In addition, the text program editing unit 11 further includes a use device extraction unit 13, a use device attachment information extraction unit 14, a use device display position extraction unit 15, and the like. , The use device attachment information omission unit 16 and the text attachment information display unit 19 are provided.

사용 디바이스 추출부(13)는, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 텍스트 프로그램중에 기술된 디바이스를 추출한다. 추출한 디바이스는, 사용 디바이스 부속 정보 추출부(14)와 사용 디바이스 표시 위치 추출부(15)에 입력된다.The using device extraction unit 13 refers to the text program display unit 18 or the text program storage file 8 to extract a device described in the text program. The extracted device is input to the use device attachment information extraction unit 14 and the use device display position extraction unit 15.

사용 디바이스 부속 정보 추출부(14)는, 디바이스 부속 정보 설정부(12) 또는 디바이스 부속 정보 보존 파일(9)을 참조하여, 사용 디바이스 추출부(13)에 의해 추출된 디바이스에 대해 설정된 디바이스 코멘트를 추출한다.The used device accessory information extracting unit 14 refers to the device accessory information setting unit 12 or the device accessory information preservation file 9 to retrieve the device comment set for the device extracted by the use device extracting unit 13. Extract.

사용 디바이스 표시 위치 추출부(15)는, 텍스트 프로그램 표시부(18)를 참조하여, 사용 디바이스 추출부(13)에 의해 추출된 디바이스의 표시 위치를 추출한다.The use device display position extraction unit 15 refers to the text program display unit 18 and extracts the display position of the device extracted by the use device extraction unit 13.

사용 디바이스 부속 정보 생략부(16)는, 사용 디바이스 표시 위치 추출부(15)에 의해 추출된 디바이스 표시 위치와 같은 행에서의 다음의 디바이스 표시 위치에 의거하여, 디바이스 코멘트로서 표시 가능한 문자수를 산출한다. 사용 디바이스 부속 정보 생략부(16)는, 산출한 표시 가능한 문자수와, 사용 디바이스 부속 정보 추출부(14)에 의해 추출된 디바이스 코멘트의 문자수를 비교한다. 사용 디바이스 부속 정보 생략부(16)는, 비교의 결과, 추출된 디바이스 코멘트의 문자수가, 표시 가능한 문자수보다도 크면, 당해 디바이스 코멘트의 문자수가 표시 가능한 문자수의 범위 내가 되도록, 디바이스 코멘트의 일부를 생략하는 처리(이하, 생략 처리라고 한다.)를 행한다. 한편, 추출된 디바이스 코멘트의 문자수가, 표시 가능한 문자수 이하면, 생략 처리는 행하지 않고, 그대로 한다.The use device attachment information omission unit 16 calculates the number of characters that can be displayed as the device comment based on the next device display position in the same row as the device display position extracted by the use device display position extraction unit 15. do. The use device attachment information omission unit 16 compares the calculated displayable number of characters with the number of characters of the device comment extracted by the use device attachment information extraction unit 14. As a result of the comparison, if the number of characters of the extracted device comment is larger than the number of characters that can be displayed, the use device accessory information omission section 16 selects a part of the device comment so that the number of characters of the device comment is within the range of the number of characters that can be displayed. Omit processing (hereinafter, referred to as omission processing) is performed. On the other hand, if the number of characters of the extracted device comment is less than or equal to the number of characters that can be displayed, the omission process is not performed and is left as it is.

텍스트 부속 정보 표시부(19)는, 사용 디바이스 부속 정보 생략부(16)로부터, 디바이스 코멘트의 문자열과, 그 표시 위치의 정보가, 입력된다. 텍스트 부속 정보 표시부(19)는, 당해 표시 위치에 의거하여, 당해 디바이스 코멘트의 문자열을, 텍스트 프로그램 표시부(18)에 의해 표시되어 있는 텍스트 프로그램의 행 사이에 표시한다.The text appended information display unit 19 receives a character string of a device comment and information on its display position from the used device appended information omission section 16. The text appended information display unit 19 displays the character string of the device comment between the lines of the text program displayed by the text program display unit 18 based on the display position.

텍스트 부속 정보 표시부(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 information display unit 19 will be described in detail with reference to FIG. 4. It is assumed that the text program display unit 18 displays the text program on the display unit 3, as shown in Fig. 4A. In this text program, for example, "D124" and "D123" in the third line are devices. At this time, as shown in Fig. 4 (b), the text appended information display unit 19 includes the lines (i.e., the third line) of the text program in which these devices are displayed, and the lines immediately after that (i.e., the fourth line). The text appended information display area 30 is provided between the lines between and, and the device comments such as "operation result" and "storage of the measurement result" are displayed there. In addition, the text accompanying information display unit 19 is based on the display position of the display position of each device and the display position of the device comment corresponding to the device based on the information of the display position from the use device attached information omitting unit 16. The display position of the device comment is set so that the head is arranged in the longitudinal direction. In the example of FIG. 4 (b), the display position of the character "D" at the head of the device "D124" and the display position of the character "연" at the head of the device comment "computation result" corresponding thereto are arranged in the longitudinal direction. It is. Similarly, the display position of the character "D" at the head of the device "D123" and the display position of the character "system" at the head of the device comment "Storage of the measurement result" corresponding thereto are arranged in the longitudinal direction.

또한, 도 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 creation support device 1 according to the first embodiment of the present invention. First, in step S1, the text program editing unit 11 determines whether or not an instruction to display device comments for the entire text program has been input by the program author. When the instruction is input, the process proceeds to step S3, and the processes of steps S3 to S11 are performed for every line in every line included in the text program. On the other hand, when the said instruction is not received, it progresses to step S2.

스텝 S2에서는, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램에 포함되는 하나의 행에 대해 디바이스 코멘트를 표시하는 지시가, 프로그램 작성자에 의해, 입력되었는지의 여부를 판정한다. 당해 지시를 받지 않았으면, 스텝 S1로 되돌아온다. 한편, 당해 지시를 받고 있으면, 그 행에 대해, 스텝 S3 내지 S11의 처리를 행한다.In step S2, the text program editing unit 11 determines whether or not an instruction for displaying a device comment for one line included in the text program has been input by the program creator. If the instruction is not received, the flow returns to step S1. On the other hand, if the said instruction | command is received, the process of step S3-S11 is performed about the row.

스텝 S3에서는, 사용 디바이스 추출부(13)가, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 텍스트 프로그램 중에 기술된 디바이스를 추출한다.In step S3, the use device extraction unit 13 refers to the text program display unit 18 or the text program storage file 8 to extract the device described in the text program.

다음에, 스텝 S4에서는, 사용 디바이스 부속 정보 추출부(14)가, 디바이스 부속 정보 설정부(12) 또는 디바이스 부속 정보 보존 파일(9)을 참조하여, 스텝 S3에서 추출된 디바이스에 대해 설정되어 있는 디바이스 코멘트를 추출한다.Next, in step S4, the used device accessory information extracting unit 14 is set for the device extracted in step S3 with reference to the device accessory information setting unit 12 or the device accessory information storing file 9. Extract the device comment.

다음에, 스텝 S5에서는, 사용 디바이스 표시 위치 추출부(15)가, 텍스트 프로그램 표시부(18)를 참조하여, 스텝 S3에서 추출된 디바이스가, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램의 어디에 표시되어 있는지를 검출하고, 그 표시 위치를 추출한다.Next, in step S5, the use device display position extraction unit 15 refers to the text program display unit 18, and the device extracted in step S3 is located in the text program displayed by the text program display unit 18. It detects whether it is displayed and extracts the display position.

다음에, 스텝 S6에서는, 사용 디바이스 부속 정보 생략부(16)가, 스텝 S3에서 추출하는 디바이스가 표시되는 행과 같은 행에 표시되는 다음의 디바이스가 있는지의 여부를 판정한다. 즉, 스텝 S3에서 디바이스의 추출을 행한 하나의 행에, 디바이스가 복수개 있었는지의 여부를 판정한다. 판정의 결과, 다음의 디바이스가 있으면 스텝 S7로 진행하고, 다음의 디바이스가 없으면 스텝 S9로 진행한다.Next, in step S6, the use device attachment information omission unit 16 determines whether there is a next device displayed in the same row as the row in which the device to be extracted in step S3 is displayed. In other words, it is determined whether there are a plurality of devices in one row in which the device is extracted in step S3. As a result of the determination, if there is a next device, the process proceeds to step S7. If there is no next device, the process proceeds to step S9.

스텝 S7에서는, 사용 디바이스 부속 정보 생략부(16)가, 앞서 추출된 디바이스의 표시 위치와, 다음에 추출된 디바이스의 표시 위치와의 차분을 구하고, 당해 차분을, 앞서 추출된 디바이스에 대한 디바이스 코멘트의 표시 가능한 문자수로서 설정한다.In step S7, the used device attachment information omission unit 16 obtains a difference between the display position of the device extracted earlier and the display position of the next extracted device, and calculates the difference as a device comment for the previously extracted device. Set as the number of characters that can be displayed.

다음에, 스텝 S8에서는, 사용 디바이스 부속 정보 생략부(16)가, 스텝 S7에서 구한 표시 가능한 문자수와, 앞서 추출된 디바이스의 디바이스 코멘트의 문자수를 비교한다. 비교의 결과, 디바이스 코멘트의 문자수가, 표시 가능한 문자수 이하면, 스텝 S9로 진행하고, 디바이스 코멘트의 문자수가, 표시 가능한 문자수를 초과하고 있으면, 스텝 S10으로 진행한다.Next, in step S8, the use device attachment information omission unit 16 compares the number of displayable characters obtained in step S7 with the number of characters of the device comment of the device previously extracted. As a result of the comparison, if the number of characters in the device comment is less than or equal to the number of characters that can be displayed, the flow proceeds to step S9. If the number of characters in the device comment exceeds the number of characters that can be displayed, the flow proceeds to step S10.

스텝 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 information omission unit 16 does not perform the omission process, and proceeds to step S11. .

스텝 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 information omitting unit 16 selects a portion of the device comment so that the number of characters in the device comment is within the range of characters that can be displayed. The abbreviation process to abbreviate | omit is performed, and then, it progresses to step S11.

그리고, 표시 가능한 문자수의 설정 방법에 관해서는, 상기한 방법 외에도, 여러 가지의 방법이 생각된다. 예를 들면, 디바이스의 문자수는 대략 반각(半角) 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 information display unit 19 receives the device comment obtained in step S9 or step S10 and the display position information from the used device attached information omitting unit 16, and transmits the information to the text program display unit 18. The device comments obtained in step S9 or step S10 are displayed between the lines of the text program displayed by the step.

또한, 텍스트 부속 정보 표시부(19)는, 프로그램 작성자로부터, 디바이스 코멘트를 표시로 하는 지시를 받은 때에, 디바이스 코멘트를 표시하고, 프로그램 작성자로부터, 디바이스 코멘트를 비표시로 하는 지시를 받은 때에는, 비표시로 전환한다. 또한, 디폴트값은 비표시로 한다.Further, the text accompanying information display unit 19 displays the device comment when the program creator receives an instruction to display the device comment, and displays the device comment when the program creator has received the instruction to hide the device comment. Switch to The default value is not displayed.

도 4에, 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치(1)의 텍스트 프로그램 편집부(11)의 동작의 일례를 도시한다. 이하, 이에 따라 구체적으로 설명한다.4 shows an example of the operation of the text program editing unit 11 of the program creation support device 1 according to the first embodiment of the present invention. Hereinafter, it demonstrates concretely accordingly.

우선, 통상시는, 도 4(a)에 도시하는 바와 같이, 텍스트 프로그램 편집부(11)의 텍스트 프로그램 표시부(18)에 의해, 프로그램 작성자가 스스로 기술한 텍스트 프로그램 및 프로그램 코멘트가 표시된다.First, as shown in Fig. 4A, the text program display section 18 of the text program editing section 11 displays the text program and the program comment described by the program creator.

(도 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 creation support device 1, in which case, the process of displaying the device comment for the entire text program, i.e., all lines of the program text. Will be done.

(도 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 program display unit 18, the program creator is responsible for the line number. The number of lines for which device comments are to be displayed is designated by clicking on a mouse or the like. In this case, only one line of the designated text program is processed to display the device comment. Hereinafter, a description will be given of a case in which the program creator has an operation for displaying a device comment on the third line of the text program.

(도 3의 스텝 S3)(Step S3 of FIG. 3)

사용 디바이스 추출부(13)는, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 텍스트 프로그램의 3행째에 기술된 디바이스를 추출한다. 여기서는, 디바이스로서, 「D124」와 「D123」이 추출된다.The using device extraction unit 13 refers to the text program display unit 18 or the text program storage file 8 to extract the device described in the third line of the text program. Here, "D124" and "D123" are extracted as a device.

(도 3의 스텝 S4)(Step S4 of FIG. 3)

다음에, 사용 디바이스 부속 정보 추출부(14)가, 디바이스 부속 정보 설정부(12) 또는 디바이스 부속 정보 보존 파일(9)을 참조하여, 사용 디바이스 추출부(13)에 의해 추출된 2개의 디바이스 「D124」와 「D123」의 각각에 대해 설정되어 있는 디바이스 코멘트를 추출한다. 여기서는, 도 4(d)에 도시되는 바와, 같이, 디바이스 「D124」에 대해 디바이스 코멘트 「연산 결과의 격납」이 추출되고, 디바이스 「D123」에 대해 디바이스 코멘트 「계측 결과의 격납」이 추출된다.Next, the use device attachment information extraction unit 14 refers to the device attachment information setting unit 12 or the device attachment information storage file 9, and the two devices “extracted by the use device extraction unit 13” The device comments set for each of "D124" and "D123" are extracted. Here, as shown in FIG.4 (d), device comment "storing of a calculation result" is extracted with respect to device "D124", and device comment "storing of a measurement result" is extracted with respect to device "D123".

(도 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 position extraction part 15 extracted by the use device extraction part 13 refer to the text program display part 18, and the text program display part ( Where in the text program displayed by 18) is displayed, the display position is extracted. Here, it is extracted that the display position of "D124" is the sixth character at half-width counting from the beginning of the line, and that the display position of "D123" is the 16th character at half-width counting from the beginning of the line.

(도 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 information omission section 16 first displays the display of each device comment of "D124" and "D123" from the display position of the device "D124" and the display position of the next device "D123" in the same line. Calculate the number of possible characters. Since there is the next device "D123" about the device "D124", 6 is subtracted from 16 which is each display position, and it calculates that the difference is 10. This 10 may be the number of characters that can be displayed, but preferably, one half-width character is secured between the last character of the device comment of the previous device and the first character of the device comment of the next device. There is a need. Therefore, 10 to 1 are further subtracted to calculate the number of characters that can be displayed as nine characters at half-width. In addition, about "D123", since there is no next device, there is no limit to the number of displayable characters.

(도 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 program editing unit 11 is shown in FIG. 4 (b) immediately after the third line of the text program displayed by the text program information display unit 18 by the text attachment information display unit 19. The text appended information display area 30 is provided, and with respect to the device "D124", the sixth character is set as the display position at half-width from the beginning of the line, and the device comment "computation result" is displayed. This is abbreviate | omitted and abbreviate | omitted the "storing of an operation result" of an original device comment. Regarding the device "D123", the device comment "Storage of the measurement result" is displayed with the 16th character as a display position half-width from the head of a line. As for the device comment "storing of the measurement result", since the elimination process is not necessary, it is displayed as the original device comment. In addition, although the text attached information display area | region 30 by the text attached information display part 19 was shown about the example provided immediately after the said line, it is not limited to that case, Even if it provided immediately before the corresponding line, good.

또한, 텍스트 프로그램 표시부(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 program display part 18 or the display by the text attached information display part 19, for example, in FIG.4 (b), the text program display part ( Regarding the display by 18), the line numbers (1, 2, 3, ...) are displayed at the head of each line, and the display by the text appended information display unit 19 is displayed at the head of the line. "D" is displayed to distinguish them.

본 실시의 형태에서는, 도 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 creation support device 1. As another method, if the line number for which the device comment is to be displayed is designated by clicking the line number with a mouse or the like, as described above, as shown in Fig. 4B, immediately after the line, the text is appended. Since the text attachment information display area 30 by the information display part 19 is provided, in this state, by clicking on the text attachment information display area again with a mouse, FIG. 4 (c) will not be omitted. As shown in Fig. 1, there is also a method for specifying all device comments to be displayed. By any method, when such an instruction is given, the text accompanying information display unit 19 repeatedly displays a device comment which is not omitted, over a plurality of lines as shown in Fig. 4C (Fig. In 4 (b), the device comment "Operation result storage" of "D124" is partially omitted and displayed as "Operation result". In FIG. 4 (c), the device comment "Operation result" of "D124" is stored. ”Is displayed).

이 경우의 처리 플로는, 도 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 program editing unit 11 determines whether or not an instruction of device comment non-display is displayed for the entire text program. If the instruction has been received, the process proceeds to step S3A, and the processes of steps S3A to S5A and S11A are performed for every line included in the text program. On the other hand, when the said instruction is not received, it progresses to step S2A.

스텝 S2A에서는, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램에 포함되는 1행에 대한 디바이스 코멘트 비생략 표시의 지시를 받았는지의 여부를 판정한다. 당해 지시를 받지 않았으면, 스텝 S1A로 되돌아온다. 한편, 당해 지시를 받고 있으면, 그 행에 대해, 스텝 S3A 내지 S5A 및 S11A의 처리를 행한다.In step S2A, the text program editing unit 11 determines whether or not the device comment non-display indication for one line included in the text program has been received. If the instruction is not received, the flow returns to step S1A. On the other hand, if the said instruction | command is received, the process of step S3A-S5A and S11A is performed about the row.

텍스트 프로그램의 기술에는 디바이스 외에 변수도 사용되기 때문에, 사용 디바이스 추출부(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 program display unit 18 or the text program storage file 8 to extract the variable with the device in step S3A. do.

다음에, 스텝 S4A에서, 사용 디바이스 부속 정보 추출부(14)가, 디바이스 부속 정보 설정부(12) 또는 디바이스 부속 정보 보존 파일(9)을 참조하여, 스텝 S3A에서 추출된 디바이스에 대해 설정되어 있는 디바이스 코멘트를 추출한다. 그리고, 스텝 4A의 처리는, 도 3의 스텝 4와 같다.Next, in step S4A, the used device accessory information extracting unit 14 is set for the device extracted in step S3A with reference to the device accessory information setting unit 12 or the device accessory information storing file 9. Extract the device comment. And the process of step 4A is the same as that of step 4 of FIG.

다음에, 스텝 S5A에서, 사용 디바이스 표시 위치 추출부(15)가, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램을 참조하여, 디바이스 및 변수 각각의 표시 위치를 추출한다. 여기서는, 도 4(c)에 도시하는 바와 같이, 「D124」의 표시 위치가, 행의 선두로부터 세어서 반각으로 6문자째, 「D123」의 표시 위치가, 행의 선두로부터 세어서 반각으로 16문자째 외에, 변수 「sArg」의 표시 위치가, 행의 선두로부터 세어서 반각으로 25문자째인 것이 추출된다. 여기서는, 사용 디바이스 부속 정보 생략부(16)에 의한 디바이스 코멘트의 생략은 필요 없다(즉, 도 3의 스텝 S6 내지 S10에 상당하는 스텝이 없다).Next, in step S5A, the use device display position extraction unit 15 refers to the text program displayed by the text program display unit 18, and extracts the display positions of the device and the variable, respectively. Here, as shown in FIG.4 (c), the display position of "D124" counts from the head of a line by half angle, and the sixth character, the display position of "D123" counts from the head of a row, and it is 16 by half angle. In addition to the character, the display position of the variable "sArg" is counted from the beginning of the line and extracted at the 25th character in half angles. Here, it is not necessary to omit the device comment by the use device attachment information omission unit 16 (that is, there are no steps corresponding to steps S6 to S10 in FIG. 3).

다음에, 스텝 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 information display unit 19 provides the text attachment information display area 30. In the text attachment information display area 30, the device "D124" is displayed from the beginning of the line. The device comment "storing of the calculation result" is displayed with the sixth character as the display position at half-width. However, at this time, in order to empty the display position and the interval of the next device "D123", it repeats at the front half of the display position of "D123" (that is, the 15th character half-width from the beginning of a line), Device comment "Store operation result" is displayed. Specifically, as shown in Fig. 4 (c), only the "calculation result" is displayed in the upper row, and the portion of "storage of" is repeatedly displayed immediately below the display position of the "calculation result". . Regarding the device "D123", the device comment "Storage of the measurement result" is displayed with the 16th character as a display position half-width from the head of a line. At this time, similarly, in order to empty the display position and the interval of the next variable "sArg", it repeats at the front half of the display position of "sArg" (that is, the 24th character half-width from the beginning of a line), Device comment "Store measurement result" is displayed. Specifically, as shown in FIG. 4C, only the "measurement result" is displayed in the upper row, and the "storage of" is repeatedly displayed immediately below the display position of the "measurement result". . As for the variable "sArg", since there is no device comment, nothing is displayed.

본 실시의 형태 1에서는, 이와 같이 하여, 입출력 단자를 구비하는 컨트롤러(7)의 프로그램을 텍스트 언어 형식으로 작성하는 경우에도, 텍스트 프로그램에서 사용되고 있는 디바이스의 표시 위치의 직후에(또는 직전에), 디바이스의 내용을 상세히 설명하기 위해 설정된 디바이스 코멘트를 표시하는 것이 가능해지고, 프로그램 작성자가 스스로 코멘트 아웃 지정 기호를 이용하여 프로그램의 보충 설명문을 코멘트로서 기술 삽입하는 수고가 없어지고, 또한, 텍스트 언어 형식의 프로그램의 가독성을 확보할 수 있다.In the first embodiment, even when a program of the controller 7 having input / output terminals is created in a text language format in this manner, immediately after (or immediately before) the display position of the device used in the text program, It becomes possible to display the set device comment to describe the contents of the device in detail, and the program author does not have to effort to insert a supplementary description of the program as a comment by using the comment out designation symbol himself, Program readability can be ensured.

실시의 형태 2.Embodiment 2:

본 실시의 형태에서는, 텍스트 부속 정보 표시부(19)에 의한 텍스트 부속 정보 표시 영역(30)을 마련하는 대신에, 부속 정보가 행 사이에 삽입된 텍스트를 생성하는 실시 형태에 관해 설명한다. 또한, 본 실시의 형태에서의 프로그램 작성 지원 장치(1)의 하드웨어 구성에 관해서는, 상술한 도 1에 도시한 구성과 같기 때문에, 여기서는 설명을 생략한다.In this embodiment, instead of providing the text sub information display area 30 by the text sub information display unit 19, an embodiment of generating text in which sub information is inserted between lines will be described. In addition, since the hardware structure of the program creation support apparatus 1 in this embodiment is the same as that shown in FIG. 1 mentioned above, description is abbreviate | omitted here.

도 6에, 본 발명의 실시의 형태 2에 관한 프로그램 작성 지원 장치(1)의 구성(소프트웨어 구성)을 도시한다. 도 2에 도시한 실시의 형태 1의 구성과 다른 점은, 도 6의 구성에서는, 도 2의 텍스트 부속 정보 표시부(19)를 마련하는 대신에, 텍스트 부속 정보 삽입부(20)를 마련하여, 인쇄 출력용 텍스트 프로그램 보존 파일(21)을 출력하도록 한 점이다.6 shows a configuration (software configuration) of the program creation support device 1 according to the second embodiment of the present invention. The difference from the structure of Embodiment 1 shown in FIG. 2 is that in the structure of FIG. 6, instead of providing the text attachment information display part 19 of FIG. 2, the text attachment information insertion part 20 is provided, The point is to output the text program storage file 21 for printing output.

본 실시의 형태 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 information display area 30. Is the point. Therefore, in this embodiment, the content of step S11 and S11A of the process flow of FIG. 3 and FIG. 5 is read as such. That is, in the second embodiment, when outputting the text output file 21 for printing output, the device comment extracted in step S4 is inserted as a program comment immediately after (or immediately before) the line of the display position extracted in step S5. do. At this time, if the number of characters in the device comment exceeds the number of characters that can be displayed, the device comment may be omitted and inserted, or the device comment may be inserted over a plurality of lines in accordance with an instruction from the program author. . 7B is an example of the case where it is repeatedly displayed. Since other operations are the same as those in the first embodiment, the description thereof is omitted here.

도 7에, 본 실시의 형태 2에 관한 프로그램 작성 지원 장치(1)의 인쇄용 출력의 예를 도시한다. 도 7(a)의 텍스트 프로그램 편집부(11)에 도시하는 바와 같이, 텍스트 프로그램에는 이미, 프로그램 작성자가 스스로 코멘트 아웃 지정 기호인 「(*」와 「*)」를 이용하여 프로그램의 보충 설명문을 프로그램 코멘트로서 기술 삽입하고 있다. 코멘트 아웃 지정 기호에는, 「(*」와 「*)」의 사이의 문자는 프로그램이 아니라 보충 설명이라는 것과, 「//」 이후의 행의 끝까지의 문자는 보충 설명이라고 하는 것의 2종류 있다. 도 7(a), (b)에서는, 코멘트 아웃 지정 기호 「(*」와 「*)」를 이용하여 프로그램 코멘트를 나타내고, 코멘트 아웃 지정 기호 「//」를 이용하여, 디바이스 코멘트를 삽입하여 출력한 예를 나타내고 있다.FIG. 7 shows an example of the printing output of the program creation support device 1 according to the second embodiment. As shown in the text program editing section 11 of FIG. 7A, the text program has already supplemented the program with the programmer using the "(*" and "*)", which are the comment-out designation symbols. Description is inserted as a comment. There are two types of comment-out designation symbols: a character between "(*" and "*)" is a supplementary description, not a program, and a character until the end of a line after "//" is a supplementary description. In FIG.7 (a), (b), a program comment is shown using the comment out designation symbols "(*" and "*)", and a device comment is inserted and output using the comment out designation symbol "//". An example is shown.

본 실시의 형태 2에서는, 이와 같이 하여, 입출력 단자를 구비하는 컨트롤러(7)의 프로그램을 텍스트 언어 형식으로 작성하는 경우에도, 텍스트 프로그램에서 사용되어 있는 디바이스의 표시 위치의 직후(또는 직전)에, 디바이스의 내용을 상세히 설명하기 위해 설정한 디바이스 코멘트를, 프로그램 코멘트로서 텍스트 프로그램 내에 삽입한 프로그램 파일을 생성하는 것이 가능해지고, 이것을 인쇄 출력하거나 다른 수단으로 표시하는 등에 의해, 프로그램 작성자가 스스로 코멘트 아웃 지정 기호를 이용하여 프로그램의 보충 설명문을 프로그램 코멘트로서 기술 삽입하는 수고가 없어지고, 또한, 텍스트 언어 형식의 프로그램의 가독성을 확보할 수 있다.In the second embodiment, even when a program of the controller 7 having the input / output terminals is created in the text language format in this manner, immediately after (or immediately before) the display position of the device used in the text program, It is possible to create a program file in which a device comment set to explain the contents of the device in detail as a program comment is inserted into a text program, and the program creator designates a comment out by himself or herself, for example, by printing it out or displaying it by other means. By using symbols, the effort of describing and inserting supplementary description of the program as a program comment is eliminated, and the readability of the program in the text language format can be ensured.

또한, 상기한 실시의 형태 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 information display unit 19 of FIG. 2, the text attachment information insertion unit 20 is provided, and the text program for printing output is provided. Although an example of outputting the save file 21 has been described, the present invention is not limited to this case, but the text appended information display unit 19 shown in FIG. 2 is also provided in the configuration of FIG. It is good also as a structure which combined the form 1.

실시의 형태 3.Embodiment 3

본 실시의 형태에서는, 텍스트 부속 정보 표시부(19)에 의한 텍스트 부속 정보 표시 영역(30)에, 디바이스의 현재치를 표시하는 실시 형태에 관해 설명한다. 또한, 본 실시의 형태에서의 프로그램 작성 지원 장치(1)의 하드웨어 구성에 관해서는, 상술한 도 1에 도시한 구성과 같기 때문에, 여기서는 설명을 생략한다.This embodiment demonstrates embodiment which displays the present value of a device in the text attachment information display area | region 30 by the text attachment information display part 19. FIG. In addition, since the hardware structure of the program creation support apparatus 1 in this embodiment is the same as that shown in FIG. 1 mentioned above, description is abbreviate | omitted here.

도 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 creation support device 1 according to the third embodiment of the present invention. The difference from the structure of Embodiment 1 shown in FIG. 2 is that in the structure of FIG. 8, instead of the use device attachment information extraction part 14 and use device attachment information omission part 16 of FIG. A value information acquisition unit 22 is provided to acquire the current value of the device in the running controller 7 and display it on the text attachment information display area 30 by the text attachment information display unit 19. That's one point. In addition, in the structure of FIG. 8, the device attachment information setting part 12 and the device attachment information storage file 9 are also not provided with the use device attachment information extraction part 14 of FIG.

도 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 Embodiment 1 are replaced with device present values.

우선, 스텝 S1B에서, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램 전체에 대한 디바이스 현재치 표시의 지시를, 프로그램 작성자로부터 받았는지의 여부를 판정한다. 당해 지시를 받고 있으면, 스텝 S3B로 진행하고, 텍스트 프로그램에 포함되는 전행에 대해, 1행마다 스텝 S3B 내지 S5B 및 S11B의 처리를 행한다. 한편, 당해 지시를 받지 않은 경우에는, 스텝 S2B로 진행한다.First, in step S1B, the text program editing unit 11 determines whether or not an instruction of device present value display for the entire text program has been received from the program author. If the said instruction | command is received, it progresses to step S3B and the process of step S3B-S5B and S11B is performed for every line with respect to the previous line contained in a text program. On the other hand, when the said instruction is not received, it progresses to step S2B.

스텝 S2B에서는, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램에 포함되는 1행에 대한 디바이스 현재치 표시의 지시를, 프로그램 작성자로부터 받았는지의 여부를 판정한다. 당해 지시를 받지 않았으면, 스텝 S1B로 되돌아온다. 한편, 당해 지시를 받고 있으면, 그 행에 대해, 스텝 S3B 내지 S5B 및 S11B의 처리를 행한다.In step S2B, the text program editing unit 11 determines whether or not an instruction of the device present value display for one line included in the text program has been received from the program author. If the instruction is not received, the flow returns to step S1B. On the other hand, if the said instruction | command is received, the process of step S3B-S5B and S11B is performed about the row.

스텝 S3B에서, 사용 디바이스 추출부(13)는, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 디바이스를 추출한다. 도 10의 예에서는, 디바이스 「D124」와 디바이스 「D123」이 추출된다.In step S3B, the use device extraction unit 13 refers to the text program display unit 18 or the text program storage file 8 to extract the device. In the example of FIG. 10, device "D124" and device "D123" are extracted.

다음에, 스텝 S4B에서, 사용 디바이스 현재치 정보 취득부(22)가, 컨트롤러(7)를 참조하여, 스텝 S3B에서 추출된 디바이스의 현재치를 컨트롤러(7)로부터 취득한다. 도 10의 예에서는, 디바이스 「D124」에 관해서는, 현재치 「789」가 취득되고, 디바이스 「D123」에 관해서는, 현재치 「654」가 취득된다.Next, in step S4B, the use device present value information acquisition unit 22 refers to the controller 7 and acquires the present value of the device extracted in step S3B from the controller 7. In the example of FIG. 10, the present value "789" is acquired with respect to the device "D124", and the present value "654" is acquired with respect to the device "D123".

다음에, 스텝 S5B에서, 사용 디바이스 표시 위치 추출부(15)가, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램을 참조하여, 스텝 S3B에서 추출된 디바이스의 표시 위치를 추출한다. 여기서는, 도 10(b)에 도시하는 바와 같이, 「D124」의 표시 위치가, 행의 선두로부터 세어서 반각으로 6문자째, 「D123」의 표시 위치가, 행의 선두로부터 세어서 반각으로 16문자째인 것이 추출된다. 여기서는, 사용 디바이스 부속 정보 생략부(16)에 의한 디바이스 코멘트의 생략은 필요없다(즉, 도 3의 스텝 S6 내지 S10에 상당하는 스텝이 없다).Next, in step S5B, the use device display position extraction unit 15 refers to the text program displayed by the text program display unit 18 and extracts the display position of the device extracted in step S3B. Here, as shown in FIG.10 (b), the display position of "D124" counts from the beginning of a row by half angle, and the sixth character, the display position of "D123" counts from the beginning of a row, and forms 16 in half angle. The letter one is extracted. Here, it is not necessary to omit the device comment by the use device attachment information omission unit 16 (that is, there is no step corresponding to steps S6 to S10 in FIG. 3).

다음에, 스텝 S11B에서, 텍스트 부속 정보 표시부(19)는, 도 10(b)에 도시하는 바와 같이, 텍스트 부속 정보 표시 영역(30)을 마련하고, 텍스트 부속 정보 표시 영역(30)에서, 디바이스 「D124」에 관해서는, 행의 선두로부터 반각으로 6문자째를 표시 위치로 하여, 현재치 「789」를 표시한다. 또한, 디바이스 「D123」에 관해서는, 행의 선두로부터 반각으로 16문자째를 표시 위치로 하여, 현재치 「654」를 표시한다.Next, in step S11B, the text accessory information display unit 19 provides the text accessory information display area 30, as shown in FIG. 10 (b), and in the text accessory information display area 30, the device. Regarding "D124", the present value "789" is displayed with the sixth character as the display position half-width from the beginning of the line. Regarding the device "D123", the present value "654" is displayed with the 16th character as a display position half-width from the head of a line.

도 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 program editing unit 11 of the program creation support device 1 according to the third embodiment of the present invention. Here, as described above, the present value of the device "D124" is "789" and the present value of the device "D123" is "456". As shown in Fig. 10A, when a text program is displayed, when a program creator receives an instruction to display the current value of the device, it is extracted in step S3B, as shown in Fig. 10B. The text appended information display area 30 is provided in a line immediately after the lines of the devices "D124" and "D123", and the present values "789" and "654" of each device are displayed, respectively.

또한, 도 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 information display areas 30 are provided, and both the device present value and the device comment are displayed. It may be displayed at the same time.

또한, 텍스트 부속 정보 표시부(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 | region 30 by the text attachment information display part 19 is a device comment or a device present value, for example, in the example of FIG. When the display content is a device comment, "D" 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 on the text program display unit 18), and the device current value is In the case, "M" indicating monitoring is displayed and distinguished.

본 실시의 형태 3에서는, 이와 같이 하여, 입출력 단자를 구비하는 컨트롤러(7)의 프로그램을 텍스트 언어 형식으로 작성하는 경우에도, 디바이스의 현재치를, 텍스트 프로그램에서 사용되고 있는 디바이스의 표시 위치의 직후(또는 직전)에 표시하는 것이 가능해지고, 텍스트 언어 형식의 프로그램의 모니터링할 때의 가독성을 확보할 수 있다.In the third embodiment, in this way, even when the program of the controller 7 having the input / output terminals is created in the text language format, the current value of the device is immediately after the display position of the device used in the text program (or Display), to ensure readability when monitoring a text language program.

실시의 형태 4.Embodiment 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 creation support apparatus 1 in this embodiment is the same as that shown in FIG. 1 mentioned above, description is abbreviate | omitted here.

도 11에, 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치(1)의 구성(소프트웨어 구성)을 도시한다. 도 11의 구성과, 도 2에 도시한 실시의 형태 1과의 구성의 차이는, 도 11에서는, 라벨 및 부속 정보 설정부(17)와, 라벨 및 부속 정보 보존 파일(10)이 추가되어 있는 점이다. 다른 구성에 관해서는 기본적으로 도 2의 구성과 같다.11 shows a configuration (software configuration) of the program creation support device 1 according to the fourth embodiment of the present invention. The difference between the structure of FIG. 11 and the structure of Embodiment 1 shown in FIG. 2 is that in FIG. 11, the label and the accessory information setting part 17, and the label and the accessory information preservation file 10 are added. Is the point. Other configurations are basically the same as those in FIG.

도 11에 도시하는 바와 같이, 프로그램 작성 지원 장치(1)에는, 디바이스에 대한 디바이스 코멘트를 설정하기 위한 디바이스 부속 정보 설정부(12)가 마련되어 있다. 또한, 디바이스 코멘트는, 디바이스 부속 정보 보존 파일(9)에 보존되고, 그곳에서 판독할 수도 있다.As shown in FIG. 11, the program creation support apparatus 1 is provided with the device attachment information setting part 12 for setting the device comment with respect to a device. The device comments are also stored in the device attachment information storage file 9 and can be read there.

또한, 프로그램 작성 지원 장치(1)에는, 라벨에 대한 라벨 코멘트 및 할당처(割付先) 디바이스를 설정하기 위한, 라벨 및 부속 정보 설정부(17)가 마련되어 있다. 설정된 라벨이나 할당처 디바이스는, 라벨 및 부속 정보 보존 파일(10)에 보존되고, 그곳에서 판독할 수도 있다.In addition, the program creation support device 1 is provided with a label and ancillary information setting unit 17 for setting a label comment and assignment destination device for the label. The set label or assignment destination device is stored in the label and the accessory information storage file 10, and can be read there.

또한, 프로그램 작성 지원 장치(1)에는, 텍스트 프로그램 편집부(11)가 마련되어 있고, 텍스트 프로그램 표시부(18)에 의해, 텍스트 프로그램을 표시하거나 편집하거나 할 수 있도록 되어 있고, 또한, 당해 텍스트 프로그램을, 텍스트 프로그램 보존 파일(8)로서 보존하거나 판독하거나 하도록 되어 있다.In addition, the program creation support device 1 is provided with a text program editing unit 11, and the text program display unit 18 is capable of displaying or editing a text program. The text program save file 8 is stored or read.

이들의 구성에 더하여, 본 실시의 형태에서는, 또한, 사용 디바이스 추출부(13), 사용 디바이스 부속 정보 추출부(14), 사용 디바이스 표시 위치 추출부(15), 사용 디바이스 부속 정보 생략부(16), 및, 텍스트 부속 정보 표시부(19)가 마련되어 있다. 이들의 구성은, 실시의 형태 1에 마련된 것과 기본적으로 같지만, 각각이, 디바이스뿐만 아니라 라벨에도 대응하도록 한 점이 다르다.In addition to these configurations, in the present embodiment, the use device extraction unit 13, use device attachment information extraction unit 14, use device display position extraction unit 15, and use device attachment information omission unit 16 are also provided. ), And a text accompanying information display unit 19 is provided. Although these structures are basically the same as that provided in Embodiment 1, each differs in that it responds not only to a device but also a label.

도 12에, 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치(1)의 처리 플로를 도시한다. 본 실시의 형태 4에 관한 프로그램 작성 지원 장치(1)의 처리 플로는, 도 3에 도시한 실시의 형태 1에 관한 프로그램 작성 지원 장치(1)의 처리 플로와 기본적으로 같고, 도 3의 「디바이스」를 「라벨」로 치환한 것이다.12 shows a processing flow of the program creation support device 1 according to the fourth embodiment of the present invention. The processing flow of the program creation support device 1 according to the fourth embodiment is basically the same as the processing flow of the program creation support device 1 according to the first embodiment shown in FIG. 3, and the "device" of FIG. "Is replaced by" label. "

즉, 우선, 스텝 S1C에서, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램 전체에 대한 라벨 부속 정보를 표시하는 지시를 받았는지의 여부를 판정한다. 당해 지시를 받고 있으면, 스텝 S3C로 진행하여, 텍스트 프로그램에 포함되는 전 행에 대해, 1행마다 스텝 S3C 내지 S11C의 처리를 행한다. 한편, 당해 지시를 받지 않은 경우에는, 스텝 S2C로 진행한다.That is, first, in step S1C, the text program editing unit 11 determines whether or not an instruction for displaying the label attachment information for the entire text program is received. If the instruction is received, the process proceeds to step S3C, and the processes of steps S3C to S11C are performed for every line in every line included in the text program. On the other hand, when the said instruction is not received, it progresses to step S2C.

스텝 S2C에서는, 텍스트 프로그램 편집부(11)는, 텍스트 프로그램에 포함되는 1행에 대한 라벨 부속 정보의 표시의 지시를 받았는지의 여부를 판정한다. 당해 지시를 받지 않았으면, 스텝 S1C로 되돌아온다. 한편, 당해 지시를 받고 있으면, 그 행에 대해, 스텝 S3C 내지 S11C의 처리를 행한다.In step S2C, the text program editing unit 11 determines whether or not the display of the label attachment information for one line included in the text program has been instructed. If the instruction is not received, the flow returns to step S1C. On the other hand, if the said instruction | command is received, the process of step S3C-S11C is performed about the row.

스텝 S3C에서는, 사용 디바이스 추출부(13)는, 텍스트 프로그램 표시부(18) 또는 텍스트 프로그램 보존 파일(8)을 참조하여, 텍스트 프로그램 중에 기술된 라벨을 추출하는 처리를 행한다.In step S3C, the use device extraction unit 13 refers to the text program display unit 18 or the text program storage file 8 and performs a process of extracting a label described in the text program.

스텝 S4C에서는, 사용 디바이스 부속 정보 추출부(14)가, 라벨 및 부속 정보 설정부(17), 또는, 라벨 및 부속 정보 보존 파일(10)을 참조하여, 스텝 S3C에서 추출된 라벨에 대해 설정되어 있는 라벨 코멘트를 추출한다.In step S4C, the use device accessory information extracting unit 14 is set for the label extracted in step S3C with reference to the label and accessory information setting unit 17 or the label and accessory information preservation file 10. Extract the label comment.

스텝 S5C에서는, 사용 디바이스 표시 위치 추출부(15)가, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램을 참조하여, 스텝 S3C에서 추출된 라벨이, 텍스트 프로그램의 어디에 표시되어 있는 것인지, 그 표시 위치를 추출한다.In step S5C, the use device display position extraction part 15 refers to the text program displayed by the text program display part 18, and displays where the label extracted in step S3C is displayed in the text program. Extract the location.

스텝 S6C에서는, 사용 디바이스 부속 정보 생략부(16)가, 스텝 S5C에서 추출된 라벨의 표시 위치와 같은 행에 표시된 다음의 라벨이 있는지의 여부를 판정한다. 다음의 라벨이 있으면 스텝 S7C로 진행하고, 다음의 디바이스가 없으면 스텝 S9C로 진행한다.In step S6C, the use device attachment information omission unit 16 determines whether there is a next label displayed in the same row as the display position of the label extracted in step S5C. If there is a next label, the process proceeds to step S7C. If there is no next device, the process proceeds to step S9C.

스텝 S7C에서는, 사용 디바이스 부속 정보 생략부(16)가, 앞서 추출된 라벨의 표시 위치와, 다음에 추출된 라벨의 표시 위치와의 차분을 구하고, 당해 차분을, 앞서 추출된 라벨의 라벨 코멘트의 표시 가능한 문자수로 한다.In step S7C, the use device attachment information omitting unit 16 obtains the difference between the display position of the label extracted earlier and the display position of the label extracted next, and calculates the difference of the label comment of the previously extracted label. The number of characters that can be displayed.

다음에, 스텝 S8C에서는, 사용 디바이스 부속 정보 생략부(16)가, 스텝 S7C에서 구한 표시 가능한 문자수와, 앞서 추출된 라벨의 라벨 코멘트의 문자수를 비교한다. 비교의 결과, 라벨 코멘트의 문자수가, 표시 가능한 문자수 이하면, 스텝 S9C로 진행하고, 라벨 코멘트의 문자수가, 표시 가능한 문자수를 초과하고 있으면, 스텝 S10C로 진행한다.Next, in step S8C, the use device attachment information omission unit 16 compares the number of displayable characters obtained in step S7C with the number of characters of the label comment of the label extracted previously. As a result of the comparison, if the number of characters in the label comment is less than or equal to the number of characters that can be displayed, the flow proceeds to step S9C. If the number of characters in the label comment exceeds the number of characters that can be displayed, the flow proceeds to step S10C.

스텝 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 information omitting unit 16 does not perform the omission process and proceeds to step S11C. .

스텝 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 information omitting unit 16 selects a part of the label comment so that the number of characters in the label comment is within the range of characters that can be displayed. Omitting processing to be omitted is performed, and the flow then proceeds to step S11C.

스텝 S11C에서는, 텍스트 부속 정보 표시부(19)는, 사용 디바이스 부속 정보 생략부(16)로부터, 스텝 S9C 또는 스텝 S10C에서 얻어진 라벨 코멘트와, 그 표시 위치의 정보를 받아서, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램의 행 사이에, 텍스트 부속 정보 표시 영역(30)을 마련하고, 도 13(b)에 도시하는 바와 같이, 스텝 S9C 또는 스텝 S10C에서 얻어진 라벨 코멘트를 표시한다.In step S11C, the text accessory information display unit 19 receives the label comment obtained in step S9C or step S10C and the display position information from the use device accessory information omit unit 16, and transmits the information to the text program display unit 18. A text appended information display area 30 is provided between the lines of the text program displayed by the text program, and the label comments obtained in step S9C or step S10C are displayed as shown in Fig. 13B.

또한, 도 13(c)에 도시하는 바와 같이, 텍스트 부속 정보 표시 영역(30)을 2개 마련하고, 라벨 코멘트와 라벨의 할당처 디바이스를 양쪽 동시에 표시하여도 좋다.As shown in Fig. 13C, two text attachment information display areas 30 may be provided, and both the label comment and the device to which the label is assigned may be displayed at the same time.

또한, 스텝 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 information display unit 19 displays a label comment when receiving the operation of displaying the label comment from the program creator, and accepts an operation of making the label comment from the program creator non-display. At one time it shall be invisible. The default value is not displayed.

도 13에, 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치(1)의 텍스트 프로그램 편집부(11)의 예를 도시한다. 이하, 이에 따라 구체적으로 설명한다. 이하에서는, 텍스트 프로그램의 3행째에 관해, 라벨 코멘트를 표시하는 취지의 조작이 있은 경우에 관해 설명한다.13 shows an example of a text program editing unit 11 of the program creation support device 1 according to the fourth embodiment of the present invention. Hereinafter, it demonstrates concretely accordingly. In the following, a description will be given of the third line of the text program for the purpose of displaying a label comment.

우선, 통상시는, 도 13(a)에 도시하는 바와 같이, 텍스트 프로그램 편집부(11)의 텍스트 프로그램 표시부(18)에 의해, 프로그램 작성자가 스스로 기술한 텍스트 프로그램 및 프로그램 코멘트가 표시된다.First, as shown in Fig. 13A, the text program display section 18 of the text program editing section 11 displays the text program and the program comment described by the program author.

(스텝 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 creation support device 1, in which case, the process of displaying the label comment for the entire text program, i.e., all lines of the program text. Will be done.

(스텝 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 program display unit 18, so that the program creator is responsible for the line number. The line number for which the label comment is to be displayed is designated by clicking with a mouse or the like. In this case, the process of displaying the label comment is performed for only one line of the specified text program. Hereinafter, a description will be given of a case in which the program author has an operation for displaying a label comment on the third line of the text program.

(스텝 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 information setting unit 17 or the label set in the label and the accessory information storage file 10, while the text program display unit 18 or the text program storage file is stored. Referring to (8), a process of extracting the label described in the third line of the text program is performed. Here, as shown to Fig.13 (a), "Ravel" and "Label" are extracted.

(스텝 S4C)(Step S4C)

다음에, 사용 디바이스 부속 정보 추출부(14)가, 스텝 S1C에서 추출된 라벨에 대해 설정되어 있는 라벨 코멘트를, 라벨 및 부속 정보 설정부(17), 또는, 라벨 및 부속 정보 보존 파일(10)을 참조하여 추출한다. 여기서는, 도 13(d)에 도시하는 바와 같이, 라벨 「Ravel」에 대해 라벨 코멘트 「전압 보정」이 추출되고, 라벨 「Label」에 대해 라벨 코멘트 「전압 측정」이 추출된다.Next, the use device attachment information extraction unit 14 displays the label comments set for the labels extracted in step S1C, and the label and attachment information setting unit 17 or the label and attachment information storage file 10. Refer to and extract. Here, as shown to Fig.13 (d), label comment "voltage correction" is extracted with respect to label "Ravel", and label comment "voltage measurement" is extracted with respect to label "Label".

(스텝 S5C)(Step S5C)

또한, 사용 디바이스 표시 위치 추출부(15)가, 스텝 S3C에서 추출된 라벨이, 텍스트 프로그램 표시부(18)에 의해 표시되는 텍스트 프로그램의 어디에 표시되는 것인지, 그 표시 위치를 추출한다. 여기서는, 「Ravel」의 표시 위치가, 행의 선두로부터 세어서 반각으로 6문자째, 「Label」의 표시 위치가, 행의 선두로부터 세어서 반각으로 16문자째인 것이 추출된다.In addition, the use device display position extraction unit 15 extracts the display position where the label extracted in step S3C is displayed in the text program displayed by the text program display unit 18. Here, it is extracted that the display position of "Ravel" is the sixth character in half angle counting from the beginning of a line, and the display position of "Label" is the 16th character in half angle counting from the beginning of a line.

여기서는, 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 information abbreviation part 16 first takes a label comment of "Ravel" from the display position of the label "Ravel" extracted in step S5C, and the display position of the next label "Label" in the same line. Calculate the number of characters that can be displayed. Since "Ravel" subtracts 6 from 16 because the next is "Label", and the difference is calculated to 10, since it is necessary to secure one half-width character to empty the space with the next label "Label", From 10, 1 is subtracted again and the number of characters that can be displayed is calculated to be 9 characters by half size. In addition, about "Label", since there is no next, there is no limit to the number of displayable characters.

(스텝 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 program editing section 11 displays the text appendage information by the text appendage information display section 19 immediately after the third line displayed by the text program display section 18, as shown in Fig. 13B. The area 30 is provided, and for "Ravel", the sixth character is displayed at half-width by counting from the beginning of the line, and "voltage correction" which is a label comment is displayed, and for "Label", The device comment "voltage measurement" is displayed with the 16th character as the display position half-width from the head of the line.

또한, 생략 처리된 라벨 코멘트의 표시에서는 충분히 내용을 이해할 수가 없는 경우를 고려하여, 라벨 코멘트에 대한 생략 처리를 행하지 않고 표시하는 기능을 구비하도록 할 수 있는 것도, 또한, 실시의 형태 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 creation support apparatus 1 is considered. Alternatively, when the line number for which the label comment is to be displayed is designated by clicking the line number with the mouse or the like, the text accessory information display area 30 is provided by the text accessory information display unit 19 immediately after the line. Therefore, there is also a method such as replacing the instruction to display the label assignment information by clicking the text appended information display area again with the mouse. When such an instruction is given, the text appended information display unit 19 displays a device and a device comment, which is information on a label assignment destination, as shown in Fig. 13C.

이 경우의 처리 플로는, 상술한 도 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 information display unit 19 provides the text attachment information display area 30. As for the label "Ravel," the assignment device "D124" and the omitted device comment "operation result" of the label are provided. ", And the label" Label "displays the device" D123 "to which the label is assigned and the device comment" Storage of the measurement result "which did not need to be omitted.

또한, 텍스트 부속 정보 표시부(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 program storage file 21 in which label attachment information is inserted between lines of a text program can be realized in the same manner as in the second embodiment. have.

도 14에, 실시의 형태 4에 관한 프로그램 작성 지원 장치(1)의 인쇄용 출력의 예를 도시한다. 여기서의 프로그램 작성 지원 장치(1)의 구성은, 상기한 도 11의 구성에, 또한, 도 6의 텍스트 부속 정보 삽입부(20)와 인쇄 출력용 텍스트 프로그램 보존 파일(21)을 마련한 구성으로 한다. 텍스트 부속 정보 삽입부(20)와 인쇄 출력용 텍스트 프로그램 보존 파일(21)의 동작에 관해서는, 실시의 형태 2에서 설명한 바와 같기 때문에, 여기서는, 설명을 생략한다.14 shows an example of the printing output of the program creation support device 1 according to the fourth embodiment. The configuration of the program creation support device 1 is a configuration in which the text appended information insertion unit 20 and the text output file 21 for print output are provided in the configuration of FIG. 11 described above. The operations of the text appending information inserting unit 20 and the printout text program storage file 21 are the same as those described in the second embodiment, and thus description thereof is omitted here.

또한, 도 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 program storage file 21 by using the comment out designation symbol //. The example in which both device comments) are inserted and output is shown.

본 실시의 형태 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 program storage file 21 into which the label comment set and the label assignment device accessory information set to explain in detail as a program comment can be printed out or displayed by other means. By doing so, the program author can save the effort of describing and inserting supplementary description of the program as a program comment by using the comment-out designation symbol by himself / herself, and also ensures the readability of the program in the text language format.

또한, 본 실시의 형태 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.
제 1항에 있어서,
상기 텍스트 프로그램 편집부는,
하나의 행에서 복수의 디바이스나 라벨이 추출된 경우에, 앞서 추출된 디바이스나 라벨의 표시 위치와, 다음에 추출된 디바이스나 라벨의 표시 위치와의 차분으로부터, 앞서 추출된 디바이스나 라벨에 대한 부속 정보의 표시 가능한 문자수를 산출하는 표시 가능 문자 산출부를 또한 구비하고,
상기 텍스트 부속 정보 표시부는, 상기 추출한 표시 위치에 의거하여, 상기 추출한 부속 정보를, 상기 행의 직전 또는 직후의 복수행에 걸쳐서, 상기 산출한 표시 가능한 문자수로 반복하여 표시하는 것을 특징으로 하는 프로그램 작성 지원 장치.
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.
제 1항에 있어서,
상기 텍스트 프로그램 편집부는,
하나의 행에서 복수의 디바이스나 라벨이 추출된 경우에, 앞서 추출된 디바이스나 라벨의 표시 위치와, 다음에 추출된 디바이스나 라벨의 표시 위치와의 차분으로부터, 앞서 추출된 디바이스나 라벨에 대한 부속 정보의 표시 가능한 문자수를 산출하고, 표시 가능한 문자수의 범위가 되도록, 상기 추출한 부속 정보의 일부를 생략하는 생략 처리를 행한 부속 정보 생략부를 또한 구비하고,
상기 텍스트 부속 정보 표시부는, 상기 행의 직전 또는 직후의 행에, 상기 추출한 표시 위치에 의거하여, 상기 생략 처리된 부속 정보를 표시하는 것을 특징으로 하는 프로그램 작성 지원 장치.
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.
제 1항 내제 제 3항 중 어느 한 항에 있어서,
상기 텍스트 프로그램 편집부는,
상기 추출된 디바이스나 라벨에 관한 현재치 정보를 상기 컨트롤러로부터 취득하는 현재치 정보 취득부를 또한 구비하고,
상기 텍스트 부속 정보 표시부는, 상기 행의 직전 또는 직후의 행에, 상기 추출된 표시 위치에 의거하여, 상기 취득된 현재치 정보를 표시하는 것을 특징으로 하는 프로그램 작성 지원 장치.
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.
제 1항 내제 제 3항 중 어느 한 항에 있어서,
상기 텍스트 프로그램 편집부는,
상기 추출된 디바이스나 라벨의 상기 텍스트 프로그램에서의 표시 위치의 직전의 행 또는 직후의 행에, 상기 표시 위치 추출부에 의해 추출된 상기 디바이스나 라벨의 표시 위치에 대응시켜서, 상기 추출한 부속 정보를 프로그램 코멘트로서 상기 텍스트 프로그램에 삽입하고, 삽입 후의 상기 텍스트 프로그램을 출력하는 텍스트 부속 정보 삽입부를 또한 구비하고 있는 것을 특징으로 하는 프로그램 작성 지원 장치.
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.
제 6항에 있어서,
상기 텍스트 프로그램 편집부는,
상기 추출된 디바이스나 라벨에 관한 현재치 정보를 상기 컨트롤러로부터 취득하는 현재치 정보 취득부를 또한 구비하고,
상기 텍스트 부속 정보 삽입부는, 상기 행의 직전 또는 직후의 행에, 상기 추출된 표시 위치에 의거하여, 상기 취득된 현재치 정보를 프로그램 코멘트로서 삽입하고, 삽입 후의 상기 텍스트 프로그램을 출력하는 것을 특징으로 하는 프로그램 작성 지원 장치.
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.
KR1020120115274A 2012-04-03 2012-10-17 Program creation supporting device and program creation supporting method KR101473530B1 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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