KR100918350B1 - Program construction assisting device and program execution device - Google Patents

Program construction assisting device and program execution device Download PDF

Info

Publication number
KR100918350B1
KR100918350B1 KR1020070036905A KR20070036905A KR100918350B1 KR 100918350 B1 KR100918350 B1 KR 100918350B1 KR 1020070036905 A KR1020070036905 A KR 1020070036905A KR 20070036905 A KR20070036905 A KR 20070036905A KR 100918350 B1 KR100918350 B1 KR 100918350B1
Authority
KR
South Korea
Prior art keywords
user
parameter
parameter setting
user defined
setting means
Prior art date
Application number
KR1020070036905A
Other languages
Korean (ko)
Other versions
KR20080077887A (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 KR20080077887A publication Critical patent/KR20080077887A/en
Application granted granted Critical
Publication of KR100918350B1 publication Critical patent/KR100918350B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30145Instruction analysis, e.g. decoding, instruction word fields
    • G06F9/30156Special purpose encoding of instructions, e.g. Gray coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

과제assignment

복잡한 FB인 경우에도 작업 부하의 증대 및 유저 정의 FB의 거대화를 회피하고, FBD 프로그램 작성 시간을 단축시킨 프로그램 작성 지원 장치 및 프로그램 실행 장치를 얻는다.Even in the case of a complex FB, an increase in workload and a large user-defined FB are avoided, and a program creation support device and a program execution device that shorten the FBD program creation time are obtained.

해결 수단Resolution

미리 정의되어 있는 유저 정의 FB를 포함하는 프로그램 명령을 조합시켜서, 새로운 펑션 또는 펑션 블록을 정의하기 위한 유저 정의 FB 작성 수단 및 유저 정의 FB 처리 실행 코드 생성 수단을 가짐과 함께, 유저 정의 FB의 유저 정의 FB 파라미터를 설정하는 유저 정의 FB 파라미터 설정 수단과, 유저 정의 FB 파라미터 설정 수단에 의해 설정된 유저 정의 FB 파라미터 설정치를 보존하는 유저 정의 FB 파라미터 설정치 보존 수단을 구비하고, 유저 정의 FB 처리 실행 코드 생성 수단은, 유저 정의 FB 파라미터 설정치 보존 수단에 보존되어 있는 파라미터에 의해 유저 정의 FB를 코드화한다.A user defined FB creation means and user defined FB processing execution code generation means for defining a new function or function block by combining program instructions including a predefined user defined FB, and a user defined FB. And a user defined FB parameter setting value storing means for storing the user defined FB parameter setting value set by the user defined FB parameter setting means, and the user defined FB processing execution code generating means. The user-defined FB is coded by the parameters stored in the user-defined FB parameter set value saving means.

펑션 블록, 파라미터 Function block, parameter

Description

프로그램 작성 지원 장치 및 프로그램 실행 장치{PROGRAM CONSTRUCTION ASSISTING DEVICE AND PROGRAM EXECUTION DEVICE}PROGRAM CONSTRUCTION ASSISTING DEVICE AND PROGRAM EXECUTION DEVICE}

도 1은 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치의 하드웨어 구성을 도시하는 블록도.BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing a hardware configuration of a program creation support device and a program execution device according to Embodiment 1 of the present invention.

도 2는 본 발명의 실시의 형태 1의 기능 구성을 도시하는 블록도.2 is a block diagram showing a functional configuration of Embodiment 1 of the present invention.

도 3은 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치를 실현하기 위한 프로그램 작성 장치를 도식적으로 도시하는 블록도.Fig. 3 is a block diagram schematically showing a program creation device for realizing a program creation support device and a program execution device according to Embodiment 1 of the present invention.

도 4는 본 발명의 실시의 형태 1에 의한 유저 정의 FB를 프로그램으로 사용할 때의 파라미터를 설정하는 조작 순서를 도시하는 플로우 차트.4 is a flowchart showing an operation procedure for setting parameters when using the user-defined FB according to the first embodiment of the present invention in a program.

도 5는 본 발명의 실시의 형태 1에 의한 파라미터 설정용의 조작 순서를 도시하는 설명도.5 is an explanatory diagram showing an operation procedure for parameter setting according to the first embodiment of the present invention;

도 6은 본 발명의 실시의 형태 1에 의한 파라미터 설정용의 조작 후의 상태를 도시하는 설명도.6 is an explanatory diagram showing a state after the operation for parameter setting according to the first embodiment of the present invention;

도 7은 본 발명의 실시의 형태 2에 의한 파라미터 설정용의 조작 순서를 도시하는 설명도.7 is an explanatory diagram showing an operation procedure for parameter setting according to the second embodiment of the present invention.

도 8은 본 발명의 실시의 형태 2에 의한 파라미터 설정용의 조작 후의 상태를 도시하는 설명도.FIG. 8 is an explanatory diagram showing a state after the operation for parameter setting according to the second embodiment of the present invention; FIG.

도 9는 본 발명의 실시의 형태 3의 기능 구성을 도시하는 블록도.9 is a block diagram showing the functional configuration of Embodiment 3 of the present invention.

도 10은 본 발명의 실시의 형태 3에 의한 유저 정의 FB를 프로그램으로 사용할 때의 파라미터를 설정하는 조작 순서를 도시하는 플로우 차트.10 is a flowchart showing an operation procedure for setting parameters when using the user-defined FB according to the third embodiment of the present invention as a program.

도 11은 본 발명의 실시의 형태 3에 의한 파라미터 설정용의 조작 순서를 도시하는 설명도.Fig. 11 is an explanatory diagram showing an operation procedure for parameter setting according to the third embodiment of the present invention.

도 12는 본 발명의 실시의 형태 3에 의한 파라미터 설정용의 조작 후의 상태를 도시하는 설명도.12 is an explanatory diagram showing a state after an operation for parameter setting according to the third embodiment of the present invention;

도 13은 본 발명의 실시의 형태 4의 기능 구성을 도시하는 블록도.Fig. 13 is a block diagram showing the functional configuration of Embodiment 4 of the present invention.

도 14는 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치를 실현하기 위한 프로그램 작성 장치를 도식적으로 도시하는 블록도.Fig. 14 is a block diagram schematically showing a program creation device for realizing a program creation support device and a program execution device according to Embodiment 4 of the present invention.

도 15는 본 발명의 실시의 형태 4에 의한 파라미터 설정용의 조작 순서를 도시하는 설명도.Fig. 15 is an explanatory diagram showing an operation procedure for parameter setting according to the fourth embodiment of the present invention.

도 16은 본 발명의 실시의 형태 4에 의한 유저 정의 FB로부터 직접 사용할 수 있도록 지정하기 위한 상태를 도시하는 설명도.Fig. 16 is an explanatory diagram showing a state for designating to be usable directly from the user-defined FB according to the fourth embodiment of the present invention.

도 17은 본 발명의 실시의 형태 4에 의한 파라미터 설정용의 조작 후의 상태를 도시하는 설명도.Fig. 17 is an explanatory diagram showing a state after the operation for parameter setting according to the fourth embodiment of the present invention.

도 18은 본 발명의 실시의 형태 5의 기능 구성을 도시하는 블록도.18 is a block diagram showing the functional configuration of Embodiment 5 of the present invention.

도 19는 본 발명의 실시의 형태 5에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치를 실현하기 위한 프로그램 작성 장치를 도식적으로 도시하는 블록 도.Fig. 19 is a block diagram schematically showing a program creation device for realizing a program creation support device and a program execution device according to Embodiment 5 of the present invention.

도 20은 본 발명의 실시의 형태 5에 의한 유저 정의 FB를 프로그램으로 사용할 때의 파라미터를 설정하는 조작 순서를 도시하는 플로우 차트.20 is a flowchart showing an operation procedure for setting parameters when using a user-defined FB according to a fifth embodiment of the present invention as a program.

도 21은 본 발명의 실시의 형태 5에 의한 파라미터 설정용의 조작 순서를 도시하는 설명도.Fig. 21 is an explanatory diagram showing an operation procedure for parameter setting according to the fifth embodiment of the present invention.

도 22는 본 발명의 실시의 형태 5에 의한 파라미터 설정용의 조작 순서를 도시하는 설명도.Fig. 22 is an explanatory diagram showing an operation procedure for parameter setting according to the fifth embodiment of the present invention.

도 23은 본 발명의 실시의 형태 5에 의한 파라미터 설정용의 조작 후의 상태를 도시하는 설명도.Fig. 23 is an explanatory diagram showing a state after the operation for parameter setting according to the fifth embodiment of the present invention.

도 24는 본 발명의 실시의 형태 6에 의한 유저 FB(δ)의 다이얼로그 작성 조작을 도시하는 설명도.Fig. 24 is an explanatory diagram showing a dialog creation operation of the user FB (δ) according to the sixth embodiment of the present invention.

도 25는 본 발명의 실시의 형태 6에 의한 유저 FB 이용시의 상태를 도시하는 설명도.Fig. 25 is an explanatory diagram showing a state when using a user FB according to a sixth embodiment of the present invention.

도 26은 본 발명의 실시의 형태 7의 기능 구성을 도시하는 블록도.Fig. 26 is a block diagram showing the functional configuration of Embodiment 7 of the present invention.

도 27은 본 발명의 실시의 형태 7에 의해 보존되는 파라미터에 관한 상세 정보를 도시하는 설명도.FIG. 27 is an explanatory diagram showing detailed information about a parameter stored in the seventh embodiment of the present invention; FIG.

도 28은 본 발명의 실시의 형태 7에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치를 실현하기 위한 프로그램 작성 장치의 주요부를 도식적으로 도시하는 블록도.Fig. 28 is a block diagram schematically showing main parts of a program creation device for realizing a program creation support device and a program execution device according to Embodiment 7 of the present invention.

도 29는 본 발명의 실시의 형태 7에 의한 파라미터 설정용의 조작 순서의 주 요부를 도시하는 플로우 차트.Fig. 29 is a flowchart showing the main parts of the operation procedure for parameter setting according to the seventh embodiment of the present invention.

도 30은 본 발명의 실시의 형태 7에 의한 파라미터 설정용의 조작 후의 상태를 도시하는 설명도.30 is an explanatory diagram showing a state after the operation for parameter setting according to the seventh embodiment of the present invention;

도 31은 본 발명의 실시의 형태 7에 의해 보존되는 파라미터에 관한 상세 정보의 다른 예를 도시하는 설명도.FIG. 31 is an explanatory diagram showing another example of detailed information about a parameter saved according to the seventh embodiment of the present invention; FIG.

도 32는 본 발명의 실시의 형태 7에 의한 상세 정보인 경우의 다이얼로그 표시 상태를 도시하는 설명도.FIG. 32 is an explanatory diagram showing a dialog display state in the case of detailed information according to the seventh embodiment of the present invention; FIG.

도 33은 본 발명의 실시의 형태 8의 기능 구성을 도시하는 블록도.33 is a block diagram showing the functional configuration of Embodiment 8 of the present invention.

도 34는 본 발명의 실시의 형태 8에 의해 보존되는 파라미터에 관한 상세 정보를 도시하는 설명도.FIG. 34 is an explanatory diagram showing detailed information about a parameter stored in the eighth embodiment of the present invention; FIG.

도 35는 본 발명의 실시의 형태 8에 의한 파라미터 설정용의 조작 순서를 도시하는 설명도.Fig. 35 is an explanatory diagram showing an operation procedure for parameter setting according to the eighth embodiment of the present invention.

도 36은 본 발명의 실시의 형태 8에 의한 파라미터 설정용의 조작 순서의 주요부를 도시하는 플로우 차트.Fig. 36 is a flowchart showing main parts of an operation procedure for parameter setting according to the eighth embodiment of the present invention.

도 37은 본 발명의 실시의 형태 8에 의한 파라미터 설정용의 조작 후의 상태를 도시하는 설명도.Fig. 37 is an explanatory diagram showing a state after the operation for parameter setting according to the eighth embodiment of the present invention.

도 38은 본 발명의 실시의 형태 9에 의해 보존되는 파라미터에 관한 상세 정보를 도시하는 설명도.FIG. 38 is an explanatory diagram showing detailed information about a parameter stored in the ninth embodiment of the present invention; FIG.

도 39는 본 발명의 실시의 형태 9에 의한 파라미터 설정용의 조작 순서를 도시하는 설명도.FIG. 39 is an explanatory diagram showing a procedure for parameter setting according to the ninth embodiment of the present invention; FIG.

도 40은 본 발명의 실시의 형태 9에 의한 파라미터 설정용의 조작 후의 상태를 도시하는 설명도.40 is an explanatory diagram showing a state after the operation for parameter setting according to the ninth embodiment of the present invention;

도 41은 종래부터 일반적인 간단한 FB를 도시하는 블록도.Fig. 41 is a block diagram showing a conventional simple FB.

도 42는 종래부터 일반적인 복잡한 처리를 행하는 FB를 도시하는 블록도.Fig. 42 is a block diagram showing an FB which performs a conventional complicated process conventionally.

도 43은 종래부터 일반적인 다이얼로그 박스로 지정하는 FB를 도시하는 블록도.Fig. 43 is a block diagram showing an FB conventionally designated by a general dialog box.

도 44는 종래 장치를 플로우 차트적으로 도시하는 블록도.Fig. 44 is a block diagram showing a conventional apparatus in a flow chart.

도 45는 종래의 파라미터 입력 단자 방식에 의거한 장치에 의한 FB 편집 조작을 도시하는 설명도.Fig. 45 is an explanatory diagram showing an FB editing operation by a device based on a conventional parameter input terminal method.

도 46은 종래의 다이얼로그 박스 지정 방식에 의거한 장치에 의한 FB 편집 조작을 도시하는 설명도.Fig. 46 is an explanatory diagram showing an FB editing operation by the device based on the conventional dialog box designation method.

(도면의 주요부분에 대한 부호의 설명)(Explanation of symbols for the main parts of the drawing)

1 : 프로그램 작성 장치1: program writing device

2 : 트리 뷰2: tree view

3 : FB 영역3: FB area

4 : 유저 정의 FB 영역4: User defined FB area

5 : FBD 프로그램 편집 영역5: FBD program editing area

6 : 유저 정의 FB 편집 영역6: user-defined FB edit area

7 : 유저 정의 FB 다이얼로그 편집 영역7: Custom FB dialog edit area

8 : 유저 정의 FB 다이얼로그 편집용 GUI 부품 영역8: GUI part area for custom FB dialog editing

9 : 파라미터 관련시킴 다이얼로그9: Parameter Association Dialog

10 : 유저 정의 FB(γ) 파라미터 설정 다이얼로그10: User defined FB (γ) parameter setting dialog

11 : 유저 정의 FB(δ) 파라미터 설정 다이얼로그11: User defined FB (δ) parameter setting dialog

12 : 유저 정의 FBε 파라미터 설정 다이얼로그12: User Defined FBε Parameter Setting Dialog

19 : 파라미터 속성 설정 다이얼로그19: Parameter Property Setting Dialog

99, 307, S6 : FB 파라미터 설정 수단 지정 수단99, 307, S6: FB parameter setting means designation means

100 : 퍼스널 컴퓨터100: personal computer

101 : 마이크로 프로세서101: microprocessor

102 : 데이터 격납 메모리102: data storage memory

103 : 통신 포트103: communication port

104 : 표시부104: display unit

105 : 입력부105: input unit

106 : 기억부106: memory unit

200 : 컨트롤러200: controller

300, : 프로그램 작성 지원 장치300,: Program writing support device

301, S4, S12 내지 S14 : 유저 정의 FB 파라미터 설정 수단301, S4, S12 to S14: user defined FB parameter setting means

302, S4 : 유저 정의 FB 파라미터 설정치 보존 수단302, S4: user defined FB parameter setting value storage means

303 : 유저 정의 FB 작성 수단303: user defined FB creation means

304 : FB 파라미터 설정 수단304: FB parameter setting means

305 : 유저 정의 FB 처리 실행 코드 생성 수단305: user defined FB processing execution code generation means

306, S4A : FB 파라미터 설정 수단 선택 수단306, S4A: FB parameter setting means selection means

308, S7, S8 : 유저 정의 FB 파라미터 설정 수단 작성 수단308, S7, S8: user defined FB parameter setting means creation means

309 : 파라미터 취득 수단309 parameter acquisition means

310 : 파라미터 관련시킴 설정 수단310: parameter association setting means

311, S11 : 파라미터 정보 취득 수단311, S11: parameter information acquisition means

312, S11A : 파라미터 정보 사용 설정 지정 수단312, S11A: Parameter information setting setting means

400 : 프로그램 실행 장치400: program execution device

기술 분야Technical field

본 발명은, 펑션 블록 다이어그램(Function Block Diagram)을 이용한 프로그래밍 및 기억 매체에 의해 구성된 프로그램 작성 지원 장치와 프로그램 작성 지원 장치에 의해 작성되어 코드화된 프로그램을 실행하는 프로그램 실행 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program creation support apparatus constructed by a programming and storage medium using a function block diagram and a program execution apparatus executed by a program creation support apparatus.

종래의 기술Conventional technology

펑션 블록 다이어그램(FBD)은, 국제전기표준회의에 의한 「IEC61131-3 규격」의 그래픽 프로그래밍 언어이다. FBD의 프로그램은, 펑션이나 펑션 블록(FB) 등의 블록끼리를 서로 접속한 일련의 블록도로서 표시된다. 각각의 펑션 블록은 펑션 블록의 좌측에 입력 단자, 우측에 출력 단자를 구비하고 있고, 펑션 블록끼리는 입력 단자나 출력 단자를 통하여 결정된다(펑션, 펑션 블록은, IEC61131-3」에 규정되어 있는 용어이다).Function block diagram (FBD) is a graphic programming language of the "IEC61131-3 standard" by the International Electrotechnical Commission. The program of the FBD is displayed as a series of block diagrams in which blocks such as a function or a function block FB are connected to each other. Each function block has an input terminal on the left side of the function block and an output terminal on the right side, and the function blocks are determined through input terminals or output terminals (function and function blocks are defined in IEC61131-3 ''. to be).

도 41은 간단한 펑션이나 펑션 블록을 도시하는 블록도이고, 한 예로서 「N0T」펑션(NOT)을 도시하고 있다. 도 41에서, 입력 단자(IN)로부터 공급된 데이터값은, 소정의 처리가 시행되고, 출력 단자(0UT)로부터 처리 결과의 값으로서 외부 요소(도시 생략)에 공급된다. 이 경우, 「NOT」펑션은, 입력 단자(IN)로부터 공급된 BOOL형의 데이터값을 반전하고, 반전 결과의 값을 출력 단자(OUT)로부터 외부 요소에 공급한다.Fig. 41 is a block diagram showing a simple function and a function block, and shows an "N0T" function NOT as an example. In Fig. 41, the data value supplied from the input terminal IN is subjected to a predetermined process, and is supplied from the output terminal 0UT to an external element (not shown) as the value of the processing result. In this case, the "NOT" function inverts the BOOL type data value supplied from the input terminal IN and supplies the inverted result value to the external element from the output terminal OUT.

도 42는 복잡한 처리를 행하는 펑션이나 펑션 블록(FB)을 도시하는 블록도이다. 도 42에서, 펑션이나 펑션 블록에는, 처리 대상이 되는 입력 단자(IN)의 값 이외에, 처리의 내부에서 이용하는 파라미터의 값을 필요로 하기 때문에, 파라미터값을 공급하기 위한 파라미터 입력 단자(PARAM)가 마련되어 있다.42 is a block diagram showing a function or a function block FB for performing a complicated process. In Fig. 42, the function or function block requires a parameter value to be used inside the process in addition to the value of the input terminal IN to be processed, so that the parameter input terminal PARAM for supplying the parameter value is provided. It is prepared.

한편, 도 43은, 파라미터 입력 단자(PARAM)를 마련하지 않고, 다이얼로그 박스에서 지정하도록 한 경우의 FB를 도시하는 블록도이다.On the other hand, FIG. 43 is a block diagram showing FB in the case where designation is made in a dialog box without providing a parameter input terminal PARAM.

도 43에서, 펑션 블록(FB)을 마우스로 더블클릭하면, 다이얼로그가 표시되기 때문에, 다이얼로그상에서 파라미터의 값을 설정하여 「OK」버튼을 가압 조작하면, 설정 입력한 파라미터의 값으로 처리가 행하여진다.In FIG. 43, when the function block FB is double-clicked with a mouse, a dialog is displayed. Therefore, when the parameter value is set on the dialog and the "OK" button is pressed, the process is performed with the value of the setting parameter. .

도 43의 다이얼로그 방식을 이용한 경우, 입력 단자수가 적고 비교적 간단한 펑션이나 펑션 블록에 대해서도, 파라미터를 설정하기 위해, 일부러 다이얼로그 표 시하여 값을 입력하는 조작이 필요해진다. 또한, 작성한 프로그램인 펑션 블록 다이어그램(FBD)상에서는, 파라미터에 어떤 값이 설정되었는지를 볼 수가 없다.In the case of using the dialog system of FIG. 43, an operation of deliberately displaying a dialog and inputting a value is necessary to set parameters even for a function or function block having a relatively small number of input terminals. In addition, on the function block diagram (FBD) which is the created program, it is impossible to see what value is set in the parameter.

따라서, 비교적 간단한 펑션이나 펑션 블록인 경우에는, 도 42와 같이, 파라미터 입력 단자(PARAM)를 마련한 방식의 쪽이, 프로그램 작성의 작업 효율의 면에서도 작성한 프로그램의 가독성의 면에서도 바람직하다.Therefore, in the case of a relatively simple function or function block, the method of providing the parameter input terminal PARAM as shown in Fig. 42 is preferable in terms of readability of the created program in terms of work efficiency of program creation.

그러나, 입력 단자수가 많고 복잡한 펑션이나 펑션 블록(FB)에 대해 도 42의 방식을 이용한 경우에는, FB에 다수의 입력 단자를 마련할 필요가 있기 때문에 FB가 거대화되고, 하나의 FB가 프로그램 작성 영역에 차지하는 면적비가 커져서, 프로그램의 작성 작업을 방해하게 된다. 또한, FB에 마련되어 있는 다수의 입력 단자를 모두 접속할 필요가 있기 때문에, 배선이 복잡하게 되고, 작성한 프로그램의 가독성도 나빠진다.However, when the method of Fig. 42 is used for a complicated function or a function block FB having a large number of input terminals, the FB becomes large because a large number of input terminals need to be provided in the FB, and one FB is a program creation area. The area ratio occupied by the chip becomes large, which interrupts the work of writing the program. Moreover, since it is necessary to connect all the many input terminals provided in FB, wiring becomes complicated and the readability of the created program also worsens.

따라서, 복잡한 FB인 경우에는, 도 43에 도시하는 바와 같이, 파라미터를 다이얼로그 박스로 설정하고, 파라미터 입력 단자를 마련하지 않는 방식의 쪽이, 프로그램 작성의 작업 효율의 면에서도 작성한 프로그램의 가독성의 면에서도 바람직하게 된다.Therefore, in the case of a complex FB, as shown in FIG. 43, the method of setting a parameter to a dialog box and not providing a parameter input terminal is that of the program readability also in terms of work efficiency of program creation. Also becomes preferable.

펑션이나 펑션 블록(FB)의 형태로서, 도 42 또는 도 43의 어느것을 이용하는지는, 펑션 블록 다이어그램(Function B1ock Diagram)을 이용한 프로그래밍 및 기억 매체에 의해 구성된 프로그램 작성 지원 장치나 프로그램 작성 지원 장치에 의해 작성되어 코드화된 프로그램을 실행하는 프로그램 실행 장치를 제공하는 측이, 상기 처리 내용을 검토하여 적절히 결정하면 좋다.As a form of a function or a function block (FB), whichever is shown in FIG. 42 or 43 is used by a program creation support device or a program creation support device configured by a programming and storage medium using a function block diagram. The side which provides the program execution apparatus which executes the created and coded program should just examine the said process content, and may decide suitably.

종래의 펑션 블록 다이어그램(FBD)을 이용한 프로그램 작성 지원 장치(프로그래밍 방법) 및 프로그램 실행 장치 및 기억 매체에서는, 유저가 프로그램 내에서 빈번하게 사용하는 처리를 미리 정의해 둠에 의해, FBD 프로그램의 작성 시간을 단축한 유저 정의 FB 기능을 실현하고 있다(예를 들면, 특허 문헌 1 참조).In a program creation support device (programming method), a program execution device, and a storage medium using a conventional function block diagram (FBD), a process frequently used in a program is defined in advance, thereby creating an FBD program. The user-defined FB function which shortened the time is implemented (for example, refer patent document 1).

도 44는 종래 장치를 플로우 차트적으로 도시하는 블록도이고, 미리 준비되어 있는 FB, 유저 정의 FB 편집 영역, 유저가 정의한 유저 정의 FB, FBD 프로그램 편집 영역(1점 쇄선 참조)과 관련한 조작 순서를 스텝 S31 내지 S34(파선 참조)로 도시하고 있다.Fig. 44 is a block diagram showing a conventional apparatus in a flow chart, and shows operation procedures related to a FB prepared in advance, a user defined FB editing region, a user defined FB, and an FBD program editing region (see dashed line). It shows in step S31-S34 (refer the broken line).

도 44에서, 프로그래밍 툴로 미리 준비되어 있는 펑션이나 펑션 블록(FB)을 조합시켜서 유저 정의 FB를 작성하면(스텝 S31), 유저에 의해 작성되어 정의된 유저 정의 FB는, 펑션 블록으로서 등록된다(스텝 S32).In Fig. 44, when a user-defined FB is created by combining a function or a function block FB prepared in advance with a programming tool (step S31), the user-defined FB created and defined by the user is registered as a function block (step). S32).

따라서, 미리 준비되어 있는 FB와 마찬가지로, 유저 정의 FB는, 펑션 블록으로서, 다른 프로그램에서 사용 가능해진다(스텝 S33). 이때, 유저 정의 FB의 처리는, 스텝 S31에서 편집한 내용이 실행된다.Therefore, similar to the FB prepared in advance, the user-defined FB can be used in another program as a function block (step S33). At this time, the content edited in step S31 is executed in the process of user defined FB.

유저 정의 FB라 함은, 특정한 처리를 펑션 블록이라는 형태로 캡슐화하는 것이고, 유저 정의 FB를 프로그램으로서 사용할 때(스텝 S33)에는, 캡슐화된 유저 정의 FB의 처리 내용을 알고 있으면 되고, 그 처리 내용이 어떤 FBD로 기술(記述)(스텝 S31)되어 있는지를 알 필요는 없다.The user defined FB encapsulates a specific process in the form of a function block, and when using the user defined FB as a program (step S33), it is only necessary to know the processing contents of the encapsulated user defined FB. It is not necessary to know which FBD is described (step S31).

또한, 처리 내용이 캡슐화된 유저 정의 FB는, 프로그램 기술의 에러가 없는 실행 가능한 상태에 있기 때문에, 유저 정의 FB를 사용할 때(스텝 S33)에는, 그 처 리 내용의 기술에 에러가 있는지의 여부를 걱정할 필요가 없기 때문에, FBD 프로그램의 작성 시간은 단축된다.In addition, since the user-defined FB in which the processing contents are encapsulated is in an executable state in which there is no error in the program description, when the user-defined FB is used (step S33), it is determined whether there is an error in the description of the processing contents. Since there is no need to worry, the creation time of the FBD program is shortened.

또한, 유저 정의 FB라는 형태로 캡슐화한 처리 내용을, 유저 정의 FB를 사용하는 측에 대해 보이지 않음에 의해, 처리 내용을 기술한 프로그램의 노하우를 은폐(隱蔽)할 수가 있다.In addition, since the processing contents encapsulated in the form of user-defined FB are not shown to the side using the user-defined FB, the know-how of the program describing the processing contents can be concealed.

또한, 종래의 펑션 블록 다이어그램을 이용한 프로그래밍 방법 및 그 장치 및 기억 매체에서는, 유저 정의 FB의 편집 내용에 대한 액세스 레벨을 유저에 의해 제한하는 기능 등도 실행되어 있다.In addition, in the programming method using the conventional function block diagram, its apparatus, and the storage medium, functions for restricting the access level to the edited content of the user-defined FB by the user are also executed.

그러나, 종래 장치의 경우, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 도 43의 다이얼로그 방식으로 설정하는 수단이 존재하지 않기 때문에, 유저 정의 FB의 내부 처리의 기술에 이용하고 있는 펑션이나 펑션 블록(FB)의 내부 처리에서 사용하는 파라미터, 도 42의 파라미터 입력 단자방식에 의거한 경우에는, 도 45에 도시하는 바와 같이, 각 파라미터를 유저 정의 FB의 입력 단자로 할 필요가 있다.However, in the conventional apparatus, since there is no means for setting the parameters used in the internal processing of the user-defined FB to the dialog system shown in Fig. 43, the functions and function blocks used in the description of the internal processing of the user-defined FB ( In the case of using the parameters used in the internal processing of FB) and the parameter input terminal method of FIG. 42, it is necessary to make each parameter an input terminal of the user-defined FB as shown in FIG.

이 결과, 전술한 바와 같이, 복잡한 FB인 경우에 프로그램 작성 작업을 방해한다는 문제가 유저 정의 FB에도 일어나게 된다.As a result, as described above, in the case of a complex FB, a problem arises in the user-defined FB that disturbs the program creation work.

또한, 유저 정의 FB의 내부 처리의 기술에 이용하고 있는 펑션이나 펑션 블록의 내부 처리에서 사용하는 파라미터를, 전부 유저 정의 FB의 입력 단자로서 마련하려고 하면, 유저 정의 FB가 한층 거대화하기 때문에 바람직하지 않다.In addition, if all the parameters used in the functions used for the internal processing of the user-defined FB and the functions used in the internal processing of the function block are provided as input terminals of the user-defined FB, the user-defined FB becomes larger, which is not preferable. .

또한, 유저 정의 FB의 내부 처리의 기술에 이용하고 있는 펑션이나 펑션 블 록의 내부 처리에서 사용하는 파라미터가 도 43의 형태(다이얼로그 박스 지정 방식)이었던 경우에는, 도 46에 도시하는 바와 같이, 유저 정의 FB의 처리는 파라미터의 설정치로 동작하고, 유저 정의 FB를 사용할 때에 각 파라미터를 변경할 수가 없다.When the parameters used in the functions used in the internal processing of the user-defined FB and the internal processing of the function block are in the form shown in Fig. 43 (dialog box designation method), as shown in Fig. 46, the user The processing of the positive FB operates at the parameter set values, and each parameter cannot be changed when using the user defined FB.

따라서, 유저 정의 FB를 다른 파라미터의 값으로 사용하고 싶은 경우에는, 다른 파라미터를 설정한 수만큼 유저 정의 FB를 작성 등록할 필요가 있어서, 유저 정의 FB 기능을 실현한 때의 본래의 목적인 FBD 프로그램의 작성 시간 단축을 실현할 수는 없다.Therefore, if you want to use the user-defined FB as the value of another parameter, you need to create and register the user-defined FB as many as the number of other parameters. Shortening the creation time cannot be realized.

특허 문헌 1 : 일본 특개2003-223204호 공보Patent Document 1: Japanese Patent Application Laid-Open No. 2003-223204

종래의 프로그램 작성 지원 장치 및 프로그램 실행 장치는, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 다이얼로그 방식으로 설정하는 수단이 존재하지 않기 때문에, 파라미터 입력 단자를 설치하는 방식을 적용하면, 복잡한 FB인 경우에 작업 부하가 증대하는데다가, 유저 정의 FB가 거대화된다는 과제가 있다.In the conventional program creation support device and the program execution device, there is no means for setting the parameters used in the internal processing of the user-defined FB in a dialog manner. There is a problem that the workload increases and the user-defined FB becomes huge.

또한, 유저 정의 FB의 내부 처리의 기술에 이용하고 있는 펑션이나 펑션 블록의 내부 처리에서 사용하는 파라미터가 다이얼로그 방식이었던 경우에는, 유저 정의 FB를 사용할 때에 각 파라미터를 변경할 수가 없기 때문에, 다른 파라미터값으로 사용하고 싶은 경우에는, 다른 파라미터 설정 수만큼 유저 정의 FB를 작성 등록할 필요가 있어서, 유저 정의 FB 펑션의 목적인 FBD 프로그램 작성 시간의 단축을 실현할 수가 없다는 과제가 있다.In addition, if the parameters used in the function used for the internal processing of the user defined FB or the function processing of the function block were the dialog system, each parameter cannot be changed when using the user defined FB. When it is desired to use it, it is necessary to create and register a user defined FB as many as the number of other parameter settings, and there is a problem that a shorter time for FBD program creation, which is the purpose of the user defined FB function, cannot be realized.

본 발명은, 유저 정의 FB에서의 상기 과제를 해결하기 위해 이루어진 것으로, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 다이얼로그 방식으로 설정하기 위한 다이얼로그를 제공하는 수단을 실현함에 의해, 복잡한 FB인 경우에도 작업 부하의 증대 및 유저 정의 FB의 거대화를 회피하여, FBD 프로그램 작성 시간을 단축시킨 프로그램 작성 지원 장치와 프로그램 작성 지원 장치에 의해 작성되어 코드화된 프로그램을 실행하는 프로그램 실행 장치를 얻는 것을 목적으로 한다.This invention is made | formed in order to solve the said subject in user defined FB, Even if it is a complicated FB by realizing the means to provide the dialog for setting the parameter used in the internal process of user defined FB in a dialog system. It is an object of the present invention to obtain a program execution support device that executes a coded program created by a program creation support device and a program creation support device, which avoids an increase in workload and a huge user-defined FB.

과제를 해결하기 위한 수단Means to solve the problem

본 발명에 의한 프로그램 작성 지원 장치는, 미리 정의되어 있는 유저 정의 FB를 포함하는 프로그램 명령을 조합시켜서, 새로운 펑션 또는 펑션 블록을 정의하기 위한 유저 정의 FB 작성 수단과, 유저 정의 FB를 이용하여 기술된 프로그램을 프로그램 실행 장치에서 실행하기 위한 코드화에 있어서 유저 정의 FB 부분의 코드화를 행하는 유저 정의 FB 처리 실행 코드 생성 수단을 갖는 프로그램 작성 지원 장치에 있어서, 유저 정의 FB의 처리 내용에 관련되는 파라미터인 유저 정의 FB 파라터를 설정하는 유저 정의 FB 파라미터 설정 수단과, 유저 정의 FB 파라미터 설정 수단에 의해 설정된 유저 정의 FB 파라미터 설정치를 보존하는 유저 정의 FB 파라미터 설정치 보존 수단을 구비하고, 유저 정의 FB 처리 실행 코드 생성 수단은, 유저 정의 FB 파라미터 설정치 보존 수단에 보존되어 있는 파라미터에 의해 유저 정의 FB를 코드화하는 것이다.The program creation support apparatus according to the present invention is described using user defined FB creation means for defining a new function or function block by combining program instructions including a predefined user defined FB, and a user defined FB. A program creation supporting apparatus having a user defined FB processing execution code generating means for encoding a user defined FB portion in coding for executing a program in a program execution apparatus, the user definition being a parameter related to the processing contents of the user defined FB. User defined FB parameter setting means for setting the FB parameter, and user defined FB parameter setting value storing means for storing the user defined FB parameter setting value set by the user defined FB parameter setting means; Saves user-defined FB parameter settings The user-defined FB is encoded by the parameters stored in the means.

또한, 본 발명에 의한 프로그램 실행 장치는, 미리 정의되어 있는 유저 정의 FB를 포함하는 프로그램 명령을 조합시켜서, 새로운 펑션 또는 펑션 블록을 정의하 기 위한 유저 정의 FB 작성 수단 및 유저 정의 FB 처리 실행 코드 생성 수단을 갖는 프로그램 작성 지원 장치에 의해 작성되어 코드화된 프로그램을 실행하기 위해, 유저 정의 FB 처리 실행 코드 생성 수단으로부터 생성된 코드를 실행하는 것이다.In addition, the program execution apparatus according to the present invention combines program instructions including a predefined user defined FB to generate user defined FB creation means and user defined FB processing execution code for defining a new function or function block. In order to execute a program created and coded by the program creation support apparatus having the means, the code generated from the user defined FB process execution code generating means is executed.

본 발명에 의하면, 유저 정의 FB의 내부 처리의 기술(記述)에서 이용하고 있는 FB가 갖는 파라미터를 포함하는 유저 정의 FB의 처리 내용에 관련되는 파라미터를, 유저 정의 FB로부터 설정할 수 있어서, 프로그램 작성 시간을 단축할 수가 있다.According to the present invention, parameters related to the processing contents of the user defined FB including the parameters of the FB used in the description of the internal processing of the user defined FB can be set from the user defined FB, so that the program creation time can be set. Can be shortened.

실시의 형태 1Embodiment 1

이하, 도면을 참조하면서, 본 발명의 실시의 형태 1에 관해 설명한다.EMBODIMENT OF THE INVENTION Hereinafter, Embodiment 1 of this invention is described, referring drawings.

또한, 여기서는, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그를, 유저 정의 FB로부터 직접 사용하는 것을 가능하게 한 기술에 관해 설명한다.Here, a description will be given of a technique that makes it possible to directly use the parameter setting dialog of the FB used in the description of the internal processing of the user-defined FB from the user-defined FB.

도 1은 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치를 도시하는 블록도이고, 프로그램 작성 지원 장치(또는, 프로그램 작성 지원 장치 소프트웨어가 동작하는 퍼스널 컴퓨터)의 하드웨어 구성을 도시하고 있다.BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing a program creation support device and a program execution device according to Embodiment 1 of the present invention, showing the hardware configuration of a program creation support device (or a personal computer on which program creation support software operates). Doing.

본 발명에 의한 프로그램 작성 지원 장치는, 미리 정의되어 있는 프로그램 명령을 조합시켜서, 새로운 펑션 또는 펑션 블록을 정의하기 위한 유저 정의 FB 작성 수단과, 유저 정의 FB를 이용하여 기술된 프로그램을 프로그램 실행 장치에서 실행하기 위한 코드화에 있어서 유저 정의 FB 부분의 코드화를 행하는 유저 정의 FB 처리 실행 코드 생성 수단을 갖는다. 또한, 미리 정의되어 있는 프로그램 명령의 한 예로서, 미리 정의되어 있는 펑션 및 펑션 블록(FB)이 포함된다. 또한, 이미 정의한 유저 정의 FB도, 새롭게 작성하는 정의하는 유저 정의 FB에 조립할 수 있다.The program creation support apparatus according to the present invention combines predefined program instructions to define a new function or function block, and defines a program using the user defined FB and a program described by using the user defined FB in the program execution apparatus. And a user defined FB processing execution code generating means for encoding the user defined FB portion in the encoding for execution. Also, as an example of a predefined program instruction, a predefined function and a function block FB are included. In addition, the already defined user defined FB can be assembled to the newly defined user defined FB.

도 1에서, 프로그램 실행 장치(컨트롤러)(200)에 접속된 프로그램 작성 지원 장치(퍼스널 컴퓨터)(100)는, 마이크로 프로세서(101)와, 데이터 격납 메모리(102)와, 통신 포트(103)와, 표시부(104)와, 입력부(105)와, 기억부(하드 디스크)(106)를 구비하고 있고, 각 구성 요소(101 내지 106)는, 퍼스널 컴퓨터(100)상의 버스에 접속되어 있다.In FIG. 1, the program creation support device (personal computer) 100 connected to the program execution device (controller) 200 includes the microprocessor 101, the data storage memory 102, the communication port 103, and the like. And a display unit 104, an input unit 105, and a storage unit (hard disk) 106, and each of the components 101 to 106 is connected to a bus on the personal computer 100.

프로그램 작성 지원 장치(퍼스널 컴퓨터)(100)에 의해 작성된 프로그램은, 프로그램 실행 장치로서 기능하는 컨트롤러(200)에 전송되고, 컨트롤러(프로그램 실행 장치)(200)에서 실행된다.The program created by the program creation support device (personal computer) 100 is transmitted to the controller 200 functioning as the program execution device, and executed by the controller (program execution device) 200.

마이크로 프로세서(101)는, 프로그램 작성 지원 장치(퍼스널 컴퓨터)(100)의 주요부를 구성하고 있고, 프로그램 작성 지원 장치의 처리(즉, 여기서는 유저 정의 FB에 관한 처리)를 행한다. 데이터 격납 메모리(102)는, 마이크로 프로세서(101)의 처리에 수반하는 일시적인 데이터를 격납한다. 통신 포트(103)는, 컨트롤러(200)에 접속되어 퍼스널 컴퓨터(100)와 컨트롤러(200) 사이의 통신을 행한다.The microprocessor 101 comprises the main part of the program creation support device (personal computer) 100, and performs the process of the program creation support device (that is, the process related to the user-defined FB here). The data storage memory 102 stores temporary data accompanying the processing of the microprocessor 101. The communication port 103 is connected to the controller 200 to perform communication between the personal computer 100 and the controller 200.

표시부(104)는, 후술하는 프로그램 작성 지원 장치(트리나 아니콘 등의 윈도우)를 표시한다. 입력부(105)는, 키보드나 마우스 등(도시 생략)을 가지며, 표시 부(104)와 함께 맨 머신 인터페이스를 구성하고 있다. 기억부(106)는, 프로그램 작성 지원 장치에서 설정한 데이터(즉, 유저 정의 FB에 관한 데이터)를 기억한다.The display unit 104 displays a program creation support device (a window such as a tree or an icon) described later. The input unit 105 has a keyboard, a mouse, and the like (not shown), and forms a man machine interface with the display unit 104. The memory | storage part 106 memorize | stores the data (namely, data regarding a user defined FB) set with the program creation support apparatus.

마이크로 프로세서(101)는, 통신 포트(103)를 통하여, 프로그램 실행 장치(컨트롤러)(200)와 통신함과 함께, 데이터 격납 메모리(102), 표시부(104), 입력부(105) 및 기억부(106)와 관련하여 동작한다. 이로써, 마이크로 프로세서(101)는, 유저 정의 FB의 처리 내용에 관련되는 파라미터인 유저 정의 FB 파라미터를 설정하는 유저 정의 FB 파라미터 설정 수단과, 유저 정의 FB 파라미터 설정 수단에 의해 설정된 유저 정의 FB 파라미터 설정치를 보존하는 유저 정의 FB 파라미터 설정치 보존 수단과, 유저 정의 FB 파라미터 설정치 보존 수단에 보존되어 있는 유저 정의 FB 파라미터 설정치를 이용하여, 유저 정의 FB 파라미터 설정치에 해당하는 유저 정의 FB의 처리가 실행되는 코드를 생성하는 유저 정의 FB 처리 실행 코드 생성 수단을 구성하고, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 다이얼로그 방식으로 설정하기 위한 다이얼로그를 제공하는 수단을 실현하고 있다.The microprocessor 101 communicates with the program execution device (controller) 200 through the communication port 103, and also stores the data storage memory 102, the display unit 104, the input unit 105, and the storage unit ( In connection with 106). Thereby, the microprocessor 101 sets user defined FB parameter setting means which sets the user defined FB parameter which is a parameter related to the process content of user defined FB, and user defined FB parameter setting value set by the user defined FB parameter setting means. Using the user defined FB parameter set value storing means to be saved and the user defined FB parameter set value stored in the user defined FB parameter set value storing means, the code for executing the user defined FB processing corresponding to the user defined FB parameter set value is executed. A means for configuring a user defined FB processing execution code generating means and providing a dialog for setting a parameter used in the internal processing of the user defined FB in a dialog manner is realized.

도 2는 본 발명의 실시의 형태 1의 기능 구성을 도시하는 블록도이다.2 is a block diagram showing the functional configuration of Embodiment 1 of the present invention.

도 2에서, 프로그램 작성 지원 장치(300)는, 유저 정의 FB 작성 수단(303)과, 유저 정의 FB 파라미터 설정 수단(301)과, FB 파라미터 설정 수단(304)과, 유저 정의 FB 파라미터 설정치 보존 수단(302)과, 유저 정의 FB 처리 실행 코드 생성 수단(305)을 구비하고 있다. 프로그램 작성 지원 장치(300)에서 코드화된 프로그램을 전송할 때에는, 유저 정의 FB 처리 실행 코드 생성 수단(305)에 프로그램 실행 장치(400)가 접속된다.In FIG. 2, the program creation support apparatus 300 includes user defined FB creation means 303, user defined FB parameter setting means 301, FB parameter setting means 304, and user defined FB parameter setting value storage means. 302, and user defined FB process execution code generation means 305. When the program coded by the program creation support device 300 is transmitted, the program execution device 400 is connected to the user defined FB process execution code generation means 305.

유저 정의 FB 파라미터 설정 수단(301)은, FB 파라미터 설정 수단(304)을 기동하여 표시하고, FB 파라미터 설정 수단(304)에서 설정된 파라미터의 값을, FB 파라미터 설정 수단(304)으로부터 취득한다. 이 파라미터의 값은, 유저 정의 FB 파라미터 설정치 보존 수단(302)에 보내져서 보존된다. 유저 정의 처리 실행 코드 생성 수단(305)에서 코드를 생성할 때에는, 유저 정의 FB 파라미터 설정치 보존 수단(302)의 보존되어 있는 파라미터의 값이 사용된다.The user defined FB parameter setting means 301 activates and displays the FB parameter setting means 304 and obtains the value of the parameter set by the FB parameter setting means 304 from the FB parameter setting means 304. The value of this parameter is sent to the user defined FB parameter setting value storage means 302 and stored. When the code is generated by the user defined processing execution code generation means 305, the value of the stored parameter of the user defined FB parameter set value storage means 302 is used.

도 3은 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치를 실현하기 위한 프로그램 작성 장치(1)를 도식적으로 도시하는 블록도이다.3 is a block diagram schematically showing a program creation device 1 for realizing a program creation support device and a program execution device according to Embodiment 1 of the present invention.

도 3에서, 프로그램 작성 장치(1)는, 맨 머신 인터페이스를 갖는 마이크로 컴퓨터에 의해 실현되고 있고(도 1 참조), 트리 뷰(2)와, FB 영역(3)과, 유저 정의 FB 영역(4)과, FBD 프로그램 편집 영역(5)과, 유저 정의 FB 편집 영역(6)을 갖는다.In FIG. 3, the program generating apparatus 1 is realized by a microcomputer having a man machine interface (see FIG. 1), the tree view 2, the FB area 3, and the user-defined FB area 4. ), An FBD program editing area 5, and a user-defined FB editing area 6.

트리 뷰(2)에는, 프로그램 작성 장치(1)를 이용하여 유저가 작성한 프로그램이나 유저 정의 FB가 계층적으로 표시된다. FB 영역(3)에는, 프로그램 작성 장치(1)를 제공하는 측이 미리 준비한 FB가 표시되고, 유저 정의 FB 영역(4)에는, 유저가 정의한 FB(유저 정의 FB)가 표시된다. FBD 프로그램 편집 영역(5)에서는, 통상의 프로그램이 작성되고, 유저 정의 FB 편집 영역(6)에서는, 유저 정의 FB가 편집된다.In the tree view 2, a program created by a user and a user-defined FB are hierarchically displayed using the program creation device 1. In the FB area 3, the FB prepared in advance by the side which provides the program creation apparatus 1 is displayed, and the user-defined FB (user defined FB) is displayed in the user-defined FB area 4. In the FBD program editing area 5, a normal program is created, and in the user defined FB editing area 6, a user defined FB is edited.

이하, 통상의 프로그램에 관한 기본적인 조작을 설명한다.Hereinafter, the basic operation regarding a normal program is demonstrated.

도 3에서, 예를 들면, 유저가 트리 뷰(2) 내의 프로그램(α)을 마우스로 더블클릭하면, 프로그램 편집 영역(5)이 표시되고, 프로그램(α)의 내용을 편집 가능한 상태가 된다.In Fig. 3, for example, when the user double-clicks the program α in the tree view 2 with a mouse, the program editing area 5 is displayed, and the contents of the program α can be edited.

프로그램(α)의 구체적인 편집 순서로서는, 예를 들면, FB 영역(3) 내의 FB(미리 준비 되어 있는 FB)로부터 소망하는 FB를 마우스 선택하여, FBD 프로그램 편집 영역(5)에 마우스로 이동(드래그&드롭)시킴에 의해, 프로그램상에 FB를 추가한다.As a specific editing procedure of the program α, for example, a desired FB is selected from the FB (preliminarily prepared FB) in the FB area 3, and the mouse is moved to the FBD program editing area 5 with a mouse (drag). By adding a FB to the program.

또한, 프로그램상에 배치된 FB의 입력 단자나 출력 단자를 마우스로 배선함에 의해 유저가 소망한 편집을 행할 수 있다. 또한, 새롭게 프로그램을 추가하는 경우에는, 트리 뷰(2)의 프로그램을 마우스 우(右)클릭하여 손 표시된 팝업 메뉴로부터, 신규 프로그램 추가 지시 등이 행하여진다.In addition, the user can perform a desired edit by wiring the input terminal or the output terminal of the FB arranged on the program with a mouse. In addition, when a program is newly added, a new program addition instruction or the like is issued from the pop-up menu displayed by right-clicking on the program in the tree view 2.

다음에, 유저 정의 FB(이하, 약칭하여 「유저 FB」라고도 한다)에 관한 조작을 설명한다.Next, operations related to the user-defined FB (hereinafter also referred to as "user FB") will be described.

도 3에서, 예를 들면, 유저가 트리 뷰(2) 내의 유저 FB(α)를 마우스로 더블클릭하면, 유저 정의 FB 편집 영역(6)이 표시되고, 유저 FB(α)의 내용을 편집 가능한 상태가 된다.In Fig. 3, for example, when a user double-clicks the user FB (α) in the tree view 2 with a mouse, the user defined FB editing area 6 is displayed, and the contents of the user FB (α) can be edited. It becomes a state.

유저 정의 FB의 구체적인 편집 순서는, 예를 들면 FB 영역(3) 내의 FB(미리 준비되어 있는 FB)로부터 소망하는 FB를 마우스 선택하여, 유저 정의 FB 편집 영역(6)으로 마우스로 이동(드래그&드롭)시킴에 의해, 프로그램상에 FB를 추가하는 통상의 프로그램 편집과 마찬가지로 행하여진다. 또한, 새롭게 유저 정의 FB를 추 가하는 경우에는, 트리 뷰(2) 내의 유저 정의 FB를 마우스 우클릭하여 표시되는 팝업 메뉴로부터, 신규 유저 정의 FB의 추가 지시 등이 행하여진다.For a specific editing procedure of the user defined FB, for example, the desired FB is selected from the FB (prepared FB) in the FB area 3, and the mouse is moved to the user defined FB edit area 6 (drag & drag). Drop), as in normal program editing in which an FB is added to a program. In addition, when a user-defined FB is newly added, an additional instruction or the like of the new user-defined FB is issued from the pop-up menu displayed by right-clicking on the user-defined FB in the tree view 2.

이와같이 하여 작성된 유저 정의 FB는, 트리 뷰(2)에 계층적으로 표시됨과 함께, 유저 정의 FB 영역(4)에도 표시된다.The user-defined FB created in this way is displayed hierarchically in the tree view 2 and is also displayed in the user-defined FB area 4.

프로그램의 편집 때에는, FB 영역(3)으로부터 소망하는 FB(미리 준비되어 있는 FB)를 마우스 선택하여 프로그램 편집 영역(5)으로 마우스로 이동시키는 드래그&드롭에 의해 프로그램상에 FB를 추가하는 것과 마찬가지로, 유저 정의 FB 영역(4)으로부터 소망하는 유저 정의 FB를 마우스 선택하여 프로그램 편집 영역(5)으로 마우스로 이동시키는 드래그&드롭에 의해 프로그램상에 유저 정의 FB를 추가한다.When editing a program, it is similar to adding an FB to a program by dragging and dropping a mouse to select a desired FB (prepared FB) from the FB area 3 and moving the mouse to the program editing area 5. The user-defined FB is added to the program by dragging and dropping the desired user-defined FB from the user-defined FB area 4 and moving the mouse to the program editing area 5 with the mouse.

다음에, 도 4의 플로우 차트와 함께, 도 3에 관련된 도 5 및 도 6의 설명도를 참조하면서, 도 1 내지 도 3에 도시한 본 발명의 실시의 형태 1에 의한 파라미터 설정 순서에 관해 설명한다. 또한, 도 5 및 도 6에서는, 조작 순서에 직접 관련되는 영역 부분만을 나타내고 있다. 또한, 각 도면에서 도시하고 있는 다이얼로그에서, 문자열을 입력하거나, 체크를 붙이거나, 일람으로부터 소망하는 값을 선택하는 것 등에 의해 입력 가능한 다이얼로그의 요소를 흰색 블록으로 나타내고, 문자열 표시나 버튼 등의 판독 전용의 다이얼로그의 요소를 그레이 블록으로 나타내고 있다.Next, the parameter setting procedure according to Embodiment 1 of the present invention shown in Figs. 1 to 3 will be described with reference to the explanatory diagrams of Figs. 5 and 6 related to Fig. 3 together with the flowchart of Fig. 4. do. In addition, in FIG.5 and FIG.6, only the area part directly related to an operation procedure is shown. In the dialogs shown in the drawings, the elements of the dialog that can be input are displayed in white blocks by inputting a string, checking a check mark, selecting a desired value from the list, and reading a character string display or a button. The elements of the dedicated dialog are shown in gray blocks.

도 4에서는, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그를, 유저 정의 FB로부터 직접 사용함에 의해, 유저 정의 FB를 프로그램에서 사용할 때의 파라미터를 설정하는 조작 순서가 도시되어 있다.In FIG. 4, the operation procedure which sets the parameter at the time of using a user-defined FB in a program is shown by using the parameter setting dialog of the FB used for description of the internal processing of a user-defined FB directly from a user-defined FB. .

도 4에서, 유저 FB 작성시의 스텝 S1, S2 및 유저 FB 이용시의 스텝 S3은, 전술한 통상 프로그램에 관한 기본적 조작에 대응하고 있다.In FIG. 4, step S1 and S2 at the time of creating user FB, and step S3 at the time of using user FB respond | correspond to the basic operation regarding the above-mentioned normal program.

또한, 여기서는, 스텝 S1, S2(유저 FB작성 시)에서, 도 5 내의 유저 정의 FB 영역(4)에 도시하는 바와 같은 유저 FB(β)를 작성한 것으로 한다. 또한, 유저 FB(β)에는, FB(φ)가 기술되어 있고, 파라미터값(PARAMφ)(유저 정의 FB 파라미터 설정치)을 갖고 있는 것으로 한다.In this case, it is assumed that the user FB (β) as shown in the user defined FB area 4 in FIG. 5 is created in steps S1 and S2 (when creating a user FB). In addition, FB (φ) is described in user FB (β), and it is assumed that it has a parameter value PARAMφ (user defined FB parameter set value).

우선, 유저 FB 작성시에, 유저 FB를 신규로 추가하고(스텝 S1), 유저 FB를 편집하여(스텝 S2), 도 5에 도시하는 바와 같은 유저 FB(β)를 작성한다.First, at the time of user FB creation, the user FB is newly added (step S1), the user FB is edited (step S2), and the user FB (β) as shown in Fig. 5 is created.

계속되는 유저 FB 이용시에, 도 6에 도시하는 바와 같이, 우선, 유저 FB(β)를 프로그램에 배치한다(스텝 S3).In subsequent use of the user FB, as shown in Fig. 6, first, the user FB (β) is placed in the program (step S3).

계속해서, 프로그램에 배치한 유저 정의 FB를 마우스로 더블클릭하는 등에 의해, 스텝 S1, S2에서 작성한 유저 FB(β)의 내부 처리의 기술에 사용되고 있는 FB(φ)의 파라미터 설정 다이얼로그를 직접 표시하고, FB(φ)의 내부 처리의 파라미터값(PARAMφ)을 입력 설정한다(스텝 S4).Subsequently, by double-clicking the user-defined FB placed in the program with a mouse, the parameter setting dialog of the FB (φ) used for the description of the internal processing of the user FB (β) created in steps S1 and S2 is directly displayed. , Inputs and sets the parameter value PARAMφ of the internal processing of FB (φ) (step S4).

스텝 S4에서 입력된 파라미터값(PARAMφ)은, 유저 FB(β)의 유저 정의 FB 파라미터 설정치 보존 수단(302)에 설정된다.The parameter value PARAMφ input in step S4 is set in the user defined FB parameter set value storage means 302 of the user FB (β).

최후로, PARAMφ의 값에 의거하여 유저 정의 FB의 코드화가 실행되고(스텝 S5), 도 4의 조작 순서를 종료한다.Finally, the coding of the user defined FB is executed based on the value of PARAMφ (step S5), and the operation procedure of FIG. 4 ends.

이때, 유저 정의 FB의 파라미터 설정 다이얼로그로서, 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그를 표시함에 의해, 유저 정의 FB 파 라미터 설정 수단(301)으로서 기능한다.At this time, the parameter setting dialog of the FB used for the description of the internal processing is displayed as the parameter setting dialog of the user defined FB, thereby functioning as the user defined FB parameter setting means 301.

또한, 스텝 S1, S2에서, 도 5 내의 유저 정의 FB 영역(4)에 도시하는 바와 같은 유저 FB(β)를 작성하였기 때문에, 유저 FB 작성시의 스텝 S4에서는, 유저 정의 FB 영역(4)으로부터 FBD 프로그램 편집 영역(5)에의 유저 FB(β)의 드래그&드롭에 의해, 도 6 내의 FBD 프로그램 편집 영역(5)에 도시하는 바와 같은 상태가 된다.In addition, in step S1 and S2, since the user FB ((beta)) as shown to the user-defined FB area | region 4 in FIG. 5 was created, in step S4 at the time of user FB creation, from user-defined FB area | region 4 Drag and drop of the user FB (β) to the FBD program editing area 5 results in a state as shown in the FBD program editing area 5 in FIG.

FBD 프로그램 편집 영역(5)에서는, 유저 FB(β)의 내부 처리의 파라미터값(PARAMφ)을 설정한다.In the FBD program editing area 5, the parameter value PARAMφ of the internal processing of the unit FB (β) is set.

스텝 4에서는, 유저 정의 FB 파라미터 설정치 보존 수단(302)도 기능하고, 스텝 S4에서 설정된 파라미터(PARAMφ)의 값은, 유저 FB(β)의 파라미터로서 보존된다.In step 4, the user defined FB parameter set value storage means 302 also functions, and the value of the parameter PARAMφ set in step S4 is stored as a parameter of the user FB (β).

스텝 S5에서는, 유저 정의 FB 파라미터 설정치 보존 수단(302)에 보존되어 있는 파라미터의 설정치(PARAMφ)를 이용하여, 해당 유저 정의 FB의 처리가 실행되는 코드를 생성한다. 스텝 S5에서는, 유저 정의 FB 처리 실행 코드 생성 수단(305)이 기능하고, 이로써 설정된 파라미터의 값(PARAMφ)에 의거하여, 유저 FB의 처리가 실행되게 된다.In step S5, the code which performs the process of the said user defined FB is produced | generated using the parameter setting value PARAMphi of the parameter stored by the user defined FB parameter setting value storage means 302. FIG. In step S5, the user defined FB process execution code generation means 305 functions, and the process of the user FB is executed based on the parameter value PARAMφ set thereby.

다음에, 코드의 생성 방법에 관해 구체적으로 설명한다.Next, a method of generating code will be described in detail.

우선, 유저 FB(β)(도 5, 도 6 참조)의 파라미터값을 설정하지 않은 경우는, 종래의 유저 정의 FB와 같은 코드 생성이 실행된다. 즉, FBD 프로그램 편집 영역(5)에서 기술된 프로그램이 코드화되고, 또한, 유저 정의 FB 편집 영역(6)에서 기술된 프로그램인 유저 FB(β)의 내부 처리도 코드화된다.First, when the parameter value of the user FB (β) (see Figs. 5 and 6) is not set, code generation similar to the conventional user defined FB is executed. That is, the program described in the FBD program editing area 5 is coded, and the internal processing of the user FB (β) which is the program described in the user defined FB editing area 6 is also coded.

계속해서, 코드화된 프로그램을 실행하는 프로그램 실행 장치에서 유저 FB(β)를 실행할 때에는, 유저 정의 FB 편집 영역(6)에서 기술된 내부 처리의 코드화한 것이 실행된다. 따라서, 유저 FB(β)는, 유저 정의 FB 편집 영역(6)에서 기술할 때에 설정한 파라미터의 값(PARAMφ)에 의해 실행된다.Subsequently, when the user FB (β) is executed in the program execution device that executes the coded program, the coding of the internal processing described in the user-defined FB editing area 6 is executed. Therefore, the user FB (β) is executed by the parameter value PARAMφ set when the user-defined FB editing area 6 is described.

다음에, 유저 FB(β)의 파라미터값(PARAMφ)을 설정한 경우에 관해 설명한다.Next, the case where the parameter value PARAMφ of the user FB (β) is set will be described.

이 경우, FBD 프로그램 편집 영역(5)에서 기술된 프로그램을 코드화할 때에, 유저 FB(β)의 코드화에 관해서는, 유저 정의 FB 파라미터 설정치 보존 수단(302)에 보존되어 있는 파라미터에 의해 코드화하도록 한다.In this case, when coding the program described in the FBD program editing area 5, the coding of the user FB (β) is coded by the parameters stored in the user-defined FB parameter setting value storage means 302. .

계속해서, 코드화된 프로그램을 실행하는 프로그램 실행 장치는, 유저 FB(β)를 실행할 때에, 파라미터의 값(PARAMφ)을 반영하여 유저 정의 FB 편집 영역(6)에서 기술된 내부 처리의 코드화한 것을 실행한다. 따라서, 유저 FB(β)는, 유저 정의 FB 파라미터 설정 수단(301)에서 설정되며 또한 유저 정의 FB 파라미터 설정치 보존 수단(302)에 보존되어 있는 파라미터의 값(PARAMφ)에 의해 실행된다.Subsequently, when executing the user FB (β), the program execution device executing the coded program reflects the parameter value PARAMφ and executes the coded internal processing described in the user defined FB editing area 6. do. Therefore, the user FB (β) is executed by the parameter value PARAMφ set by the user defined FB parameter setting means 301 and stored in the user defined FB parameter set value storage means 302.

이상과 같이, 본 발명의 실시의 형태 1에 관한 프로그램 작성 지원 장치는, 미리 정의되어 있는 유저 정의 FB를 포함하는 프로그램 명령을 조합하여, 새로운 펑션 또는 펑션 블록을 정의하기 위한 유저 정의 FB 작성 수단(303)과, 유저 정의 FB를 이용하여 기술된 프로그램을 프로그램 실행 장치에서 실행하기 위한 코드화에서 유저 정의 FB 부분의 코드화를 행하는 유저 정의 FB 처리 실행 코드 생성 수 단(305)(스텝 S5)을 갖는 프로그램 작성 지원 장치에 있어서, 유저 정의 FB의 유저 정의 FB 파라미터를 설정하는 유저 정의 FB 파라미터 설정 수단(301)(스텝 S4)과, 유저 정의 FB 파라미터 설정 수단(301)에 의해 설정된 유저 정의 FB 파라미터 설정치를 보존하는 유저 정의 FB 파라미터 설정치 보존 수단(302)(스텝 S4)을 구비하고 있다.As described above, the program creation support apparatus according to the first embodiment of the present invention combines program instructions including a user-defined FB that is predefined to define user-defined FB creation means for defining a new function or function block ( 303) and a program having a user-defined FB processing execution code generation step 305 (step S5) for encoding a user-defined FB portion in encoding for executing a program described by using the user-defined FB in a program execution device. In the creation support apparatus, the user defined FB parameter setting means 301 (step S4) for setting the user defined FB parameter of the user defined FB and the user defined FB parameter setting value set by the user defined FB parameter setting means 301. The user-defined FB parameter setting value storage means 302 (step S4) to save is provided.

유저 정의 FB 처리 실행 코드 생성 수단(305)은, 유저 정의 FB 파라미터 설정치 보존 수단(302)에 보존되어 있는 파라미터에 의해 유저 정의 FB를 코드화하고, 유저 정의 FB 파라미터 설정 수단(301)은, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단(304)을 표시하고, 유저 정의 FB 파라미터 설정치 보존 수단(302)은, FB 파라미터 설정 수단에 의해 설정된 파라미터 설정치를 보존한다.The user-defined FB process execution code generation means 305 codes the user-defined FB by the parameter stored in the user-defined FB parameter setting value storage means 302, and the user-defined FB parameter setting means 301 defines the user definition. The FB parameter setting means 304 of the FB used for the description of the internal processing of the FB is displayed, and the user-defined FB parameter setting value storing means 302 stores the parameter setting value set by the FB parameter setting means.

또한, 본 발명의 실시의 형태 1에 관한 프로그램 실행 장치는, 미리 정의되어 있는 유저 정의 FB를 포함하는 프로그램 명령을 조합하여, 새로운 펑션 또는 펑션 블록을 정의하기 위한 유저 정의 FB 작성 수단(303)과, 유저 정의 FB를 이용하여 기술된 프로그램을 프로그램 실행 장치에서 실행하기 위한 코드화에서 유저 정의 FB 부분의 코드화를 행하는 유저 정의 FB 처리 실행 코드 생성 수단(305)(스텝 S5)을 갖는 프로그램 작성 지원 장치에 의해 작성되어 코드화된 프로그램을 실행하기 위해, 유저 정의 FB 처리 실행 코드 생성 수단(305)으로부터 생성된 코드를 실행한다.In addition, the program execution device according to the first embodiment of the present invention includes a user-defined FB creating means 303 for defining a new function or a function block by combining a program instruction including a predefined user-defined FB. To a program creation support apparatus having user defined FB processing execution code generating means 305 (step S5) for encoding a user defined FB portion in encoding for executing a program described by using the user defined FB in a program execution apparatus. In order to execute the program created and coded, the code generated from the user defined FB processing execution code generating means 305 is executed.

이와 같이, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 다이얼로그 방식으로 설정하기 위한 다이얼로그를 제공하는 수단을 실현함에 의해, 복잡한 FB인 경우에도 작업 부하의 증대 및 유저 정의 FB의 거대화를 회피하여, FBD 프로그램 작성 시간을 단축시킨 프로그램 작성 지원 장치 및 프로그램 실행 장치를 얻을 수 있다.Thus, by realizing the means for providing a dialog for setting the parameters used in the internal processing of the user defined FB in a dialog manner, even in the case of a complicated FB, an increase in the workload and a large user defined FB are avoided, and the FBD A program creation support device and a program execution device can be obtained which have reduced the program creation time.

또한, FBD 프로그램 편집 영역(5)에서 기술된 프로그램을 코드화할 때에, 유저 FB(β)의 코드화에 관해서는, 유저 정의 FB 파라미터 설정치 보존 수단(302)에 보존되어 있는 파라미터에 의해 코드화하도록 한다.In coding the program described in the FBD program editing area 5, the coding of the user FB (β) is coded by the parameters stored in the user-defined FB parameter setting value storage means 302.

실시의 형태 2Embodiment 2

또한, 상기 실시의 형태 1(도 5, 도 6)에서는, FB(φ)가 기술된 유저 FB(β)를 작성하고, 파라미터값(PARAMφ)을 설정한 경우에 관해 설명하였지만, 도 7 및 도 8에 도시하는 바와 같이, FB(ξ)가 기술된 유저 FB(δ)를 작성하고, 파라미터의 값을 정수(定數)로 하여도 좋다.In addition, in Embodiment 1 (FIG. 5, FIG. 6), the case where the user FB ((beta) which FB ((phi)) was described and the parameter value PARAM (phi) was set was demonstrated, However, FIG.7 and FIG. As shown in Fig. 8, the user FB (δ) in which FB (ξ) is described may be created, and the value of the parameter may be an integer.

도 7 및 도 8은 본 발명의 실시의 형태 2에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치의 조작 순서를 도 3에 관련시켜서 도시하는 설명도이고, 각각, 전술한 도 5 및 도 6에 대응하고 있다.7 and 8 are explanatory views showing the operation procedure of the program creation support device and the program execution device according to Embodiment 2 of the present invention with reference to Fig. 3, respectively, and correspond to Figs. 5 and 6 described above. have.

본 발명의 실시의 형태 2의 구성은, 도 1 내지 도 3에 도시한 바와 같다. 또한, 본 발명의 실시의 형태 2에 의한 파라미터 설정 순서는, 도 4에 도시한 바와 같고, 이 결과, 도 8 내의 FBD 프로그램 편집 영역(5)에 도시하는 바와 같은 상태가 된다. 여기서는, 전술한 바와 같은 스텝 S1, S2에서, 도 7 내의 유저 정의 FB 영역(4)에 도시하는 바와 같이, 유저 FB(δ)가 작성된 경우를 도시하고 있다.The structure of Embodiment 2 of this invention is as showing in FIGS. In addition, the parameter setting procedure by Embodiment 2 of this invention is as showing in FIG. 4, As a result, it will be in the state as shown in the FBD program editing area | region 5 in FIG. Here, the case where the user FB (delta) is created as shown to the user-defined FB area | region 4 in FIG. 7 in step S1, S2 mentioned above is shown.

즉, 전술한 실시의 형태 1에서는, 유저 정의 FB의 내부 처리의 기술에 이용하는 펑션이나 펑션 블록이 파라미터 설정 다이얼로그를 갖는 경우(도 43 참조)에 관해 설명했지만, 본 발명의 실시의 형태 2에서는, 파라미터 설정 다이얼로그를 갖지 않고 파라미터 단자(PARAM)(도 42 참조)를 갖고 있는 것으로 한다.That is, in Embodiment 1 mentioned above, the case where the function and function block used for description of the internal processing of user defined FB has a parameter setting dialog (refer FIG. 43) was demonstrated, In Embodiment 2 of this invention, It is assumed that a parameter terminal PARAM (see Fig. 42) is not provided without a parameter setting dialog.

또한, 본 발명의 실시의 형태 2에서는, 유저 정의 FB의 내부 처리의 기술에 이용하고 있는 펑션이나 펑션 블록의 내부 처리에서 사용하는 파라미터가 도 42의 형태라 하여도, 도 45와 같은 기술 형태(파라미터를 유저 정의 FB의 입력 단자)로는 하지 않고, 도 7에 도시하는 바와 같이, 파라미터의 값을 정수 FB의 정수치로 설정 공급하도록 기술한다.Further, in Embodiment 2 of the present invention, even if the parameters used in the internal processing of the function and the function block used for the internal processing of the user-defined FB are the same as those in FIG. Instead of using the parameter as an input terminal of the user-defined FB, as shown in Fig. 7, the parameter value is set and supplied to the integer value of the constant FB.

또한, 전술한 실시의 형태 1과 같은 조작 순서에 의해, 도 8에 도시하는 바와 같이, 유저 정의 FB의 파라미터 설정 다이얼로그로서, 내부 처리의 기술에 사용되고 있는 정수 FB의 정수를 설정하는 다이얼로그가 표시된다.In addition, as shown in FIG. 8, as the parameter setting dialog of the user-defined FB, a dialog for setting the constant of the constant FB used in the description of the internal processing is displayed as shown in FIG. .

이상과 같이, 본 발명의 실시의 형태 2에 의하면, 유저 정의 FB의 내부 처리에서 사용하는 정수 FB의 정수치를 설정하는 다이얼로그를 제공하는 것이 가능하게 되기 때문에, 전술한 바와 마찬가지로, 복잡한 FB인 경우에도 작업 부하의 증대 및 유저 정의 FB의 거대화를 회피하여, FBD 프로그램 작성 시간을 단축시킨 프로그램 작성 지원 장치 및 프로그램 실행 장치를 얻을 수 있다.As described above, according to the second embodiment of the present invention, it is possible to provide a dialog for setting the constant value of the constant FB used in the internal processing of the user-defined FB. Thus, even in the case of a complicated FB as described above. It is possible to obtain a program creation support device and a program execution device in which the FBD program creation time is shortened by increasing the workload and enlarging the user defined FB.

실시의 형태 3Embodiment 3

또한, 상기 실시의 형태 1, 2에서는, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그가 하나였던 경우에 관해, 유저 정의 FB로부터 직접 사용하는 것을 가능하게 하였지만, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그가 2개 이상이었던 경우에 관해, 유저 정의 FB로부터 직접 사용하는 것을 가능하게 하여도 좋다.Further, in the first and second embodiments, the user can directly use the user defined FB for the case where there is only one parameter setting dialog of the FB used for the description of the internal processing of the user defined FB. Regarding the case where there are two or more parameter setting dialogs of the FB used in the description of the internal processing, it may be possible to directly use the user-defined FB.

이하, 도 9 내지 도 12를 참조하면서, 본 발명의 실시의 형태 3에 관해 설명한다.Hereinafter, Embodiment 3 of this invention is described, referring FIGS. 9-12.

도 9는 본 발명의 실시의 형태 3의 기능 구성을 도시하는 블록도 이고, 전술(도 2 참조)한 것과 같은 것에 관해서는, 전술한 것과 동일한 부호를 붙이고 상세 기술을 생략한다. 이 경우, 유저 정의 FB 파라미터 설정 수단(301)은, FB 파라미터 설정 수단 선택 수단(306)을 포함하고, FB 파라미터 설정 수단(304)은, FB 파라미터 설정 수단 선택 수단(306)과 관련하고 있다. FB 파라미터 설정 수단 선택 수단(306)은, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단(304)이 복수 존재하는 경우에, 복수의 FB 파라미터 설정 수단(304)중에서, 유저 정의 FB 파라미터 설정 수단(301)으로서 이용하는 FB 파라미터 설정 수단을 선택한다.FIG. 9 is a block diagram showing the functional configuration of Embodiment 3 of the present invention, and the same reference numerals as those described above are omitted and detailed description thereof is omitted. In this case, the user defined FB parameter setting means 301 includes an FB parameter setting means selecting means 306, and the FB parameter setting means 304 is associated with the FB parameter setting means selecting means 306. The FB parameter setting means selecting means 306 is a user among the plurality of FB parameter setting means 304 when there are a plurality of FB parameter setting means 304 of the FB used in the description of the internal processing of the user-defined FB. The FB parameter setting means to be used as the positive FB parameter setting means 301 is selected.

도 10은 본 발명의 실시의 형태 3에 의한 파라미터 설정 순서를 도시하는 플로우 차트이고, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그가 2개 이상인 경우에, 유저 정의 FB로부터 직접 사용함에 의해 유저 정의 FB를 프로그램에서 사용할 때의 파라미터 설정 순서를 나타내고 있다.Fig. 10 is a flowchart showing the parameter setting procedure according to the third embodiment of the present invention, which is directly from the user-defined FB when there are two or more parameter setting dialogs of the FB used for the description of the internal processing of the user-defined FB. The following shows the parameter setting procedure when using a user-defined FB in a program.

본 발명의 실시의 형태 3에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치의 구성은, 도 1 및 도 3에 도시한 바와 같다.The structures of the program creation support device and the program execution device according to the third embodiment of the present invention are as shown in Figs.

도 11 및 도 12는 본 발명의 실시의 형태 3에 의한 조작 순서를 도 3에 관련시켜서 도시하는 설명도이고, 각각, 전술한 도 5 및 도 6에 대응하고 있다.FIG.11 and FIG.12 is explanatory drawing which shows the operation procedure by Embodiment 3 of this invention with respect to FIG. 3, and respond | corresponds to FIG. 5 and FIG. 6 mentioned above, respectively.

도 10에서, 스텝 S1 내지 S3, S5는, 전술(도 4 참조)한 바와 마찬가지의 처리 조작이고, 스텝 S4A, S4B는, 전술한 스텝 S4에 대응하고 있다.In FIG. 10, steps S1 to S3 and S5 are processing operations similar to those described above (see FIG. 4), and steps S4A and S4B correspond to the above-described step S4.

이 경우, 유저 FB 작성시의 스텝 S1, S2에서, 도 11 내의 유저 정의 FB 영역(4)에 도시하는 바와 같은 유저 FB(γ)를 작성한 것으로 한다. 또한, 유저 FB(γ)에는, FB(φ) 및 FB(ψ)가 기술되어 있고, FB(φ), FB(ψ)는, 각각, 파라미터값(PARAMφ, PARAMψ)을 갖고 있는 것으로 한다.In this case, the user FB (γ) as shown in the user defined FB area 4 in FIG. 11 is created in steps S1 and S2 at the time of creating the user FB. In addition, FB (phi) and FB (psi) are described in user FB (gamma), and it is assumed that FB (phi) and FB (psi) have parameter values PARAMphi and PARAMψ, respectively.

도 10 내의 스텝 S1, S2에서는, 도 11과 같은 유저 FB(γ)를 작성하였기 때문에, 스텝 S3에서는, 유저 FB(γ)를 프로그램에 배치하는 것으로 한다.In step S1, S2 in FIG. 10, since the user FB (gamma) like FIG.11 was created, it is assumed that user FB (gamma) is arrange | positioned in a program in step S3.

계속해서, 도 12에 도시하는 바와 같이, 프로그램에 배치한 유저 정의 FB를 마우스로 마우스 우클릭하여 표시되는 팝업 메뉴로부터, 또는, 더블클릭하여 표시되는 다이얼로그 등으로부터, 스텝 S1, S2에서 작성한 유저 FB(γ)의 내부 처리의 기술에 사용되고 있는 FB(FB(φ) 또는 FB(ψ))의 파라미터 설정 다이얼로그중 어느 하나를 선택한다(스텝 S4A).Subsequently, as shown in FIG. 12, from the pop-up menu displayed by right-clicking the user-defined FB arrange | positioned in a program, or the dialog etc. displayed by double-clicking, the user FB ( One of the parameter setting dialogs of FB (FB (φ) or FB (ψ)) used for the technique of internal processing of gamma) is selected (step S4A).

또한, 스텝 S4A에서 선택된 파라미터 설정 다이얼로그를 표시하고, 파라미터의 값(PARAMφ 또는 PARAMψ)을 입력한다(스텝 S4B). 이때의 입력치는, 유저 FB(γ)의 파라미터 보존 수단에 설정된다. 최후로, 스텝 S4B에 의한 입력치에 의거하여 유저 정의 FB의 코드화가 실행되고(스텝 S5), 도 10의 조작 순서를 종료한다.In addition, the parameter setting dialog selected in step S4A is displayed, and the parameter value (PARAMφ or PARAMψ) is input (step S4B). The input value at this time is set in the parameter storage means of the user FB (γ). Finally, coding of the user-defined FB is executed based on the input value by step S4B (step S5), and the operation procedure of FIG. 10 is complete | finished.

이때, 스텝 S4A에서는, FB 파라미터 설정 수단 선택 수단(306)이 기능한다. 즉, 유저 정의 FB의 파라미터 설정 다이얼로그로서 내부 처리의 기술에 사용되고 있는 복수의 FB의 파라미터 설정 다이얼로그를 선택하는 수단은, 복수의 유저 FB의 파라미터 설정 수단을 선택하기 위한 FB 파라미터 설정 수단 선택 수단(306)에 상당한다.At this time, in step S4A, the FB parameter setting means selection means 306 functions. In other words, the means for selecting the parameter setting dialogs of the plurality of FBs used in the description of the internal processing as the parameter setting dialog of the user-defined FB includes the FB parameter setting means selecting means 306 for selecting the parameter setting means of the plurality of user FBs. Corresponds to).

또한, 스텝 S1, S2에서, 도 11 내의 유저 정의 FB 영역(4)에 도시하는 바와 같은 유저 FB(γ)를 작성하였기 때문에, 스텝 S4A에서는, 도 12 내의 FBD 프로그램 편집 영역(5)에 도시하는 바와 같은 상태가 된다.In addition, in step S1, S2, since the user FB (gamma) shown in the user defined FB area | region 4 in FIG. 11 was created, in step S4A, it shows in the FBD program editing area | region 5 in FIG. The state becomes as follows.

도 11에서는, FB(φ), FB(ψ)의 내부 처리의 파라미터값(PARAMφ, PARAMψ)을 설정한 상태가 도시되어 있다. 또한, 도 12에서는, 유저 FB(γ)의 내부 처리의 파라미터값을 설정하는 다이얼로그를 선택하고, FB(φ), FB(ψ)의 내부 처리의 파라미터값(PARAMφ, PARAMψ)을 설정하는 상태가 도시되어 있다.In FIG. 11, the state which set the parameter values PARAMphi and PARAMψ of internal processing of FB (phi) and FB (psi) is shown. In Fig. 12, the dialog for setting the parameter value of the internal processing of the user FB (γ) is selected, and the state of setting the parameter values PARAMφ and PARAMψ for the internal processing of FB (φ) and FB (ψ) is shown. Is shown.

이상과 같이, 본 발명의 실시의 형태 3에 의하면, 유저 정의 FB 파라미터 설정 수단(301)은, FB 파라미터 설정 수단 선택 수단(306)(스텝 S4A)을 또한 구비하고, FB 파라미터 설정 수단 선택 수단(306)은, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단(304)이 복수 존재하는 경우에, 복수의 FB 파라미터 설정 수단(304)중에서, 유저 정의 FB 파라미터 설정 수단(301)으로서 이용하는 FB 파라미터 설정 수단을 선택하기 때문에, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 설정하는 다이얼로그가 2개 이상인 경우에도, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 설정하는 다이얼로그를 제공하는 것이 가능하게 되고, 전술한 것과 동등한 작용 효과를 갖는다.As described above, according to Embodiment 3 of the present invention, the user-defined FB parameter setting means 301 further includes an FB parameter setting means selecting means 306 (step S4A), and the FB parameter setting means selecting means ( 306 is a user defined FB parameter setting means 301 among the plurality of FB parameter setting means 304 when there are a plurality of FB parameter setting means 304 of the FB used for the description of the internal processing of the user defined FB. Since the FB parameter setting means to be used is selected, even if there are two or more dialogs for setting the parameters used in the internal processing of the user-defined FB, a dialog for setting the parameters used in the internal processing of the user-defined FB is provided. It becomes possible and has an effect equivalent to what was mentioned above.

실시의 형태 4Embodiment 4

또한, 상기 실시의 형태 1 내지 3에서는, 유저 정의 FB의 내부 처리의 기술로 이용하고 있는 FB가 가지는 모든 파라미터를 유저 정의 FB로부터 설정하기 위해, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그로서, 유저 정의 FB로부터 직접 사용하여 유저 정의 FB의 다이얼로그를 제공하였다.Further, in the first to third embodiments, the FB used in the description of the internal processing of the user-defined FB is set in order to set all the parameters of the FB used in the description of the internal processing of the user-defined FB from the user-defined FB. As the parameter setting dialog, a dialog of the user-defined FB was provided directly from the user-defined FB.

그러나, 유저 정의 FB의 내부 처리를 기술할 때에, FB의 파라미터 설정 다이얼로그로 설정을 행하고, 유저 정의 FB를 사용할 때에, 항상 고정적인 값으로 하고 싶은 파라미터가 있는 경우에는, 유저 정의 FB로부터 파라미터 설정 다이얼로그를 추출하지 않도록 하는 것이 바람직하다.However, when the internal processing of the user defined FB is described, when the parameter is set in the parameter setting dialog of the FB, and there are parameters that are always desired to be fixed when the user defined FB is used, the parameter setting dialog is defined from the user defined FB. It is preferable not to extract.

이하, 도 13 내지 도 17을 참조하면서, 상기 목적을 달성하기 위한 본 발명의 실시의 형태 4에 관해 설명한다.EMBODIMENT OF THE INVENTION Hereinafter, Embodiment 4 of this invention for achieving the said objective is demonstrated, referring FIGS. 13-17.

또한, 본 발명의 실시의 형태 4에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치의 구성은, 도 1에 도시한 바와 같다.In addition, the structure of the program creation support apparatus and program execution apparatus which concerns on Embodiment 4 of this invention is as showing in FIG.

도 13은 본 발명의 실시의 형태 4의 기능 구성을 도시하는 블록도이고, 전술(도 9 참조)한 것과 같은 것에 관해서는, 전술한 것과 동일한 부호를 붙이고 상세 기술을 생략한다. 이 경우, 유저 정의 FB 작성 수단(303)은, FB 파라미터 설정 수단 지정 수단(307)을 또한 구비하고 있고, FB 파라미터 설정 수단 지정 수단(307)은, 유저 정의 FB 파라미터 설정 수단(301) 내의 FB 파라미터 설정 수단 선택 수단(306)과 관련하고 있다.FIG. 13 is a block diagram showing the functional configuration of Embodiment 4 of the present invention, and the same reference numerals as those described above are omitted for the same descriptions as those described above (see FIG. 9). In this case, the user defined FB creation means 303 further includes an FB parameter setting means designation means 307, and the FB parameter setting means designation means 307 is an FB in the user defined FB parameter setting means 301. Associated with the parameter setting means selection means 306.

도 14는 본 발명의 실시의 형태 4를 도식적으로 도시하는 블록도이고, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그를 유저 정의 FB로부터 직접 사용하여, 유저 정의 FB의 다이얼로그를 제공함과 함께, 상기 목적을 달성하는 경우의 구성을 도시하고 있다.Fig. 14 is a block diagram schematically showing Embodiment 4 of the present invention, using a parameter setting dialog of the FB used in the description of the internal processing of the user-defined FB directly from the user-defined FB, and using the dialog of the user-defined FB. In addition, the configuration in the case of achieving the above object is shown.

도 15는 본 발명의 실시의 형태 4에 의한 파라미터 설정 순서를 도시하는 플로우 차트이고, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그를, 유저 정의 FB로부터 직접 사용하는지의 여부를 지정 가능하게 하기 위한 구성을 도시하고 있다.Fig. 15 is a flowchart showing the parameter setting procedure according to the fourth embodiment of the present invention, and it is shown whether or not the parameter setting dialog of the FB used in the description of the internal processing of the user-defined FB is directly used from the user-defined FB. The structure for enabling designation is shown.

도 14에서, 프로그램 작성 장치(1)는, 전술(도 3 참조)한 구성에 더하여, FB 파라미터 설정 수단 지정 수단(307)에 대응한 FB 파라미터 설정 수단 지정 수단(99)을 구비하고 있다.In FIG. 14, in addition to the above-described configuration (see FIG. 3), the program generating device 1 includes an FB parameter setting means designation means 99 corresponding to the FB parameter setting means designation means 307.

도 15에서는, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그를, 유저 정의 FB로부터 직접 사용하는지의 여부를 지정하고, 사용한다고 지정된 FB의 파라미터 설정 다이얼로그를, 유저 정의 FB로부터 직접 사용함에 의해, 유저 정의 FB를 프로그램에서 사용할 때의 파라미터를 설정하기 위한 조작 순서가 도시되어 있다.In Fig. 15, the parameter setting dialog of the FB used in the description of the internal processing of the user-defined FB is specified directly from the user-defined FB, and the parameter setting dialog of the designated FB is directly used from the user-defined FB. By using, the operation procedure for setting the parameter when using a user defined FB in a program is shown.

도 15에서, 스텝 S1 내지 S5는, 전술(도 10 참조)한 것과 같은 조작이고, 유저 FB 작성시의 스텝 S2에 계속해서 스텝 S6가 추가된 점이 전술한 것과 다르다.In FIG. 15, steps S1 to S5 are the same operations as those described above (see FIG. 10), and differ from the above in that step S6 is added after step S2 at the time of user FB creation.

도 16은 유저 정의 FB로부터 직접 사용할 수 있도록 지정하기 위한 상태를 도시하는 설명도이다. 또한, 도 17은 도 15 내의 스텝 S4A에 의한 조작 후의 상태 를 도시하는 설명도이고, 전술한 도 12에 대응하고 있다.It is explanatory drawing which shows the state for specifying that it can use directly from a user-defined FB. 17 is explanatory drawing which shows the state after the operation by step S4A in FIG. 15, and respond | corresponds to FIG. 12 mentioned above.

도 14 내의 FB 파라미터 설정 수단 지정 수단(99)은, 트리 뷰(2)의 유저 FB(γ)를 마우스 우클릭하여 표시되는 팝업 메뉴로부터 FB 파라미터 설정 수단 지정 지시를 행하거나, 또는, 유저 정의 FB 편집 영역(6)상의 공백 영역을 마우스 우클릭하여 표시되는 팝업 메뉴로부터 FB 파라미터 설정 수단 지정 지시를 행함에 의해, 표시된다.The FB parameter setting means designation means 99 in FIG. 14 issues FB parameter setting means designation instructions from the pop-up menu displayed by right-clicking on the user FB γ in the tree view 2 or edits user-defined FB. It is displayed by giving the FB parameter setting means designation instruction from the pop-up menu displayed by right-clicking on the blank area on the area 6.

이로써, FB(γ) 파라미터 설정 수단 지정 수단(99)에서는, 유저 정의 FB의 내부 처리에 기술되어 있는 복수의 FB의 파라미터 설정 수단중에서, 유저 정의 FB 파라미터 설정 수단(301)으로서 이용하는 것을 지정할 수 있다.Thereby, in the FB (γ) parameter setting means designation means 99, it is possible to designate what is used as the user defined FB parameter setting means 301 among the parameter setting means of the plurality of FBs described in the internal processing of the user defined FB. .

본 발명의 실시의 형태 4에서도, 전술한 실시의 형태 3과 마찬가지로, 스텝 S1, S2에서 유저 FB(γ)(도 11 참조)를 작성한 것으로 한다. 또한, 유저 FB(γ)에는, FB(φ) 및 FB(ψ)가 기술되어 있고, FB(φ), FB(ψ)는, 각각, 파라미터값(PARAMφ, PARAMψ)을 갖고 있는 것으로 한다.In Embodiment 4 of the present invention, similarly to Embodiment 3 described above, it is assumed that a user FB (γ) (see FIG. 11) is created in Steps S1 and S2. In addition, FB (phi) and FB (psi) are described in user FB (gamma), and it is assumed that FB (phi) and FB (psi) have parameter values PARAMphi and PARAMψ, respectively.

도 15에서, 유저 FB 작성시의 스텝 S2에 계속해서, 상기 마우스 우클릭에 의해 FB 파라미터 설정 수단 지정 수단(99)(도 14 참조)을 표시하고, 유저 FB의 파라미터 설정 다이얼로그로서 사용하는 FB의 파라미터 설정 다이얼로그를 지정한다(스텝 S6),In FIG. 15, following the step S2 at the time of user FB creation, the FB parameter setting means designation means 99 (refer to FIG. 14) is displayed by the mouse right click, and the parameters of the FB to be used as the parameter setting dialog of the user FB. Specify the setting dialog (step S6).

이때, 스텝 S6에서, FB 파라미터 설정 수단 지정 수단(99)에는, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB중의, 파라미터 설정 다이얼로그를 갖는 FB의 명칭이 일람으로 표시된다. 또한, 도 16에 도시하는 바와 같이, FB 파라미터 설정 수단 지정 수단(99)에는, 파라미터 설정 다이얼로그를 유저 정의 FB로부터도 직접 사용할 수 있도록 하는지의 여부를 지정하기 위한 체크 박스가 표시된다. 이로써, FB(φ)의 파라미터 설정 다이얼로그만을, 유저 정의 FB로부터도 직접 사용할 수 있도록 지정하는 것으로 한다.At this time, in step S6, in the FB parameter setting means designation means 99, the names of the FBs having the parameter setting dialog among the FBs used for the description of the internal processing of the user-defined FB are displayed in a list. In addition, as shown in Fig. 16, the FB parameter setting means designation means 99 displays a check box for designating whether or not the parameter setting dialog can be directly used from the user-defined FB. By this, only the parameter setting dialog of FB (phi) shall be designated so that it can also be used directly from a user defined FB.

스텝 S1, S2에서 도 11 내의 유저 정의 FB 영역(4)에 도시하는 바와 같은 유저 FB(γ)를 작성하였기 때문에, 스텝 S6에 계속되는 스텝 S3에서는, 전술한 바와 같이, 유저 FB(γ)를 프로그램에 배치하는 것으로 한다.Since the user FB (gamma) as shown to the user defined FB area | region 4 in FIG. 11 was created in step S1, S2, in step S3 following step S6, as described above, the user FB (gamma) is programmed. It shall be arranged in.

계속해서, 스텝 S4A에서는, 프로그램에 배치한 유저 정의 FB를, 마우스 우클릭으로 표시되는 팝업 메뉴로부터, 또는, 마우스의 더블클릭으로 표시되는 다이얼로그로부터, 스텝 S1, S2에서 작성한 유저 FB(γ)의 내부 처리의 기술에 사용되고 있는 FB(φ) 또는 FB(ψ)의 파라미터 설정 다이얼로그중의, 스텝 S3에서 지정한 다이얼로그의 일람을 표시하고, 그 어느 하나를 선택한다.Subsequently, in step S4A, the user-defined FB placed in the program is displayed from the pop-up menu displayed by right-clicking the mouse, or from the dialog displayed by double-clicking the mouse. The list of dialogs specified in step S3 in the parameter setting dialog of FB (φ) or FB (ψ) used in the description of the process is displayed and one of them is selected.

또한, 스텝 S4B에서는, 스텝 S4A에서 선택된 다이얼로그를 표시하고, 파라미터값(PARAMφ)을 입력한다. 이때의 입력치는, 유저 FB(γ)의 파라미터 보존 수단에 설정된다. 최후로, 스텝 S5에서, 입력치에 의거하여 유저 정의 FB가 실행되고, 도 15의 조작 순서를 종료한다.In step S4B, the dialog selected in step S4A is displayed, and the parameter value PARAMφ is input. The input value at this time is set in the parameter storage means of the user FB (γ). Finally, in step S5, the user-defined FB is executed based on the input value, and the operation procedure of FIG. 15 ends.

이 경우, 유저 FB 작성시의 스텝 S6에서, 도 16에 도시하는 바와 같이, FB(φ)의 파라미터 설정 다이얼로그를 유저 정의 FB로부터도 직접 사용할 수 있도록 지정하기 위해, 체크 박스에 체크를 넣었기 때문에, 스텝 S4A에서는, 도 17에 도시하는 바와 같은 상태가 된다.In this case, in step S6 at the time of creating the user FB, as shown in Fig. 16, a check box is checked in order to specify that the parameter setting dialog of FB (φ) can be directly used from the user-defined FB. In step S4A, the state is as shown in FIG. 17.

도 17에서는, 유저 FB(γ)의 내부 처리의 파라미터값을 설정하는 다이얼로그를 선택하고, FB(φ)의 내부 처리의 파라미터값(PARAMφ)을 설정하는 상태가 도시되어 있다.In FIG. 17, the state which selects the dialog which sets the parameter value of the internal process of user FB ((gamma)), and sets the parameter value PARAM (phi) of internal process of FB ((phi)) is shown.

이상과 같이, 본 발명의 실시의 형태 4에 의하면, 유저 정의 FB 작성 수단(303)은, FB 파라미터 설정 수단 지정 수단(307)(FB 파라미터 설정 수단 지정 수단(99))(스텝 S6)을 또한 구비하고, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단(304)이 복수 존재하는 경우에, 복수의 FB 파라미터 설정 수단(304)중에서, 유저 정의 FB 파라미터 설정 수단(301)으로서 이용하는 FB 파라미터 설정 수단을 지정한다. 또한, FB 파라미터 설정 수단 선택 수단(306)(스텝 S4A)은, 복수의 FB 파라미터 설정 수단(304)중의, FB 파라미터 설정 수단 지정 수단(307)에 의해 지정된 FB 파라미터 설정 수단(301)만을 표시한다.As described above, according to the fourth embodiment of the present invention, the user-defined FB creating means 303 further includes the FB parameter setting means specifying means 307 (FB parameter setting means specifying means 99) (step S6). In the case where a plurality of FB parameter setting means 304 of the FB is provided and used for the description of the internal processing of the user defined FB, among the plurality of FB parameter setting means 304, the user-defined FB parameter setting means 301 Specify the FB parameter setting means to be used as a function. In addition, the FB parameter setting means selection means 306 (step S4A) displays only the FB parameter setting means 301 designated by the FB parameter setting means designation means 307 among the plurality of FB parameter setting means 304. .

이로써, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그를 유저 정의 FB로부터 직접 사용함에 의해, 유저 정의 FB의 다이얼로그를 제공함과 함께, 유저 정의 FB의 내부 처리를 기술할 때에 FB의 파라미터 설정 다이얼로그에서 설정을 행하여 유저 정의 FB를 사용할 때에는 항상 고정적인 값으로 하고 싶은 파라미터가 있는 경우에는, 유저 정의 FB로부터 파라미터 설정 다이얼로그를 추출하지 않도록 할 수 있다.Thus, by using the FB parameter setting dialog directly used by the user-defined FB in describing the internal processing of the user-defined FB, the user-defined FB dialog is provided and the internal processing of the user-defined FB is described when describing the internal processing of the user-defined FB. When using a user-defined FB by setting in the parameter setting dialog, if there is a parameter that you want to always have a fixed value, the parameter setting dialog can not be extracted from the user-defined FB.

실시의 형태 5Embodiment 5

또한, 상기 실시의 형태 1 내지 4에서는, 유저 정의 FB의 내부 처리의 기술 에서 이용하고 있는 FB가 갖는 파라미터를 전부 유저 정의 FB로부터 설정하기 위해, 유저 정의 FB의 내부 처리를 기술할 때에 FB의 파라미터 설정 다이얼로그로 설정을 행하고, 또한, 유저 정의 FB를 사용할 때에는 항상 분류적인 값으로 하고 싶은 파라미터가 있는 경우에는, 해당하는 파라미터의 FB의 파라미터 설정 다이얼로그를, 유저 정의 FB로부터 직접 사용하는지의 여부를 지정하기 위해, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 파라미터 설정 다이얼로그를 유저 정의 FB로부터 직접 사용함에 의해, 유저 정의 FB의 다이얼로그를 제공하였다.In the first to fourth embodiments, the parameters of the FB are described when describing the internal processing of the user-defined FB in order to set all the parameters of the FB used in the description of the internal processing of the user-defined FB from the user-defined FB. If there is a parameter to be set in the setting dialog and the user-defined FB always wants to be classified, specify whether to use the parameter setting dialog of the corresponding parameter FB directly from the user-defined FB. For this purpose, the dialog of the user defined FB was provided by directly using the parameter setting dialog of the FB used in the description of the internal processing of the user defined FB directly from the user defined FB.

그러나, 특정한 처리를 FB(펑션 블록)의 형태로 캡슐화한다는 유저 정의 FB의 성질을 고려하면, 유저 정의 FB를 사용할 때에 가변(可變)으로 하고 싶은 파라미터만을 유저 정의 FB의 다이얼로그로부터 설정할 수 있도록 하고, 그 밖의 파라미터는, 유저 정의 FB의 내부 처리를 기술할 때에 FB의 파라미터 설정 다이얼로그로 설정을 행하고, 유저 정의 FB를 사용할 때에는 항상 고정적인 값으로 하는 것이 바람직하다.However, given the nature of user-defined FBs that encapsulate specific processing in the form of FBs (function blocks), only the parameters that you want to be variable when using user-defined FBs can be set from the dialog of user-defined FBs. The other parameters are preferably set in the parameter setting dialog of the FB when describing the internal processing of the user defined FB, and always set to a fixed value when using the user defined FB.

예를 들면, 하나의 FB의 파라미터 설정 다이얼로그에서 2개 이상의 파라미터를 설정하는 경우에, 그 중 일부의 파라미터를 고정적으로 하고, 다른 파라미터를 유저 정의 FB의 다이얼로그로부터 설정할 수 있도록 하고 싶은 경우에, 전술한 실시의 형태 1 내지 4에서는, 이것을 실현할 수가 없다.For example, in the case where two or more parameters are set in the parameter setting dialog of one FB, some of the parameters are fixed and other parameters can be set from the user-defined FB dialog. In Embodiments 1 to 4, this cannot be realized.

따라서, FB의 파라미터 설정 다이얼로그의 각각을 사용하는지의 여부의 지정(상기실시의 형태 4 참조)이 아니라, 개개의 파라미터의 각각을 가변으로 하는지의 여부를 지정하는 것이 바람직하다.Therefore, it is preferable not to specify whether to use each of the parameter setting dialogs of the FB (see Embodiment 4 above) but to specify whether each of the individual parameters is variable.

이하, 도 18 내지 도 23을 참조하면서, 상기 목적을 달성하기 위해, 유저 정의 FB의 다이얼로그를 작성하는 유저 정의 FB 파라미터 설정 수단 작성 수단을 마련한 본 발명의 실시의 형태 5에 관해 설명한다.Hereinafter, with reference to FIGS. 18-23, Embodiment 5 of this invention provided the user defined FB parameter setting means creation means which produces the dialog of a user defined FB in order to achieve the said objective.

또한, 본 발명의 실시의 형태 5에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치의 구성은, 도 1에 도시한 바와 같다.In addition, the structure of the program creation support apparatus and program execution apparatus which concerns on Embodiment 5 of this invention is as showing in FIG.

도 18은 본 발명의 실시의 형태 5의 기능 구성을 도시하는 블록도이고, 전술(도 2, 도 9, 도 13 참조)한 것과 같은 것에 관해서는, 전술한 것과 동일한 부호를 붙이고 상세 기술을 생략한다. 이 경우, 유저 정의 FB 작성 수단(303)은, FB 파라미터 설정 수단 지정 수단(307)에 대신하여, 유저 정의 FB 파라미터 설정 수단(301)에 관련된 유저 정의 FB 파라미터 설정 수단 작성 수단(308)을 구비하고 있다.FIG. 18 is a block diagram showing the functional configuration of Embodiment 5 of the present invention, and the same reference numerals as those described above are omitted for the same descriptions as those described above (see FIGS. 2, 9, and 13), and detailed description thereof is omitted. do. In this case, the user defined FB parameter setting means 303 includes user defined FB parameter setting means creation means 308 associated with the user defined FB parameter setting means 301 instead of the FB parameter setting means designation means 307. Doing.

유저 정의 FB 파라미터 설정 수단 작성 수단(308)은, 파라미터 취득 수단(309)과, 파라미터 관련시킴 설정 수단(310)을 가지며, 파라미터 취득 수단(309)은, 유저 정의 FB의 처리 내용(내부 처리의 기술에 사용되고 있는 FB의 처리)에 관련되는 파라미터를 취득한다. 또한, 파라미터 관련시킴 설정 수단(310)은, 작성된 유저 정의 FB 파라미터 설정 수단(301)의 각 파라미터 설정 요소와 파라미터 취득 수단(309)에 의해 취득한 파라미터를 관련시킨다.The user defined FB parameter setting means creation means 308 has a parameter acquisition means 309 and a parameter association setting means 310, and the parameter acquisition means 309 is configured to process the contents of the user defined FB (internal processing). Gets the parameters related to FB processing used in the description). In addition, the parameter association setting unit 310 associates each parameter setting element of the created user-defined FB parameter setting unit 301 with a parameter acquired by the parameter obtaining unit 309.

도 19는 본 발명의 실시의 형태 5를 도식적으로 도시하는 블록도이고, 전술(도 3, 도 14 참조)한 것과 같은 것에 관해서는, 전술한 것과 동일한 부호가 붙어 있다.19 is a block diagram schematically showing a fifth embodiment of the present invention, and the same reference numerals as those described above are attached to the same ones described above (see FIGS. 3 and 14).

도 19에서, 프로그램 작성 장치(1)는, 유저 정의 FB 다이얼로그 편집 영역(7)과, 유저 정의 FB 다이얼로그 편집용의 GUI(그래피컬 유저 인터페이스 : Graphical User Interface) 부품을 표시하는 유저 정의 FB 다이얼로그 편집용 GUI 부품 영역(8)을 구비하고 있다.In FIG. 19, the program creation device 1 is for editing a user-defined FB dialog that displays a user-defined FB dialog editing area 7 and GUI (Graphical User Interface: Graphical User Interface) components for editing a user-defined FB dialog. The GUI component area 8 is provided.

유저 정의 FB 다이얼로그 편집 영역(7) 및 유저 정의 FB 다이얼로그 편집용 GUI 부품 영역(8)은, 유저에 의해 유저 정의 FB 파라미터 설정 수단(301)을 작성하기 위한 유저 정의 FB 파라미터 설정 수단 작성 수단(308)을 구성하고 있다. 이로써, 유저는, 작성한 유저 정의 FB의 파라미터를 설정하는 다이얼로그를 작성할 수 있다.The user defined FB dialog editing area 7 and the user defined FB dialog editing GUI part area 8 are user defined FB parameter setting means creating means 308 for creating a user defined FB parameter setting means 301 by a user. ). Thereby, a user can create the dialog which sets the parameter of the created user defined FB.

다음에, 도 20의 플로우 차트와 함께, 도 21의 설명도를 참조하면서, 도 19에 도시한 본 발명의 실시의 형태 5에 의한 조작 순서(유저 정의 FB의 파라미터를 설정하는 다이얼로그의 작성부터 유저 정의 FB를 프로그램에서 사용할 때의 파라미터의 설정까지의 순서)에 관해 설명한다.Next, with reference to the explanatory drawing of FIG. 21 with the flowchart of FIG. 20, operation procedure (the creation of the dialog which sets the parameter of user defined FB) according to Embodiment 5 of this invention shown in FIG. The procedure up to the parameter setting when using the definition FB in a program will be described.

도 20에서, 스텝 S1 내지 S5는, 전술(도 4 참조)한 것과 같은 조작이고, 유저 FB 작성시의 스텝 S2의 후에, 유저 정의 FB 파라미터 설정 수단 작성 수단(308)에 대응한 조작(스텝 S7, S8)을 추가한 점이 전술한 것과 다르다.In FIG. 20, steps S1 to S5 are the same operations as those described above (see FIG. 4), and after step S2 at the time of user FB creation, operations corresponding to the user defined FB parameter setting means creating means 308 (step S7). , S8) is different from the above.

도 21 및 도 22는 스텝 S7, S8의 개념을 도시하는 설명도이고, 유저 정의 FB 다이얼로그 편집용 GUI 부품 영역(8)과, 유저 정의 FB 다이얼로그 편집 영역(7)과, 파라미터 관련시킴 다이얼로그(9)와의 관계를 도식적으로 도시하고 있다. 파라미터 관련시킴 다이얼로그(9)는, 파라미터 관련시킴 설정 수단(310)을 구성하고 있다. 또한, 도 23은 도 20 내의 스텝 S4에 의한 조작 후의 상태를 도시하는 설명도이고, 전술한 도 12, 도 17에 대응하고 있다.21 and 22 are explanatory diagrams showing the concept of steps S7 and S8. The GUI part area 8 for user defined FB dialog editing, the user defined FB dialog editing area 7, and the parameter association dialog 9 ) Is shown schematically. The parameter association dialog 9 constitutes a parameter association setting means 310. 23 is explanatory drawing which shows the state after the operation by step S4 in FIG. 20, and respond | corresponds to FIG. 12, 17 mentioned above.

여기서는, 전술한 실시의 형태 2와 마찬가지로, 도 20 내의 스텝 S1, S2에서, 도 11에 도시하는 바와 같은 유저 FB(γ)를 작성한 것으로 하고, 유저 FB(γ)에는, FB(φ), FB(ψ)가 기술되어 있고, FB(φ), FB(ψ)는, 각각, 파라미터값(PARAMφ, PARAMψ)을 갖고 있는 것으로 한다.Here, similarly to the second embodiment described above, in step S1 and S2 in FIG. 20, a user FB (γ) as shown in FIG. 11 is created. In the user FB (γ), FB (φ) and FB (?) is described, and FB (?) and FB (?) are assumed to have parameter values PARAM? and PARAM ?, respectively.

우선, 도 19 내의 트리 뷰(2)의 유저 FB(γ)를 마우스 우클릭하여 표시되는 팝업 메뉴로부터 다이얼로그 편집 지시를 행하거나, 또는, 유저 정의 FB 편집 영역(6)상의 공백 영역을 마우스 우클릭하여 표시되는 팝업 메뉴로부터 다이얼로그 편집 지시를 행함에 의해, 유저 정의 FB 다이얼로그 편집 영역(7)을 표시하고, 유저 FB용의 다이얼로그를 작성한다(스텝 S7). 이로써, 유저 FB(γ)의 다이얼로그를 편집하는 것이 가능한 상태가 된다.First, a dialog editing instruction is executed from the pop-up menu displayed by right-clicking on the user FB (γ) of the tree view 2 in FIG. 19, or right-clicking on a blank area on the user-defined FB editing area 6 to display it. By giving a dialog editing instruction from the pop-up menu, the user-defined FB dialog editing area 7 is displayed, and a dialog for the user FB is created (step S7). Thereby, the state of the dialog of user FB (gamma) can be edited.

유저 정의 FB의 다이얼로그의 편집은, 도 21과 같이, 유저 정의 FB 다이얼로그 편집용 GUI 부품 영역(8)으로부터, 소망하는 GUI 부품을 마우스 선택하여 유저 정의 FB 다이얼로그 편집 영역(7)에 마우스로 이동시킴(드래그&드롭)에 의해, 다이얼로그상에 GUI를 추가한다. 또한, 유저 정의 FB 다이얼로그 편집용 GUI 부품 영역(8)은, 유저 정의 FB 다이얼로그 편집 영역(7)과는 다른 윈도우로 하여도 좋고, 유저 정의 FB 다이얼로그 편집 영역(7)상에 표시하는 메뉴나 툴 바의 형식이라도 좋다.To edit the dialog of the user defined FB, as shown in Fig. 21, the desired GUI part is selected from the GUI part area 8 for user defined FB dialog editing and moved to the user defined FB dialog edit area 7 with the mouse. Drag and drop to add a GUI to the dialog. The GUI part area 8 for user defined FB dialog editing may be a window different from the user defined FB dialog editing area 7, and a menu or a tool to be displayed on the user defined FB dialog editing area 7. It may be in the form of a bar.

다음에, 도 21 내의 다이얼로그상에 배치한 GUI 부품을 마우스 더블클릭하는 등에 의해, 관련시키는 파라미터를 지정하기 위한 파라미터 관련시킴 다이얼로그(9)를 표시하고, 그 GUI 부품과 관련시키는 파라미터를 지정하고, 다이얼로그의 GUI 부품을 파라미터와 관련시킨다(스텝 S8).Next, a parameter association dialog 9 for specifying a parameter to be associated is displayed by double-clicking a GUI component placed on the dialog in FIG. 21, and the parameter associated with the GUI component is designated. The GUI part of the dialog is associated with a parameter (step S8).

파라미터 관련시킴 다이얼로그(9)는, 파라미터 취득 수단(309)에 의해 취득된 파라미터를 일람으로서 표시한다.The parameter association dialog 9 displays the parameters acquired by the parameter acquisition means 309 as a list.

도 21에서는, GUI 부품에 관련시키는 파라미터의 값을 일람으로부터 선택하는 상태가 도시되어 있다.In FIG. 21, the state which selects the value of the parameter related to GUI component from a list is shown.

또한, 유저 정의 FB 다이얼로그 편집 영역(7)의 다이얼로그상의 0K 버튼이나 CANCEL 버튼은, 미리 다이얼로그상에 배치되어 있고, 그 기능도 미리 결정되어 있기 때문에,. 파라미터와의 관련시킴을 행할 수는 없다. 또한, 파라미터 관련시킴 다이얼로그(9)에서는, 어느 FB에 속하는 파라미터인지, 또한, 이미 관련시켜져 있는 파라미터는 그 관련시킴처(先)의 GUI 부품의 명칭을 표시하는, 등의 편리 기능을 적절히 실현할 수가 있다.In addition, since the 0K button and the CANCEL button on the dialog of the user defined FB dialog editing area 7 are arranged on the dialog in advance, the function is also predetermined. It cannot be associated with a parameter. Further, in the parameter association dialog 9, it is possible to appropriately realize a convenient function such as which parameter belongs to which FB, and which parameters are already associated, such as displaying the name of the GUI component of the association. There is a number.

스텝 S7, S8에서는, 스텝 S1, S2와 관련하여, 도 22에 도시하는 바와 같이, 유저 FB(γ)의 다이얼로그를 작성한 것으로 한다. 전술한 바와 같이, 유저 FB(γ)에는, FB(φ) 및 FB(ψ)가 기술되어 있고, 각각, 파라미터값(PARAMφ, PARAMψ)을 갖고 있기 때문에, 유저 FB(γ)의 다이얼로그에서 각각의 파라미터를 설정할 수 있도록, GUI 부품을 배치하여, 도 22와 같이 각각 관련시킨다.In step S7 and S8, as shown in FIG. 22, it is assumed that a dialog of the user FB (γ) is created in association with step S1 and S2. As described above, FB (φ) and FB (ψ) are described in the user FB (γ), and each has parameter values PARAMφ and PARAMψ, so that each user FB (γ) has a parameter value (PARAMφ, PARAMψ). GUI parts are arranged so that parameters can be set, and associated with each other as shown in FIG.

도 22에서는, 유저 정의 FB 다이얼로그 편집용 GUI 부품 영역(8)으로부터 유저 정의 FB 다이얼로그 편집 영역(7)으로의 「Static Text」 및 「Edit Box」의 드 래그&드롭 상태와, GUI 부품의 Static Text를 배치하여 문자열을 파라미터값(PARAMφ, PARAMψ)으로 변경하고, GUI 부품의 「Edit Box」를 배치하고, FB(φ), FB(ψ)가 갖는 파라미터 값(PARAMφ, PARAMψ)과 관련시킴을 설정하는 상태가 도시되어 있다.In FIG. 22, the drag and drop states of "Static Text" and "Edit Box" from the user defined FB dialog editing GUI part area 8 to the user defined FB dialog editing area 7 and the static text of the GUI part. To change the character string to the parameter values (PARAMφ and PARAMψ), to place the "Edit Box" of the GUI component, and to set the relation with the parameter values (PARAMφ and PARAMψ) of FB (φ) and FB (ψ). The state is shown.

이하, 도 20 내의 유저 FB 이용시의 스텝 S3에서는, 유저 FB 작성시의 스텝S1, S2에서 유저 FB(γ)(도 11 참조)를 작성하였기 때문에, 유저 FB(γ)를 프로그램에 배치하는 것으로 한다.Hereinafter, in step S3 at the time of using the user FB in FIG. 20, since the user FB (γ) (see FIG. 11) is created in steps S1 and S2 at the time of creating the user FB, the user FB (γ) is arranged in the program. .

계속되는 스텝 S4에서는, 프로그램에 배치한 유저 정의 FB를 마우스로 더블클릭하는 등에 의해, 스텝 S7, S8에서 작성한 유저 정의 FB의 파라미터 설정 다이얼로그를 표시하고, 파라미터의 값을 입력한다.In subsequent step S4, the parameter setting dialog of the user-defined FB created by step S7, S8 is displayed by double-clicking the user-defined FB arrange | positioned in a program, etc., and a parameter value is input.

파라미터의 입력치는, 스텝 S8에서 관련시킨 파라미터에 설정되고, 스텝 S5에서는 그 값에 의거하여 유저 정의 FB가 실행된다. 이때, 유저 정의 FB의 파라미터 설정 다이얼로그는, 유저 정의 FB 파라미터 설정 수단(301)에 상당한다.The input value of the parameter is set to the parameter associated in step S8, and user defined FB is executed in step S5 based on the value. At this time, the parameter setting dialog of the user defined FB corresponds to the user defined FB parameter setting means 301.

또한, 스텝 S7에서 유저 FB(γ)의 다이얼로그를 작성하였기 때문에(도 22 참조), 스텝 S4에서는, 도 23에 도시하는 바와 같은 상태가 된다.In addition, since the dialog of the user FB (gamma) was created in step S7 (refer FIG. 22), it is in the state as shown in FIG. 23 in step S4.

도 23에서는, 유저 정의 FB 영역(4)으로부터 FBD 프로그램 편집 영역(5)으로의 유저 FB(γ)의 드래그&드롭 상태와, FBD 프로그램 편집 영역(5) 내의 유저 FB(γ) 파라미터 설정 다이얼로그(10)상에서, 유저 FB(γ)의 내부 처리의 파라미터값(PARAMφ, PARAMψ)을 설정하는 상태가 도시되어 있다.In FIG. 23, the drag & drop state of the user FB (γ) from the user-defined FB area 4 to the FBD program editing area 5, and the user FB (γ) parameter setting dialog (in the FBD program editing area 5) On 10), the state of setting the parameter values PARAMφ and PARAMψ of the internal processing of the user FB (γ) is shown.

또한, 스텝 S8에서 GUI 부품과 파라미터를 관련시켰기 때문에(도 22 참조), 유저 정의 FB 다이얼로그 편집 영역(7) 내의 다이얼로그로 표시되어 있는 「PARAMφ」의 우측의 「Edit Box」에 파라미터값을 입력하면, 그 입력치가 FB(φ)의 파라미터값(PARAMφ)으로서 유저 정의 FB 파라미터 설정치 보존 수단에 보존된다. 마찬가지로, 다이얼로그에서 표시되어 있는 「PARAMψ」의 우측의 「Edit Box」에 파라미터값을 입력하면, 그 입력치는 FB(ψ)의 파라미터값(PARAMψ)으로서 유저 정의 FB 파라미터 설정치 보존 수단에 보존된다.In addition, since the GUI component and the parameters are associated with each other in step S8 (see FIG. 22), when a parameter value is input into the "Edit Box" on the right side of "PARAMφ" displayed by a dialog in the user-defined FB dialog editing area 7. The input value is stored in the user-defined FB parameter set value storage means as the parameter value PARAMφ of FB (φ). Similarly, when a parameter value is input in the "Edit Box" on the right side of "PARAMψ" displayed in the dialog, the input value is stored in the user-defined FB parameter setting value storage means as the parameter value PARAMψ of FB (ψ).

최후로, 스텝 S5에서는, 설정된 파라미터값에 의거하여 유저 FB(γ)의 코드화 처리가 실행된다.Finally, in step S5, the coding process of the user FB (γ) is executed based on the set parameter value.

이상과 같이, 본 발명의 실시의 형태 5에 의하면, 유저에 의해 유저 정의 FB 파라미터 설정 수단(301)을 작성하기 위한 유저 정의 FB 파라미터 설정 수단 작성 수단(308)(유저 정의 FB 다이얼로그 편집 영역(7), 유저 정의 FB 다이얼로그 편집용 GUI 부품 영역(8))을 또한 구비하고, 유저 정의 FB 파라미터 설정 수단 작성 수단(308)은, 유저 정의 FB의 처리 내용에 관련되는 파라미터를 취득하는 파라미터 취득 수단(309)과, 작성된 유저 정의 FB 파라미터 설정 수단(301)의 각 파라미터 설정 요소(GUI 부품)와 파라미터 취득 수단(309)에 의해 취득한 파라미터를 관련시키는 파라미터 관련시킴 설정 수단(310)을 구비하고 있다.As described above, according to Embodiment 5 of the present invention, user-defined FB parameter setting means creation means 308 (user-defined FB dialog editing area 7) for creating user-defined FB parameter setting means 301 by a user. ), And the user defined FB dialog editing GUI component area 8, and the user defined FB parameter setting means creating means 308 includes: a parameter acquiring means for acquiring a parameter related to the processing contents of the user defined FB. 309 and parameter association setting means 310 for associating each parameter setting element (GUI component) of the created user-defined FB parameter setting means 301 with the parameters acquired by the parameter obtaining means 309.

이로써, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 설정하는 다이얼로그를 제공하는 것이 가능해지고, 전술한 것과 동등한 작용 효과를 이룸과 함께, 특정한 처리를 펑션 블록이라는 형태로 캡슐화한다는 유저 정의 FB의 성질을 고려한 경우에 대해서도, 유저 정의 FB를 사용할 때에 가변으로 하고 싶은 파라미 터만을 유저 정의 FB의 다이얼로그로부터 설정할 수 있도록 하고, 그 밖의 파라미터는 유저 정의 FB의 내부 처리를 기술할 때에 FB의 파라미터 설정 다이얼로그로 설정을 행하여, 유저 정의 FB를 사용할 때에는 항상 고정적인 값으로 할 수 있다.This makes it possible to provide a dialog for setting parameters used in the internal processing of the user-defined FB, and has the same effect as described above, and the property of the user-defined FB that encapsulates a specific process in the form of a function block. Even in the case of using the user defined FB, only the parameters that are desired to be changed when the user defined FB is used can be set from the dialog of the user defined FB. When setting and using a user defined FB, it can always be set as a fixed value.

구체적으로는, 유저 FB(γ)의 다이얼로그를 작성할 때에, 도 22의 예에서는, PARAMφ 및 PARAMψ의 양쪽의 파라미터 값을 설정할 수 있도록, GUI 부품을 배치하여 관련시켰지만, 이것으로 한하지 않고, 예를 들면, 한쪽만에 대해 GUI 부품을 배치하고 관련시킴으로써, 이 파라미터의 값을 유저 정의 FB의 다이얼로그로부터 가변으로 하고, 다른쪽의 파라미터는 항상 고정치가 사용되도록 할 수 있다.Specifically, in creating the dialog of the user FB (γ), in the example of FIG. 22, the GUI parts are arranged and related so that the parameter values of both PARAMφ and PARAMψ can be set, but the example is not limited thereto. For example, by arranging and associating a GUI component with only one side, the value of this parameter can be changed from the dialog of a user-defined FB, and the other parameter can always use a fixed value.

실시의 형태 6Embodiment 6

또한, 상기 실시의 형태 5에서는, 유저 정의 FB의 내부 처리의 기술에 이용하는 펑션이나 FB(펑션 블록)가 파라미터 설정 다이얼로그를 갖는 경우(예를 들면, 도 43 참조)에 관해 설명하였지만, 도 24 및 도 25에 도시하는 바와 같이, 파라미터 설정 다이얼로그를 갖지 않고 파라미터 단자(PARAM)를 갖고 있는 경우(예를 들면, 도 42 참조)에 적용하여도 좋다.In the fifth embodiment, the case where the function or FB (function block) used for the description of the internal processing of the user-defined FB has a parameter setting dialog (for example, see FIG. 43) has been described. As shown in FIG. 25, it may apply to the case where it does not have a parameter setting dialog and has a parameter terminal PARAM (refer FIG. 42).

이하, 도 20과 함께, 도 24, 도 25를 참조하면서, 본 발명의 실시의 형태 6에 관한 프로그램 작성 지원 장치 및 프로그램 실행 장치에 관해 설명한다. 또한, 본 발명의 실시의 형태 6의 기능 구성은, 도 18에 도시한 바와 같다.Hereinafter, the program creation support device and the program execution device according to Embodiment 6 of the present invention will be described with reference to FIGS. 24 and 25 along with FIG. 20. In addition, the functional structure of Embodiment 6 of this invention is as showing in FIG.

또한, 본 발명의 실시의 형태 6에 의한 조작 순서는, 도 20에 도시한 바와 같지만, 스텝 S1, S2에서 유저 FB(δ)(예를 들면, 도 7 참조)를 작성한 경우에 관해 설명한다.In addition, although the operation procedure by Embodiment 6 of this invention is as showing in FIG. 20, the case where user FB (delta) (for example, FIG. 7) is created in step S1, S2 is demonstrated.

도 24는 본 발명의 실시의 형태 6에 의한 유저 FB(δ)의 다이얼로그 작성 조작을 도시하는 설명도이고, 도 25는 유저 FB 이용시의 상태를 도시하는 설명도이다.FIG. 24 is an explanatory diagram showing a dialog creation operation of the user FB (δ) according to the sixth embodiment of the present invention, and FIG. 25 is an explanatory diagram showing a state when the user FB is used.

도 24에서는, 유저 정의 FB 영역(4)으로부터 FBD 프로그램 편집 영역(5)으로 「Static Text」 및 「Edit Box」의 드래그&드롭 상태와, GUI 부품의 Static Text를 배치하여 문자열을 파라미터값(PARAMξ)으로 변경하고, GUI 부품의 「Edit Box」를 배치하여, 정수 FB가 갖는 정수치와 관련시킴을 설정하는 상태가 도시되어 있다.In FIG. 24, the drag and drop states of "Static Text" and "Edit Box" from the user-defined FB area 4 to the FBD program editing area 5, and the static text of the GUI parts are arranged so that character strings are assigned to parameter values (PARAMξ). ), The "Edit Box" of the GUI component is arranged, and the state of setting the association with the integer value of the constant FB is shown.

또한, 도 25에서는, 유저 정의 FB 영역(4)으로부터 FBD 프로그램 편집 영역(5)으로의 유저 FB(δ)의 드래그&드롭 상태외, FBD 프로그햄 편집 영역(5) 내의 유저FB(δ) 파라미터 설정 다이얼로그(11)상에서, 유저 FB(δ)의 내부 처리의 파라미터값(PARAMξ)을 설정하는 상태가 도시되어 있다.In Fig. 25, the user FB (δ) parameter in the FBD program editing area 5, in addition to the drag & drop state of the user FB (δ) from the user-defined FB area 4 to the FBD program editing area 5, On the setting dialog 11, the state which sets the parameter value PARAMξ of the internal processing of the user FB (delta) is shown.

도 20에서, 스텝 S7, S8에 의해, 도 24에 도시하는 바와 같이, 유저 FB(δ)의 다이얼로그를 작성하여 파라미터의 관련시킴이 행하여지고, 계속해서, 스텝 S3 내지 스텝 S5에 의해, 도 25에 도시하는 바와 같은 상태가 된다.In FIG. 20, as shown in FIG. 24, the dialog of the user FB (delta) is produced | generated and the parameter association is performed by step S7, S8. Then, by step S3-step S5, FIG. It will be in a state as shown in FIG.

이 경우, 파라미터 취득 수단(309)은, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB중, 파라미터를 보존하는 FB로부터 해당 파라미터를 취득하도록 되어 있다.In this case, the parameter acquiring means 309 acquires the parameter from the FB storing the parameter among the FBs used for the description of the internal processing of the user defined FB.

즉, 유저 정의 FB의 내부 처리의 기술에 이용하고 있는 펑션이나 펑션 블록의 내부 처리에서 사용하는 파라미터가 도 42의 형태이었던 경우에도, 도 45에 도 시하는 바와 같은 기술로는 하지 않고, 해당 파라미터를 유저 정의 FB의 입력 단자로는 하지 않고, 도 7에 도시하는 바와 같이, 그 파라미터의 값을 정수 FB로 공급하도록 기술한다.In other words, even when the function used in the internal processing of the user-defined FB and the parameter used in the internal processing of the function block are in the form of FIG. 42, the description is not performed using the technique shown in FIG. It is described that the value of the parameter is supplied to the constant FB as shown in Fig. 7 without using the input terminal of the user-defined FB.

이상과 같이, 본 발명의 실시의 형태 6에 의하면, 파라미터 취득 수단(309)은, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB중, 파라미터를 보존하는 FB로부터 해당 파라미터를 취득하기 때문에, 유저 정의 FB의 내부 처리에서 사용하는 정수 FB의 정수치를 설정하는 다이얼로그를 제공할 수가 있고, 전술한 것과 동등한 작용 효과를 이룬다.As described above, according to the sixth embodiment of the present invention, since the parameter acquiring means 309 acquires the parameter from the FB storing the parameter among the FBs used for the description of the internal processing of the user-defined FB, the user The dialog for setting the constant value of the constant FB used in the internal processing of the positive FB can be provided, and has the same effect as described above.

실시의 형태 7Embodiment 7

또한, 상기 실시의 형태 5, 6에서는, 유저에 의해 유저 정의 FB의 다이얼로그를 작성함에 의해, 유저 정의 FB를 사용할 때에 가변으로 하고 싶은 파라미터만을 유저 정의 FB의 다이얼로그로부터 설정 가능하게 하고, 그 밖의 파라미터는 유저 정의 FB의 내부 처리를 기술할 때에 FB의 파라미터 설정 다이얼로그에서 설정을 행하고, 유저 정의 FB를 사용할 때에는 항상 고정적인 값으로 하여, 특정한 처리를 펑션 블록이라는 형태로 캡슐화한다는 유저 정의 FB의 성질을 손상시키는 일 없이 목적 효과를 달성하였다.Further, in the above-described Embodiments 5 and 6, by creating a dialog of the user-defined FB by the user, only the parameters that are desired to be variable when using the user-defined FB can be set from the dialog of the user-defined FB, and other parameters. When defining the user-defined FB's internal processing, the user sets the parameters in the parameter setting dialog box of the FB. When using the user-defined FB, the user-defined FB is set to a fixed value. The desired effect was achieved without damaging.

그러나, 상기 실시의 형태 5, 6에 의한 조작 순서(도 20 참조)에서는, 유저 정의 FB의 내부 처리의 기술에서 이용하고 있는 FB가 갖는 파라미터의 설정 다이얼로그와 같은 기능을 실현하는 유저 정의 FB의 다이얼로그를 작성하고(스텝 S7), 또한 파라미터를 관련시킨다(스텝 S8)고 하는, 새로운 작업이 발생하게 된다. 따라 서, 유저 정의 FB의 다이얼로그를 자동적으로 생성하여, 도 20 내의 추가 작업(스텝 S7, S8)을 불필요하게 하는 것이 바람직하다.However, in the operation procedure (refer FIG. 20) by the said Embodiment 5, 6, the dialog of the user defined FB which implement | achieves the same function as the parameter setting dialog which the FB used by the technique of internal processing of a user defined FB has. A new job is generated to create a (step S7) and associate a parameter (step S8). Therefore, it is preferable to automatically generate the dialog of the user-defined FB so that the additional work (steps S7, S8) in FIG. 20 is unnecessary.

이하, 도 20과 함께, 도 26 내지 도 32를 참조하면서, 유저 정의 FB의 다이얼로그를 자동적으로 생성하여 새로운 작업(스텝 S7, S8)을 불필요하게 한 본 발명의 실시의 형태 7에 관해 설명한다.The following describes a seventh embodiment of the present invention in which a dialog of a user-defined FB is automatically generated and no new work (steps S7, S8) is necessary, with reference to FIGS. 26 to 32.

도 26은 본 발명의 실시의 형태 7의 기능 구성을 도시하는 블록도이고, 전술(도 18 참조)한 것과 같은 것에 관해서는, 전술한 것과 동일한 부호를 붙이고 상세 기술을 생략한다. 이 경우, 유저 정의 FB 작성 수단(303) 내의 유저 정의 FB 파라미터 설정 수단 작성 수단(308)은, 파라미터 취득 수단(309) 및 파라미터 관련시킴 설정 수단(310)에 대신하여, 파라미터 정보 취득 수단(311)을 구비하고 있다. 또한, 파라미터를 갖는 FB에서는, 그 파라미터에 관한 상세 정보를 보존하고 있다.Fig. 26 is a block diagram showing the functional configuration of the seventh embodiment of the present invention, and the same reference numerals as those described above are omitted for clarity and the like. In this case, the user defined FB parameter setting means creating means 308 in the user defined FB creating means 303 replaces the parameter obtaining means 309 and the parameter association setting means 310 with the parameter information obtaining means 311. ). In the FB having parameters, detailed information about the parameters is stored.

구체적으로는, 도 27의 설명도에 도시하는 바와 같이, 예를 들면 FB(φ) 및 정수 FB에 관해, 데이터형, 값의 상한치, 값의 하한치, 선택 가능한 값의 일람, 등의 파라미터의 값(φ)에 관한 정보와, 파라미터의 명칭, 다이얼로그상에서 표시할 때의 GUI 부품의 속성(타입, 사이즈, 색 등), 등의 파라미터 설정용의 GUI 정보를 보존하고 있다. 이상의 정보 구성은, 후술하는 도 31, 도 34 및 도 38에서도 같다.Specifically, as shown in the explanatory drawing of FIG. 27, for example, for FB (φ) and constant FB, values of parameters such as data type, upper limit of value, lower limit of value, list of selectable values, and the like. The information on (phi), the name of the parameter, and GUI information for parameter setting such as attributes (type, size, color, etc.) of the GUI component when displayed on the dialog are stored. The above information structure is also the same in FIGS. 31, 34, and 38 described later.

도 27에서는, 전술한 실시의 형태 5에서 이용한 파라미터(φ)를 갖는 FB(φ)와, 전술한 실시의 형태 6에서 이용한 정수치를 갖는 정수 FB를 구체적인 예로서 도시하고 있다.In FIG. 27, the FB (phi) which has the parameter (phi) used in Embodiment 5 mentioned above, and the constant FB which has the integer value used in Embodiment 6 mentioned above are shown as a specific example.

여기서는, FB(φ가 갖는 파라미터(φ)에 관한 정보로서, 데이터형=BOOL, 파 라미터의 명칭=PARAMφ, GUI 부품의 속성=Edit Box를 갖고 있는 것으로 한다. 또한, 정치 FB가 갖는 파라미터인 정수치에 관한 정보로서, 데이터형=BYTE, 파라미터의 명칭=정수치, GUI 부품의 속성=Edit Box를 갖고 있는 것으로 한다.Here, it is assumed that FB (information about the parameter φ of φ) includes data type = BOOL, parameter name = PARAMφ, and GUI component attribute = Edit Box. It is assumed that the information on the integer value includes data type = BYTE, parameter name = integer value, and GUI part attribute = Edit Box.

또한, FB(φ)은 파라미터(φ)를 설정하기 위한 다이얼로그를 갖고 있기 때문에, 파라미터(φ)에 관한 정보가, 그 다이얼로그에서 이용되는 정보와 같은 경우에는, 파라미터(φ)에 관한 정보는, 그 다이얼로그를 표시하는 수단에 격납되어 있는 것을 그대로 이용하여도 좋고, 다른 데이터 테이블로서 보존하여도 좋다.In addition, since the FB (φ) has a dialog for setting the parameter φ, when the information about the parameter φ is the same as the information used in the dialog, the information about the parameter φ is What is stored in the means for displaying the dialog may be used as it is or may be stored as another data table.

도 28은 본 발명의 실시의 형태 7을 도시하는 블록도이고, 프로그램 작성 지원 장치 및 프로그램 실행 장치를 실현하기 위한 프로그램 작성 장치(1)의 주요부를 도식적으로 도시하고 있다. 도 29는 본 발명의 실시의 형태 7에 의한 조작 순서의 주요부를 도시하는 플로우 차트이고, 전술(도 20 참조)한 스텝 S4의 조작에 대응하고 있다. 도 30은 도 29의 조작 후의 상태를 도시하는 설명도이다.Fig. 28 is a block diagram showing Embodiment 7 of the present invention, schematically showing the main parts of a program creation device 1 for realizing a program creation support device and a program execution device. FIG. 29 is a flowchart showing the main part of the operation procedure according to the seventh embodiment of the present invention, and corresponds to the operation of step S4 described above (see FIG. 20). 30 is an explanatory diagram showing a state after the operation in FIG. 29.

또한, 도 31은 파라미터에 관한 상세 정보의 다른 예를 도시하는 설명도이고, 도 32는 다른 정보예인 경우의 다이얼로그 표시 상태를 도시하는 설명도이다.31 is explanatory drawing which shows the other example of the detailed information about a parameter, and FIG. 32 is explanatory drawing which shows the dialog display state in the case of another information example.

다음에, 도 20과 관련시키면서, 본 발명의 실시의 형태 7에 의한 조작 순서에 관해 설명한다.Next, an operation procedure according to Embodiment 7 of the present invention will be described with reference to FIG. 20.

여기서는, 스텝 S1, S2에서, 도 28에 도시하는 바와 같은 유저 EB(ε)를 작성한 경우에 관해 설명한다. 또한, 유저 EB(ε)의 내부 처리의 기술에는, 도 27에 도시하는 FB(φ) 및 정수 FB와, 전술(도 7 참조)한 FB(ξ)가 이용되고 있는 것으로 한다.Here, the case where the user EB (epsilon) as shown in FIG. 28 is created in step S1, S2 is demonstrated. In addition, it is assumed that FB (φ) and constant FB shown in FIG. 27 and FB (ξ) described above (see FIG. 7) are used for the description of the internal processing of the user EB (ε).

이 경우, 도 20 내의 스텝 S4에서, 도 29에 도시하는 스텝 S11 내지 S14를 실행한다.In this case, steps S11 to S14 shown in FIG. 29 are executed in step S4 in FIG. 20.

구체적으로는, 우선, 스텝 S11(파라미터 정보 취득 수단(311))에서, 이하의 조작을 행한다.Specifically, first, the following operation is performed in step S11 (parameter information acquisition means 311).

즉, 도 27과 같이, FB(φ)가 갖는 파라미터(φ)에 관한 정보로서, 데이터형=BOOL, 파라미터의 명칭+PARAMφ, GUI 부품의 속성=Edit Box를 취득하고, 정수 FB가 갖는 파라미터인 정수치에 관한 정보로서, 데이터형=BYTE, 파라미터의 명칭=정수치, GUI 부품의 속성=Edit Box를 취득한다.That is, as shown in Fig. 27, as information about the parameter φ of the FB (φ), data type = BOOL, the name of the parameter + PARAMφ, and the attribute of the GUI component = Edit Box are acquired, and the parameter is the parameter of the constant FB. As information about the integer value, data type = BYTE, parameter name = integer value, and GUI part attribute = Edit Box.

계속해서, 스텝 S12(유저 정의 FB 파라미터 설정 수단(301))에서, 이하의 조작을 행한다.Subsequently, the following operation is performed in step S12 (user defined FB parameter setting means 301).

우선, 스텝 S11에서 취득한 파라미터(φ)에 관한 표시를 행한다. 이때, 파라미터의 명칭이 PARAMφ이기 때문에, 다이얼로그에 「PARAMφ」라는 문자열을 표시한다. 또한, 그 옆에, 파라미터(φ)의 GUI 부품의 속성이 「Edit Box」이기 때문에, 다이얼로그에 「Edit Box」를 표시한다.First, the display regarding the parameter (phi) acquired in step S11 is performed. At this time, since the name of the parameter is PARAMφ, the character string "PARAMφ" is displayed on the dialog. In addition, since the attribute of the GUI component of parameter (phi) is "Edit Box", "Edit Box" is displayed on a dialog.

또한, 그 아래에, 다음의 파라미터인 「정수치」를 표시한다. 여기서, 파라미터의 명칭이 정수치이기 때문에, 다이얼로그에 「정수치」라는 문자열을 표시하고, 그 옆에, 정수치의 GUI 부품의 속성이 「Edit Box」이기 때문에, 다이얼로그에 「Edit Box」를 표시한다.In addition, "integer value" which is the next parameter is displayed below. Here, because the parameter name is an integer value, the string "Integer value" is displayed in the dialog box, and the "Edit Box" is displayed in the dialog box because the attribute of the GUI component of the integer value is "Edit Box". do.

계속해서, 스텝 S13(유저 정의 FB 파라미터 설정 수단(301))에서, 이하의 조작을 행한다.Subsequently, the following operation is performed in step S13 (user defined FB parameter setting means 301).

우선, 파라미터(φ)에 관한 판정을 행한다. 즉, 스텝 S12에서 표시한 다이얼로그상에서 유저가 입력한 값에 대해, 스텝 S11에서 취득한 파라미터값에 관한 정보에 의거하여, 설정된 파라미터값이 올바른지의 여부를 판정한다. 이때, 파라미터의 데이터형이 BOOL이기 때문에, [Edit Box」에 BOOL형의 데이터가 입력된 경우에 올바르다고 판정한다.First, a determination regarding the parameter? Is made. That is, it is determined whether the set parameter value is correct or not based on the information about the parameter value acquired in step S11 with respect to the value input by the user on the dialog displayed in step S12. At this time, since the data type of the parameter is BOOL, it is determined that it is correct when BOOL type data is input to [Edit Box].

또한, 또하나의 파라미터인 정수치를 표시한다. 여기서, 파라미터의 데이터형이 BYTE이기 때문에, 「Edit Box」에 BYTE형의 데이터가 입력된 경우에 올바르다고 판정한다.In addition, an integer value which is another parameter is displayed. Here, since the data type of the parameter is BYTE, it is determined that it is correct when BYTE type data is input to the "Edit Box".

최후로, 스텝 S14(유저 정의 FB 파라미터 설정 수단(301))에서, 이하의 조작을 행한다.Finally, the following operation is performed in step S14 (user defined FB parameter setting means 301).

즉, 스텝 S13에서 올바르다고 판정된 값을, 유저 FB(ε)의 유저 정의 FB 파라미터 설정치 보존 수단(302)이 보존한다. 우선, 파라미터(φ)의 「Edit Box」에 입력된 값을 보존하고, 또한, 또하나의 파라미터인 정수치의 「Edit Box」에 입력된 값을 보존한다.That is, the user-defined FB parameter setting value storage means 302 of the user FB (epsilon) saves the value judged to be correct in step S13. First, the value input to the "Edit Box" of the parameter (phi) is saved, and the value input to the "Edit Box" of the integer value which is another parameter is saved.

이상의 스텝 S11 내지 S14를 실행함에 의해, FBD 프로그램 편집 영역(5)은, 도 30에 도시하는 바와 같은 상태가 된다.By executing the above steps S11 to S14, the FBD program editing area 5 is in a state as shown in FIG.

도 30에서는, 유저 정의 FB 영역(4)으로부터 FBD 프로그램 편집 영역(5)으로의 유저 FB(ε)의 드래그&드롭 상태와, FBD 프로그램 편집 영역(5) 내의 유저 FB(ε) 파라미터 설정 다이얼로그(12)상에서, 유저 FB(ε)의 내부 처리의 파라미터값(PARAMψ)을 설정하는 상태가 도시되어 있다.In FIG. 30, the drag & drop state of the user FB (ε) from the user-defined FB area 4 to the FBD program editing area 5, and the user FB (ε) parameter setting dialog (in the FBD program editing area 5) On 12), the state of setting the parameter value PARAMψ of the internal processing of the user FB (ε) is shown.

이로써, 도 20 내의 스텝 S7, S8을 실행하지 않아도, 유저 EB(ε)의 파라미터를 설정하는 다이얼로그에 관한 처리를 자동적으로 행하도록 할 수가 있다.This makes it possible to automatically perform a process relating to a dialog for setting the parameters of the user EB (ε) without executing steps S7 and S8 in FIG.

즉, 도 29 내의 스텝 S11, S12는, 전술한 스텝 S7에 상당하는 부분을 실행하고, 스텝 S11, S14는, 전술한 스텝 S8에 상당하는 부분을 실행하는 것으로 된다.That is, steps S11 and S12 in FIG. 29 execute a portion corresponding to step S7 described above, and steps S11 and S14 execute a portion corresponding to step S8 described above.

또한, 파라미터에 관한 상세 정보로서는, 도 27의 예로 한하지 않고, 도 31과 같이, 파라미터(τ, κ)에 관한 정보를 보존하여도 좋다.In addition, as detailed information regarding a parameter, it is not limited to the example of FIG. 27, As shown in FIG. 31, the information regarding parameters (tau, k) may be preserve | saved.

이 경우, 도 31 내의 PARAMτ에 대해서는, 스텝 S13에서, 「Edit Box」에 INT형의 데이터가 입력된 경우이며, 또한, 그 값이 0 내지 999의 범위 내라면, 올바르다고 판정한다.In this case, the PARAMτ in FIG. 31 is determined to be correct if the INT type data is input to the "Edit Box" in step S13, and the value is in the range of 0 to 999.

또한, 도 31 내의 PARAMκ에 대해서는, 스텝 S12에서, 도 32에 도시하는 바와 같은 다이얼로그를 표시한다. 즉, 후보의 일람으로부터 소망하는 값을 선택 설정하는 「Combo Box」에 의해, 설정의 후보로서 「1, 2, 3, 4, 5」중에서 PARAMκ의 값을 설정한다.In addition, about PARAMκ in FIG. 31, a dialog as shown in FIG. 32 is displayed in step S12. That is, the "Combo Box" which selects and sets a desired value from a list of candidates sets the value of PARAMκ among "1, 2, 3, 4, 5" as a candidate for setting.

도 32에서는, 유저 EB(ε) 파라미터 설정 다이얼로그(12)상에서, 유저 FB의 내부 처리의 파라미터값(PARAMκ)을 설정하는 상태가 도시되어 있다.In FIG. 32, the state which sets the parameter value PARAMκ of the internal processing of the user FB on the user EB ((epsilon)) parameter setting dialog 12 is shown.

이상과 같이, 본 발명의 실시의 형태 7에 의하면, 유저 정의 FB의 처리 내용에 관련되는 파라미터는, 해당 파라미터의 값에 관한 파라미터값 정보와, 해당 파라미터를 설정하기 위한 GUI 정보를 가지며, 유저 정의 FB 작성 수단(303)은, 파라미터 정보 취득 수단(311)을 또한 구비하고 있다.As described above, according to the seventh embodiment of the present invention, the parameter related to the processing contents of the user-defined FB has parameter value information about the value of the parameter and GUI information for setting the parameter. The FB creation means 303 further includes parameter information acquisition means 311.

파라미터 정보 취득 수단(311)은, 유저 정의 FB의 처리 내용에 관련되는 파 라미터를, 파라미터값 정보 및 GUI 정보의 형식으로 취득하고, 유저 정의 FB 파라미터 설정 수단(301)은, 파라미터 정보 취득 수단(311)이 취득한 GUI 정보에 의거하여 설정 다이얼로그를 표시함과(스텝 S12) 함께, 파라미터 정보 취득 수단(311)이 취득한 파라미터값 정보에 의거하여 설정된 파라미터값이 올바른지의 여부를 판정한다(스텝 S13).The parameter information acquisition unit 311 acquires parameters related to the processing contents of the user-defined FB in the form of parameter value information and GUI information, and the user-defined FB parameter setting unit 301 is a parameter information acquisition unit. The setting dialog is displayed on the basis of the acquired GUI information (311) (step S12), and it is determined whether or not the set parameter value is correct based on the parameter value information acquired by the parameter information obtaining means (311) (step S13). ).

또한, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB중, 파라미터를 보존하는 FB는, 해당 파라미터에 관해, 해당 파라미터의 값에 관한 파라미터값 정보와, 해당 파라미터를 설정하기 위한 GUI 정보를 갖는다.Among the FBs used for the description of the internal processing of the user-defined FB, the FB for storing the parameters has parameter value information about the parameter value and GUI information for setting the parameter.

또한, 파라미터치 정보는, 파라미터의 데이터형과, 파라미터의 상한치와, 파라미터의 하한치와, 파라미터중의 선택 가능한 값의 일람중의 적어도 하나를 갖는다.The parameter value information has at least one of a data type of a parameter, an upper limit of a parameter, a lower limit of a parameter, and a list of selectable values among the parameters.

또한, GUI 정보는, 파라미터의 명칭과, 유저 정의 FB의 다이얼로그상에서 표시할 때의 GUI 부품의 속성을 갖는다.In addition, GUI information has the name of a parameter and the attribute of a GUI component at the time of displaying on the dialog of a user-defined FB.

이로써, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 설정하는 다이얼로그를 자동적으로 제공하는 것이 가능해지고, 전술한 것과 동등한 작용 효과를 갖는 동시에, 다이얼로그를 작성하는 작업(스텝 S7, S8)을 줄일 수 있어, FBD 프로그램의 작성 시간을 더욱 단축할 수 있다.This makes it possible to automatically provide a dialog for setting parameters used in the internal processing of the user-defined FB, and has the same effect as described above, while reducing the work of creating the dialog (steps S7 and S8). As a result, the creation time of the FBD program can be further shortened.

즉, 전술한 실시의 형태 6에서는, 유저 정의 FB의 내부 처리에서 사용하는 파라미터의 소재(존재)만을 자동으로 취득하고, 유저 정의 FB 다이얼로그를 수동으로 작성할 필요가 있는데다가, 유저 정의 FB 다이얼로그상의 GUI 부품과 파라미터 를 수동으로 관련시킬 필요가 있었지만, 본 발명의 실시의 형태 7에서는, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를, 그 상세 정보와 함께 취득하도록 하였기 때문에, 유저 정의 FB의 다이얼로그를 자동 생성할 수 있는데다가, 수동으로 관련시킬 필요도 없다는 효과를 갖는다.That is, in the sixth embodiment described above, only the material (existing) of the parameters used in the internal processing of the user-defined FB is automatically acquired, and the user-defined FB dialog must be manually created, and the GUI on the user-defined FB dialog is used. Although it was necessary to manually associate the parts with the parameters, in the seventh embodiment of the present invention, since the parameters used in the internal processing of the user-defined FB are acquired together with the detailed information, the dialog of the user-defined FB is automatically generated. It has the effect that it can be created and that there is no need to manually associate it.

실시의 형태 8Embodiment 8

또한, 상기 실시의 형태 7에서는, 유저 정의 FB의 다이얼로그를 작성하는 수고를 줄이기 위해, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 설정하는 다이얼로그를 자동적으로 제공하였지만, 도 33 내지 도 37에 도시하는 바와 같이, 유저 정의 FB를 사용할 때에 가변으로 하고 싶은 파라미터만을 유저 정의 FB의 다이얼로그로부터 설정하고, 그 밖의 파라미터는 유저 정의 FB의 내부 처리를 기술할 때에 FB의 파라미터 설정 다이얼로그로 설정하고, 유저 정의 FB를 사용할 때에는 항상 고정적인 값으로 하여도 좋다.In the seventh embodiment, a dialog for automatically setting parameters used in the internal processing of the user-defined FB is automatically provided to reduce the effort of creating the dialog of the user-defined FB. As described above, when using the user-defined FB, only the parameters to be changed are set from the dialog of the user-defined FB, and other parameters are set by the parameter setting dialog of the FB when describing the internal processing of the user-defined FB, and the user-defined FB. May always be a fixed value.

이하, 도 20과 함께, 도 33 내지 도 37을 참조하면서, 상기 실시의 형태 7을 더욱 발전시킨 본 발명의 실시의 형태 8에 관해 설명한다.The following describes an eighth embodiment of the present invention in which the seventh embodiment is further developed with reference to FIGS. 33 to 37 together with FIG. 20.

도 33 내지 도 37은, 각각, 전술한 도 26의 블록도, 도 27의 설명도, 도 28의 블록도, 도 29의 플로우 차트, 도 30의 설명도에 대응하고 있다.33 to 37 correspond to the block diagram of FIG. 26 described above, the explanatory diagram of FIG. 27, the block diagram of FIG. 28, the flowchart of FIG. 29, and the explanatory diagram of FIG. 30, respectively.

도 33에서 유저 정의 FB 파라미터 설정 수단 작성 수단(308)은, 파라미터 정보 취득 수단(311)과 관련한 파라미터 정보 사용 설정 지정 수단(312)을 또한 갖는다.In FIG. 33, the user defined FB parameter setting means creating means 308 also has parameter information use setting specifying means 312 associated with the parameter information obtaining means 311.

파라미터 정보 사용 설정 지정 수단(312)은, 파라미터 정보 취득 수단(311) 이 취득한 각 파라미터에 대해, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB가 보존하는 파라미터를, 유저 정의 FB 파라미터 설정 수단(301)에서 설정하는지의 여부의 플래그를 갖는다.The parameter information use setting designation means 312 stores, for each parameter acquired by the parameter information acquisition means 311, a parameter stored by the FB used in the description of the internal processing of the user defined FB, by the user defined FB parameter setting means ( Or 301).

또한, 도 36에서, 도 29와의 상위점은, 스텝 S11과 스텝 S12 사이에 스텝 S11A(파라미터 정보 사용 설정 지정 수단(312)이, 각 파라미터에 대해, 설정 플래그를 갖도록 함과 함께, 그 설정 플래그에 「0」 또는 「1」을 설정하는 처리)가 추가되어 있는 것뿐이다.In Fig. 36, the difference from Fig. 29 is that step S11A (parameter information use setting setting means 312 has a setting flag for each parameter, and the setting flag between step S11 and step S12). Process of setting "0" or "1") is added.

본 발명의 실시의 형태 8은, 유저 정의 FB의 내부 처리의 기술에서 이용하고 있는 FB가 갖는 파라미터의 전부를, 유저 정의 FB로부터 설정할 수가 있기 때문에, 특정한 처리를 펑션 블록이라는 형태로 캡슐화한다는, 유저 정의 FB의 성질을 고려하여 실현된 것이다.In Embodiment 8 of the present invention, since all of the parameters of the FB used in the internal processing of the user defined FB can be set from the user defined FB, the user encapsulates a specific process in the form of a function block. Definition It is realized considering the nature of FB.

도 34에서는, 전술(도 27 참조)한 구체적인 예에 더하여, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB가 보존하는 파라미터를 유저 정의 FB 파라미터 설정 수단(301)에서 설정하는지의 여부의 플래그=1을, 각각의 파라미터에 대해, 파라미터 정보 사용 설정 지정 수단(312)이 갖고 있다. 도 34와 같이, 설정 플래그의 값이 「1」인 경우에는, 해당 파라미터는, 유저 정의 FB의 파라미터 설정 다이얼로그에서 설정하는 것을 의미한다. 한편, 설정 플래그의 값이 「O」인 경우에는, 해당 파라미터는, 유저 정의 FB의 파라미터 설정 다이얼로그에서 설정하지 않는 것을 의미한다.In Fig. 34, in addition to the specific example described above (see Fig. 27), whether or not the user-defined FB parameter setting means 301 sets the parameter stored by the FB used in the description of the internal processing of the user-defined FB = The parameter information usage setting designation means 312 has 1 for each parameter. As shown in Fig. 34, when the value of the setting flag is "1", it means that the parameter is set in the parameter setting dialog of the user-defined FB. On the other hand, when the value of the setting flag is "O", it means that the parameter is not set in the parameter setting dialog of the user-defined FB.

또한, 본 발명의 실시의 형태 8에 의한 조작 순서는, 상기 실시의 형태 7(도 20, 도 29 참조)과 마찬가지이다.In addition, the operation procedure by Embodiment 8 of this invention is the same as that of Embodiment 7 (refer FIG. 20, FIG. 29).

이 경우, 도 35 및 도 37에 도시하는 바와 같이, 스텝 S1, S2에서 전술한 것과 같은 유저 EB(ε)(도 28 참조)를 작성한 경우에 관해 설명한다.In this case, as shown in FIG. 35 and FIG. 37, the case where the user EB (epsilon) (refer FIG. 28) as mentioned above in step S1, S2 is created is demonstrated.

단, 여기서는, 유저 FB(ε)의 내부 처리의 기술에 이용하는 FB(φ)의 파라미터(PARAMφ)만을 유저 EB(ε) 파라미터 설정 다이얼로그(12)에서 설정하고, 정수 FB의 파라미터 정수치는 고정적으로 하고 싶은 이유 때문에, 도 35에 도시하는 바와 같이, FB(φ)의 파라미터 설정 다이얼로그에서는, PARAMφ의 설정을 행하지 않고 공란으로 하고, 정수 FB의 파라미터 설정 다이얼로그에서는, 정수치 「123」을 설정한다.Here, only the parameter PARAMφ of FB (φ) used for the description of the internal processing of the user FB (ε) is set in the user EB (ε) parameter setting dialog 12, and the parameter constant value of the constant FB is fixed. For the reason, as shown in FIG. 35, in the parameter setting dialog of FB (phi), it sets to blank without setting PARAMphi and sets constant value "123" in the parameter setting dialog of constant FB.

이로써, 파라미터 정보 사용 설정 지정 수단(312)은, 파라미터의 설정을 행하지 않고 공란으로 한 파라미터(φ)에 관한 정보는, 설정 플래그=1인 채로 하고, 파라미터 설정이 행하여진 정수치에 관한 정보는, 설정 플래그=0으로 재기록한다.Thereby, the parameter information use setting designation means 312 leaves the information on the parameter φ blanked without setting the parameter, with the setting flag = 1, and the information on the integer value where the parameter setting is performed. Rewrite with setting flag = 0.

본 발명의 실시의 형태 8에서는, 스텝 S4(도 20 참조)에서, 구체적으로는, 도 36과 같이, 이하의 조작 순서(스텝 S11 내지 S14)가 실행된다.In Embodiment 8 of this invention, the following operation procedure (steps S11-S14) is performed specifically in step S4 (refer FIG. 20) like FIG.

우선, 스텝 S11(파라미터 정보 취득 수단(311))에서, 이하의 조작이 실행된다.First, the following operation is performed in step S11 (parameter information acquisition means 311).

도 34와 같이, FB(φ)가 갖는 파라미터(φ)에 관한 정보로서, 데이터형=BOOL, 파라미터의 명칭=PARAMφ, GUI 부품의 속성=Edit Box, 설정치=공란을 취득하고, 정수 FB가 갖는 파라미터인 정수치에 관한 정보로서, 데이터형=BYTE, 파라미터의 명칭=정수치, GUI 부품의 속성=Edit Box, 설정치=123을 취득한다.As shown in Fig. 34, data type = BOOL, parameter name = PARAMφ, attribute of GUI component = Edit Box, and setting value = blank are obtained as information about the parameter? Of FB (?), And the constant FB has. As information on the integer value that is a parameter, data type = BYTE, parameter name = integer value, GUI part attribute = Edit Box, and set value = 123 are obtained.

계속해서, 설정 플래그를 갖는 팔라듐 메이크 정보 사용 설정 지정 수단(312)은, 각각의 파라미터에 대해, 설정 플래그를 갖도록 함과 함께, 그 설정 플래그에 「0」 또는 「1」을 설정한다(스텝 S11A). 다음에, 설정 플래그=1인 파라미터(φ)에 관한 표시를 행하고, 설정 플래그=0인 정수치의 표시는 행하지 않고(스텝 S12), 파라미터(φ)에 관한 판정을 행한다(스텝 S13). 스텝 S13에서는, 파라미터의 데이터 형이 BOOL이기 때문에, 「Edit Box」에 BOOL형의 데이터가 입력된 경우에 올바르다고 판정한다.Subsequently, the palladium make information use setting specifying means 312 having the setting flag has a setting flag for each parameter, and sets "0" or "1" to the setting flag (step S11A). ). Next, the display regarding the parameter φ with the setting flag = 1 is performed, and the determination regarding the parameter φ is performed without displaying the integer value with the setting flag = 0 (step S13). In step S13, since the data type of the parameter is BOOL, it is determined that it is correct when BOOL type data is input to the "Edit Box".

최후로, 파라미터(φ)의 「Edit Box」에 입력된 값을, 취득원인 FB(φ)에 설정한다(스텝 S14).Finally, the value input to the "Edit Box" of the parameter (phi) is set to FB (phi) which is an acquisition source (step S14).

이상의 조작 순서(스텝 S11 내지 S14)에 의해, 도 37에 도시하는 바와 같은 결과가 되고, 유저 EB(ε)의 파라미터로서 설정시키고 싶은 파라미터만을 갖는 다이얼로그에 관한 처리를 자동적으로 행하도록 할 수가 있다.The above operation procedure (steps S11 to S14) results in a result as shown in FIG. 37, and it is possible to automatically perform a process relating to a dialog having only a parameter to be set as a parameter of the user EB (ε).

도 37에서는, 유저 정의 FB 영역(4)으로부터 FBD 프로그램 편집 영역(5)으로의 유저 EB(ε)의 드래그&드롭 상태와, FBD 프로그램 편집 영역(5) 내의 유저 EB(ε) 파라미터 설정 다이얼로그(12)상에서, 유저 FB(ε)의 내부 처리의 파라미터값(PARAMφ)을 설정하는 상태가 도시되어 있다.In FIG. 37, the drag & drop state of the user EB (ε) from the user defined FB area 4 to the FBD program editing area 5, and the user EB (ε) parameter setting dialog (in the FBD program editing area 5) On 12), a state of setting the parameter value PARAMφ of the internal processing of the user FB (ε) is shown.

이상과 같이, 본 발명의 실시의 형태 8에 의하면, GUI 정보는, 적어도, 파라미터의 명칭과, 유저 정의 FB의 다이얼로그상에서 표시할 때의 GUI 부품의 속성을 갖는다.As described above, according to the eighth embodiment of the present invention, the GUI information has at least a name of a parameter and an attribute of a GUI component when displaying on a dialog of a user-defined FB.

유저 정의 FB 파라미터 설정 수단 작성 수단은, 파라미터 정보 사용 설정 지 정 수단을 또한 가지며,.The user defined FB parameter setting means creating means further has parameter information use setting specifying means.

또한, 파라미터 정보 사용 설정 지정 수단(312)은, 파라미터 정보 취득 수단(311)이 취득한 각 파라미터에 대해, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB가 보존하는 파라미터를, 유저 정의 FB 파라미터 설정 수단(301)에서 설정하는지의 여부의 설정 플래그를 갖는다.In addition, the parameter information use setting designation means 312 sets the user-defined FB parameter setting of the parameter which the FB used for the description of the internal processing of the user-defined FB with respect to each parameter acquired by the parameter information acquisition means 311. It has a setting flag of whether or not to set by the means 301.

이로써, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 설정하는 다이얼로그를 자동적으로 제공하여, 전술한 것과 동등한 작용 효과를 이룸과 함께, 유저 정의 FB를 사용할 때에 가변으로 하고 싶은 파라미터만을 유저 정의 FB의 다이얼로그로부터 설정할 수 있도록 하고, 그 밖의 파라미터는 유저 정의 FB의 내부 처리를 기술할 때에 FB의 파라미터 설정 다이얼로그에서 설정한 값을 사용하는 형태를, 적은 수고로 실현하는 것이 가능하게 되고, 특정한 처리를 펑션 블록이라는 형태로 캡슐화한다는 유저 정의 FB의 성질을 살린 FBD 프로그램의 작성 시간을 더욱 단축할 수 있다.This automatically provides a dialog for setting the parameters used in the internal processing of the user-defined FB, and achieves the same effect as described above. Only the parameters that are desired to be variable when the user-defined FB is used are the dialog of the user-defined FB. When other parameters are described in the internal processing of the user-defined FB, it is possible to realize the form using the value set in the parameter setting dialog of the FB with a little effort, and to execute a specific block as a function block. You can further reduce the time required to write FBD programs that take advantage of the user-defined FB's encapsulation.

실시의 형태 9Embodiment 9

또한, 상기 실시의 형태 8에서는, 특정한 처리를 펑션 블록이라는 형태로 캡슐화한다는 유저 정의 FB의 성질을 손상시키지 않고, 유저 정의 FB의 다이얼로그를 작성하는 수고를 줄이기 위해, 유저 정의 FB의 내부 처리에서 사용하는 파라미터중, 설정시키는 파라미터에 관한 것만을 다이얼로그에서 자동적으로 제공하였지만, 캡슐화를 실현하기 위해서는, 유저 정의 FB의 파라미터중, 가변으로 하게 하지 않는 파라미터에 관해서는, 유저 정의 FB의 내부 처리를 기술할 때에 FB의 파라미터 설정 다이얼로그에서 설정을 행할 필요가 있다.In addition, in the eighth embodiment, the internally defined user defined FB is used in internal processing of the user defined FB to reduce the effort of creating the user defined FB dialog without impairing the property of the user defined FB that encapsulates a specific process in the form of a function block. Among the parameters to be set, only the parameters to be set are automatically provided in the dialog. However, in order to realize encapsulation, the internal processing of the user-defined FB can be described for the parameters of the user-defined FB that are not to be changed. It is necessary to set in the parameter setting dialog of the FB.

가변으로 하게 하지 않는 파라미터는, 유저 정의 FB를 사용할 때에 항상 고정적인 값으로 되고, 유저 정의 FB의 다이얼로그에서는 표시되지 않는다. 즉, 유저 정의 FB를 작성할 때에 어느 파라미터를 가변으로서 설정하고, 어느 파라미터를 고정적으로 하였는지를 확인하기 위해서는, 유저 정의 FB의 내부 처리에서 사용하는 FB의 다이얼로그를 하나하나 개별적으로 표시할 필요가 있으며, 막대한 수고를 필요로 하게 된다.Parameters that are not made variable are always fixed when using the user defined FB, and are not displayed in the user defined FB dialog. That is, in order to confirm which parameter is set as variable when creating a user-defined FB and which parameter is fixed, it is necessary to individually display the dialog boxes of the FBs used in the internal processing of the user-defined FB. It takes effort.

그래서, 상기 과제를 해결하기 위해, 본 발명의 실시의 형태 9(도 39, 도 40 참조)에서는, 상기 실시의 형태 7, 8과 같이 자동 생성한 다이얼로그를, 전술한 실시의 형태 5, 6(도 19, 도 24 참조)에서의 유저 정의 FB 다이얼로그 편집 영역(7)(다이얼로그 편집 수단)에서 편집할 수 있도록 구성되어 있다.So, in order to solve the said subject, in Embodiment 9 (refer FIG. 39, FIG. 40) of this invention, the dialog automatically generated like Embodiment 7, 8 was mentioned above Embodiment 5, 6 ( It is configured to be editable in the user-defined FB dialog editing area 7 (dialog editing means) in Figs. 19 and 24).

이하, 도 1, 도 20, 도 33 및 도 36과 함께, 도 38 내지 도 40의 설명도를 참조하면서, 본 발명의 실시의 형태 9에 관해 설명한다. 도 38 내지 도 40은, 각각 전술한 도 34, 도 22, 도 37에 대응하고 있다.EMBODIMENT OF THE INVENTION Hereinafter, Embodiment 9 of this invention is described, referring FIG. 38 thru | or FIG. 40 along with FIG. 1, FIG. 20, FIG. 33, and FIG. 38-40 correspond to FIG. 34, FIG. 22, and FIG. 37 mentioned above, respectively.

이 경우, 파라미터 정보 사용 설정 지정 수단(312)(도 33 참조)은, 파라미터 정보 취득 수단(311)이 취득한 각 파라미터에 대해, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단에서 설정한 값을, 유저 정의 FB 파라미터 설정 수단(301)에서 설정하는 파라미터의 디폴트값으로서 사용하는지의 여부의 디폴트값 플래그(도 38 참조)를 또한 갖는다.In this case, the parameter information use setting designation means 312 (see FIG. 33) is an FB parameter setting means of the FB that is used for the description of the internal processing of the user-defined FB for each parameter acquired by the parameter information obtaining means 311. It also has a default value flag (see Fig. 38) of whether or not to use the value set in the above as the default value of the parameter set by the user-defined FB parameter setting means 301.

도 38은 본 발명의 실시의 형태 9에 의해 보존되는 파라미터에 관한 상세 정 보를 도시하는 설명도이고, 전술(도 34 참조)한 정보에 더하여, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단(304)에서 설정한 값을, 유저 정의 FB 파라미터 설정 수단(301)에서 설정하는 파라미터의 디폴트값으로서 사용하는지의 여부의 디폴트값 플래그가 추가되어 있다.FIG. 38 is an explanatory diagram showing detailed information on parameters stored in Embodiment 9 of the present invention. In addition to the above-described information (see FIG. 34), FIG. 38 shows the FB used in the description of the internal processing of the user-defined FB. The default value flag of whether to use the value set by the FB parameter setting means 304 as a default value of the parameter set by the user-defined FB parameter setting means 301 is added.

도 39는, 유저 정의 FB 다이얼로그 편집 영역(7)에서, 파라미터(PARAMφ)(또는, PARAMψ)의 값을 유저 정의 FB의 다이얼로그에서 설정하는지의 여부, 또한 설정한다고 한 경우에는, FB의 다이얼로그에서 설정한 값을 디폴트값으로서 사용하는지의 여부를 설정하기 위한 파라미터 속성 설정 다이얼로그(19)를 표시한 상태를 도시하고 있다.Fig. 39 shows whether or not the value of the parameter PARAMφ (or PARAMψ) is set in the dialog of the user-defined FB in the user-defined FB dialog editing area 7, and is set in the dialog of the FB. The state which displayed the parameter attribute setting dialog 19 for setting whether to use one value as a default value is shown.

또한, 본 발명의 실시의 형태 9를 실현하는 프로그램 작성 장치(1)는, 도 19에 도시한 구성과 거의 같지만, 유저 정의 FB 다이얼로그 편집용 GUI 부품(8)이 불필요하게 된다. 또한, 유저 정의 FB의 파라미터를 설정하는 다이얼로그의 작성부터, 유저 정의 FB를 프로그램으로 사용할 때의 파라미터의 설정까지의 순서는, 전술한 도 20에 도시하는 순서와 거의 같지만, 스텝 S8가 불필요하게 된다.In addition, although the program creation apparatus 1 which implements Embodiment 9 of this invention is substantially the same as the structure shown in FIG. 19, the GUI component 8 for user defined FB dialog editing is unnecessary. In addition, although the procedure from the creation of the dialog which sets the parameter of the user defined FB to the setting of the parameter when the user defined FB is used in the program is almost the same as the procedure shown in Fig. 20 described above, step S8 is unnecessary. .

본 발명의 실시의 형태 9인 경우, 우선, 도 20 내의 스텝 S1, S2에서, 전술한 실시의 형태 7과 마찬가지로, 유저 EB(ε)(도 28 참조)를 작성한 것으로 한다.In the ninth embodiment of the present invention, first, in step S1 and S2 in FIG. 20, a user EB (ε) (see FIG. 28) is created similarly to the seventh embodiment.

단, 유저 EB(ε)의 내부 처리의 기술에 이용하는 FB(φ)의 파라미터(PARAMφ)만을 유저 EB(ε) 파라미터 설정 다이얼로그(12)에서 설정하고, 또한, 유저 정의 FB의 다이얼로그에서 디폴트값을 표시시키고 싶기 때문에, 도 39(도 40)에 도시하는 바와 같이, 유저 정의 FB 다이얼로그 편집 영역(7)(EB(ε) 파라미터 설정 다 이얼로그(12))상의 PARAMφ에서는, 값 「456」을 설정한다. 또한, 정수 FB의 파라미터 정수치는 고정적으로 하고 싶기 때문에, 정수 FB의 파라미터 설정 다이얼로그에서는, 값 「123」을 설정한다.However, only the parameter PARAMφ of FB (φ) used for the description of the internal processing of the user EB (ε) is set in the user EB (ε) parameter setting dialog 12, and the default value is set in the dialog of the user-defined FB. As shown in FIG. 39 (FIG. 40), the value "456" is set in PARAMφ on the user-defined FB dialog editing area 7 (EB (ε) parameter setting dialog 12). do. In addition, since the parameter constant value of the constant FB is fixed, the value "123" is set in the parameter setting dialog of the constant FB.

또한, 파라미터를 갖는 FB에서도, 전술한 실시의 형태 7과 마찬가지로, 해당 파라미터에 관한 상세 정보(도 27 참조)를 보존하도록 하여 둔다.In addition, in the FB having parameters, the detailed information (see Fig. 27) regarding the parameters is stored similarly to the seventh embodiment described above.

계속해서, 도 20 내의 스텝 S7에서는, 다이얼로그를 작성하는 대신에, 도 29 내의 스텝 S11, S12를 실행한다. 이로써, 유저 FB(ε)의 다이얼로그는, 자동 생성되고, 유저 정의 FB 다이얼로그 편집 영역(7)에 표시된다.Subsequently, in step S7 in FIG. 20, instead of creating a dialog, steps S11 and S12 in FIG. 29 are executed. Thus, the dialog of the user FB (ε) is automatically generated and displayed in the user defined FB dialog editing area 7.

즉, 도 39에서, 「Edit Box」에는, FB의 다이얼로그에서 설정한 값이 표시된다. 여기서, 하나의 파라미터의 GUI 부품을 마우스 더블클릭하는 등에 의해, 이 파라미터의 값을 유저 정의 FB의 다이얼로그에서 설정하는지의 여부를 설정하기 위한 파라미터 속성 설정 다이얼로그(19)가 표시된다. 또한, 파라미터의 값을 유저 정의 FB의 다이얼로그에서 설정한다고 한 경우에는, EB의 다이얼로그에서 설정한 값을 디폴트값으로서 사용하는지의 여부를 설정하기 위한 파라미터 속성 설정 다이얼로그(19)가 표시된다.That is, in Fig. 39, the value set in the dialog of the FB is displayed in "Edit Box". Here, a parameter attribute setting dialog 19 for setting whether or not to set the value of this parameter in the dialog of the user-defined FB is displayed by double-clicking a GUI component of one parameter or the like. When the value of the parameter is set in the dialog of the user-defined FB, the parameter attribute setting dialog 19 for setting whether or not to use the value set in the dialog of the EB as the default value is displayed.

여기서는, PARAMφ를 유저 정의 FB의 다이얼로그에서 설정하지 않는 것으로 하고, 파라미터 속성 설정 다이얼로그(19)에서는, 도 39 내의 하단(下段)에 도시하는 바와 같이, 체크 박스의 체크를 제외한다.Here, it is assumed that PARAMφ is not set in the dialog of the user-defined FB. In the parameter attribute setting dialog 19, as shown in the lower part in FIG. 39, the check box is excluded.

또한, PARAMψ은 유저 정의 FB의 다이얼로그에서 설정하는 것으로 하고, 파라미터 속성 설정 다이얼로그(19)에서는 도 39 내의 상단에 도시하는 바와 같이, 체크 박스에 체크를 넣는다. 여기서, 체크를 넣은 경우에는, 도 39 내의 상단에 도시하는 바와 같이, 또한, FB의 다이얼로그에서 설정한 값을 디폴트값으로서 사용하는지의 여부를 설정하기 위한 체크 박스가 표시되기 때문에, 이것에도 체크를 넣는다.Further, the PARAM ψ is set in the dialog of the user-defined FB. In the parameter attribute setting dialog 19, as shown at the upper end in FIG. 39, a check box is placed. In this case, as shown at the top of Fig. 39, a check box for setting whether or not to use the value set in the FB dialog as a default value is displayed. Put it in.

이하, 도 20 내의 스텝 S3 내지 S5를 실행함에 의해, 도 40에 도시하는 바와 같은 상태가 된다.Hereinafter, by performing steps S3 to S5 in FIG. 20, a state as shown in FIG. 40 is obtained.

이상과 같이, 본 발명의 실시의 형태 9에 의하면, GUI 정보는, 적어도, 파라미터의 명칭과, 유저 정의 FB의 다이얼로그상에서 표시할 때의 GUI 부품의 속성을 갖는다.As described above, according to the ninth embodiment of the present invention, the GUI information has at least the name of the parameter and the attribute of the GUI component when displaying on the dialog of the user-defined FB.

또한, 파라미터 정보 사용 설정 지정 수단(312)은, 파라미터 정보 취득 수단(311)이 취득한 각 파라미터에 대해, 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단에서 설정한 값을, 유저 정의 FB 파라미터 설정 수단(301)에서 설정하는 파라미터의 디폴트값으로서 사용하는지의 여부의 디폴트값 플래그를 또한 갖는다.In addition, the parameter information use setting designation means 312 sets a value set by the FB parameter setting means of the FB, which is used in the description of the internal processing of the user-defined FB, for each parameter acquired by the parameter information acquisition means 311. It also has a default value flag of whether or not to use as a default value of a parameter set by the user-defined FB parameter setting means 301.

이로써, 전술한 바와 같이, 유저 정의 FB의 내부 처리에서 사용하는 파라미터를 설정하는 다이얼로그를 자동적으로 제공 가능해진다.Thereby, as mentioned above, the dialog which sets the parameter used by the internal process of user defined FB can be provided automatically.

또한, 유저 정의 FB를 사용할 때에 가변으로 하고 싶은 파라미터만을 유저 정의 FB의 다이얼로그로부터 설정 가능하게 하고, 또한, 유저 정의 FB의 내부 처리를 기술할 때에 FB의 파라미터 설정 다이얼로그에서 설정한 값을 유저 정의 FB의 다이얼로그에서 디폴트값으로서 표시하는 것을 가능하게 하고, 그 밖의 파라미터는 유저 정의 FB의 내부 처리를 기술할 때에 FB의 파라미터 설정 다이얼로그에서 설정한 값을 사용하는 형태를, 적은 수고로 실현하는 것이 가능해진다. 이로써, 특정한 처리를 펑션 블록이라는 형태로 캡슐화한다는 유저 정의 FB의 성질을 살린 FBD 프로그램의 작성 시간을 더욱 단축할 수가 있다.In addition, when using the user-defined FB, only the parameters to be changed can be set from the dialog of the user-defined FB, and the value set in the parameter setting dialog of the FB when the internal processing of the user-defined FB is described is defined. It is possible to display as a default value in the dialog box, and other parameters can be implemented with little effort in describing the internal processing of the user-defined FB using the value set in the parameter setting dialog box of the FB. . This makes it possible to further shorten the creation time of an FBD program that takes advantage of the user-defined FB's ability to encapsulate specific processing in the form of function blocks.

본 발명에 의하면, 유저 정의 FB의 내부 처리의 기술(記述)에서 이용하고 있는 FB가 갖는 파라미터를 포함하는 유저 정의 FB의 처리 내용에 관련되는 파라미터를, 유저 정의 FB로부터 설정할 수 있어서, 프로그램 작성 시간을 단축할 수가 있다.According to the present invention, parameters related to the processing contents of the user defined FB including the parameters of the FB used in the description of the internal processing of the user defined FB can be set from the user defined FB, so that the program creation time can be set. Can be shortened.

Claims (13)

미리 정의된 펑션 또는 펑션 블록(이하 'FB'라 한다)을 조합하여서, 새로운 FB를 정의한 유저 정의 FB를 작성하는 유저 정의 FB 작성 수단과, User-defined FB creation means for creating a user-defined FB defining a new FB by combining a predefined function or function block (hereinafter referred to as 'FB'); 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB를 이용하여 기술된 프로그램을 프로그램 실행 장치에서 실행하기 위한 코드화에 있어서, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB 부분의 코드화를 행하는 유저 정의 FB 처리 실행 코드 생성 수단을 갖는 프로그램 작성 지원 장치에 있어서,A user defined FB for encoding a user defined FB portion created by said user defined FB creation means in encoding for executing a program described using said user defined FB created by said user defined FB creation means in a program execution device. A program creation support device having processing execution code generation means, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB로부터, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 내부 처리의 기술에서 이용하고 있는 미리 정의된 FB가 가지는 파라미터를 포함하며 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 처리 내용에 관련되는 파라미터인 유저 정의 FB 파라미터를 설정하는 유저 정의 FB 파라미터 설정 수단과,From the user defined FB created by the said user defined FB creation means, it contains the parameter which the predefined FB used by the description of the internal processing of the user defined FB created by the said user defined FB creation means has, and the said user defined FB creation User defined FB parameter setting means for setting a user defined FB parameter which is a parameter related to the processing contents of the user defined FB created by the means; 상기 유저 정의 FB 파라미터 설정 수단에 의해 설정된, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 처리 내용에 관련하는 파라미터인 유저 정의 FB 파라미터 설정치를, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB에 보존하는 유저 정의 FB 파라미터 설정치 보존 수단을 구비하고,The user defined FB parameter set value which is a parameter related to the process content of the user defined FB created by the said user defined FB creation means set by the said user defined FB parameter setting means, The user defined FB created by the said user defined FB creation means A user defined FB parameter set value storage means to be stored in 상기 유저 정의 FB 처리 실행 코드 생성 수단은, 상기 유저 정의 FB 파라미터 설정치 보존 수단에 보존되어 있는 파라미터에 의해, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB를 코드화하는 것을 특징으로 하는 프로그램 작성 지원 장치.The user-defined FB processing execution code generating means codes the user-defined FB created by the user-defined FB creating means by the parameter stored in the user-defined FB parameter setting value saving means. . 제 1항에 있어서,The method of claim 1, 상기 유저 정의 FB 파라미터 설정 수단은, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단을 표시하고, 상기 유저 정의 FB 파라미터 설정치 보존 수단은, FB 파라미터 설정 수단에 의해 설정된 파라미터 설정치를 보존하는 것을 특징으로 하는 프로그램 작성 지원 장치.The user-defined FB parameter setting means displays the FB parameter setting means of the FB used for the description of the internal processing of the user-defined FB created by the user-defined FB creating means, and the user-defined FB parameter setting value storing means is an FB. And a parameter setting value set by the parameter setting means. 제 2항에 있어서,The method of claim 2, 상기 유저 정의 FB 파라미터 설정 수단은, FB 파라미터 설정 수단 선택 수단을 구비하고,The user defined FB parameter setting means includes an FB parameter setting means selection means, 상기 FB 파라미터 설정 수단 선택 수단은, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단이 복수 존재하는 경우에, 복수의 FB 파라미터 설정 수단중에서 어느 하나를 선택하여, 상기 유저 정의 FB 파라미터 설정 수단으로서 이용하는 것을 특징으로 하는 프로그램 작성 지원 장치.The FB parameter setting means selection means is any of a plurality of FB parameter setting means, when there are a plurality of FB parameter setting means of the FB used for the description of the internal processing of the user-defined FB created by the user-defined FB creation means. A program creation support device, wherein one is selected and used as said user defined FB parameter setting means. 제 3항에 있어서,The method of claim 3, wherein 상기 유저 정의 FB 작성 수단은, FB 파라미터 설정 수단 지정 수단을 구비하고, The user-defined FB creating means includes an FB parameter setting means designating means, 상기 FB 파라미터 설정 수단 지정 수단은, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단이 복수 존재하는 경우에, 복수의 FB 파라미터 설정 수단중에서, 상기 유저 정의 FB 파라미터 설정 수단으로서 이용하는 FB 파라미터 설정 수단을 지정하고,The FB parameter setting means designation means is one of a plurality of FB parameter setting means, when there are a plurality of FB parameter setting means of the FB used for the description of the internal processing of the user defined FB created by the user defined FB creation means. Specify FB parameter setting means to be used as the user-defined FB parameter setting means, 상기 FB 파라미터 설정 수단 선택 수단은, 복수의 FB 파라미터 설정 수단중의, 상기 FB 파라미터 설정 수단 지정 수단에 의해 지정된 FB 파라미터 설정 수단만을 표시하는 것을 특징으로 하는 프로그램 작성 지원 장치.And said FB parameter setting means selecting means displays only the FB parameter setting means designated by said FB parameter setting means designating means among a plurality of FB parameter setting means. 제 1항에 있어서,The method of claim 1, 상기 유저 정의 FB 작성 수단은, 상기 유저 정의 FB 파라미터 설정 수단을 작성하기 위한 유저 정의 FB 파라미터 설정 수단 작성 수단을 구비하고,The user-defined FB creation means includes user-defined FB parameter setting means creation means for creating the user-defined FB parameter setting means. 상기 유저 정의 FB 파라미터 설정 수단 작성 수단은,The user defined FB parameter setting means creation means is 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 내부 처리의 기술에서 이용하고 있는 FB가 가지는 파라미터를 포함하고, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 처리 내용에 관련되는 파라미터를 취득하는 파라미터 취득 수단과,Acquire the parameter which the FB used by the description of the internal processing of the user defined FB created by the said user defined FB creation means has, and is related to the process content of the user defined FB created by the said user defined FB creation means. Parameter acquisition means to perform 상기 유저 정의 FB 파라미터 설정 수단 작성 수단에 의해 작성된 상기 유저 정의 FB 파라미터 설정 수단의 각 파라미터 설정 요소인 GUI 부품과 상기 파라미터 취득 수단에 의해 취득한 파라미터를 관련시키는 파라미터 관련시킴 설정 수단을 가지며,And parameter association setting means for associating a GUI component which is each parameter setting element of the user defined FB parameter setting means created by the user defined FB parameter setting means creation means with a parameter acquired by the parameter acquisition means, 상기 유저 정의 FB 파라미터 설정 수단 작성 수단에 의해 작성된 유저 정의 FB 파라미터 설정 수단을 상기 유저 정의 FB 파라미터 설정 수단으로 이용하고,Using the user defined FB parameter setting means created by the user defined FB parameter setting means creation means as the user defined FB parameter setting means, 입력된 파라미터 값을, 상기 파라미터 관련시킴 설정 수단에서 관련시킨 파라미터값으로 하여, 상기 유저 정의 FB 파라미터 설정치 보존 수단에 보존하는 것을 특징으로 하는 프로그램 작성 지원 장치.And storing the inputted parameter value as the parameter value associated with the parameter association setting means in the user defined FB parameter setting value storage means. 제 5항에 있어서,The method of claim 5, 상기 파라미터 취득 수단은, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB중, 파라미터를 보존하는 FB로부터 해당 파라미터를 취득하는 것을 특징으로 하는 프로그램 작성 지원 장치.And said parameter acquiring means acquires said parameter from the FB which stores said parameter among the FBs used for the description of the internal processing of the user-defined FB created by said user-defined FB creating means. 제 1항에 있어서,The method of claim 1, 상기 유저 정의 FB 작성 수단은, 상기 유저 정의 FB 파라미터 설정 수단을 작성하기 위한 유저 정의 FB 파라미터 설정 수단 작성 수단을 구비하고,The user-defined FB creation means includes user-defined FB parameter setting means creation means for creating the user-defined FB parameter setting means. 상기 유저 정의 FB 파라미터 설정 수단 작성 수단은, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 내부 처리의 기술에서 이용하는 FB가 가지는 파라미터를 포함하고, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 처리 내용에 관련되는 파라미터를 취득하는 파라미터 정보 취득 수단을 가지며,The user defined FB parameter setting means creating means includes a parameter that the FB used in the description of the internal processing of the user defined FB created by the user defined FB creating means includes, and the user defined FB created by the user defined FB creating means. Has parameter information obtaining means for obtaining a parameter related to the processing contents of the 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 처리 내용에 관련되는 파라미터는, 해당 파라미터의 값에 관한 파라미터값 정보와, 해당 파라미터를 설정하기 위한 GUI 정보를 가지며,The parameter related to the process content of the user defined FB created by the user defined FB creating means has parameter value information about the value of the parameter and GUI information for setting the parameter, 상기 파라미터값 정보는, 해당 파라미터의 데이터형과, 해당 파라미터의 상한치와, 해당 파라미터의 하한치와, 해당 파라미터 중 선택 가능한 값의 일람중 하나 이상을 가지며,The parameter value information has at least one of a data type of the parameter, an upper limit value of the parameter, a lower limit value of the parameter, and a list of selectable values of the parameter, 상기 GUI 정보는, 적어도, 해당 파라미터의 명칭과, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 다이얼로그 상에서 표시할 때의 GUI 부품의 속성을 가지며,The GUI information has at least a name of the parameter and an attribute of a GUI component when displaying on a dialog of a user defined FB created by the user defined FB creating means, 상기 파라미터 정보 취득 수단은, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 처리 내용에 관련되는 파라미터를, 상기 파라미터값 정보 및 상기 GUI 정보의 형식으로 취득하고,The parameter information obtaining means obtains a parameter related to the processing contents of the user defined FB created by the user defined FB creating means in the form of the parameter value information and the GUI information, 상기 유저 정의 FB 파라미터 설정 수단은,The user defined FB parameter setting means is 상기 파라미터 정보 취득 수단이 취득한 상기 GUI 정보에 의거하여 설정 다이얼로그를 표시함과 함께,While displaying the setting dialog based on the GUI information acquired by the parameter information obtaining means, 상기 파라미터 정보 취득 수단이 취득한 상기 파라미터값 정보에 의거하여, 상기 유저 정의 FB 파라미터 설정 수단이 표시하는 설정 다이얼로그로 설정된 파라미터값이 올바른지의 여부를 판정하는 것을 특징으로 하는 프로그램 작성 지원 장치.And determining whether or not a parameter value set in a setting dialog displayed by the user-defined FB parameter setting means is correct based on the parameter value information acquired by the parameter information obtaining means. 삭제delete 삭제delete 삭제delete 제 7항에 있어서,The method of claim 7, wherein 상기 유저 정의 FB 파라미터 설정 수단 작성 수단은, 파라미터 정보 사용 설정 지정 수단을 또한 가지며,The user-defined FB parameter setting means creating means further has parameter information use setting designation means, 상기 파라미터 정보 사용 설정 지정 수단은, 상기 파라미터 정보 취득 수단이 취득한 각 파라미터에 대해, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 보존하는 파라미터를, 상기 유저 정의 FB 파라미터 설정 수단에서 설정하는지의 여부의 플래그를 갖는 것을 특징으로 하는 프로그램 작성 지원 장치.The parameter information use setting specifying means stores, for each parameter acquired by the parameter information obtaining means, a parameter for storing the FB used for the description of the internal processing of the user defined FB created by the user defined FB creating means. And a flag indicating whether or not to be set by the definition FB parameter setting means. 제 11항에 있어서,The method of claim 11, 상기 파라미터 정보 사용 설정 지정 수단은, 상기 파라미터 정보 취득 수단이 취득한 각 파라미터에 대해, 상기 유저 정의 FB 작성 수단에 의해 작성한 유저 정의 FB의 내부 처리의 기술에 사용되고 있는 FB의 FB 파라미터 설정 수단에서 설정한 값을, 상기 유저 정의 FB 파라미터 설정 수단에서 설정하는 파라미터의 디폴트값으로서 사용하는지의 여부의 플래그를 또한 갖는 것을 특징으로 하는 프로그램 작성 지원 장치.The parameter information use setting specifying means sets the FB parameter setting means of the FB used for the description of the internal processing of the user defined FB created by the user defined FB creating means for each parameter acquired by the parameter information obtaining means. And a flag of whether or not a value is used as a default value of a parameter set by said user-defined FB parameter setting means. 제 1 내지 7항, 11항, 제 12항 중 어느 한 항에 기재된 프로그램 작성 지원 장치에 의해 작성되어 코드화된 프로그램을 실행하는 프로그램 실행 장치로서, 상기 유저 정의 FB 처리 실행 코드 생성 수단으로부터 생성된 코드를 실행하는 것을 특징으로 하는 프로그램 실행 장치.A program execution device that executes a program created and coded by the program creation support device according to any one of claims 1 to 7, 11, and 12, the code generated from the user defined FB processing execution code generation means. Program execution device, characterized in that for executing.
KR1020070036905A 2007-02-21 2007-04-16 Program construction assisting device and program execution device KR100918350B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JPJP-P-2007-00040550 2007-02-21
JP2007040550A JP4302146B2 (en) 2007-02-21 2007-02-21 Program creation support device

Publications (2)

Publication Number Publication Date
KR20080077887A KR20080077887A (en) 2008-08-26
KR100918350B1 true KR100918350B1 (en) 2009-09-22

Family

ID=39781668

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070036905A KR100918350B1 (en) 2007-02-21 2007-04-16 Program construction assisting device and program execution device

Country Status (4)

Country Link
JP (1) JP4302146B2 (en)
KR (1) KR100918350B1 (en)
CN (1) CN101251751B (en)
TW (1) TWI339811B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8843885B2 (en) * 2009-12-28 2014-09-23 Mitsubishi Electric Corporation Program creation support device
US9342064B2 (en) * 2011-01-31 2016-05-17 Mitsubishi Electric Corporation Motion SFC program component creation device
US20130104101A1 (en) * 2011-09-16 2013-04-25 Mitsubishi Electric Corporation Sequence program creating apparatus
JP6121706B2 (en) * 2012-12-13 2017-04-26 アズビル株式会社 Programming method and apparatus
JP6017294B2 (en) * 2012-12-13 2016-10-26 アズビル株式会社 Programming method and apparatus
DE112013006769T5 (en) 2013-03-29 2015-11-26 Mitsubishi Electric Corp. Flow program component generation program and flow program component generation device
US10935950B2 (en) * 2018-03-28 2021-03-02 Mitsubishi Electric Corporation Programming supporting apparatus, programming supporting method, and recording medium
JP7024679B2 (en) * 2018-10-05 2022-02-24 オムロン株式会社 Development support programs, development support devices, and development support methods
US11921619B2 (en) 2018-11-28 2024-03-05 Trust Technology Co., Ltd. Programming devices and programs for creating and editing programs used for image processing
WO2022269787A1 (en) * 2021-06-23 2022-12-29 三菱電機株式会社 Program creation assistance device, program creation assistance method, program creation assistance program, and programmable logic controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002196804A (en) 2000-12-25 2002-07-12 Yaskawa Electric Corp Method for managing controller program and device for editing the program
JP2003223204A (en) 2002-01-29 2003-08-08 Mitsubishi Electric Corp Programming method of programmable controller, system thereof and recording medium thereof
JP2006185015A (en) 2004-12-27 2006-07-13 Mitsubishi Electric Corp Program device of function block diagram
US20080034345A1 (en) * 2006-08-04 2008-02-07 Curtis Matthew C System and Method for Enabling a Graphical Program to Propagate Attributes of Inputs and Outputs of Blocks

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10301763A (en) * 1997-04-25 1998-11-13 Mitsubishi Electric Corp Program preparation supporting device for digital controller
US7392165B2 (en) * 2002-10-21 2008-06-24 Fisher-Rosemount Systems, Inc. Simulation system for multi-node process control systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002196804A (en) 2000-12-25 2002-07-12 Yaskawa Electric Corp Method for managing controller program and device for editing the program
JP2003223204A (en) 2002-01-29 2003-08-08 Mitsubishi Electric Corp Programming method of programmable controller, system thereof and recording medium thereof
JP2006185015A (en) 2004-12-27 2006-07-13 Mitsubishi Electric Corp Program device of function block diagram
US20080034345A1 (en) * 2006-08-04 2008-02-07 Curtis Matthew C System and Method for Enabling a Graphical Program to Propagate Attributes of Inputs and Outputs of Blocks

Also Published As

Publication number Publication date
TWI339811B (en) 2011-04-01
JP4302146B2 (en) 2009-07-22
CN101251751B (en) 2011-06-15
KR20080077887A (en) 2008-08-26
TW200836100A (en) 2008-09-01
JP2008204237A (en) 2008-09-04
CN101251751A (en) 2008-08-27

Similar Documents

Publication Publication Date Title
KR100918350B1 (en) Program construction assisting device and program execution device
US8843885B2 (en) Program creation support device
WO2014064819A1 (en) System building assistance tool and system
KR101401158B1 (en) Project-data creating device and programmable display device
TWI448858B (en) Logging setting device, method for setting logging, and recording medium
EP2293160A1 (en) Methods and apparatus for modifying process control data
JP3441309B2 (en) How to display functional objects in graphical programming
CN105094832A (en) WYSIWYG method and system for dynamically generating user interface
CN113886362A (en) Data storage system and storage method based on workflow engine and low-code platform
KR101889631B1 (en) Device for assisting creation of sequence program
JPH0785137A (en) Generating device for cad library model
JP5777837B2 (en) Program development support apparatus and method
KR101350798B1 (en) Robot system controlled on the basis of opros platform and control method thereof
US7861223B1 (en) Systems and methods that employ an extensible architecture to define configuration functionality
US20150347972A1 (en) Engineering tool and engineering system
JP2016173721A (en) Information processing device, control method of information processing device, and program
JP6794668B2 (en) Programming device
CN114460907A (en) Configuring a modular industrial plant
JPH1069379A (en) Graphical programing method
JP2001075791A (en) Editor device and recording medium recording editor program
Fayzilloevich et al. Development of softplc module testing methodology
JP2003223204A (en) Programming method of programmable controller, system thereof and recording medium thereof
CN102819229A (en) Control system and instruction setting method thereof
JP6121706B2 (en) Programming method and apparatus
CN115422481A (en) Visual construction method based on component factory

Legal Events

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

Payment date: 20120821

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20130822

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20140825

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20150820

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20160818

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20170823

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20180816

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20190819

Year of fee payment: 11