TW201642058A - Program generation device, program generation method, and program generation program - Google Patents

Program generation device, program generation method, and program generation program Download PDF

Info

Publication number
TW201642058A
TW201642058A TW104121978A TW104121978A TW201642058A TW 201642058 A TW201642058 A TW 201642058A TW 104121978 A TW104121978 A TW 104121978A TW 104121978 A TW104121978 A TW 104121978A TW 201642058 A TW201642058 A TW 201642058A
Authority
TW
Taiwan
Prior art keywords
component
program
input
variable name
unit
Prior art date
Application number
TW104121978A
Other languages
Chinese (zh)
Inventor
Akihiro Miura
Keisuke Masuda
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of TW201642058A publication Critical patent/TW201642058A/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/056Programming the PLC

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)
  • Stored Programmes (AREA)

Abstract

Provided are: a control program generation unit (104) for generating a control program (1041); an information extraction unit (105) for extracting a variable name used in the control program (1041), the variable name representing input/output information including input information and/or output information; an assignment unit (106) for assigning, to the variable name, a device identifier for identifying the device in which the input/output information represented by the variable name is stored; an access program generation unit (108) for generating an access program (1083) for accessing the device using the variable name and the device identifier; and a program synthesis unit (110) for synthesizing the control program (1041) and the access program (1083).

Description

程式產生裝置、程式產生方法和程式產生程式產品 Program generation device, program generation method, and program generation program product

本發明係關於一種程式產生裝置、程式產生方法及程式產生程式產品。尤其關於一種用以產生藉由控制裝置所執行之控制程式的程式產生裝置、程式產生方法及程式產生程式產品。 The present invention relates to a program generating apparatus, a program generating method, and a program generating program product. More particularly, the invention relates to a program generating device, a program generating method and a program generating program product for generating a control program executed by a control device.

近年來,有一種由複數個控制裝置協同作業而進行控制的控制系統。為了設計此種控制系統,乃使用控制系統設計工具(tool)。在控制系統設計工具中,係自動產生令電腦運算控制裝置模型(model)的控制程式,且執行在虛擬空間上的模擬,該控制裝置模型為將控制裝置中之機制或電信號的作用等予以公式化者。藉由此種模擬的執行,在上述控制系統設計工具中,可在不需進行使用實機的驗證下,事先執行控制裝置之配置的驗證及控制程式的驗證。 In recent years, there has been a control system in which a plurality of control devices operate in cooperation. In order to design such a control system, a control system design tool is used. In the control system design tool, a control program for causing a computer operation control device model is automatically generated, and simulation is performed on a virtual space, and the control device model is to apply a mechanism or an electrical signal in the control device. Formulator. With the execution of such a simulation, in the above-described control system design tool, the verification of the configuration of the control device and the verification of the control program can be performed in advance without verification using the real machine.

在專利文獻1中,於模擬控制裝置的模擬裝置中,執行用以模擬控制裝置之動作的模擬運算處理。模擬裝置係在模擬運算處理的執行開始時或執行途中,將儲存於CPU板(board)之共有記憶體的資料,於任意的時間點(timig)透過通信介面(interface)與其他裝置間進行收付。因此,模擬裝置間之資料的統合性獲得確保。 In Patent Document 1, an analog operation process for simulating the operation of the control device is executed in the simulation device of the analog control device. The simulation device collects the data of the shared memory stored in the CPU board at the start of the execution of the simulation operation process, and transmits it to the other device at any time point (timig) through the communication interface (interface). pay. Therefore, the integration of the data between the simulation devices is ensured.

此外,為了使使用者易於特別指定用以控制控制對象機器的輸出入資料及用以進行控制裝置間收付的通信資料,乃定義變數名稱,亦即標籤(label)。再者,實現了將變數名稱轉換為儲存有實際之值之元件(device)的名稱解決功能。藉由此名稱解決功能,即得以進行使用變數名稱而作成及編輯控制程式的標籤程式化(label programming)。另外,所謂元件係指儲存有實際之值之記憶體的實際位址(address)。 Further, in order to make it easy for the user to specifically specify the input and output data for controlling the machine to be controlled and the communication data for performing the control device to receive and pay, the variable name, that is, the label, is defined. Furthermore, the name resolution function of converting the variable name into a device storing the actual value is realized. With this name resolution function, label programming for creating and editing control programs using variable names is possible. In addition, the term "component" refers to the actual address of the memory in which the actual value is stored.

專利文獻2係揭示有一種變數解決方法,該方法係於在控制裝置間進行通信時,通信機器成為控制裝置間的中介角色而取得變數名稱與元件的對應。藉由此專利文獻2的方法,即可不增加PLC(Programmable Logic Controller,可程式邏輯控制器)的資源(resource)而使用變數名稱實施通信資料的收付。 Patent Document 2 discloses a method for solving a variable in which a communication device becomes an intermediary role between control devices to obtain a correspondence between a variable name and an element when communication is performed between control devices. According to the method of Patent Document 2, it is possible to carry out the payment and reception of the communication data using the variable name without increasing the resources of the PLC (Programmable Logic Controller).

[先前技術文獻] [Previous Technical Literature] [專利文獻] [Patent Literature]

專利文獻1:日本特開2008-27225號公報 Patent Document 1: Japanese Patent Laid-Open Publication No. 2008-27225

專利文獻2:日本特開2010-97624號公報 Patent Document 2: Japanese Laid-Open Patent Publication No. 2010-97624

然而,在執行以C語言程式安裝的控制程式的PLC中,對於儲存有指定變數名稱而與輸出入機器進行傳送接收的輸出入資料及在控制裝置間進行收付的通信資料的元件,無法進行存取。在此種PLC中,必須使用依元件之各種類而不同的專用的元件存取函數,而對於元件進行存取。因此,在此種PLC中,僅靠取得變數名稱與儲存有實際之值的元件的對應, 並無法進行與輸出入機器及通信機器的資料的收受。在此種PLC中,必須將配合讀寫資料的元件而呼叫專用的元件存取函數的處理,記述於控制程式,而會有開發工時增加的問題。 However, in the PLC that executes the control program installed in the C language program, the component that stores the input/output data that is transmitted and received with the input/output device and the communication data that is received and received between the control devices cannot be performed. access. In such a PLC, it is necessary to access a component by using a dedicated component access function that differs depending on various types of components. Therefore, in such a PLC, only the correspondence between the variable name and the component storing the actual value is obtained. It is not possible to receive data with the input and output machines and communication devices. In such a PLC, it is necessary to describe the processing of the component-access function dedicated to the component that reads and writes the data in the control program, and there is a problem that the number of development man-hours increases.

此外,在以控制系統設計工具一面實施模擬一面重組控制裝置的配置或連接順序而檢討控制系統的設計時,必須依據控制裝置之連接順序的變更,而變更儲存通信資料的元件。因此,每當變更元件,都必須重寫控制程式,因此會進一步增加開發工時。 Further, when the design of the control system is reviewed by the configuration or connection sequence of the simulation-side recombination control device while controlling the system design tool, the components for storing the communication data must be changed in accordance with the change in the connection order of the control device. Therefore, whenever the component is changed, the control program must be rewritten, so the development man-hours are further increased.

此外,連接於輸出入機器的控制對象機器,連接對象的元件會依每個控制裝置而不同。因此,會有無法從控制系統設計工具自動產生亦包含有元件存取函數之呼叫處理的元件存取用之控制程式的問題。 Further, the device to be controlled connected to the input/output device differs depending on each control device. Therefore, there is a problem that it is impossible to automatically generate a control program for component access including call processing of a component access function from the control system design tool.

本發明之目的為為了以控制程式處理在控制裝置中輸出入的輸出入資訊,而自動產生對於元件進行存取的存取程式,藉此而削減控制程式的開發工時。 SUMMARY OF THE INVENTION An object of the present invention is to reduce the development man-hour of a control program by automatically generating an access program for accessing a component by controlling a program to input and output information input and output to the control device.

本發明之程式產生裝置係包括:控制程式產生部,其係用以產生藉由控制裝置所執行的控制程式;資訊抽出部,其係用以抽出變數名稱,該變數名稱係用以表示包含輸入於前述控制裝置之輸入資訊與從前述控制裝置輸出之輸出資訊之至少任一者的輸出入資訊,且為在前述控制程式中所使用者;分配部,其係對於前述變數名稱,分配用以識別供儲存藉 由前述變數名稱所表示之前述輸出入資訊之元件的元件識別符;存取程式產生部,其係使用前述變數名稱與前述元件識別符而產生對於前述元件進行存取的存取程式;及程式合成部,其係用以合成前述控制程式與前述存取程式。 The program generating device of the present invention comprises: a control program generating portion for generating a control program executed by the control device; and an information extracting portion for extracting a variable name, the variable name being used to indicate that the input is included The input and output information of at least one of the input information of the control device and the output information outputted from the control device, and is a user in the control program; the distribution unit assigns the variable name to Identification for storage An element identifier of the component of the input and output information indicated by the variable name; an access program generating unit that generates an access program for accessing the component by using the variable name and the component identifier; and a program The synthesizing unit is configured to synthesize the control program and the access program.

在本發明之程式產生裝置中,由於包括有:資訊抽出部,其係用以抽出變數名稱,該變數名稱係用以表示包含輸入於控制裝置之輸入資訊與從控制裝置輸出之輸出資訊之至少任一者的輸出入資訊,且為在控制程式中所使用者;分配部,其係對於變數名稱,分配用以識別屬於藉由變數名稱所表示之輸出入資訊之讀取來源之記憶區域、或輸出入資訊之寫入目的地之記憶區域的元件的元件識別符;存取程式產生部,其係使用變數名稱與元件識別符而產生對於元件進行存取的存取程式;及程式合成部,其係用以合成控制程式與存取程式;因此可自動產生用以藉由控制程式來處理在控制裝置中輸出入之輸出入資訊的存取程式,而可削減控制程式的開發工時。 In the program generating apparatus of the present invention, the information extracting unit is configured to extract a variable name for indicating at least the input information input to the control device and the output information outputted from the control device. Any one of the input and output information, and is a user in the control program; the allocation unit assigns a memory area for identifying the source of the input and output information represented by the variable name for the variable name, Or an element identifier of an element of a memory area in which the information is written to the destination; an access program generating unit that generates an access program for accessing the element using the variable name and the component identifier; and a program synthesizing unit It is used to synthesize control programs and access programs. Therefore, it is possible to automatically generate an access program for processing the input and output information input and output in the control device by the control program, thereby reducing the development time of the control program.

4‧‧‧元件編號 4‧‧‧Component number

100、100a、100b、100c‧‧‧程式產生裝置100 100, 100a, 100b, 100c‧‧‧ program generation device 100

101、101c‧‧‧輸入接受部 101, 101c‧‧‧ Input Acceptance Department

102‧‧‧模型儲存部 102‧‧‧Model Storage Department

103‧‧‧控制系統設計部 103‧‧‧Control System Design Department

1031‧‧‧控制系統模型 1031‧‧‧Control system model

104‧‧‧控制程式產生部 104‧‧‧Control Program Generation Department

1041‧‧‧控制程式 1041‧‧‧Control program

105‧‧‧資訊抽出部 105‧‧‧Information Extraction Department

106、106c‧‧‧分配部 106, 106c‧‧‧ Distribution Department

107‧‧‧管理檔案產生部 107‧‧‧Management File Generation Department

1071‧‧‧管理檔案 1071‧‧‧Management files

108‧‧‧存取程式產生部 108‧‧‧Access Program Generation Department

110‧‧‧程式合成部 110‧‧‧Programming and Synthesis Department

111‧‧‧程式記憶部 111‧‧‧Program Memory

112‧‧‧通信處理部 112‧‧‧Communication Processing Department

113‧‧‧元件整理部 113‧‧‧Components Department

114‧‧‧元件抽出部 114‧‧‧Component Extraction Department

115‧‧‧推薦元件算出部 115‧‧‧Recommended component calculation unit

116‧‧‧推薦元件顯示部 116‧‧‧Recommended component display

117‧‧‧分配資訊儲存部 117‧‧‧ Distribution Information Storage Department

1171‧‧‧分配資訊 1171‧‧‧ Distribution Information

1081‧‧‧輸出入用存取程式產生部 1081‧‧‧Input and Access Program Generation Unit

1082‧‧‧通信用存取程式產生部 1082‧‧‧Communication Access Program Generation Department

1083‧‧‧存取程式 1083‧‧‧Access program

10831‧‧‧讀取程式 10831‧‧‧Reader

10832‧‧‧寫入程式 10832‧‧‧Write program

10833‧‧‧輸出入用存取程式 10833‧‧‧Import access program

10834‧‧‧通信用存取程式 10834‧‧‧Communication access program

200、200a、200b、200c‧‧‧控制裝置 200, 200a, 200b, 200c‧‧‧ control devices

201、201a、201b、201c‧‧‧控制裝置模型 201, 201a, 201b, 201c‧‧‧ control device model

202‧‧‧變數名稱 202‧‧‧Variable name

2020‧‧‧一覽 2020‧‧‧List

2021‧‧‧輸入變數名稱 2021‧‧‧Enter variable name

2022‧‧‧輸出變數名稱 2022‧‧‧ Output variable name

203‧‧‧輸出入資訊 203‧‧‧Incoming information

2031‧‧‧輸入資訊 2031‧‧‧Enter information

2032‧‧‧輸出資訊 2032‧‧‧ Output information

2033‧‧‧輸出入資料 2033‧‧‧Incoming data

2034‧‧‧通信資訊 2034‧‧‧Communication Information

210‧‧‧電源 210‧‧‧Power supply

220‧‧‧PLC 220‧‧‧PLC

230‧‧‧元件 230‧‧‧ components

240‧‧‧控制對象機器 240‧‧‧Control object machine

X‧‧‧輸入用元件 X‧‧‧Input components

Y‧‧‧輸出用元件 Y‧‧‧Output components

L‧‧‧通信用元件 L‧‧‧Communication components

2301‧‧‧元件識別符 2301‧‧‧Component identifier

23011‧‧‧讀取來源元件識別符 23011‧‧‧Read source component identifier

23012‧‧‧寫入目的地元件識別符 23012‧‧‧Write destination component identifier

2302‧‧‧元件名稱 2302‧‧‧Component name

2303‧‧‧元件編號 2303‧‧‧Component number

23031‧‧‧推薦元件編號 23031‧‧‧Recommended component number

300‧‧‧控制系統 300‧‧‧Control system

500‧‧‧控制系統網路 500‧‧‧Control system network

601‧‧‧現狀處理時間 601‧‧‧ Current processing time

602‧‧‧推薦處理時間 602‧‧‧Recommended processing time

901‧‧‧處理器 901‧‧‧ processor

902‧‧‧輔助記憶裝置 902‧‧‧Auxiliary memory device

903‧‧‧記憶體 903‧‧‧ memory

904‧‧‧通信裝置 904‧‧‧Communication device

905‧‧‧輸入介面 905‧‧‧Input interface

906‧‧‧顯示器介面 906‧‧‧Display interface

907‧‧‧輸入裝置 907‧‧‧ Input device

908‧‧‧顯示器 908‧‧‧ display

910‧‧‧信號線 910‧‧‧ signal line

911、912‧‧‧纜線 911, 912‧‧‧ cable

9041‧‧‧接收器 9041‧‧‧ Receiver

9042‧‧‧傳送器 9042‧‧‧transmitter

S100、S100a、S100b、S100c‧‧‧程式產生處理 S100, S100a, S100b, S100c‧‧‧ program generation processing

S102‧‧‧控制程式產生處理 S102‧‧‧Control program generation processing

S103‧‧‧資訊抽出處理 S103‧‧‧Information extraction processing

S104‧‧‧分配處理 S104‧‧‧ Distribution processing

S106‧‧‧存取程式產生處理 S106‧‧‧Access program generation processing

S1061‧‧‧輸出入用存取程式產生處理 S1061‧‧‧Import and output access program generation processing

S1062‧‧‧通信用存取程式產生處理 S1062‧‧‧Communication access program generation processing

S107‧‧‧程式合成處理 S107‧‧‧ program synthesis processing

S108‧‧‧控制程式記憶處理 S108‧‧‧Control program memory processing

S109‧‧‧通信處理 S109‧‧‧Communication processing

X‧‧‧通信處理 X‧‧‧Communication processing

Y‧‧‧輸出用元件 Y‧‧‧Output components

L‧‧‧通信用元件 L‧‧‧Communication components

第1圖係實施形態1之程式產生裝置100的方塊構成圖。 Fig. 1 is a block diagram showing the configuration of a program generating apparatus 100 according to the first embodiment.

第2圖係顯示實施形態1之程式產生裝置100中之程式產生方法的流程圖。 Fig. 2 is a flow chart showing a method of generating a program in the program generating apparatus 100 of the first embodiment.

第3圖係顯示實施形態1之控制系統設計部103中之控制 系統模型1031的圖。 Fig. 3 is a view showing control in the control system design section 103 of the first embodiment. Diagram of system model 1031.

第4圖係顯示實施形態1之資訊抽出部105中之輸出入資訊203之抽出的圖。 Fig. 4 is a view showing the extraction of the input/output information 203 in the information extracting unit 105 of the first embodiment.

第5圖係顯示實施形態1之資訊抽出部105中之輸出入資訊203與元件230之關係的圖。 Fig. 5 is a view showing the relationship between the input/output information 203 and the element 230 in the information extracting unit 105 of the first embodiment.

第6圖係顯示實施形態1之藉由程式合成部110進行控制程式1041與存取程式1083之合成處理的圖。 Fig. 6 is a view showing a process of synthesizing the control program 1041 and the access program 1083 by the program synthesizing unit 110 in the first embodiment.

第7圖係實施形態2之程式產生裝置100a的方塊構成圖。 Fig. 7 is a block diagram showing the configuration of the program generating apparatus 100a of the second embodiment.

第8圖係顯示實施形態2之程式產生裝置100a之程式產生處理S100a之一部份的流程圖。 Fig. 8 is a flow chart showing a part of the program generation processing S100a of the program generation device 100a of the second embodiment.

第9圖係實施形態3之程式產生裝置100b的方塊構成圖。 Fig. 9 is a block diagram showing the configuration of the program generating apparatus 100b of the third embodiment.

第10圖係顯示實施形態3之程式產生裝置100b之程式產生處理S100b之一部份的流程圖。 Fig. 10 is a flow chart showing a part of the program generation processing S100b of the program generation device 100b of the third embodiment.

第11圖係實施形態4之程式產生裝置100c的方塊構成圖。 Fig. 11 is a block diagram showing the configuration of the program generating apparatus 100c of the fourth embodiment.

第12圖係顯示實施形態4之程式產生裝置100c之程式產生處理S100c之一部份的流程圖。 Fig. 12 is a flow chart showing a part of the program generation processing S100c of the program generation device 100c of the fourth embodiment.

第13圖係程式產生裝置100的硬體構成圖。 Fig. 13 is a hardware configuration diagram of the program generation device 100.

實施形態1 Embodiment 1

***構成的說明*** ***Composed description***

本實施形態之程式產生裝置100係用於設計控制系統300,該控制系統300係使透過網路連接的複數個控制裝置200的各者一面與其他控制裝置200協同作業一面控制生產設備而製造產品。程式產生裝置100亦被稱為控制系統設計裝置。 The program generation device 100 of the present embodiment is for designing a control system 300 for manufacturing a product by controlling a production facility while operating in cooperation with other control devices 200 by a plurality of control devices 200 connected via a network. . The program generation device 100 is also referred to as a control system design device.

控制裝置200係由工廠內的機器人(robot)、伺服放大器(servo amplifier)、用以控制加工機械等之生產設備的電源、用以執行以C語言程式安裝之控制程式的PLC、輸入機器、輸出機器、通信機器等組合所構成。輸入用元件係為與輸入機器對應之記憶體的記憶區域。輸出用元件係為與輸出機器對應之記憶體的記憶區域。通信用元件係為與通信機器對應之記憶體的記憶區域。 The control device 200 is a robot, a servo amplifier, a power source for controlling a processing machine such as a processing machine, a PLC for executing a control program installed in a C language program, an input device, and an output. A combination of a machine, a communication device, and the like. The input component is a memory area of the memory corresponding to the input device. The output component is a memory area of the memory corresponding to the output device. The communication component is a memory area of the memory corresponding to the communication device.

程式產生裝置100係在使用者設計控制系統300時所使用者,其係配置控制裝置200的模型進行接線,且根據其結果而產生控制程式。再者,程式產生裝置100係在虛擬空間上模擬執行所產生的控制程式,藉此而進行控制系統300之動作的驗證等。 The program generation device 100 is a user who designs the control system 300 by the user, and configures the model of the control device 200 to perform wiring, and generates a control program based on the result. Further, the program generation device 100 performs simulation of the operation of the control system 300 by simulating the execution of the control program generated in the virtual space.

控制裝置200與程式產生裝置100係以USB(Universal Serial Bus,通用串列匯流排)纜線(cable)或Ethernet(註冊商標)(乙太網路)等的網路來連接。 The control device 200 and the program generation device 100 are connected by a network such as a USB (Universal Serial Bus) cable or an Ethernet (registered trademark) (Ethernet).

茲說明程式產生裝置100的概要。 An outline of the program generation apparatus 100 will be described.

程式產生裝置100係配置已將控制裝置200之控制內容模型化的控制裝置模型,且定義所配置的控制裝置模型間的輸出入資訊來設計控制系統模型。控制裝置模型間的輸出入資訊係由在控制程式中所使用的變數名稱所定義。再者,程式產生裝置100係從該控制系統模型的設計資訊抽出表示控制裝置模型的輸出入資訊的變數名稱,且對於所抽出的變數名稱分配元件。變數名稱表示輸入資訊時,對於變數名稱分配讀取來源的元件,其係讀取藉由該變數名稱所表示的輸入資訊。變數名稱 表示輸出資訊時,對於變數名稱分配寫入目的地的元件,其係寫入藉由該變數名稱所表示的輸出資訊。再者,程式產生裝置100係根據變數名稱與元件的分配資訊而自動產生輸出入用的元件存取程式與通信用的元件存取程式。再者,程式產生裝置100係將自動產生的輸出入用的元件存取程式與通信用的元件存取程式插入於控制程式。 The program generation device 100 configures a control device model that has modeled the control content of the control device 200, and defines input and output information between the configured control device models to design a control system model. The input and output information between the control device models is defined by the variable names used in the control program. Furthermore, the program generation device 100 extracts a variable name indicating the input/output information of the control device model from the design information of the control system model, and assigns an element to the extracted variable name. The variable name indicates the input of the information to the variable name, and the input information represented by the variable name is read. Variable name When the output information is indicated, the component whose write address is assigned to the variable name is written with the output information indicated by the variable name. Furthermore, the program generation device 100 automatically generates an element access program for input and output and a component access program for communication based on the variable name and component allocation information. Furthermore, the program generation device 100 inserts an automatically generated component access program for input and output and a component access program for communication into the control program.

茲使用第1圖來說明本實施形態之程式產生裝置100的方塊構成。 The block configuration of the program generation device 100 of the present embodiment will be described using Fig. 1 .

程式產生裝置100係包括:輸入接受部101、模型儲存部102、控制系統設計部103、控制程式產生部104、資訊抽出部105、分配部106、管理檔案產生部107、存取程式產生部108、程式合成部110、程式記憶部111、及通信處理部112。存取程式產生部108係包括:輸出入用存取程式產生部1081、及通信用存取程式產生部1082。 The program generation device 100 includes an input accepting unit 101, a model storage unit 102, a control system design unit 103, a control program generating unit 104, an information extracting unit 105, a distribution unit 106, a management file generating unit 107, and an access program generating unit 108. The program synthesizing unit 110, the program storage unit 111, and the communication processing unit 112. The access program generation unit 108 includes an input/output access program generation unit 1081 and a communication access program generation unit 1082.

輸入接受部101係接受由使用者使用輸入裝置而對程式產生裝置100所輸入的輸入指示。輸入裝置係滑鼠(mouse)、鍵盤(keyboard)等。輸入指示係為配置已將控制裝置200模型化的控制裝置模型201的操作指示、將控制裝置模型201間接線的操作指示、將控制程式1041寫入至控制裝置200的寫入指示等。 The input accepting unit 101 accepts an input instruction input to the program generating device 100 by the user using the input device. The input device is a mouse, a keyboard, and the like. The input instruction is an operation instruction of the control device model 201 in which the control device 200 has been modeled, an operation instruction to connect the control device model 201, a write instruction to write the control program 1041 to the control device 200, and the like.

模型儲存部102係用以儲存已將控制裝置200之功能模型化的控制裝置模型201。模型儲存部102係將已定義有屬於控制裝置200之控制內容之功能的資料予以儲存作為控制裝置模型201。 The model storage unit 102 is for storing a control device model 201 that has modeled the functions of the control device 200. The model storage unit 102 stores data in which the function of the control content belonging to the control device 200 has been defined as the control device model 201.

控制系統設計部103係根據來自使用者的輸入指示,來設計控制系統300,且產生已將控制系統300之設計內容模型化的控制系統模型1031。控制系統模型1031係控制系統300的設計資訊。使用者係使用輸入接受部101與控制系統設計部103,來選擇控制裝置模型201,且配置所選択的控制裝置模型201,再將所配置的控制裝置模型201彼此予以接線,而實施控制系統300的設計。 The control system design unit 103 designs the control system 300 based on an input instruction from the user, and generates a control system model 1031 that has modeled the design content of the control system 300. The control system model 1031 is the design information of the control system 300. The user uses the input accepting unit 101 and the control system design unit 103 to select the control device model 201, and configures the selected control device model 201, and then connects the configured control device models 201 to each other, and implements the control system 300. the design of.

控制程式產生部104係產生藉由控制裝置200所執行的控制程式1041。控制程式產生部104係根據在控制系統設計部103中所產生的控制系統模型1031,而以控制裝置200單位來產生用以控制控制裝置200之動作的控制程式1041。 The control program generation unit 104 generates a control program 1041 that is executed by the control device 200. The control program generation unit 104 generates a control program 1041 for controlling the operation of the control device 200 in units of the control device 200 based on the control system model 1031 generated in the control system design unit 103.

資訊抽出部105係用以抽出表示輸出入資訊203的變數名稱202且為在控制程式1041中所使用的變數名稱202,該輸出入資訊203係包括輸入於控制裝置200的輸入資訊2031及從控制裝置200所輸出之輸出資訊2032之至少任一者。 The information extracting unit 105 is configured to extract the variable name 202 indicating the input/output information 203 and is the variable name 202 used in the control program 1041. The input/output information 203 includes the input information 2031 and the slave control input to the control device 200. At least one of the output information 2032 output by the device 200.

資訊抽出部105係根據配置於控制系統設計部103之控制裝置模型201的配置資訊與控制裝置模型201間的接線資訊,而抽出表示控制裝置200之輸出入資訊203的變數名稱202。亦即,資訊抽出部105係根據藉由控制系統設計部103所產生的控制系統模型1031,而抽出表示控制裝置200之輸出入資訊203的變數名稱202。 The information extracting unit 105 extracts the variable name 202 indicating the input/output information 203 of the control device 200 based on the wiring information between the arrangement information of the control device model 201 and the control device model 201 disposed in the control system design unit 103. In other words, the information extracting unit 105 extracts the variable name 202 indicating the input/output information 203 of the control device 200 based on the control system model 1031 generated by the control system design unit 103.

如第3圖及第4圖所示,在控制裝置200的輸出入資訊203中,係包含輸入於控制裝置200的輸入資訊2031、 及從控制裝置200所輸出的輸出資訊2032。此外,將輸入資訊2031的變數名稱202設為輸入變數名稱2021、輸出資訊2032的變數名稱202設為輸出變數名稱2022。 As shown in FIGS. 3 and 4, the input/output information 203 of the control device 200 includes input information 2031 input to the control device 200. And output information 2032 output from the control device 200. Further, the variable name 202 in which the variable name 202 of the input information 2031 is set as the input variable name 2021 and the output information 2032 is set as the output variable name 2022.

此外,在控制裝置200的輸出入資訊203中,係包含以控制裝置200單體輸入或輸出的輸出入資料2033、及在控制裝置200間收付的通信資料2034。 Further, the input/output information 203 of the control device 200 includes input/output data 2033 that is input or outputted by the control device 200, and communication data 2034 that is received and received between the control devices 200.

資訊抽出部105係從控制系統模型1031抽出在由控制程式產生部104所產生之控制程式1041中所使用的變數名稱202。 The information extracting unit 105 extracts the variable name 202 used in the control program 1041 generated by the control program generating unit 104 from the control system model 1031.

分配部106係對於變數名稱202分配元件識別符2301,該元件識別符2301係用以識別儲存藉由變數名稱202所表示之輸出入資訊203之記憶體的記憶區域,亦即元件230。關於元件230及元件識別符2301將於後陳述。 The assigning unit 106 assigns a component identifier 2301 to the variable name 202 for identifying a memory area of the memory storing the input/output information 203 represented by the variable name 202, that is, the component 230. The element 230 and the component identifier 2301 will be described later.

分配部106係使用輸入接受部101而根據由使用者所輸入的輸入指示,對於表示輸出入資訊203的變數名稱202分配元件識別符2301。例如,分配部106將經由資訊抽出部105所抽出之輸出入資訊203的變數名稱202顯示於顯示裝置,且由使用者對於所顯示的變數名稱202,將要分配的元件名稱與元件編號定義作為元件識別符2301。 The distribution unit 106 uses the input accepting unit 101 to assign the component identifier 2301 to the variable name 202 indicating the input/output information 203 based on the input instruction input by the user. For example, the assigning unit 106 displays the variable name 202 of the input/output information 203 extracted via the information extracting unit 105 on the display device, and the user defines the component name and the component number to be assigned as the component for the displayed variable name 202. Identifier 2301.

管理檔案產生部107係產生表示輸出入資訊203的變數名稱202與元件識別符2301建立對應關係的資訊作為管理檔案1071。管理檔案產生部107係以例如CSV形式產生管理檔案1071。 The management file generation unit 107 generates, as the management file 1071, information indicating that the variable name 202 of the input/output information 203 and the component identifier 2301 are associated with each other. The management file generation unit 107 generates the management file 1071 in, for example, a CSV format.

存取程式產生部108係使用變數名稱202與元件 識別符2301,來產生對於元件230進行存取的存取程式1083。存取程式產生部108係使用設定於管理檔案1071的變數名稱202及元件識別符2301、及所要存取之元件230專用的元件存取函數而產生存取程式1083。 The access program generation unit 108 uses the variable name 202 and the component The identifier 2301 generates an access program 1083 for accessing the component 230. The access program generation unit 108 generates the access program 1083 using the variable name 202 and the component identifier 2301 set in the management file 1071 and the component access function dedicated to the component 230 to be accessed.

輸出入用存取程式產生部1081係產生關於輸出入資訊203中之以控制裝置200單體輸入或輸出之輸出入資料2033的存取程式1083作為輸出入用存取程式10833。 The input/output access program generating unit 1081 generates an access program 1083 for inputting and outputting data 2033 that is input or outputted by the control device 200 in the input/output information 203 as an input/output access program 10833.

輸出入用存取程式產生部1081係根據儲存於管理檔案1071之輸出入資訊203中之表示輸出入資料2033的變數名稱202、及分配於該變數名稱202的元件名稱及元件編號,而產生輸出入用存取程式10833。輸出入用存取程式產生部1081係對於元件230中之與輸出入資料2033對應的輸出入用元件進行存取。輸出入用存取程式產生部1081係使用專用的函數於輸出入用存取程式10833的產生上。所謂專用的函數,係指用以從與輸出入資料2033對應的輸入用元件讀取輸出入資料2033,或對於與輸出入資料2033對應的輸出用元件寫入輸出入資料2033之所屬元件專用的函數。輸出入用存取程式10833的處理係為使用所屬之輸出入用元件專用的函數,而對於依輸出入資訊203之每一變數名稱202所分配之元件識別符的輸出入用元件進行存取的處理。 The input/output access program generating unit 1081 generates an output based on the variable name 202 indicating the input/output data 2033 stored in the input/output information 203 of the management file 1071, and the component name and component number assigned to the variable name 202. The access program 10833 is used. The input/output access program generation unit 1081 accesses the input/output elements corresponding to the input/output data 2033 of the element 230. The input/output access program generating unit 1081 uses a dedicated function for generating the input/output access program 10833. The dedicated function is used to read the input/output data 2033 from the input component corresponding to the input/output data 2033, or to write the input component 2033 to the component corresponding to the input/output data 2033. function. The processing for the input/output access program 10833 is a function specific to the input and output component to which the input is used, and access is made to the input and output component of the component identifier assigned to each variable name 202 of the input/output information 203. deal with.

通信用存取程式產生部1082係產生關於輸出入資訊203中之在控制裝置200間收付之通信資料2034的存取程式1083作為通信用存取程式10834。 The communication access program generating unit 1082 generates an access program 1083 for the communication data 2034 received and received between the control devices 200 in the input/output information 203 as the communication access program 10834.

通信用存取程式產生部1082係根據儲存於管理檔案1071 之輸出入資訊203中之表示通信資料2034的變數名稱202、及分配於該變數名稱202之元件名稱及元件編號,而產生通信用存取程式10834。通信用存取程式產生部1082係使用專用的函數於通信用存取程式10834的產生上。所謂專用的函數,係指用以從與通信資料2034對應的通信用元件讀取通信資料2034,或對於與通信資料2034對應的通信用元件寫入通信資料2034之所屬元件專用的函數。通信用存取程式10834的處理係為使用所屬元件專用的函數,而對於依輸出入資訊203之每一變數名稱202所分配之元件識別符的通信用元件進行存取的處理。 The communication access program generating unit 1082 is stored in the management file 1071 based on The variable name 202 indicating the communication data 2034 in the input/output information 203, and the component name and component number assigned to the variable name 202 generate a communication access program 10834. The communication access program generation unit 1082 uses a dedicated function for generating the communication access program 10834. The dedicated function refers to a function dedicated to reading the communication data 2034 from the communication element corresponding to the communication material 2034 or writing the communication element 2034 to the communication element corresponding to the communication data 2034. The processing of the communication access program 10834 is a process of accessing the communication element of the component identifier assigned to each variable name 202 of the input/output information 203 using a function specific to the component.

程式合成部110係用以合成控制程式1041與存取程式1083。 The program synthesizing unit 110 is for synthesizing the control program 1041 and the access program 1083.

程式合成部110係將在存取程式產生部108自動產生的通信用存取程式產生部1083,插入於藉由控制程式產生部104而自動產生的控制程式1041。如上所述,在存取程式1083中,係包含輸出入用存取程式10833與通信用存取程式10834。 The program synthesizing unit 110 inserts the communication access program generating unit 1083 automatically generated by the access program generating unit 108 into the control program 1041 automatically generated by the control program generating unit 104. As described above, the access program 1083 includes the input/output access program 10833 and the communication access program 10834.

程式合成部110係從存取程式1083抽出相對於對於控制裝置200之輸入的部分,且插入於控制程式1041的標頭(header)部分。此外,程式合成部110係從存取程式1083抽出相當於來自控制裝置200之輸出的部分,且插入於控制程式1041的標頭部分。 The program synthesizing unit 110 extracts a portion from the access program 1083 with respect to the input to the control device 200, and inserts it into a header portion of the control program 1041. Further, the program synthesizing unit 110 extracts a portion corresponding to the output from the control device 200 from the access program 1083, and inserts it into the header portion of the control program 1041.

程式記憶部111係儲存藉由程式合成部110插入存取程式1083的控制程式1041。 The program storage unit 111 stores a control program 1041 in which the program synthesizing unit 110 inserts the access program 1083.

通信處理部112係接受來自使用者之使用了輸入接受部 101的輸入指示,而將儲存於程式記憶部111的控制程式1041寫入於控制裝置200。通信處理部112係透過USB纜線、乙太網路(註冊商標)等的網路來進行將控制程式1041寫入於控制裝置200的處理。 The communication processing unit 112 accepts an input accepting unit from the user. The input instruction of 101 is written in the control program 1041 stored in the program storage unit 111. The communication processing unit 112 performs a process of writing the control program 1041 to the control device 200 via a network such as a USB cable or an Ethernet (registered trademark).

***動作的說明*** *** Description of action***

接著,使用第2圖至第6圖來說明本實施形態之程式產生裝置100中的程式產生方法、及程式產生處理S100。 Next, the program generation method and the program generation processing S100 in the program generation device 100 of the present embodiment will be described using Figs. 2 to 6 .

第2圖係顯示本實施形態之程式產生裝置100中之程式產生方法的流程圖。 Fig. 2 is a flow chart showing a method of generating a program in the program generating apparatus 100 of the present embodiment.

第3圖係顯示本實施形態之控制系統設計部103中之控制系統模型1031的圖。 Fig. 3 is a view showing a control system model 1031 in the control system design unit 103 of the present embodiment.

第4圖係顯示本實施形態之資訊抽出部105中之輸出入資訊203之抽出的圖。 Fig. 4 is a view showing the extraction of the input/output information 203 in the information extracting unit 105 of the present embodiment.

第5圖係顯示本實施形態之資訊抽出部105中之輸出入資訊203與元件230之關係的圖。 Fig. 5 is a view showing the relationship between the input/output information 203 and the element 230 in the information extracting unit 105 of the present embodiment.

第6圖係顯示本實施形態之程式合成部110中之控制程式1041與存取程式1083之合成的圖。 Fig. 6 is a view showing a combination of the control program 1041 and the access program 1083 in the program synthesizing unit 110 of the present embodiment.

在第3圖中,係顯示使用程式產生裝置100,而實施了3個控制裝置200a、200b、200c以控制系統網路500連接的控制系統300的設計的情形。如第5圖所示,控制裝置200a係包括:電源210、PLC220、輸入用元件X、輸出用元件Y、通信用元件L等的各種元件230。元件230係連接於處理器(processor)、機器人等的控制對象機器240。控制裝置200a係根據在PLC220上執行的控制程式而控制控制對象機器240。 In Fig. 3, the case where the program generating apparatus 100 is used and the three control apparatuses 200a, 200b, 200c are implemented to control the design of the control system 300 to which the system network 500 is connected is shown. As shown in FIG. 5, the control device 200a includes various elements 230 such as a power source 210, a PLC 220, an input element X, an output element Y, and a communication element L. The component 230 is connected to a control target device 240 such as a processor or a robot. The control device 200a controls the control target device 240 based on the control program executed on the PLC 220.

在第4圖中,係顯示資訊抽出部105從控制系統模型1031依每一控制裝置模型201抽出輸出入資訊203之變數名稱202的情形。如上所述,所謂控制系統模型1031係控制系統300的設計資訊,包含控制裝置模型201的資訊、及控制裝置模型201間的接線資訊等。 In the fourth drawing, the information extracting unit 105 extracts the variable name 202 of the input/output information 203 from the control system model 1031 for each control device model 201. As described above, the control system model 1031 is design information of the control system 300, and includes information of the control device model 201, wiring information between the control device models 201, and the like.

在第5圖中係顯示控制裝置200a為由輸入機器的輸入用元件(在此係設為輸入用元件X)接收來自感測器(sensor)的信號,且由PLC220根據來自感測器的信號而在控制程式內執行運算處理的情形。此外,PLC220將運算處理的結果設定於輸出機器的輸出用元件(在此係設為輸出用元件Y),藉此控制連接於輸出機器之目的地之控制對象機器240(例如伺服放大器或機器人等)的動作。 In Fig. 5, the display control device 200a receives a signal from a sensor by an input device of the input device (here, the input device X), and is based on a signal from the sensor by the PLC 220. The case where the arithmetic processing is executed in the control program. Further, the PLC 220 sets the result of the arithmetic processing to the output device of the output device (here, the output device Y), thereby controlling the control target device 240 (for example, a servo amplifier or a robot, etc.) connected to the destination of the output device. )Actions.

此外,亦有在控制裝置200a與其他控制裝置200b、200c之間透過控制系統網路500而進行資料之收付的情形。例如,將控制裝置200a之加工已完成之內容,通知下一步驟的控制裝置200b的情形等。在通信機器的通信用元件(在此係設為通信用元件L)中,對於預先設定之控制裝置200a用的區域進行資料的讀寫,藉此將各控制裝置200之通信用元件的資料以預先指定的周期進行更新(refresh(重新載入))。 Further, there is a case where data is collected and received between the control device 200a and the other control devices 200b and 200c through the control system network 500. For example, the content of the processing of the control device 200a is completed, and the situation of the control device 200b of the next step is notified. In the communication device of the communication device (here, the communication device L), data is read and written to a region for the control device 200a that is set in advance, whereby the data of the communication component of each control device 200 is used. Update (refresh) in a pre-specified period.

此外,為了要對輸入用元件X、輸出用元件Y、通信用元件L進行存取,需要有由PLC220之製造廠商所提供之專用的函數。程式產生裝置100係選擇用以對於分配在輸出入資訊203之變數名稱202的元件名稱進行存取的函數,且使用所選擇的函數而產生對於各元件進行存取的輸出入用存取 程式10833與通信用存取程式10834。在第6圖中,係顯示程式產生裝置100將輸出入用存取程式10833及通信用存取程式10834插入於控制程式1041的例子。 Further, in order to access the input element X, the output element Y, and the communication element L, a dedicated function provided by the manufacturer of the PLC 220 is required. The program generation device 100 selects a function for accessing the component name assigned to the variable name 202 of the input/output information 203, and uses the selected function to generate an input/output access for accessing each component. The program 10833 and the communication access program 10834. In the sixth drawing, the program generation device 100 inserts the input/output access program 10833 and the communication access program 10834 into the control program 1041.

<控制系統設計處理S101> <Control System Design Processing S101>

在S101中,控制系統設計部103係根據藉由輸入接受部101所接受的輸入指示,而產生屬於控制系統300之設計資訊的控制系統模型1031。控制系統設計部103係取得儲存於模型儲存部102的控制裝置模型201,且產生對於所取得的控制裝置模型201定義有輸入變數名稱2021與輸出變數名稱2022的控制系統模型1031。 In S101, the control system design unit 103 generates a control system model 1031 belonging to the design information of the control system 300 based on the input instruction accepted by the input accepting unit 101. The control system design unit 103 acquires the control device model 201 stored in the model storage unit 102, and generates a control system model 1031 in which the input variable name 2021 and the output variable name 2022 are defined for the acquired control device model 201.

茲使用第3圖,且使用具體例來說明控制系統設計處理S101。 The third figure is used, and the control system design process S101 is explained using a specific example.

首先,使用者使用輸入接受部101,從儲存於模型儲存部102的控制裝置模型201群選擇控制裝置200a的控制裝置模型201a、控制裝置200b的控制裝置模型201b、控制裝置200c的控制裝置模型201c。再者,使用者係將所選択的控制裝置模型201a、201b、201c配置於控制系統設計部103。所謂配置於控制系統設計部103,係例如使用者使用藉由控制系統設計部103而顯示於顯示畫面的控制系統設計畫面而配置控制裝置模型201。 First, the user uses the input accepting unit 101 to select the control device model 201a of the control device 200a, the control device model 201b of the control device 200b, and the control device model 201c of the control device 200c from the control device model 201 group stored in the model storage unit 102. . Furthermore, the user arranges the selected control device models 201a, 201b, and 201c in the control system design unit 103. The control system design unit 103 is disposed, for example, by the user using the control system design screen displayed on the display screen by the control system design unit 103.

接著針對所配置之控制裝置模型201的各者,定義與輸出入資訊203對應的變數名稱202。在變數名稱202中,係包含輸入變數名稱2021及輸出變數名稱2022。 Next, for each of the configured control device models 201, a variable name 202 corresponding to the input/output information 203 is defined. In the variable name 202, the input variable name 2021 and the output variable name 2022 are included.

在第3圖的控制裝置模型201a中,係輸入有來自感測器 的輸入信號作為輸入資訊2031。在第3圖中,來自感測器的輸入信號係顯示輸入變數名稱2021為感測器輸入。此外,從控制裝置模型201a,輸出有輸出變數名稱2022分別為步驟完成、搬運開始、移動開始的3個輸出資訊2032。其中,輸出變數名稱2022為搬運開始、移動開始的2個輸出資訊2032係輸出入資料2033,而輸出變數名稱2022為步驟完成的輸出資訊2032則為傳送至控制裝置200b的通信資料2034。 In the control device model 201a of Fig. 3, the input is from the sensor. The input signal is used as input information 2031. In Figure 3, the input signal from the sensor shows the input variable name 2021 as the sensor input. Further, from the control device model 201a, the output variable names 2022 are outputted as three pieces of output information 2032 for completion of the steps, start of transportation, and start of movement. The output variable name 2022 is the output information 2033 for the start of the transfer and the start of the movement, and the output information 2032 for the output variable name 2022 is the communication data 2034 transmitted to the control device 200b.

如此,在控制裝置200間必須有資料的收付時,係依每一資料將控制裝置模型201間進行接線。 In this manner, when there is a need to collect and pay for data between the control devices 200, the control device model 201 is wired for each data.

在第3圖中,係將控制裝置模型201a的步驟完成的輸出、及控制裝置模型201b的步驟開始的輸入間予以接線。此外,將控制裝置模型201b之步驟完成的輸出與控制裝置模型201c之步驟開始的輸入間予以接線。 In Fig. 3, the output of the control device model 201a and the input of the control device model 201b are wired. Further, the output of the step of controlling the device model 201b is wired to the input of the step of the control device model 201c.

另外,在本實施形態中,雖設為在控制裝置模型201間僅收付1個資料,但在模型間收付複數個資料時,係將模型的輸出入予以接線相應於該資料數。此外,在控制裝置模型201a與控制裝置模型201c之間有資料的收付時,亦可將控制裝置模型201a與控制裝置模型201c的輸出入予以接線,此外亦可從控制裝置模型201b朝向控制裝置模型201a進行接線。 Further, in the present embodiment, it is assumed that only one piece of data is received between the control device models 201. However, when a plurality of pieces of data are received and received between the models, the output of the model is wired to correspond to the number of the data. Further, when there is data receipt and payment between the control device model 201a and the control device model 201c, the output of the control device model 201a and the control device model 201c may be wired, or may be from the control device model 201b toward the control device. The model 201a is wired.

<控制程式產生處理S102> <Control program generation processing S102>

控制程式產生部104係執行控制程式產生處理S102,該控制程式產生處理S102係產生藉由控制裝置200所執行的控制程式1041。 The control program generation unit 104 executes a control program generation process S102 for generating a control program 1041 executed by the control device 200.

控制程式產生部104係根據藉由控制系統設計部103所設 計的控制系統模型1031,而自動產生控制程式1041。 The control program generation unit 104 is configured by the control system design unit 103. The control system model 1031 is automatically generated and the control program 1041 is automatically generated.

例如,控制系統300的設計一完成,使用者就使用輸入接受部101而作出控制程式1041的產生指示。控制程式產生部104係當接收產生指示時即根據控制系統模型1031而自動產生控制程式1041。在此產生的控制程式1041係以控制裝置200的PLC220單位產生。在第3圖之例中,係以控制裝置200a、控制裝置200b、控制裝置200c的各控制裝置200為對象而分別產生控制程式1041。 For example, upon completion of the design of the control system 300, the user uses the input accepting unit 101 to make an indication of the generation of the control program 1041. The control program generation unit 104 automatically generates the control program 1041 based on the control system model 1031 when receiving the generation instruction. The control program 1041 generated here is generated in units of PLC 220 of the control device 200. In the example of Fig. 3, the control program 1041 is generated for each of the control devices 200 of the control device 200a, the control device 200b, and the control device 200c.

<資訊抽出處理S103> <Information extraction processing S103>

資訊抽出部105係執行抽出變數名稱202的資訊抽出處理S103,該變數名稱202為表示輸入於或輸出自控制裝置200之輸出入資訊203的變數名稱202且為在控制程式1041中所使用者。 The information extracting unit 105 executes an information extracting process S103 for extracting the variable name 202, which is a variable name 202 indicating the input/output information 203 input to or output from the control device 200, and is a user in the control program 1041.

資訊抽出部105係從控制系統模型1031抽出表示控制裝置模型201中之輸出入資訊203的變數名稱202。資訊抽出部105係抽出表示輸入於控制裝置200之輸入資訊2031的輸入變數名稱2021且為在控制程式1041中所使用的輸入變數名稱2021。此外,資訊抽出部105係抽出表示從控制裝置200所輸出之輸出資訊2032的輸出變數名稱2022且為在控制程式1041中所使用的輸出變數名稱2022。 The information extracting unit 105 extracts the variable name 202 indicating the input/output information 203 in the control device model 201 from the control system model 1031. The information extracting unit 105 extracts the input variable name 2021 indicating the input information 2031 input to the control device 200 and is the input variable name 2021 used in the control program 1041. Further, the information extracting unit 105 extracts the output variable name 2022 indicating the output information 2032 output from the control device 200 and is the output variable name 2022 used in the control program 1041.

資訊抽出部105係從第4圖的控制系統模型1031,抽出感測器輸入、步驟完成、搬運開始、移動開始作為表示控制裝置200a之輸出入資訊203的變數名稱202。感測器輸入係輸入變數名稱2021,而步驟完成、搬運開始、移動開始 係輸出變數名稱2022。此外,感測器輸入、搬運開始、移動開始所表示的輸出入資訊203係輸出入資料2033,而步驟完成所表示的輸出入資訊203係通信資料2034。 The information extracting unit 105 extracts the sensor input, the step completion, the conveyance start, and the movement start as the variable name 202 indicating the input/output information 203 of the control device 200a from the control system model 1031 of FIG. The sensor input system enters the variable name 2021, and the step is completed, the handling starts, and the movement starts. The output variable name 2022 is output. Further, the input/output information 203 indicated by the sensor input, the start of the transport, and the start of the movement is the input/output data 2033, and the step of completing the indicated input/output information 203 is the communication data 2034.

在變數名稱202中係設定有顯示是輸入資訊2031還是輸出資訊2032的輸出入種類。在第4圖中,係在屬於輸入變數名稱2021的感測器輸入中設定有輸入作為輸出入種類。此外,在屬於輸出變數名稱2022的步驟完成、搬運開始、移動開始中係設定有輸出作為輸出入種類。 In the variable name 202, an input/output type in which the display is the input information 2031 or the output information 2032 is set. In Fig. 4, an input is set as the input/output type in the sensor input belonging to the input variable name 2021. Further, when the step belonging to the output variable name 2022 is completed, the conveyance is started, and the movement is started, an output is set as the input/output type.

<分配處理S104> <Assignment Processing S104>

分配部106係執行對於變數名稱202分配元件識別符2301的分配處理S104,該元件識別符2301係用以識別儲存有藉由變數名稱202所表示之輸出入資訊203的元件230。 The assigning unit 106 performs an assigning process S104 for assigning the component identifier 2301 to the variable name 202, the component identifier 2301 being used to identify the component 230 storing the input/output information 203 represented by the variable name 202.

分配部106係對於輸入變數名稱2021分配讀取來源元件識別符23011作為元件識別符2301,該讀取來源元件識別符23011係用以識別藉由輸入變數名稱2021所表示之輸入資訊2031之讀取來源,亦即讀取來源元件。此外,分配部106係對於輸出變數名稱2022分配寫入目的地元件識別符23012作為元件識別符2301,該寫入目的地元件識別符23012係用以識別藉由輸出變數名稱2022所表示之輸出資訊2032之寫入目的地,亦即寫入目的地元件。 The allocation unit 106 assigns a read source element identifier 23011 to the input variable name 2021 as a component identifier 2301 for identifying the input information 2031 represented by the input variable name 2021. Source, that is, read source components. Further, the allocating unit 106 assigns a write destination element identifier 23012 to the output variable name 2022 as a component identifier 2301 for identifying output information represented by the output variable name 2022. The write destination of 2032, that is, the destination component.

如第4圖及第5圖所示,在本實施形態中,來自感測器的感測器輸入,係從屬於輸入機器之輸入用元件X的元件編號1讀入。此外,從控制裝置200a輸出之搬運開始的信號,係被寫入於屬於輸出機器之輸出用元件Y的元件編號1, 而從控制裝置200a輸出之移動開始的信號,係被寫入於屬於輸出機器之輸出用元件Y的元件編號4。此外,從控制裝置200a傳送至控制裝置200b之步驟完成的信號,係被寫入於屬於通信機器之通信用元件L的元件編號1。 As shown in Figs. 4 and 5, in the present embodiment, the sensor input from the sensor is read from the component number 1 belonging to the input device X of the input device. Further, the signal for starting the conveyance output from the control device 200a is written in the component number 1 belonging to the output device Y of the output device, The signal from the start of the movement output from the control device 200a is written in the component number 4 belonging to the output device Y of the output device. Further, the signal that is completed from the control device 200a to the control device 200b is written in the component number 1 of the communication element L belonging to the communication device.

例如,分配部106係將表示在資訊抽出部105中所抽出之輸出入資訊203的變數名稱202予以顯示於顯示畫面。使用者係使用輸入接受部101,而對於顯示於顯示畫面之變數名稱202的各者分配元件名稱2302及元件編號2303作為元件識別符2301。 For example, the distribution unit 106 displays the variable name 202 indicating the input/output information 203 extracted by the information extracting unit 105 on the display screen. The user uses the input accepting unit 101, and assigns the component name 2302 and the component number 2303 as the component identifier 2301 to each of the variable names 202 displayed on the display screen.

具體而言,在變數名稱202的感測器輸入中,係分配有元件名稱X及元件編號1作為元件識別符2301。在變數名稱202的步驟完成中,係分配有元件名稱L及元件編號1作為元件識別符2301。在變數名稱202的搬運開始中,係分配有元件名稱Y及元件編號1作為元件識別符2301。在變數名稱202的移動開始中,係分配有元件名稱Y及元件編號4作為元件識別符2301。 Specifically, in the sensor input of the variable name 202, the component name X and the component number 1 are assigned as the component identifier 2301. In the completion of the step of the variable name 202, the component name L and the component number 1 are assigned as the component identifier 2301. In the start of the transfer of the variable name 202, the component name Y and the component number 1 are assigned as the component identifier 2301. In the start of the movement of the variable name 202, the component name Y and the component number 4 are assigned as the component identifier 2301.

<管理檔案產生處理S105> <Management File Generation Processing S105>

管理檔案產生部107係作成用以儲存藉由分配部106分配於變數名稱202之元件名稱2302及元件編號2303之資訊的管理檔案1071,且管理所作成的管理檔案1071。在此產生的管理檔案1071係以CSV形式檔案作成,且以逗點區隔方式儲存表示輸出入資訊203的變數名稱202、及分配於該變數名稱202的元件名稱2302及元件編號2303。然而,該管理檔案1071係設為亦可作成不同於CSV形式檔案之其他形式的檔案。此 外,該管理檔案1071係以分配部106開啟而顯示所儲存的資訊,可由使用者來確認,亦可使用輸入接受部101來編輯。 The management file generation unit 107 is configured to store the management file 1071 of the information of the component name 2302 and the component number 2303 assigned to the variable name 202 by the distribution unit 106, and manage the created management file 1071. The management file 1071 generated here is created in a CSV format file, and the variable name 202 indicating the input/output information 203 and the component name 2302 and the component number 2303 assigned to the variable name 202 are stored in a comma separated manner. However, the management file 1071 is set to other forms of files that can be made different from the CSV file. this Further, the management file 1071 is displayed by the distribution unit 106 to display the stored information, which can be confirmed by the user or edited by the input accepting unit 101.

<存取程式產生處理S106> <access program generation processing S106>

存取程式產生部108係執行存取程式產生處理S106,該存取程式產生處理S106係產生使用變數名稱202與元件識別符2301而對於元件230進行存取的存取程式1083。 The access program generation unit 108 executes an access program generation process S106 for generating an access program 1083 for accessing the element 230 using the variable name 202 and the component identifier 2301.

存取程式產生部108係產生使用輸入變數名稱2021與讀取來源元件識別符23011而讀取輸入資訊2031的讀取程式10831作為存取程式1083。讀取來源元件識別符23011係為讀取輸入資訊2031之讀取來源的元件。 The access program generation unit 108 generates a program 10831 for reading the input information 2031 using the input variable name 2021 and the read source element identifier 23011 as the access program 1083. The read source component identifier 23011 is an element that reads the source of the input information 2031.

此外,存取程式產生部108係產生使用輸出變數名稱2022與寫入目的地元件識別符23012而寫入輸出資訊2032的寫入程式10832作為存取程式1083。寫入目的地元件識別符23012係為寫入輸出資訊2032之寫入目的地的元件。 Further, the access program generation unit 108 generates a write program 10832 for writing the output information 2032 using the output variable name 2022 and the write destination element identifier 23012 as the access program 1083. The write destination element identifier 23012 is an element that writes the write destination of the output information 2032.

存取程式產生處理S106係包括輸出入用存取程式產生處理S1061、及通信用存取程式產生處理S1062。 The access program generation processing S106 includes an input/output access program generation processing S1061 and a communication access program generation processing S1062.

輸出入用存取程式產生處理S1061係產生關於輸出入資料2033的輸出入用存取程式。通信用存取程式產生處理S1062係產生關於通信資料2034的通信用存取程式。 The input/output access program generation processing S1061 generates an input/output access program for the input/output data 2033. The communication access program generation processing S1062 generates a communication access program for the communication data 2034.

<輸出入用存取程式產生處理S1061> <Import and output access program generation processing S1061>

輸出入用存取程式產生部1081係從在管理檔案產生部107中所產生的管理檔案1071抽出分配有輸入用元件X及輸出用元件Y之輸出入資料2033的變數名稱202。輸出入用存取程式產生部1081係從所抽出的變數名稱202分類為分配有 輸入用元件X的輸出入資料2033與分配有輸出用元件Y的輸出入資料2033。由於對各元件進行存取時所利用的函數依元件種類而有不同,因此關於分配有輸入用元件X之元件名稱之輸出入資料2033的變數名稱202,係使用用以對於輸入用元件X進行存取的函數(在第6圖之例中係getX函數)而產生輸出入用元件存取程式。同樣地,關於分配有輸出用元件Y之元件名稱之輸出入資料2033的變數名稱202,係使用用以對於輸出用元件Y進行存取的函數(在第6圖之例中係setY函數)而產生輸出入用元件存取程式。 The input/output access program generating unit 1081 extracts the variable name 202 to which the input/output data 2033 of the input element X and the output element Y are allocated, from the management file 1071 generated by the management file generating unit 107. The input/output access program generating unit 1081 classifies the extracted variable name 202 into an allocated The input/output data 2033 of the input component X and the input/output data 2033 to which the output component Y is allocated. Since the function used for accessing each element differs depending on the type of the component, the variable name 202 of the input/output data 2033 to which the component name of the input component X is assigned is used for the input component X. The access function (the getX function in the example of Fig. 6) generates an input/output component access program. Similarly, the variable name 202 of the input/output data 2033 to which the component name of the output element Y is assigned is a function for accessing the output element Y (the setY function in the example of Fig. 6). Generate input and output component access programs.

<通信用存取程式產生處理S1062> <Communication access program generation processing S1062>

通信用存取程式產生部1082係從在管理檔案產生部107中所產生的管理檔案1071抽出被分配有通信用元件L之通信資料2034的變數名稱202。通信用存取程式產生部1082係將所抽出的變數名稱202分類為輸出入種類為輸入者與輸出者。輸出入種類為輸入時,該變數名稱202所表示的通信資料2034,係指利用從通信用元件L讀取自其他控制裝置所收到之資料的函數。此外,輸出入種類為輸出時,該變數名稱202所表示的通信資料2034,係指利用將傳送至其他控制裝置的資料寫入於通信用元件L的函數。使用用以對於通信用元件L進行存取的函數而產生通信用存取程式。在第6圖所示之例中,由於屬於通信資料2034之變數名稱202之步驟完成的輸出入種類為輸出,因此利用用以將資料寫入於通信用元件L的WriteData函數。例如,輸出入種類為輸入時,係利用用以從通信用元件L讀取資料的ReadData函數。 The communication access program generation unit 1082 extracts the variable name 202 of the communication data 2034 to which the communication element L is allocated, from the management file 1071 generated by the management file generation unit 107. The communication access program generation unit 1082 classifies the extracted variable name 202 into an input/output type as an input person and an output person. When the input type is input, the communication data 2034 indicated by the variable name 202 is a function that reads data received from another control device from the communication element L. Further, when the input/output type is an output, the communication data 2034 indicated by the variable name 202 is a function for writing data transmitted to another control device to the communication element L. A communication access program is generated using a function for accessing the communication element L. In the example shown in Fig. 6, since the input/output type completed by the step belonging to the variable name 202 of the communication material 2034 is an output, the WriteData function for writing data to the communication element L is used. For example, when the input/output type is input, a ReadData function for reading data from the communication element L is used.

<程式合成處理S107> <Program Synthesis Processing S107>

程式合成部110係執行用以合成控制程式1041與存取程式1083的程式合成處理S107。 The program synthesizing unit 110 executes a program synthesizing process S107 for synthesizing the control program 1041 and the access program 1083.

如第6圖所示,程式合成部110係將讀取程式10831插入於控制程式1041的標頭部,並且將寫入程式10832插入於控制程式1041的標尾(footer)部。 As shown in Fig. 6, the program synthesizing unit 110 inserts the reading program 10831 into the header of the control program 1041, and inserts the writing program 10832 into the footer portion of the control program 1041.

程式合成部110係將輸出入用存取程式10833與通信用存取程式10834插入於在各控制裝置之PLC(控制器)上執行之控制程式1041的標頭部與標尾部。 The program synthesizing unit 110 inserts the input/output access program 10833 and the communication access program 10834 into the header and the tail portion of the control program 1041 executed on the PLC (controller) of each control device.

程式合成部110係將與輸出入種類為輸入之變數名稱202對應的輸出入用存取程式10833與通信用存取程式10834插入於控制程式1041的標頭部。此外,程式合成部110係將與輸出入種類為輸出之變數名稱202對應的輸出入用存取程式10833與通信用存取程式10834插入於控制程式1041的標尾部。 The program synthesizing unit 110 inserts the input/output access program 10833 and the communication access program 10834 corresponding to the input variable name 202 into the header of the control program 1041. Further, the program synthesizing unit 110 inserts the input/output access program 10833 and the communication access program 10834 corresponding to the variable name 202 whose output type is output, in the tail portion of the control program 1041.

如第6圖所示,在控制程式1041的標頭部中,係插入有「感測器輸入=getX(1)」之讀取程式10831。此讀取程式10831係為從分配於感測器輸入之輸入用元件X之元件編號1的記憶區域利用getX函數而取得值,且將所取得的值代入於感測器輸入之變數的輸出入用存取程式10833。 As shown in Fig. 6, in the header of the control program 1041, a reading program 10831 of "sensor input = getX (1)" is inserted. This reading program 10831 is a value obtained by using the getX function from the memory area of the component number 1 of the input component X input to the sensor, and the obtained value is substituted into the input of the variable input to the sensor. Use the access program 10833.

此外,在控制程式1041的標尾部中,係插入有「setY(1,搬運開始)」、「setY(4,移動開始)」、「WriteData(步驟完成)」的3個寫入程式10832。「setY(1,搬運開始)」之寫入程式10832係為利用setY函數將值寫入於分配於搬運開始之輸出用 元件Y之元件編號1的記憶區域的輸出入用存取程式10833。「setY(4,移動開始)」之寫入程式10832,係為利用setY函數將值寫入於分配於移動開始之輸出用元件Y之元件編號4之記憶區域的輸出入用存取程式10833。「WriteData函數(步驟完成)」之寫入程式10832,係為利用WriteData函數將值寫入於分配於步驟完成之通信用元件L之元件編號1之記憶區域(控制裝置200a用的區域)的通信用存取程式10834。 Further, in the tail portion of the control program 1041, three writing programs 10832 of "setY (1, transport start)", "setY (4, move start)", and "WriteData (step completion)" are inserted. The write program 10832 of "setY (1) is used to write the value to the output assigned to the start of the transfer using the setY function. The input/output access program 10833 of the memory area of the component number 1 of the component Y. The write program 10832 of "setY (4, move start)" is an input/output access program 10833 that writes a value to the memory area of the component number 4 assigned to the output element Y of the start of movement by the setY function. The write program 10832 of the "WriteData function (step completion)" is a communication in which the value is written in the memory area (area for the control device 200a) of the component number 1 assigned to the communication element L completed in step by the WriteData function. Use the access program 10834.

<控制程式記憶處理S108> <Control program memory processing S108>

程式記憶部111係用以記憶藉由程式合成部110而合成存取程式1083的控制程式1041。 The program storage unit 111 is for storing a control program 1041 that synthesizes the access program 1083 by the program synthesizing unit 110.

<通信處理S109> <Communication processing S109>

通信處理部112係接受來自使用者之使用了輸入接受部101的輸入指示,而將儲存於程式記憶部111的控制程式1041寫入於控制裝置200的PLC220。通信處理部112係透過USB纜線、乙太網路(註冊商標)等的網路,而將控制程式1041寫入於控制裝置200的PLC220。 The communication processing unit 112 receives the input instruction from the user using the input accepting unit 101, and writes the control program 1041 stored in the program storage unit 111 to the PLC 220 of the control device 200. The communication processing unit 112 writes the control program 1041 to the PLC 220 of the control device 200 via a network such as a USB cable or an Ethernet (registered trademark).

另外,關於所要寫入的控制程式1041,係設為作成編譯(compile)後的執行碼(code)後再寫入。然而,該編譯係設為可在程式產生裝置100內實施,亦可利用其他應用程式(application)而實施編譯。 Further, the control program 1041 to be written is set to be coded after being compiled (compile) and then written. However, the compilation system is implemented in the program generation device 100, and can be compiled by using another application.

此外,程式產生裝置100亦有使用所產生的控制程式1041而在虛擬空間上實施模擬,將控制程式1041進行除錯(debug),且在動作確認完成之後,將控制程式1041寫入於控制裝置200內之PLC220的情形。 In addition, the program generation device 100 also performs simulation on the virtual space using the generated control program 1041, debugs the control program 1041, and writes the control program 1041 to the control device after the operation confirmation is completed. The situation of PLC220 within 200.

***本實施形態之效果的說明*** *** Explanation of the effect of this embodiment***

綜上所述,在本實施形態之程式產生裝置中,係從控制系統模型抽出輸出入資訊的變數名稱,且對於所抽出的變數名稱分配元件識別符,該元件識別符係用以識別屬於記憶有輸出入資訊之記憶區域的元件。此外,在程式產生裝置中,係產生使用了專用之函數的存取程式,其係用以根據所分配的元件識別符(元件名稱與元件編號)而對於輸出用用元件或通信用元件進行存取。再者,在程式產生裝置中,係自動產生將所產生的存取程式插入於標頭部與標尾部的控制程式。因此,依據本實施形態之程式產生裝置,可謀求控制程式之開發期間的縮短及成本削減。 As described above, in the program generating apparatus of the present embodiment, the variable name of the input/output information is extracted from the control system model, and the component identifier is assigned to the extracted variable name, and the component identifier is used to identify belonging to the memory. A component that has a memory area for input and output of information. Further, in the program generating apparatus, an access program using a dedicated function for storing an output component or a communication component based on the assigned component identifier (component name and component number) is generated. take. Furthermore, in the program generation device, a control program for inserting the generated access program into the header and the tail portion is automatically generated. Therefore, according to the program generation device of the present embodiment, it is possible to shorten the development period of the control program and reduce the cost.

此外,在本實施形態之程式產生裝置中係產生管理檔案,該管理檔案係依每一控制裝置,對於表示輸出入資訊的變數名稱,分配用以識別屬於記憶有輸出入資訊之記憶區域之元件的元件識別符。因此,依據本實施形態之程式產生裝置,即使連接目的地之元件(記憶體的實際位址)依每一控制裝置而有不同,也可自動產生亦包含有元件存取函數之呼叫處理的元件存取用控制程式。 Further, in the program generating apparatus of the present embodiment, a management file is generated, and the management file allocates, for each control device, a component for identifying a memory area in which the input/output information is stored, for the variable name indicating the input/output information. Component identifier. Therefore, according to the program generating apparatus of the present embodiment, even if the component of the connection destination (the actual address of the memory) differs depending on each control device, the component that also includes the call processing of the component access function can be automatically generated. Access control program.

實施形態2 Embodiment 2

在本實施形態中,主要針對與實施形態1不同的點進行說明。 In the present embodiment, points different from the first embodiment will be mainly described.

在本實施形態中,有時針對與實施形態1中所說明之構成相同的構成賦予相同的符號,且省略其說明。 In the present embodiment, the same components as those described in the first embodiment will be denoted by the same reference numerals, and their description will be omitted.

***構成的說明*** ***Composed description***

在實施形態1之程式產生裝置100中,存取程式1083係為依表示輸出入資訊203的每一變數名稱202而利用專用的函數進行資料的讀取或寫入的處理。然而,在本實施形態中,係針對關於表示輸出入資訊203之變數名稱202中之分配有相同元件名稱的變數名稱202,檢查元件編號的連續性,且整合具有連續性的輸出入資訊203而可進行讀取或寫入的程式產生裝置100a進行說明。 In the program generation device 100 of the first embodiment, the access program 1083 is a process of reading or writing data by a dedicated function in accordance with each variable name 202 indicating the input/output information 203. However, in the present embodiment, the continuity of the component number is checked for the variable name 202 in which the same component name is assigned to the variable name 202 indicating the input/output information 203, and the continuity-input and output information 203 is integrated. The program generation device 100a that can perform reading or writing will be described.

第7圖係顯示本實施形態之程式產生裝置100a之方塊構成的圖。 Fig. 7 is a view showing a block configuration of the program generating apparatus 100a of the present embodiment.

本實施形態之程式產生裝置100a係除第1圖之程式產生裝置100的方塊構成之外,還包括有元件整理部113及元件抽出部114。 The program generation device 100a of the present embodiment includes a component arrangement unit 113 and a component extraction unit 114 in addition to the block configuration of the program generation device 100 of Fig. 1 .

元件整理部113係針對元件名稱2302相同的變數名稱202,以元件編號2303成為編號順序之方式重排。元件整理部113係產生以元件編號2303成為編號順序之方式重排之變數名稱的一覽2020。元件整理部113係使用管理檔案1071,將變數名稱202分類為輸出入種類的輸入與輸出,且針對相同的元件名稱2302的變數名稱202,以元件編號2303進行排序(sort)。 The component organizing unit 113 rearranges the same variable name 202 for the component name 2302 so that the component number 2303 is in the numbering order. The component organizing unit 113 generates a list 2020 of variable names rearranged so that the component numbers 2303 are numbered. The component organizing unit 113 uses the management file 1071 to classify the variable name 202 into the input and output of the input and output type, and sorts the variable name 202 of the same component name 2302 by the component number 2303.

元件抽出部114係根據依編號順序重排的元件編號2303,從變數名稱的一覽2020抽出複數個變數名稱202。 The component extracting unit 114 extracts a plurality of variable names 202 from the list 2020 of variable names based on the component number 2303 rearranged in the order of numbers.

元件抽出部114係針對藉由元件整理部113依元件編號順序重排之變數名稱的一覽2020,檢查元件編號2303的連續性。元件抽出部114係根據元件編號2303之連續性的檢查結 果,從變數名稱的一覽2020抽出複數個變數名稱202。元件抽出部114係在一定的範圍內有存取對象的元件編號2303時,指示存取程式產生部108將該等予以整合後使用一個函數進行資料的讀取或寫入。 The component extracting unit 114 checks the continuity of the component number 2303 with respect to the list 2020 of the variable names rearranged by the component organizing unit 113 in the order of the component numbers. The component extracting portion 114 is based on the continuity of the component number 2303. A plurality of variable names 202 are extracted from the list 2020 of variable names. When the component extracting unit 114 has the component number 2303 to be accessed within a certain range, the component access program generating unit 108 instructs the access program generating unit 108 to integrate and use a function to read or write data.

存取程式產生部108係產生對於與複數個變數名稱202對應之複數個元件230總括地進行存取的存取程式1083。所謂與複數個變數名稱202對應的複數個元件230,係指將複數個變數名稱202所表示之複數個輸出入資訊203予以分別記憶的複數個元件230。 The access program generation unit 108 generates an access program 1083 that collectively accesses a plurality of elements 230 corresponding to the plurality of variable names 202. The plurality of elements 230 corresponding to the plurality of variable names 202 are a plurality of elements 230 that are respectively stored in the plurality of variable names 202 and stored in the information 203 and stored separately.

***動作的說明*** *** Description of action***

第8圖係顯示本實施形態之程式產生裝置100a之程式產生處理S100a之一部份的流程圖。 Fig. 8 is a flow chart showing a part of the program generation processing S100a of the program generation device 100a of the present embodiment.

在本實施形態的程式產生處理S100a中,由於係進行與實施形態1中所說明之程式產生處理S100的S101至S105的處理、及從S107至S109的處理相同的處理,因此在此省略說明。 In the program generation processing S100a of the present embodiment, the processing of S101 to S105 of the program generation processing S100 described in the first embodiment and the processing of the processing from S107 to S109 are performed, and thus the description thereof will be omitted.

在S105中由管理檔案產生部107產生管理檔案1071之後,前進至S1051。 After the management file generation unit 107 is generated by the management file generation unit 107 in S105, the process proceeds to S1051.

在S1051中,元件整理部113係將元件名稱為相同的變數名稱202,以該元件編號成為編號順序之方式重排,且產生以元件編號成為編號順序之方式重排之變數名稱的一覽2020。首先,元件整理部113係將設定於管理檔案1071的變數名稱202,分類為輸出入種類的輸入與輸出。接著,元件整理部113係使用元件名稱,依元件的每一種類分類變數名稱。例如,元 件整理部113係分類為輸入用元件X、輸出用元件Y、通信用元件L。再者,元件整理部113係依所分類的每一種類將變數名稱202以元件編號排序,且以元件編號成為編號順序之方式重排變數名稱202。在此,所謂變數名稱的一覽2020,係指將分配有相同元件名稱的變數名稱202,以元件編號成為編號順序之方式重排者。 In S1051, the component organizing unit 113 rearranges the component names with the same component name 202 so that the component numbers are in the numbering order, and generates a list 2020 of the variable names rearranged so that the component numbers are numbered. First, the component organizing unit 113 classifies the variable name 202 set in the management file 1071 into input and output of the input/output type. Next, the component organizing unit 113 uses the component name to classify the variable name for each type of component. For example, yuan The piece sorting unit 113 is classified into an input element X, an output element Y, and a communication element L. Further, the component organizing unit 113 sorts the variable names 202 by the component numbers for each category classified, and rearranges the variable names 202 such that the component numbers are numbered. Here, the list 2020 of the variable names means that the variable names 202 to which the same component names are assigned are rearranged so that the component numbers are numbered.

在S1052中,元件抽出部114係根據依編號順序重排的元件編號,而從變數名稱的一覽2020抽出複數個變數名稱202。 In S1052, the component extracting unit 114 extracts a plurality of variable names 202 from the list 2020 of variable names based on the component numbers rearranged in the order of numbers.

元件抽出部114係在元件之每一種類之變數名稱的一覽2020中,檢查元件編號的連續性。所謂檢查元件編號的連續性,係指在元件編號的一定範圍(例如1至16、17至32、33至48、…)內,檢查有多少個成為讀取或寫入之對象的元件編號。經過檢查的結果,當在一定的範圍內分配有複數個元件編號時,即指示存取程式產生部108將該等整合後使用一個專用的函數進行資料的讀取或寫入。 The component extracting unit 114 checks the continuity of the component number in a list 2020 of variable names for each type of component. The continuity of the inspection component number means that the number of components to be read or written is checked within a certain range of the component number (for example, 1 to 16, 17 to 32, 33 to 48, ...). As a result of the check, when a plurality of component numbers are allocated within a certain range, the access program generating unit 108 is instructed to integrate and use a dedicated function to read or write data.

在S106a中,存取程式產生部108係產生對於與複數個變數名稱202對應的複數個元件230以一個函數進行存取的存取程式1083。 In S106a, the access program generating unit 108 generates an access program 1083 that accesses a plurality of elements 230 corresponding to the plurality of variable names 202 by one function.

與變數名稱之一覽2020對應之元件的種類為輸入用元件X或輸出用元件Y時,係產生輸出入用存取程式產生部1081以一個專用的函數對於與複數個變數名稱202對應的複數個元件進行存取的輸出入用存取程式10833(S1061a)。 When the type of the element corresponding to the list 2020 of the variable name is the input element X or the output element Y, the input/output access program generating unit 1081 generates a plurality of functions corresponding to the plurality of variable names 202 by a dedicated function. The input/output access program 10833 for accessing the component (S1061a).

此外,與變數名稱之一覽對應之元件之種類為通信用元件 時,係產生通信用存取程式產生部1082以一個專用的函數對於與複數個變數名稱202對應的通信用元件L進行存取的通信用存取程式10834(S1062a)。 In addition, the type of component corresponding to the list of variable names is a communication component. In the case of the communication access program generation unit 1082, the communication access program 10834 that accesses the communication element L corresponding to the plurality of variable names 202 by a dedicated function is generated (S1062a).

接著使用具體例進行說明。 Next, a specific example will be described.

茲設為在複數個變數名稱202分配有輸入用元件X的元件名稱X,且分配有1、3、8、10、36、37作為該元件編號。此時,元件抽出部114係判斷為元件編號1、3、8、10可使用一個函數(例如getWordX函數)而讀取元件的值。同樣地,元件抽出部114係判斷為元件編號36、37亦可利用一個函數(例如getWordX函數)而讀取元件的值。 It is assumed that the component name X of the input component X is assigned to the plurality of variable names 202, and 1, 3, 8, 10, 36, and 37 are assigned as the component number. At this time, the component extracting unit 114 determines that the component numbers 1, 3, 8, and 10 can read the values of the components using a function (for example, a getWordX function). Similarly, the component extracting unit 114 determines that the component numbers 36 and 37 can also read the values of the components by using a function (for example, a getWordX function).

元件抽出部114係將該判斷結果通知存取程式產生部108的輸出入用存取程式產生部1081。 The component extracting unit 114 notifies the input/output access program generating unit 1081 of the access program generating unit 108 of the result of the determination.

輸出入用存取程式產生部1081係產生存取程式1083,該存取程式1083係接受來自元件抽出部114的通知,且利用getWordX函數作為從輸入用元件X讀取資料的處理,而進行將對於複數個變數名稱202的資料整合後進行讀取的處理。 The input/output access program generating unit 1081 generates an access program 1083 that receives a notification from the component extracting unit 114 and uses the getWordX function as a process of reading data from the input device X. The process of reading after the data of the plurality of variable names 202 is integrated.

在實施形態1中,係利用了對於1個變數名稱202個別讀取資料的函數(例如getX函數)。由於輸入用元件X係位元元件(bit device),因此在getX函數雖以1位元單位讀取了資料,但在getWordX函數中,則可以字元(word)單位(16位元)讀取資料。因此,在實施形態1中,為了讀取輸入用元件的元件編號1、3、8、10的資料,雖執行了4次getX函數,但在本實施形態中,只要執行1次getWordX函數,就可讀取 輸入用元件的元件編號1、3、8、10的資料。 In the first embodiment, a function (for example, a getX function) for individually reading data for one variable name 202 is used. Since the input component X is a bit device, the data is read in the 1-bit unit of the getX function, but in the getWordX function, the word unit (16-bit) can be read. data. Therefore, in the first embodiment, in order to read the data of the component numbers 1, 3, 8, and 10 of the input component, the getX function is executed four times. However, in the present embodiment, as long as the getWordX function is executed once, Readable Enter the data of component numbers 1, 3, 8, and 10 of the component.

在複數個變數名稱202分配有輸出用元件Y時,也可適用與對於輸入用元件X存取之方法相同的思考方式。 When the output element Y is allocated to the plurality of variable names 202, the same thinking method as the method of accessing the input element X can be applied.

另外,在複數個變數名稱202分配有通信用元件L時,由於通信用元件L為字元元件,因此元件抽出部114判斷為僅在元件編號為1、2、3完全連續的情形下,才可利用一個函數(例如,資料寫入時為WriteDatas函數)對於通信用元件L進行資料的寫入。元件抽出部114係將此判斷結果通知通信用存取程式產生部1082。在對於通信用元件L進行資料的讀取或寫入的函數中,係設為可指定進行資料之讀取或寫入之通信用元件L之前頭的元件編號、及一次進行讀取或寫入之資料的字元數作為引數。 Further, when the communication element L is allocated to the plurality of variable names 202, since the communication element L is a character element, the element extraction unit 114 determines that only when the element numbers are 1, 2, and 3 are completely continuous. Data can be written to the communication element L by using a function (for example, a WriteDatas function when data is written). The component extracting unit 114 notifies the communication access program generating unit 1082 of the result of the determination. In the function of reading or writing data to the communication element L, it is assumed that the component number preceding the communication element L for reading or writing data can be specified, and reading or writing is performed once. The number of characters in the data is used as an argument.

***本實施形態之效果的說明*** *** Explanation of the effect of this embodiment***

綜上所述,在本實施形態之程式產生裝置中,係自動產生檢查元件編號的連續性,且利用了整合必要的資料而進行讀取或寫入之函數的存取程式。因此,依據本實施形態的程式產生裝置,可削減使用者所進行控制程式的開發工時,並且可提升對於元件進行資料的讀取或寫入處理的性能,而可謀求控制程式之執行性能的提升。 As described above, in the program generation device of the present embodiment, the continuity of the inspection element number is automatically generated, and the access program for reading or writing the function by integrating the necessary data is used. Therefore, according to the program generation device of the present embodiment, the development time of the control program by the user can be reduced, and the performance of reading or writing the data to the component can be improved, and the execution performance of the control program can be controlled. Upgrade.

實施形態3 Embodiment 3

在本實施形態中,主要就與實施形態2不同的點進行說明。 In the present embodiment, a point different from the second embodiment will be mainly described.

在本實施形態中,有時針對與實施形態1、2中所說明之構成相同的構成賦予相同的符號,且省略其說明。 In the present embodiment, the same configurations as those described in the first and second embodiments are denoted by the same reference numerals, and their description will be omitted.

在實施形態2之程式產生裝置100a中,係就變數 名稱的一覽2020檢查元件編號的連續性,且以一個函數處理了對於在一定範圍內分配有複數個元件編號的元件進行的存取。在本實施形態中,係從元件編號之連續性的檢查結果,來說明算出可提升控制程式之執行性能之元件編號之推薦值的群組作為推薦元件編號23031,且對使用者進行提示的功能。 In the program generating apparatus 100a of the second embodiment, the system is variable The list of names 2020 checks the continuity of the component numbers, and handles access to components that have a plurality of component numbers assigned within a certain range by a function. In the present embodiment, a group in which the recommended value of the component number that can improve the execution performance of the control program is calculated as the recommended component number 23031 and the user is prompted from the result of the inspection of the continuity of the component number is described. .

***構成的說明*** ***Composed description***

第9圖係顯示本實施形態之程式產生裝置100b之方塊構成的圖。 Fig. 9 is a view showing the block configuration of the program generation device 100b of the present embodiment.

本實施形態之程式產生裝置100b係除第7圖之程式產生裝置100a的方塊構成以外,還包括有推薦元件算出部115及推薦元件顯示部116。 The program generation device 100b of the present embodiment includes a recommended component calculation unit 115 and a recommended component display unit 116 in addition to the block configuration of the program generation device 100a of FIG.

推薦元件算出部115係根據元件抽出部114所進行之元件編號之連續性的檢查結果,算出分配於變數名稱之一覽2020之元件編號之推薦值的群組作為推薦元件編號23031。推薦元件算出部115係以可削減用以進行對於與變數名稱之一覽2020對應之元件進行資料之讀取或寫入之專用之函數的呼叫次數之方式算出推薦元件編號。 The recommended component calculation unit 115 calculates a group of recommended values of the component numbers assigned to the list 2020 of the variable names as the recommended component number 23031 based on the inspection result of the continuity of the component numbers by the component extraction unit 114. The recommended component calculation unit 115 calculates the recommended component number so as to reduce the number of calls for performing a function for reading or writing data to the component corresponding to the list 2020 of the variable name.

推薦元件顯示部116係當分配於變數名稱之一覽2020時即將處理時間可縮短的推薦元件編號顯示於顯示畫面。 The recommended component display unit 116 displays the recommended component number whose processing time can be shortened when it is assigned to the list 2020 of the variable names on the display screen.

例如,使用者使用顯示於顯示畫面的推薦元件編號,將推薦元件編號分配於變數名稱的一覽2020。或者,亦可當被推薦元件算出部115算出推薦元件編號時,管理檔案產生部107即自動地分配推薦元件編號於變數名稱的一覽2020,而更新管理檔案1071。 For example, the user assigns the recommended component number to the list 2020 of variable names using the recommended component number displayed on the display screen. Alternatively, when the recommended component calculation unit 115 calculates the recommended component number, the management file generation unit 107 automatically allocates the recommended component number to the list 2020 of the variable names, and updates the management file 1071.

***動作的說明*** *** Description of action***

第10圖係顯示本實施形態之程式產生裝置100b之程式產生處理S100b之一部份的流程圖。 Fig. 10 is a flow chart showing a part of the program generation processing S100b of the program generation device 100b of the present embodiment.

在本實施形態之程式產生處理S100b中,由於進行與在實施形態2中所說明之程式產生處理S100a的S101至S1051的處理、及從S106a至S109的處理相同的處理,因此在此省略說明。在本實施形態之程式產生處理S100b中,實施形態2中所說明之S1052的處理成為第10圖所示之S1052b所示的處理。 In the program generation processing S100b of the present embodiment, the processing of S101 to S1051 of the program generation processing S100a described in the second embodiment and the processing of the processing from S106a to S109 are performed, and thus the description thereof will be omitted. In the program generation processing S100b of the present embodiment, the processing of S1052 described in the second embodiment is the processing shown in S1052b shown in Fig. 10.

在S10521中,元件抽出部114係檢查變數名稱之一覽2020中之元件編號的連續性。所謂元件編號之連續性的檢查,係指抽出以一個函數整合後而可進行資料之讀取或寫入的複數個元件編號。元件抽出部114係判定依編號順序重排之元件編號的連續性,且根據判定結果而抽出複數個元件編號。 In S10521, the component extracting unit 114 checks the continuity of the component number in the list 2020 of the variable names. The inspection of the continuity of the component number refers to the extraction of a plurality of component numbers that can be read or written by a function after integration. The component extracting unit 114 determines the continuity of the component numbers rearranged in the order of number, and extracts a plurality of component numbers based on the determination result.

在S10522中,推薦元件算出部115係算出對於與複數個元件編號對應之複數個件以一個函數進行存取時的現狀處理時間601,且算出可在較現狀處理時間601更短的處理時間內進行存取之新的複數個元件編號作為推薦元件編號。推薦元件算出部115係根據元件抽出部114的檢查結果,算出對於分配於變數名稱202之元件進行存取之處理之現狀的處理時間作為現狀處理時間601。在推薦元件算出部115中,係預先保持各函數(例如,getX函數、WriteData函數等)之處理時間。推薦元件算出部115係根據元件抽出部114所進行的檢查結果,加計對於各元件進行存取之函數之執行所需要的時間來 算出總共的現狀處理時間。此現狀處理時間係基準。此外,推薦元件算出部115係該現狀處理時間插入於控制程式1041之標頭部與標尾部之讀取程式10831與寫入程式10832的處理時間。推薦元件算出部115係將現狀處理時間601區分為標頭部之讀取程式10831的處理時間與標尾部之寫入程式10832的處理時間來算出。 In S10522, the recommended component calculation unit 115 calculates the current processing time 601 when a plurality of pieces corresponding to the plurality of component numbers are accessed by one function, and calculates a processing time that can be shorter than the current processing time 601. The new plurality of component numbers that are accessed are used as the recommended component numbers. The recommended component calculation unit 115 calculates the processing time of the current state of the process of accessing the component assigned to the variable name 202 as the current processing time 601 based on the inspection result of the component extraction unit 114. In the recommended component calculation unit 115, the processing time of each function (for example, a getX function, a WriteData function, or the like) is held in advance. The recommended component calculation unit 115 adds the time required for the execution of the function for accessing each component based on the inspection result by the component extraction unit 114. Calculate the total current processing time. This status processing time is the benchmark. Further, the recommended component calculation unit 115 is a processing time in which the current processing time is inserted into the reading program 10831 and the writing program 10832 of the header and the trailer of the control program 1041. The recommended component calculation unit 115 calculates the current processing time 601 by the processing time of the header reading program 10831 and the processing time of the writing program 10832 of the trailer.

在S10523中,推薦元件算出部115係根據變數名稱之一覽2020的元件編號,算出表示可縮短現狀處理時間之元件編號之分配的推薦元件編號。 In S10523, the recommended component calculation unit 115 calculates a recommended component number indicating the allocation of the component number that can shorten the current processing time based on the component number of the list 2020 of the variable name.

推薦元件算出部115係從元件整理部113取得以元件編號進行排序(重排)之結果之變數名稱的一覽2020。推薦元件算出部115係將元件編號變更為其他範圍的元件編號,使元件編號具有連續性。推薦元件算出部115係以此方式使元件編號具有連續性,藉此找出可將執行二個函數而進行資料之讀取或寫入的處理,整合為執行一個函數而進行資料之讀取或寫入的處理的所在處。 The recommended component calculation unit 115 acquires a list 2020 of variable names obtained by sorting (rearranging) the component numbers from the component organization 113. The recommended component calculation unit 115 changes the component number to another component number, and makes the component number continuous. The recommended component calculation unit 115 makes the component number continuity in this manner, thereby finding out that the process of reading or writing data can be performed by performing two functions, and integrating the execution of a function to read the data or Where the write processing is located.

例如,推薦元件算出部115係在輸入用元件X的元件編號被分配為10、11、17、18時,元件抽出部114係判斷為以元件編號為10及11、17及18之二個函數進行資料的讀取。另一方面,在推薦元件算出部115中,係判斷為檢查元件編號之11與17之間之未使用處的數量,且將元件編號17及18變更為未使用處之元件編號15及16,藉由將元件編號包括在1至16的範圍內,即可藉由以字元單位進行資料之讀取的一個函數而進行處理。因此,推薦元件算出部115係算出為 輸入用元件X的推薦元件編號為10、11、15、16。 For example, when the recommended component calculation unit 115 assigns the component numbers of the input component X to 10, 11, 17, and 18, the component extraction unit 114 determines that the component numbers are 10 and 11, 17 and 18 functions. Read the data. On the other hand, in the recommended component calculation unit 115, it is determined that the number of unused places between the check component numbers 11 and 17 is changed, and the component numbers 17 and 18 are changed to the unused component numbers 15 and 16, By including the component number in the range of 1 to 16, the processing can be performed by a function of reading the data in units of characters. Therefore, the recommended component calculation unit 115 calculates that The recommended component numbers of the input component X are 10, 11, 15, and 16.

推薦元件算出部115係判斷是否在輸出用元件Y、通信用元件L中,亦可藉由變更元件編號而整合利用了個別函數的所在處,而算出推薦元件編號。 The recommended component calculation unit 115 determines whether or not the output component Y and the communication component L are integrated, and the recommended component number can be calculated by integrating the component number and using the location of the individual function.

在S10524中,推薦元件算出部係算出將推薦元件編號分配於變數名稱之一覽2020時的推薦處理時間602。亦即,推薦元件算出部係在將推薦元件編號分配於變數名稱的一覽2020時,算出對於各元件進行存取之函數之執行所需要的時間的總共處理時間作為推薦處理時間602。 In S10524, the recommended component calculation unit calculates the recommended processing time 602 when the recommended component number is assigned to the list 2020 of the variable names. In other words, when the recommended component number is assigned to the list 2020 of the variable names, the recommended component calculation unit calculates the total processing time of the time required for the execution of the function for accessing each component as the recommended processing time 602.

在S10525中,推薦元件顯示部116係接受藉由推薦元件算出部115所算出的推薦元件編號與推薦處理時間602,且顯示於顯示畫面。推薦元件顯示部116係使用使用者易於對比的配置(layout)將現狀的元件編號及現狀處理時間601與推薦元件編號及推薦處理時間602顯示於顯示畫面。 In S10525, the recommended component display unit 116 receives the recommended component number and the recommended processing time 602 calculated by the recommended component calculation unit 115, and displays them on the display screen. The recommended component display unit 116 displays the current component number, the current processing time 601, the recommended component number, and the recommended processing time 602 on the display screen using a layout that is easy for the user to compare.

***本實施形態之效果的說明*** *** Explanation of the effect of this embodiment***

綜上所述,依據本實施形態之程式產生裝置,藉由以所分配的元件編號具有連續性之方式變更,即可減低用以執行元件之讀取或寫入之函數的呼叫次數。此外,依據本實施形態的程式產生裝置,由於將以元件編號具有連續性之方式變更所導致對於處理時間的影響顯示於顯示畫面,因此使用者可確認元件編號之變更結果(推薦值)與總共的處理時間,而可判斷是否要變更元件編號的分配,而可更進一步謀求控制程式之執行性能的提升。 As described above, according to the program generating apparatus of the present embodiment, by changing the assigned component number in a continuous manner, the number of calls for performing a function of reading or writing the component can be reduced. Further, according to the program generation device of the present embodiment, since the influence on the processing time is displayed on the display screen due to the change in the continuity of the component number, the user can confirm the result of the change of the component number (recommended value) and the total The processing time can be judged whether or not the component number assignment is to be changed, and the execution performance of the control program can be further improved.

實施形態4 Embodiment 4

在本實施形態4中,係主要針對與實施形態1不同之點進行說明。 In the fourth embodiment, the differences from the first embodiment will be mainly described.

在本實施形態中,有時針對與實施形態1所說明之構成相同的構成賦予相同符號,且省略其說明。 In the present embodiment, the same configurations as those described in the first embodiment will be denoted by the same reference numerals, and their description will be omitted.

在實施形態1中,分配部106係根據由使用者使用了輸入接受部101所輸入的分配指示,對變數名稱202分配元件名稱與元件編號。在本實施形態中,係針對例如利用在其他設計裝置中所作成的檔案,由分配部對於變數名稱,自動分配元件名稱與元件編號的功能進行說明。 In the first embodiment, the assignment unit 106 assigns the component name and the component number to the variable name 202 based on the assignment instruction input by the user using the input accepting unit 101. In the present embodiment, for example, a function of automatically assigning a component name and a component number to a variable name by a distribution unit using a file created in another design device will be described.

***構成的說明*** ***Composed description***

第11圖係顯示本實施形態之程式產生裝置100c之方塊構成的圖。 Fig. 11 is a view showing the block configuration of the program generation device 100c of the present embodiment.

本實施形態之程式產生裝置100c,係除第1圖之程式產生裝置100的方塊構成以外,還包括有分配資訊儲存部117。此外,本實施形態之程式產生裝置100c之輸入接受部101c的功能與分配部106c的功能與實施形態1不同。 The program generation device 100c of the present embodiment further includes an allocation information storage unit 117 in addition to the block configuration of the program generation device 100 of Fig. 1 . Further, the function of the input accepting unit 101c and the function of the assigning unit 106c of the program generating apparatus 100c of the present embodiment are different from those of the first embodiment.

分配資訊儲存部117係儲存元件識別符2301對於變數名稱202建立對應關係的分配資訊1171。分配資訊1171係將元件名稱或元件編號分配於變數名稱的資訊,例如在其他設計裝置所定義者。所謂其他設計裝置,係指執行對於變數名稱202進行元件230之分配之軟體的裝置。 The distribution information storage unit 117 is a distribution information 1171 in which the storage element identifier 2301 establishes a correspondence relationship with the variable name 202. The allocation information 1171 is information for assigning a component name or component number to a variable name, such as defined by other design devices. By other design means is meant a device that performs the software for assigning the component 230 to the variable name 202.

輸入接受部101c係從使用者接受分配資訊1171的指定。輸入接受部101c係將從使用者所接受的分配資訊1171的指定,輸出於分配資訊儲存部117。分配資訊儲存部117 係開啟所指定之分配資訊1171的檔案而讀取所儲存的資料。分配資訊儲存部117亦被稱為元件分配資訊指定部。 The input accepting unit 101c accepts the designation of the assignment information 1171 from the user. The input accepting unit 101c outputs the designation of the distribution information 1171 accepted by the user to the distribution information storage unit 117. Distribution information storage unit 117 The file of the specified distribution information 1171 is opened and the stored data is read. The distribution information storage unit 117 is also referred to as a component allocation information specifying unit.

分配部106c係根據分配資訊1171,對於變數名稱202,分配與變數名稱202建立對應關係的元件識別符2301。分配部106c係比較在分配資訊儲存部117所讀取之變數名稱202及與該變數名稱202建立對應關係的元件識別符2301、與在資訊抽出部105所抽出的變數名稱202。分配部106c係對於在資訊抽出部105所抽出的變數名稱202,自動分配與在資訊抽出部105所抽出之變數名稱202相同變數名稱202對應的元件識別符2301。該分配部106c亦被稱為分配資訊協同作業部。 The assignment unit 106c assigns the component identifier 2301 associated with the variable name 202 to the variable name 202 based on the assignment information 1171. The assigning unit 106c compares the variable name 202 read by the distribution information storage unit 117 with the component identifier 2301 associated with the variable name 202 and the variable name 202 extracted by the information extracting unit 105. The assigning unit 106c automatically assigns the component identifier 2301 corresponding to the variable name 202 of the variable name 202 extracted by the information extracting unit 105 to the variable name 202 extracted by the information extracting unit 105. The distribution unit 106c is also referred to as an allocation information cooperation unit.

***動作的說明*** *** Description of action***

第12圖係顯示本實施形態之程式產生裝置100c之程式產生處理S100c之一部份的流程圖。 Fig. 12 is a flow chart showing a part of the program generation processing S100c of the program generation device 100c of the present embodiment.

在本實施形態之程式產生處理S100c中,由於係進行與實施形態1中所說明之程式產生處理S100之S101至S103的處理、及從S105至S109之處理相同的處理,因此在此省略說明。在本實施形態之程式產生處理S100c中,係在S101的處理之前執行S101c。此外,實施形態1中所說明的分配處理S104即成為後述之S104c的處理。 In the program generation processing S100c of the present embodiment, the processing of S101 to S103 of the program generation processing S100 described in the first embodiment and the processing of the processing from S105 to S109 are performed, and thus the description thereof will be omitted. In the program generation processing S100c of the present embodiment, S101c is executed before the processing of S101. Further, the allocation processing S104 described in the first embodiment is a processing of S104c which will be described later.

在S101c中,輸入接受部101c係從使用者接受分配資訊1171之檔案名稱的指定。輸入接受部101c係將從使用者所接受之分配資訊1171之檔案名稱的指定,輸出於分配資訊儲存部117。分配資訊儲存部117係根據所指定之分配資訊1171的檔案名稱,開啟所指定之分配資訊1171的檔案,且讀 取所儲存的資料,而輸出於分配部106c。 In S101c, the input accepting unit 101c accepts the designation of the file name of the distribution information 1171 from the user. The input accepting unit 101c outputs the designation of the file name of the distribution information 1171 accepted by the user to the distribution information storage unit 117. The distribution information storage unit 117 opens the file of the designated distribution information 1171 based on the file name of the designated distribution information 1171, and reads The stored data is taken and output to the distribution unit 106c.

在S104中,分配部106c係從分配資訊儲存部117接受由使用者所指定的分配資訊1171。此外,分配部106c係接受藉由資訊抽出部105所抽出的變數名稱202。 In S104, the allocating unit 106c receives the distribution information 1171 designated by the user from the distribution information storage unit 117. Further, the allocating unit 106c receives the variable name 202 extracted by the information extracting unit 105.

分配部106c係比較藉由資訊抽出部105所抽出的變數名稱202、與設定於分配資訊1171的變數名稱202。分配部106c係判定與藉由資訊抽出部105所抽出之變數名稱202相同的變數名稱是否設定於分配資訊1171。分配部106c係在找到了相同的變數名稱時,抽出在分配資訊1171中與該變數名稱建立對應關係的元件識別符2301(元件名稱與元件編號),且將所抽出的元件名稱與元件編號自動分配於變數名稱202。 The distribution unit 106c compares the variable name 202 extracted by the information extracting unit 105 with the variable name 202 set in the distribution information 1171. The allocating unit 106c determines whether or not the variable name identical to the variable name 202 extracted by the information extracting unit 105 is set to the allocation information 1171. The distribution unit 106c extracts the component identifier 2301 (component name and component number) associated with the variable name in the distribution information 1171 when the same variable name is found, and automatically extracts the extracted component name and component number. Assigned to the variable name 202.

***本實施形態之效果的說明*** *** Explanation of the effect of this embodiment***

綜上所述,依據本實施形態之程式產生裝置,即可利用在其他設計裝置中所定義的分配資訊,而將對於表示輸出入資訊之變數名稱進行元件名稱與元件編號的分配予以自動化。因此,依據本實施形態之程式產生裝置,不需要由使用者進行分配作業,而可減輕作業負荷。 As described above, according to the program generating apparatus of the present embodiment, the allocation of the component name and the component number for the variable name indicating the input/output information can be automated by using the allocation information defined in the other design apparatus. Therefore, according to the program generation device of the present embodiment, it is not necessary for the user to perform the assignment work, and the work load can be reduced.

接著使用第13圖來說明實施形態1之程式產生裝置100之硬體構成的一例。 Next, an example of the hardware configuration of the program generation device 100 according to the first embodiment will be described using FIG.

程式產生裝置100係電腦。 The program generation device 100 is a computer.

程式產生裝置100係包括處理器(processor)901、輔助記憶裝置902、記憶體(memory)903、通信裝置904、輸入介面(interface)905、顯示(display)介面906的硬體。 The program generation device 100 includes hardware such as a processor 901, an auxiliary memory device 902, a memory 903, a communication device 904, an input interface 905, and a display interface 906.

處理器901係透過信號線910而與其他硬體連接,用以控 制該等其他硬體。 The processor 901 is connected to other hardware through the signal line 910 for controlling These other hardware.

輸入介面905係連接於輸入裝置907。 The input interface 905 is connected to the input device 907.

顯示器介面906係連接於顯示器908。 Display interface 906 is coupled to display 908.

處理器901係進行處理的IC(Integrated Circuit,積體電路)。 The processor 901 is an IC (Integrated Circuit) that performs processing.

處理器901係例如為CPU(Central Processing Unit,中央處理單元)、DSP(Digital Signal Processor,數位訊號處理器)、GPU(Graphics Processing Unit,圖形處理單元)。 The processor 901 is, for example, a CPU (Central Processing Unit), a DSP (Digital Signal Processor), and a GPU (Graphics Processing Unit).

輔助記憶裝置902係例如為ROM(Read Only Memory,唯讀記憶體)、快閃記憶體(Flash Memory)、HDD(Hard Disk Drive,硬碟驅動器)。 The auxiliary memory device 902 is, for example, a ROM (Read Only Memory), a flash memory (Flash Memory), or an HDD (Hard Disk Drive).

記憶體903係例如為RAM(Random Access Memory,隨機存取記憶體)。 The memory 903 is, for example, a RAM (Random Access Memory).

通訊裝置904係包含接收資料的接收器(receiver)9041及傳送資料的傳送器(transmitter)9042。 The communication device 904 includes a receiver 9041 that receives data and a transmitter 9042 that transmits data.

通訊裝置904係例如為通訊晶片(chip)或NIC(Network Interface Card,網路介面卡)。 The communication device 904 is, for example, a communication chip or a NIC (Network Interface Card).

輸入介面905係為供輸入裝置907之纜線(cable)911連接的端口(port)。 The input interface 905 is a port to which a cable 911 of the input device 907 is connected.

輸入介面905係例如為USB(Universal Serial Bus,通用序列匯流排)端子。 The input interface 905 is, for example, a USB (Universal Serial Bus) terminal.

顯示器介面906係為供顯示器908之纜線912連接的端口。 Display interface 906 is a port for cable 912 of display 908.

顯示器介面906係例如為USB端子或HDMI(註冊商標)(High Definition Multimedia Interface,高解析度多媒體介面) 端子。 The display interface 906 is, for example, a USB terminal or a HDMI (registered trademark) (High Definition Multimedia Interface). Terminal.

輸入裝置907係例如為滑鼠(mouse)、鍵盤(keyboard)或觸控面板(touch panel)。 The input device 907 is, for example, a mouse, a keyboard, or a touch panel.

顯示器908係例如為LCD(Liquid Crystal Display,液晶顯示器)。 The display 908 is, for example, an LCD (Liquid Crystal Display).

在輔助記憶裝置902中,係記憶有用以實現第1圖所示之輸入接受部101、控制系統設計部103、控制程式產生部104、資訊抽出部105、分配部106、管理檔案產生部107、存取程式產生部108、程式合成部110、程式記憶部111、通信處理部112、輸出入用存取程式產生部1081、通信用存取程式產生部1082等之功能的程式。以下,將輸入接受部101、控制系統設計部103、控制程式產生部104、資訊抽出部105、分配部106、管理檔案產生部107、存取程式產生部108、程式合成部110、程式記憶部111、通信處理部112、輸出入用存取程式產生部1081、通信用存取程式產生部1082等統稱為「部」。 The auxiliary storage device 902 is useful for realizing the input accepting unit 101, the control system designating unit 103, the control program generating unit 104, the information extracting unit 105, the assigning unit 106, and the management file generating unit 107 shown in FIG. The program of the function of the program generation unit 108, the program synthesizing unit 110, the program memory unit 111, the communication processing unit 112, the input/output access program generating unit 1081, the communication access program generating unit 1082, and the like. Hereinafter, the input accepting unit 101, the control system designing unit 103, the control program generating unit 104, the information extracting unit 105, the assigning unit 106, the management file generating unit 107, the access program generating unit 108, the program synthesizing unit 110, and the program memory unit are provided. 111. The communication processing unit 112, the input/output access program generation unit 1081, the communication access program generation unit 1082, and the like are collectively referred to as "parts".

用以實現以上所述之「部」之功能的程式,亦被稱為程式產生程式。用以實現「部」之功能的程式,係可為一個程式,亦可為由複數個程式所構成。此外,用以實現「部」之功能的程式,係被記憶於磁碟、軟碟(flexible disk)、光磁碟、CD(compact disk,光碟)、藍光(blue-ray)(註冊商標)磁碟、DVD(Digital Versatile Disc,數位化多功能光碟)等的記憶媒體。 A program for implementing the functions of the "part" described above is also referred to as a program generation program. The program for realizing the function of the "part" can be a program or a plurality of programs. In addition, the program for realizing the functions of the "part" is stored on a magnetic disk, a flexible disk, a magneto-optical disk, a CD (compact disk), and a blue-ray (registered trademark) magnet. Memory media such as discs and DVDs (Digital Versatile Disc).

此程式係載入於記憶體903,且被讀入於處理器901,而藉由處理器901來執行。 This program is loaded into the memory 903 and is read into the processor 901 and executed by the processor 901.

再者,在輔助記憶裝置902中,亦記憶有OS(Operating System,操作系統)。 Further, in the auxiliary storage device 902, an OS (Operating System) is also stored.

再者,OS的至少一部份被載入於記憶體903,處理器901係一面執行OS,一面執行用以實現「部」之功能的程式。 Further, at least a part of the OS is loaded in the memory 903, and the processor 901 executes a program for realizing the function of the "part" while executing the OS.

在第2圖中,雖圖示有一個處理器901,但程式產生裝置100亦可包括複數個處理器901。 In FIG. 2, although one processor 901 is illustrated, the program generation device 100 may also include a plurality of processors 901.

再者,亦可協同作業執行複數個處理器901實現「部」之功能的程式。 Furthermore, a program in which a plurality of processors 901 implement the function of "part" can be executed in cooperation.

此外,顯示「部」之處理之結果的資訊或資料或訊號值或變數值,係作為檔案而記憶於記憶體903、輔助記憶裝置902、或處理器901內的記錄器(registor)或快取記憶體(cashe memory)。 In addition, the information or data or signal value or variable value showing the result of the processing of the "part" is stored as a file in the memory 903, the auxiliary memory device 902, or a processor (registor) or cache in the processor 901. Memory (cashe memory).

「部」亦可以「電路圖(circuitry)」來提供。 "Min" can also be provided by "circuitry".

此外,「部」亦可改稱為「電路」或「步驟」或「順序」或「處理」。此外,「處理」亦可改稱為「電路」或「步驟」或「順序」或「部」。 In addition, "Min" may also be referred to as "circuit" or "step" or "sequence" or "processing". In addition, "processing" may also be referred to as "circuit" or "step" or "sequence" or "part".

「電路」及「電路圖」係為不僅包含有處理器901,亦且包含有邏輯(logic)IC或GA(Gate Array,閘陣列)或ASIC(Application Specific Integrated Circuit,特殊應用積體電路)或FPGA(Field-Programmable Gate Array,現場可程式閘陣列)之類之其他種類的處理電路的概念。 The "circuit" and "circuit diagram" include not only the processor 901 but also a logic IC or a GA (Gate Array) or an ASIC (Application Specific Integrated Circuit) or an FPGA. (Other types of processing circuits such as Field-Programmable Gate Array).

另外,被稱為程式產品(program product)者,係為記錄有用以實現被說明作為「部」之功能之程式的記憶媒體、記憶裝置等,無論所見形式為何,均為載入有可由電腦讀 取的程式者。 In addition, a program product is a memory medium or a memory device that is used to record a program that is described as a function of the "part". It is loaded by a computer regardless of the form. The programmer who took it.

在上述的實施形態中,係構成了程式產生裝置100作為「部」之各者獨立的功能方塊。然而,程式產生裝置100亦可非為上述的構成,程式產生裝置100的構成可為任意。 In the above-described embodiment, the program generation device 100 constitutes a functional block that is independent of each of the "parts". However, the program generation device 100 may not be configured as described above, and the configuration of the program generation device 100 may be arbitrary.

例如,控制系統設計部103、控制程式產生部104亦可構成為1個功能方塊。此外,亦可將資訊抽出部105、分配部106、管理檔案產生部107構成為1個功能方塊。程式產生裝置100的功能方塊,只要可實現上述實施形態中所說明的功能,可為任意。亦可將該等功能方塊,以其他任何組合、或任意的方塊構成來構成通信裝置。 For example, the control system design unit 103 and the control program generation unit 104 may be configured as one functional block. Further, the information extracting unit 105, the assigning unit 106, and the management file generating unit 107 may be configured as one functional block. The functional blocks of the program generation device 100 may be any as long as the functions described in the above embodiments can be realized. The functional blocks may also be constructed in any other combination or in any block to form a communication device.

此外,程式產生裝置100亦可為由複數個裝置而非由1個裝置所構成的程式產生系統。 Further, the program generation device 100 may be a program generation system composed of a plurality of devices instead of one device.

此外,雖已就實施形態1至4進行了說明,但該等4個實施形態中,亦可局部組合複數個來實施。或者,該等4個實施形態中,亦可局部地實施1個實施形態。此外,該等4個實施形態,亦可整體或局部地以任何的組合方式來實施。 Further, although the first to fourth embodiments have been described, the four embodiments may be implemented by partially combining a plurality of them. Alternatively, in the four embodiments, one embodiment may be partially implemented. Further, the four embodiments may be implemented in whole or in part in any combination.

另外,上述的實施形態,實質上為較佳例示,本發明並不意圖限定其應用物或用途的範圍,亦可視需要進行各種變更。 Further, the above-described embodiments are substantially preferred, and the present invention is not intended to limit the scope of the application or use, and various modifications may be made as needed.

100‧‧‧程式產生裝置 100‧‧‧Program generating device

101‧‧‧輸入接受部 101‧‧‧ Input Acceptance Department

102‧‧‧模型儲存部 102‧‧‧Model Storage Department

103‧‧‧控制系統設計部 103‧‧‧Control System Design Department

104‧‧‧控制程式產生部 104‧‧‧Control Program Generation Department

105‧‧‧資訊抽出部 105‧‧‧Information Extraction Department

106‧‧‧分配部 106‧‧‧Distribution Department

107‧‧‧管理檔案產生部 107‧‧‧Management File Generation Department

108‧‧‧存取程式產生部 108‧‧‧Access Program Generation Department

110‧‧‧程式合成部 110‧‧‧Programming and Synthesis Department

111‧‧‧程式記憶部 111‧‧‧Program Memory

112‧‧‧通信處理部 112‧‧‧Communication Processing Department

1081‧‧‧輸出入用存取程式產生部 1081‧‧‧Input and Access Program Generation Unit

1082‧‧‧通信用存取程式產生部 1082‧‧‧Communication Access Program Generation Department

200‧‧‧控制裝置 200‧‧‧Control device

Claims (10)

一種程式產生裝置,包括:控制程式產生部,其係用以產生藉由控制裝置所執行的控制程式;資訊抽出部,其係用以抽出變數名稱,該變數名稱係用以表示包含輸入於前述控制裝置之輸入資訊與從前述控制裝置輸出之輸出資訊之至少任一者的輸出入資訊,且為在前述控制程式中所使用者;分配部,其係對於前述變數名稱,分配用以識別供儲存藉由前述變數名稱所表示之前述輸出入資訊之元件的元件識別符;存取程式產生部,其係使用前述變數名稱與前述元件識別符而產生對於前述元件進行存取的存取程式;及程式合成部,其係用以合成前述控制程式與前述存取程式。 A program generating device includes: a control program generating unit for generating a control program executed by the control device; and an information extracting portion for extracting a variable name, wherein the variable name is used to indicate that the input is included in the foregoing The input and output information of at least one of the input information of the control device and the output information outputted from the control device, and is a user in the control program; the distribution unit assigns the identification name to the variable name for identification And storing an element identifier of the component of the input and output information indicated by the variable name; an access program generating unit that generates an access program for accessing the component by using the variable name and the component identifier; And a program synthesizing unit for synthesizing the control program and the access program. 根據申請專利範圍第1項之程式產生裝置,其中前述資訊抽出部係抽出表示前述輸入資訊的前述變數名稱作為輸入變數名稱,並且抽出表示前述輸出資訊的前述變數名稱作為輸出變數名稱;前述分配部係對於前述輸入變數名稱,分配讀取來源元件識別符作為前述元件識別符,並且對於前述輸出變數名稱,分配寫入目的地元件識別符作為前述元件識別符,該讀取來源元件識別符係用以識別藉由前述輸入變數名稱所表示之前述輸入資訊的讀取來源,亦即輸入用元件,而該寫入目的地元件識別符係用以識別藉由前述輸出變數名稱 所表示之前述輸出資訊的寫入目的地,亦即輸出用元件。 The program generating device according to the first aspect of the invention, wherein the information extracting unit extracts the variable name indicating the input information as an input variable name, and extracts the variable name indicating the output information as an output variable name; For the input variable name, the read source component identifier is assigned as the component identifier, and for the output variable name, the write destination component identifier is assigned as the component identifier, and the read source component identifier is used. Recognizing a source of reading of the input information represented by the input variable name, that is, an input component, and the write destination component identifier is used to identify the name of the output variable by using the foregoing The write destination of the output information indicated, that is, the output component. 根據申請專利範圍第2項之程式產生裝置,其中前述存取程式產生部係產生使用前述輸入變數名稱與前述讀取來源元件識別符而讀取前述輸入資訊的讀取程式、及使用前述輸出變數名稱與前述寫入目的地元件識別符而寫入前述輸出資訊的寫入程式作為前述存取程式。 A program generating apparatus according to the second aspect of the invention, wherein the access program generating unit generates a reading program for reading the input information using the input variable name and the read source element identifier, and using the output variable A write program in which the name and the write destination element identifier are written to the output information is used as the access program. 根據申請專利範圍第3項之程式產生裝置,其中前述程式合成部係將前述讀取程式插入於前述控制程式的標頭部,並且將前述寫入程式插入於前述控制程式的標尾部。 A program generating apparatus according to the third aspect of the invention, wherein the program synthesizing unit inserts the reading program into a header of the control program, and inserts the writing program into a tail portion of the control program. 根據申請專利範圍第2至4項中任一項之程式產生裝置,其中前述程式產生裝置係包括:模型儲存部,其係儲存已將前述控制裝置模型化的控制裝置模型;及控制系統設計部,其係取得儲存於前述模型儲存部的前述控制裝置模型,且產生對於所取得之前述控制裝置模型定義有前述輸入變數名稱與前述輸出變數名稱的控制系統模型;前述資訊抽出部係從藉由前述控制系統設計部所產生的前述控制系統模型,抽出前述輸入變數名稱與前述輸出變數名稱。 The program generating device according to any one of claims 2 to 4, wherein the program generating device comprises: a model storage portion that stores a control device model that has modeled the control device; and a control system design portion Obtaining the control device model stored in the model storage unit, and generating a control system model defining the input variable name and the output variable name for the acquired control device model; the information extraction unit is The control system model generated by the control system designing unit extracts the input variable name and the output variable name. 根據申請專利範圍第1至4項中任一項之程式產生裝置,其中前述分配部係對於前述變數名稱,分配前述元件的元件名稱與元件編號作為前述元件識別符;前述程式產生裝置係包括: 元件整理部,其係針對前述變數名稱中前述元件名稱為相同的變數名稱,以前述元件編號成為編號順序之方式重排,且產生以前述元件編號成為編號順序之方式重排之變數名稱的一覽;及元件抽出部,其係根據依編號順序重排的前述元件編號,從前述變數名稱的一覽抽出複數個變數名稱;前述存取程式產生部係用以產生對於前述複數個變數名稱所對應的複數個元件以一個函數進行存取的前述存取程式。 The program generating device according to any one of claims 1 to 4, wherein the distribution unit assigns the component name and the component number of the component to the component identifier for the variable name; the program generating device includes: In the component arrangement unit, the variable name is the same as the component name in the variable name, and the component number is rearranged so that the component numbers are numbered, and a list of variable names rearranged in the order of the component numbers is generated. And a component extracting unit that extracts a plurality of variable names from the list of the variable names based on the component numbers rearranged in the order of numbers; the access program generating unit is configured to generate a plurality of variable names corresponding to the plurality of variable names The aforementioned access program in which a plurality of components are accessed by a function. 根據申請專利範圍第1至4項中任一項之程式產生裝置,其中前述分配部係對於前述變數名稱分配前述元件的元件名稱與元件編號作為前述元件識別符;前述程式產生裝置係包括:元件整理部,其係針對前述變數名稱中前述元件名稱為相同的變數名稱,以前述元件編號成為編號順序之方式重排,且產生以前述元件編號成為編號順序之方式重排之變數名稱的一覽;元件抽出部,其係判定依編號順序重排的前述元件編號的連續性,且根據判定結果而抽出複數個元件編號;推薦元件算出部,其係算出對於前述複數個元件編號所對應的複數個元件以一個函數進行存取時的現狀處理時間,且算出可在較前述現狀處理時間更短的處理時間內可進行存取的新的複數個元件編號作為推薦元件編號;及推薦元件顯示部,其係顯示前述推薦元件編號。 The program generating apparatus according to any one of claims 1 to 4, wherein the assigning unit assigns the component name and the component number of the component to the variable name as the component identifier; the program generating device includes: component a sorting unit that rearranges the same component names in the variable names, and arranges the component numbers in a numbered order, and generates a list of variable names rearranged in such a manner that the component numbers are numbered; a component extracting unit that determines continuity of the component numbers rearranged in order of number, and extracts a plurality of component numbers based on the determination result; and a recommended component calculating unit that calculates a plurality of the plurality of component numbers corresponding to the plurality of component numbers a current processing time when the component is accessed by a function, and a new plurality of component numbers that can be accessed during a processing time shorter than the current processing time is calculated as a recommended component number; and a recommended component display portion, It shows the aforementioned recommended component number. 根據申請專利範圍第1至4項中任一項之程式產生裝置,其中前述程式產生裝置係包括分配資訊儲存部,該分配資訊儲存部係用以儲存將前述元件識別符對於前述變數名稱建立對應關係的分配資訊;前述分配部係根據前述分配資訊,對於前述變數名稱,分配與前述變數名稱建立對應關係的前述元件識別符。 The program generating apparatus according to any one of claims 1 to 4, wherein the program generating means includes an allocation information storage unit for storing the component identifier to correspond to the variable name The allocation information of the relationship; the allocation unit assigns the component identifier corresponding to the variable name to the variable name based on the allocation information. 一種程式產生方法,包括下列步驟:控制程式產生部係產生藉由控制裝置所執行的控制程式;資訊抽出部係用以抽出變數名稱,該變數名稱係用以表示包含輸入於前述控制裝置之輸入資訊與從前述控制裝置輸出之輸出資訊之至少任一者的輸出入資訊,且為在前述控制程式中所使用者;分配部係對於前述變數名稱,分配用以識別供儲存藉由前述變數名稱所表示之前述輸出入資訊之元件的元件識別符;存取程式產生部係使用前述變數名稱與前述元件識別符而產生對於前述元件進行存取的存取程式;及程式合成部係用以合成前述控制程式與前述存取程式。 A program generating method includes the following steps: a control program generating unit generates a control program executed by a control device; and an information extracting portion is configured to extract a variable name, wherein the variable name is used to indicate an input included in the control device And the input and output information of at least one of the information and the output information outputted from the control device, and is a user in the control program; the distribution unit assigns, for the variable name, a name for identifying by the variable name a component identifier of the component of the input and output information; the access program generating unit generates an access program for accessing the component by using the variable name and the component identifier; and the program synthesizing unit is configured to synthesize The aforementioned control program and the aforementioned access program. 一種程式產生程式產品,令電腦執行下列處理:控制程式產生處理,其係用以產生藉由控制裝置所執行的控制程式;資訊抽出處理,其係用以抽出變數名稱,該變數名稱係用以表示包含輸入於前述控制裝置之輸入資訊與從前述控制裝置輸出之輸出資訊之至少任一者的輸出入資訊,且為在 前述控制程式中所使用者;分配處理,其係對於前述變數名稱,分配用以識別供儲存藉由前述變數名稱所表示之前述輸出入資訊之元件的元件識別符;存取程式產生處理,其係使用前述變數名稱與前述元件識別符而產生對於前述元件進行存取的存取程式;及程式合成處理,其係用以合成前述控制程式與前述存取程式。 A program generating program product for causing a computer to perform processing for controlling program generation to generate a control program executed by a control device, and for extracting a variable name for use in extracting a variable name And an output information indicating at least one of input information input to the control device and output information output from the control device, and a user in the control program; an allocation process for assigning, to the variable name, a component identifier for identifying an element for storing the input and output information indicated by the variable name; an access program generation process And using the variable name and the component identifier to generate an access program for accessing the component; and a program synthesis process for synthesizing the control program and the access program.
TW104121978A 2015-05-27 2015-07-07 Program generation device, program generation method, and program generation program TW201642058A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2015/065229 WO2016189689A1 (en) 2015-05-27 2015-05-27 Program generation device, program generation method, and program generation program

Publications (1)

Publication Number Publication Date
TW201642058A true TW201642058A (en) 2016-12-01

Family

ID=57393866

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104121978A TW201642058A (en) 2015-05-27 2015-07-07 Program generation device, program generation method, and program generation program

Country Status (5)

Country Link
JP (1) JP6289751B2 (en)
CN (1) CN107615190A (en)
DE (1) DE112015006570T5 (en)
TW (1) TW201642058A (en)
WO (1) WO2016189689A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11334379B2 (en) 2017-02-24 2022-05-17 Kabushiki Kaisha Toshiba Control device
CN107463147A (en) * 2017-08-22 2017-12-12 北京天诚同创电气有限公司 PLC program development approach and device
JP6496058B1 (en) 2018-03-01 2019-04-03 株式会社東芝 Engineering tools, controllers, and control systems
DE112018007587T5 (en) * 2018-06-19 2021-05-12 Mitsubishi Electric Corporation PROGRAM EXECUTION SUPPORT DEVICE, PROGRAM EXECUTION SUPPORT METHOD, AND PROGRAM EXECUTION SUPPORT PROGRAM
JP7273935B2 (en) * 2018-10-23 2023-05-15 株式会社キーエンス External setting device, logging setting method and program
ES2963711T3 (en) * 2019-06-07 2024-04-01 Daikin Ind Ltd Device control system and device control method
CN110287001A (en) * 2019-06-18 2019-09-27 山东工商学院 Program synthesizes virtual machine
DE112019007603B4 (en) * 2019-09-12 2024-01-25 Mitsubishi Electric Corporation Numerical control device
DE112021007633T5 (en) * 2021-06-28 2024-02-22 Mitsubishi Electric Corporation COMMUNICATION DURATION DETERMINATION DEVICE, COMMUNICATION DURATION DETERMINATION METHOD AND COMMUNICATION DURATION DETERMINATION PROGRAM

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11338732A (en) * 1998-05-27 1999-12-10 Fuji Electric Co Ltd Programmable controller supporting device and recording medium
US7937172B2 (en) * 2004-07-28 2011-05-03 Mitsubishi Electric Corporation Program creating device for programmable controller, program creating method for programmable controller, and recording medium having program recorded thereon
JP2009146229A (en) * 2007-12-14 2009-07-02 Fuji Electric Systems Co Ltd Programmable controller system
JP5508078B2 (en) * 2010-03-23 2014-05-28 メタウォーター株式会社 Program creation support apparatus and method, and program
JP5079166B1 (en) * 2011-07-01 2012-11-21 三菱電機株式会社 Symbol table generation method, communication method with peripheral device, and programmable logic controller

Also Published As

Publication number Publication date
WO2016189689A1 (en) 2016-12-01
DE112015006570T5 (en) 2018-03-15
CN107615190A (en) 2018-01-19
JP6289751B2 (en) 2018-03-07
JPWO2016189689A1 (en) 2017-07-27

Similar Documents

Publication Publication Date Title
TW201642058A (en) Program generation device, program generation method, and program generation program
JP3027009B2 (en) Design capture system
CN105143895B (en) Test class precompiled header is automatically generated from interactive graphical user interface
US9904524B2 (en) Method and device for visually implementing software code
US20150248343A1 (en) Method and apparatus for implementing instrumentation code
CN109032577B (en) Data simulation method
JP6861844B2 (en) How to generate source code
US20060064296A1 (en) Method and system of design verification
JP2017084082A (en) Simulation device, test scenario file creation method, and test method using test scenario file
US9424005B1 (en) Templatized component
US11966718B2 (en) Virtual developmental environment apparatus, method, and recording medium
US20160275219A1 (en) Simulating an industrial system
US8700380B2 (en) Method for generating performance evaluation model
JP6568017B2 (en) Test support apparatus and test support method
CN114691371A (en) Method and device for simultaneously converting Pattern in multiple threads
KR101826828B1 (en) System and method for managing log data
CN110806891B (en) Method and device for generating software version of embedded device
US20220197238A1 (en) Development support device, method for controlling development support device, and recording medium
CN101866373A (en) Execution monitor for electronic design automation
KR20090099977A (en) A reserved component container based software development method and apparatus
JP6265788B2 (en) Simulation device, interface module generation device, and program
KR102258103B1 (en) Method for generating control program automatically and computing device for performing the method
US20140033155A1 (en) Systems and methods for generating a higher level description of a circuit design based on connectivity strengths
JP6520029B2 (en) INFORMATION PROCESSING SYSTEM, PRODUCTION LINE MODEL GENERATING METHOD, AND PROGRAM FOR THE SAME
KR101085114B1 (en) System for providing programable logic controller software development environment