TWI709908B - Method, program product, and computer readable medium for operating software in plc editing environment - Google Patents
Method, program product, and computer readable medium for operating software in plc editing environment Download PDFInfo
- Publication number
- TWI709908B TWI709908B TW108115404A TW108115404A TWI709908B TW I709908 B TWI709908 B TW I709908B TW 108115404 A TW108115404 A TW 108115404A TW 108115404 A TW108115404 A TW 108115404A TW I709908 B TWI709908 B TW I709908B
- Authority
- TW
- Taiwan
- Prior art keywords
- plc
- software
- graphical user
- user interface
- control command
- Prior art date
Links
Images
Abstract
Description
本發明係有關於一種在PLC編輯環境中與其他軟體協作之方法、程式產品、電腦可讀取媒體,特別是指在PLC圖形用戶介面上設置一轉換單元,該轉換單元會將PLC圖形用戶介面選擇的資料物件轉換為特定軟體的控制指令,並可直接新增至特定軟體的編輯介面,完成二者協同運作的發明。 The present invention relates to a method for cooperating with other software in a PLC editing environment, program products, and computer-readable media, and particularly refers to a conversion unit provided on the PLC graphic user interface, which converts the PLC graphic user interface The selected data objects are converted into control commands of the specific software, and can be directly added to the editing interface of the specific software, completing the invention of the cooperative operation of the two.
在為工業自動化目的而構建的機器中,中央控制系統通常由一對PLC和HMI設備組成。而PLC包含機器的控制邏輯程序,並負責收集和處理感測數據,以及控制驅動器輸出以執行機器的預期功能,而使用者透過HMI監視PLC中程序執行的狀態。而除了緊急停止按鈕之外,HMI通常是使用者唯一的控制和監控通道。 In machines built for industrial automation purposes, the central control system usually consists of a pair of PLC and HMI devices. The PLC contains the control logic program of the machine, and is responsible for collecting and processing sensing data, and controlling the output of the driver to perform the expected function of the machine, and the user monitors the status of the program execution in the PLC through the HMI. In addition to the emergency stop button, HMI is usually the only control and monitoring channel for users.
HMI工程師在HMI中設定一虛擬控制面板,這個虛擬控制面板通常模仿真實控制面板,例如該虛擬控制面板中包含對應PLC資料物件的圖形或文字,這些圖形和文字例如是TRUE/FALSE的燈號、開關或按鈕符號等等,用以輸出開啟/關閉指令或撥號指示等。 The HMI engineer sets up a virtual control panel in the HMI. This virtual control panel usually imitates a real control panel. For example, the virtual control panel contains graphics or text corresponding to PLC data objects. These graphics and text are for example TRUE/FALSE lights, Switch or button symbols, etc., used to output on/off instructions or dial instructions.
PLC和HMI的協同運作流程是: The collaborative operation process of PLC and HMI is:
1.PLC工程師定義資料物件來操作機器,例如開啟/關閉或驅動器的進給等等,而此PLC控制程序的演算法是利用PLC供應商所提供的圖形用戶介面(GUI)來撰寫。 1. The PLC engineer defines data objects to operate the machine, such as opening/closing or the feed of the drive, etc., and the algorithm of the PLC control program is written by using the graphical user interface (GUI) provided by the PLC supplier.
2.HMI工程師將圖形元件,例如燈號或按鈕,新增在HMI的編程GUI上,並且手動定義HMI的圖形元件和PLC的資料物件的對應關係,這些對應關係可以採用資料名稱的對應或記憶位址的對應。 2. The HMI engineer adds graphical elements, such as light numbers or buttons, to the programming GUI of the HMI, and manually defines the correspondence between the HMI graphical elements and the PLC data objects. These correspondences can use the correspondence or memory of the data name Correspondence of address.
但是習知PLC和HMI的協同運作方式有以下問題: However, the cooperative operation of conventional PLC and HMI has the following problems:
1.PLC程式沒有認知HMI使用那些資料物件,當PLC工程師刪除或重新命名資料物件,而HMI工程師沒有重新定義HMI的圖形元件和PLC的資料物件的對應關係時,HMI的圖形元件和PLC的資料物件的對應關係將會遺失,並將導致機器控制的失誤。 1. The PLC program does not recognize the data objects that HMI uses. When the PLC engineer deletes or renames the data objects, and the HMI engineer does not redefine the correspondence between the HMI graphic components and the PLC data objects, the HMI graphic components and the PLC data The correspondence between the objects will be lost and will cause errors in machine control.
2.而為了克服前述問題,任何HMI使用的資料物件被列成清單,當PLC工程師要修改PLC的資料物件時,也即時通知HMI工程師修改新的對應關係。但是當清單上的資料物件有上千筆以上時,手動維護這個清單將變得非常繁瑣,也因為人員校對而容易出錯。 2. In order to overcome the aforementioned problems, any data objects used by the HMI are listed as a list. When the PLC engineer wants to modify the data objects of the PLC, the HMI engineer is also immediately notified to modify the new correspondence. But when there are more than a thousand data objects on the list, manually maintaining this list will become very cumbersome, and it is also prone to errors due to personnel proofreading.
為此,有中華民國專利第I420389號「人機介面裝置及其介面整合方法」,人機介面裝置用以與可程式邏輯控制器協同工作,可程式邏輯控制器包含第一程式單元及第二程式單元。人機介面裝置包含處理器及記憶體。記憶體包含儲存操作變數之第一位置及儲存第一共通變數之第二位置。 操作變數透過第一共通變數對應至第一程式單元。當第一程式單元與第二程式單元之輸入/輸出參數具有相同之型態及數量,處理器可藉由將記憶體之第二位置之第一共通變數為更新第二共通變數,使操作變數對應至第二程式單元。 To this end, there is the Republic of China Patent No. I420389 "Human-Machine Interface Device and Its Interface Integration Method". The human-machine interface device is used to work with a programmable logic controller. The programmable logic controller includes a first program unit and a second program unit. Program unit. The human-machine interface device includes a processor and a memory. The memory includes a first location for storing operation variables and a second location for storing the first common variable. The operation variable corresponds to the first formula unit through the first common variable. When the input/output parameters of the first formula unit and the second formula unit have the same type and quantity, the processor can update the second common variable by changing the first common variable in the second position of the memory to the operating variable Correspond to the second formula unit.
有別於前案,本發明提出一種在PLC編輯環境中與其他軟體協作之方法,包括下列步驟: 一編輯器顯示一PLC圖形用戶介面,並在該PLC圖形用戶介面選擇一資料物件。在該PLC圖形用戶介面上設置一轉換單元,該轉換單元會將選擇的該資料物件轉換為一特定軟體的一控制指令。該編輯器切換到該特定軟體的編輯介面,並自該PLC圖形用戶介面將該控制指令新增至該特定軟體的編輯介面。 Different from the previous proposal, the present invention proposes a method for collaboration with other software in a PLC editing environment, including the following steps: An editor displays a PLC graphical user interface, and selects a data object in the PLC graphical user interface. A conversion unit is arranged on the PLC graphical user interface, and the conversion unit converts the selected data object into a control command of a specific software. The editor switches to the editing interface of the specific software, and adds the control command from the PLC graphical user interface to the editing interface of the specific software.
進一步,該特定軟體為人機介面軟體,而該控制指令係呈現為圖形符號或文字符號。 Further, the specific software is man-machine interface software, and the control commands are presented as graphic symbols or text symbols.
進一步,將該控制指令添加至該人機介面軟體的編輯介面係採用階層式選單選取模式。 Further, adding the control command to the editing interface of the man-machine interface software adopts a hierarchical menu selection mode.
進一步,將該控制指令ID添加到PLC的資料物件引用表中,以儲存該PLC圖形用戶介面的資料物件與該人機介面軟體之控制指令的鏈結,當透過該PLC圖形用戶介面修改或刪除該資料物件時,該PLC圖形用戶介面顯示一警告資訊。 Furthermore, the control command ID is added to the PLC data object reference table to store the link between the data object of the PLC graphical user interface and the control command of the man-machine interface software. When the PLC graphical user interface is used to modify or delete When the data object is selected, the PLC graphical user interface displays a warning message.
進一步,當透過該PLC圖形用戶介面修改該資料物件時,同時修改該人機介面軟體的相對應鏈結,以維持鏈結有效性。 Further, when the data object is modified through the PLC graphical user interface, the corresponding link of the man-machine interface software is modified at the same time to maintain the validity of the link.
進一步,該控制指令係呈現為圖形符號或文字符號係由人工智慧根據該資料物件的種類自行選擇。 Furthermore, the control command is presented as a graphic symbol or a text symbol which is selected by artificial intelligence according to the type of the data object.
進一步,當該資料物件所對應的控制指令為開/關、正確/錯誤或其類似指令時,該控制指令顯示為圖形符號。 Furthermore, when the control command corresponding to the data object is an on/off, correct/error or similar command, the control command is displayed as a graphic symbol.
進一步,當該資料物件所對應的控制指令為數據或其類似指令時,該控制指令顯示為文字符號。 Further, when the control command corresponding to the data object is data or a similar command, the control command is displayed as a text symbol.
本發明再提出一種用於執行在PLC編輯環境中與其他軟體協作之方法的程式產品,係用以安裝在一電腦上以執行前述在PLC編輯環境中與其他軟體協作之方法。 The present invention further provides a program product for executing the method of cooperating with other software in the PLC editing environment, which is used to install on a computer to execute the aforementioned method of cooperating with other software in the PLC editing environment.
本發明再提出一種用於執行在PLC編輯環境中與其他軟體協作之方法的電腦可讀取媒體,係用以將一程式安裝在一電腦上以執行前述在PLC編輯環境中與其他軟體協作之方法。 The present invention further proposes a computer-readable medium for executing the method of cooperating with other software in the PLC editing environment, which is used to install a program on a computer to execute the aforementioned method of cooperating with other software in the PLC editing environment. method.
根據上述技術特徵可達成以下功效: According to the above technical features, the following effects can be achieved:
1.可在同一個編輯器上同時完成PLC及HMI的編輯,不需要PLC工程師及HMI工程師分別編輯PLC資料物件及HMI的控制指令,可避免兩者未同步編輯造成機器控制失誤的狀況。 1. The editing of PLC and HMI can be completed on the same editor at the same time, without the need for PLC engineer and HMI engineer to edit PLC data objects and HMI control instructions separately, which can avoid the situation of machine control errors caused by the two unsynchronized editing.
2.當透過該PLC圖形用戶介面修改或刪除該資料物件時,該PLC圖形用戶介面顯示一警告資訊,提醒使用者須同時修改該人機介面軟體的相對應鏈結,以維持鏈結的有效性。 2. When the data object is modified or deleted through the PLC graphical user interface, the PLC graphical user interface displays a warning message to remind the user to modify the corresponding link of the man-machine interface software at the same time to maintain the validity of the link Sex.
1:編輯器 1: editor
11:PLC圖形用戶介面 11: PLC graphical user interface
111:資料物件 111: Data Object
112:轉換單元 112: Conversion unit
12:人機介面軟體 12: Human-machine interface software
121:控制指令 121: Control Instructions
122:編輯介面 122: Edit interface
[第一圖]為本發明之編輯器進行PLC與HMI同步編輯的流程圖。 [The first figure] is a flow chart of the editor of the present invention for synchronous editing of PLC and HMI.
[第二圖]為本發明之編輯器進行PLC與HMI同步編輯的示意圖。 [The second figure] is a schematic diagram of the editor of the present invention for synchronous editing of PLC and HMI.
[第三A圖]為本發明實施例中,控制指令ID添加到PLC的資料物件引用表的示意圖。 [Figure 3A] is a schematic diagram of the control instruction ID added to the data object reference table of the PLC in the embodiment of the present invention.
[第三B圖]為本發明之PLC圖形用戶介面修改或刪除該資料物件時,同時修改人機介面軟體的相對應鏈結的流程圖。 [Third Figure B] is a flowchart of the corresponding link of the man-machine interface software when the PLC graphical user interface of the present invention modifies or deletes the data object.
綜合上述技術特徵,本發明之在PLC編輯環境中與其他軟體協作之方法、程式產品、電腦可讀取媒體的主要功效將可於下述實施例清楚呈現。 Based on the above technical features, the main effects of the method, program products, and computer-readable media of the present invention for collaboration with other software in a PLC editing environment will be clearly presented in the following embodiments.
參閱第一圖及第二圖所示,本實施例以PLC及HMI的同步編輯為例,包括下列步驟: 一編輯器(1)顯示一PLC圖形用戶介面(11),使用者並在該PLC圖形用戶介面(11)選擇一資料物件(111)。 Referring to the first and second figures, this embodiment takes the synchronous editing of PLC and HMI as an example, including the following steps: An editor (1) displays a PLC graphical user interface (11), and the user selects a data object (111) in the PLC graphical user interface (11).
在該PLC圖形用戶介面(11)上設置一轉換單元(112),該轉換單元(112)會將選擇的該資料物件(111)轉換為一人機介面軟體[HMI](12)的一控制指令(121),該控制指令(121)係採用階層式選單選取,例如第一層選單是選擇將該資料物件(111)添加至人機介面軟體[HMI](12),第二層選單是選擇該人機介面軟體[HMI](12)的多個人機介面控制面板之一,第三層選單是選擇該控制指令(121)的符號。其中在人機介面軟體[HMI](12)中,該控制指令(121)的類型包含圖形符號或文字符號。其中,該控制指令(121)為圖形符號或文字符號可由人工智慧根據該資料物件(111)的種類自行選擇,例如當該資料物件(111)所對應的控制指令(121)為開/關、正確/錯誤或其類似指令時,該控制指令(121)顯示為圖形符號,而當該資料物件(111)所對應的控制指令(121)為數據或其類似指令時,該控制指令(121)顯示為文字符號。 A conversion unit (112) is provided on the PLC graphical user interface (11), and the conversion unit (112) converts the selected data object (111) into a control command of a human-machine interface software [HMI] (12) (121), the control command (121) is selected by hierarchical menu, for example, the first level menu is to select the data object (111) to be added to the HMI software [HMI](12), and the second level menu is to select One of the multiple human-machine interface control panels of the human-machine interface software [HMI] (12), the third-level menu is to select the symbol of the control command (121). Among them, in the human-machine interface software [HMI] (12), the type of the control command (121) includes graphic symbols or text symbols. Wherein, the control command (121) is a graphic symbol or text symbol that can be selected by artificial intelligence according to the type of the data object (111). For example, when the control command (121) corresponding to the data object (111) is on/off, When correct/wrong or similar commands, the control command (121) is displayed as a graphic symbol, and when the control command (121) corresponding to the data object (111) is data or similar commands, the control command (121) Displayed as text symbols.
該編輯器(1)切換到該人機介面軟體[HMI](12)的一編輯介面(122),並自該PLC圖形用戶介面(11)將該控制指令(121)新增至該人機介面軟體[HMI](12)的編輯介面(122)。藉此透過在該編輯器(1)上同時完成PLC及HMI的編輯,不需要PLC工程師及HMI工程師分別編輯該PLC圖形用戶介面(11)的資料物件(111)及該人機介面軟體[HMI](12)的圖形符號及文字符號等控制指令(121),可避免兩者未同步編輯造成機器控制失誤的狀況。 The editor (1) switches to an editing interface (122) of the human-machine interface software [HMI] (12), and adds the control command (121) to the HMI from the PLC graphical user interface (11) The editing interface (122) of the interface software [HMI] (12). In this way, by completing the editing of PLC and HMI on the editor (1) at the same time, it is not necessary for the PLC engineer and HMI engineer to edit the data objects (111) of the PLC graphical user interface (11) and the human-machine interface software [HMI ](12) Graphical symbols and text symbols and other control commands (121) can avoid the situation of machine control errors caused by not synchronized editing of the two.
參閱第三A圖及第三B圖所示,當編輯完成後,將該控制指令ID添加到PLC的資料物件引用表中,以儲存該PLC圖形用戶介面(11)的資料物件(111)與該人機介面軟體[HMI](12)之控制指令(121)的鏈結,當透過該PLC圖形 用戶介面(11)修改或刪除該資料物件(111)時,該PLC圖形用戶介面(11)會顯示一警告資訊,提醒使用者同時修改該人機介面軟體[HMI](12)的相對應鏈結,以維持鏈結有效性。 Refer to Figure 3A and Figure 3B. When editing is completed, add the control command ID to the PLC data object reference table to store the data object (111) and the PLC graphical user interface (11) The link of the control command (121) of the human-machine interface software [HMI] (12), when through the PLC graphics When the user interface (11) modifies or deletes the data object (111), the PLC graphical user interface (11) will display a warning message to remind the user to modify the corresponding link of the human-machine interface software [HMI] (12) To maintain the effectiveness of the link.
要再特別說明的是,要用來執行本發明之方法的應用程式可以儲存為程式產品,供使用者自雲端下載;或者亦可儲存在光碟、隨身碟等電腦可讀取媒體中,供使用者下載。 It should be particularly noted that the application program to be used to execute the method of the present invention can be stored as a program product for users to download from the cloud; or can also be stored in a computer readable medium such as a CD, a flash drive, for use Download it.
綜合上述實施例之說明,當可充分瞭解本發明之操作、使用及本發明產生之功效,惟以上所述實施例僅係為本發明之較佳實施例,當不能以此限定本發明實施之範圍,即依本發明申請專利範圍及發明說明內容所作簡單的等效變化與修飾,皆屬本發明涵蓋之範圍內。 Based on the description of the above-mentioned embodiments, when one can fully understand the operation and use of the present invention and the effects of the present invention, the above-mentioned embodiments are only preferred embodiments of the present invention, and the implementation of the present invention cannot be limited by this. The scope, that is, simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the description of the invention, are all within the scope of the present invention.
1:編輯器 1: editor
11:PLC圖形用戶介面 11: PLC graphical user interface
111:資料物件 111: Data Object
112:轉換單元 112: Conversion unit
12:人機介面軟體 12: Human-machine interface software
121:控制指令 121: Control Instructions
122:編輯介面 122: Edit interface
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108115404A TWI709908B (en) | 2019-05-03 | 2019-05-03 | Method, program product, and computer readable medium for operating software in plc editing environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108115404A TWI709908B (en) | 2019-05-03 | 2019-05-03 | Method, program product, and computer readable medium for operating software in plc editing environment |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI709908B true TWI709908B (en) | 2020-11-11 |
TW202042054A TW202042054A (en) | 2020-11-16 |
Family
ID=74201560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW108115404A TWI709908B (en) | 2019-05-03 | 2019-05-03 | Method, program product, and computer readable medium for operating software in plc editing environment |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI709908B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103793346A (en) * | 2012-10-29 | 2014-05-14 | 洛克威尔自动控制技术股份有限公司 | Linkable plug-in |
TW201433892A (en) * | 2013-02-22 | 2014-09-01 | Mitsubishi Electric Corp | System development device, method and program |
CN104583946A (en) * | 2012-08-03 | 2015-04-29 | 美国国家仪器有限公司 | Physics based graphical program editor |
TW201631426A (en) * | 2015-02-24 | 2016-09-01 | 東芝三菱電機產業系統股份有限公司 | Monitoring and control apparatus |
CN106383456A (en) * | 2011-06-28 | 2017-02-08 | 洛克威尔自动控制技术股份有限公司 | A method and a man-machine interface |
US20170132194A1 (en) * | 2015-11-06 | 2017-05-11 | Mitsubishi Electric Corporation | Information-processing equipment based on a spreadsheet |
-
2019
- 2019-05-03 TW TW108115404A patent/TWI709908B/en active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106383456A (en) * | 2011-06-28 | 2017-02-08 | 洛克威尔自动控制技术股份有限公司 | A method and a man-machine interface |
CN104583946A (en) * | 2012-08-03 | 2015-04-29 | 美国国家仪器有限公司 | Physics based graphical program editor |
CN103793346A (en) * | 2012-10-29 | 2014-05-14 | 洛克威尔自动控制技术股份有限公司 | Linkable plug-in |
TW201433892A (en) * | 2013-02-22 | 2014-09-01 | Mitsubishi Electric Corp | System development device, method and program |
TW201631426A (en) * | 2015-02-24 | 2016-09-01 | 東芝三菱電機產業系統股份有限公司 | Monitoring and control apparatus |
US20170132194A1 (en) * | 2015-11-06 | 2017-05-11 | Mitsubishi Electric Corporation | Information-processing equipment based on a spreadsheet |
Also Published As
Publication number | Publication date |
---|---|
TW202042054A (en) | 2020-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20100313128A1 (en) | System and method for free form comments for a programmable logic controller | |
WO2001016657A1 (en) | Editor device and recorded medium on which editor program is recorded | |
JP5295467B1 (en) | Multi-axis control system setting / adjustment function support device | |
JP5875555B2 (en) | Image creation system | |
US8793668B2 (en) | Protocol independent programming environment | |
JP3963174B2 (en) | Display / editing apparatus, display method, and program | |
WO2010121104A1 (en) | Sequence element replacement | |
JPWO2012114444A1 (en) | Engineering equipment | |
JP2006134097A (en) | Programmable display, display control program, and recording medium with the program recorded thereon | |
TWI465868B (en) | Sequence program design support device | |
TWI709908B (en) | Method, program product, and computer readable medium for operating software in plc editing environment | |
JP2015146117A (en) | Engineering device and control logic verification method | |
JP2008225342A (en) | Simulator system for operation training | |
JP4858112B2 (en) | Control program generation method and control program generation apparatus | |
JP4941674B2 (en) | Simulation system | |
JP2015187860A (en) | Information processor, information processing method, and program | |
JP4476223B2 (en) | Screen data creation device, screen data editing method, and screen data editing program | |
JP2008071033A (en) | Programmable display and picture drawing device | |
JP6939662B2 (en) | Programming support device, programming support method and program | |
US20180232243A1 (en) | Programmable display, display control method, and display control program | |
KR20160052027A (en) | Control map based diagram generating method and apparatus thereof | |
JP2007034797A (en) | Image data generator and its program, and recording medium | |
WO2019019051A1 (en) | Input and output control method for slave device, master control device and numerical control system | |
US20190121307A1 (en) | Model-based human machine interface (hmi) | |
TW201243713A (en) | Human machine interface device and interface integration method thereof |