TWI448859B - Control system and instruction setting method thereof - Google Patents

Control system and instruction setting method thereof Download PDF

Info

Publication number
TWI448859B
TWI448859B TW100119842A TW100119842A TWI448859B TW I448859 B TWI448859 B TW I448859B TW 100119842 A TW100119842 A TW 100119842A TW 100119842 A TW100119842 A TW 100119842A TW I448859 B TWI448859 B TW I448859B
Authority
TW
Taiwan
Prior art keywords
instruction
user interface
command
list
editing
Prior art date
Application number
TW100119842A
Other languages
Chinese (zh)
Other versions
TW201250419A (en
Inventor
Hsu Yuan Kuo
Original Assignee
Delta Electronics Inc
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 Delta Electronics Inc filed Critical Delta Electronics Inc
Priority to TW100119842A priority Critical patent/TWI448859B/en
Publication of TW201250419A publication Critical patent/TW201250419A/en
Application granted granted Critical
Publication of TWI448859B publication Critical patent/TWI448859B/en

Links

Landscapes

  • Programmable Controllers (AREA)
  • Stored Programmes (AREA)

Description

控制系統及其指令設定方法 Control system and its instruction setting method

本發明係關於一種控制系統及其指令設定方法,特別係關於一種可圖形化自訂編輯的控制系統及其指令設定方法。 The present invention relates to a control system and a command setting method thereof, and more particularly to a control system capable of graphical custom editing and an instruction setting method thereof.

一般的控制系統都設有系統開發商所提供的控制介面,系統開發商規劃控制系統內的邏輯流程與輸出輸入接點(I/O或是內部記憶體),並且將輸出輸入接點對應到產品的動作功能,例如機械手臂的「夾取」功能對應到輸出接點Y0。系統開發商會針對產品設計數十個指令動作,舉例而言,機械手臂產品可控制的指令動作有開模、關模、頂出、頂入、夾取與夾放等指令。並且,在完成整個產品的指令規劃後,於控制器或是人機介面內提供一個指令設定器,讓使用者利用產品所提供的指令來組合出一連串的動作,達到控制的目的。 The general control system has a control interface provided by the system developer. The system developer plans the logic flow in the control system and the output input contact (I/O or internal memory), and the output input contact is corresponding to The action function of the product, such as the "clip" function of the robot arm, corresponds to the output contact Y0. The system developer will design dozens of command actions for the product. For example, the command actions that can be controlled by the robot arm have instructions such as mold opening, mold closing, ejection, jacking, clamping and clamping. Moreover, after completing the instruction planning of the entire product, an instruction setter is provided in the controller or the man-machine interface, so that the user can use the instructions provided by the product to combine a series of actions to achieve the purpose of control.

圖1為一種習知控制系統的使用者控制介面。請參考圖1所示,控制介面包括複數個指令鍵I、複數個編輯鍵E1、E2及指令列表IL。使用者可以選擇其中一指令鍵I,將對應的指令鍵I內容加入指令列表IL中,再藉由編輯鍵E1、E2,對於指令列表IL中的指令參數加以調整或重新設定,編輯完後執行即可進行指令列表IL中一連 串的指令動作。 Figure 1 is a user control interface of a conventional control system. Referring to FIG. 1 , the control interface includes a plurality of instruction keys I, a plurality of editing keys E 1 , E 2 , and an instruction list IL. The user can select one of the instruction keys I, add the content of the corresponding instruction key I to the instruction list IL, and then adjust or reset the instruction parameters in the instruction list IL by the editing keys E 1 and E 2 , and edit the editing. After execution, a series of instruction actions in the instruction list IL can be performed.

然而,在這個控制介面中,指令鍵I對應的指令動作、指令數量、指令的參數數量等等都是固定的,使用者無法更改。為了符合不同使用者的需求,系統開發商必須更改控制器的韌體才能新增指令功能、修改指令顯示外觀、修改指令參數的數量,或是更改指令內部的邏輯流程。但,也因為要針對不同使用者提供客製化的韌體程式,指令動作變更及修改的成本高、速度慢,同時,控制介面的修改也不易。 However, in this control interface, the instruction action corresponding to the instruction key I, the number of instructions, the number of parameters of the instruction, and the like are fixed and cannot be changed by the user. In order to meet the needs of different users, the system developer must change the firmware of the controller to add instruction functions, modify the appearance of the instruction display, modify the number of instruction parameters, or change the logic flow inside the instruction. However, because the customized firmware program is provided for different users, the cost and speed of the command action change and modification are high and the speed is slow. At the same time, the modification of the control interface is not easy.

因此,如何提供一種控制系統及其指令設定方法,在不用修改韌體的情況下,可以透過編輯介面自由編輯控制介面的設計,使使用者能夠更快速、直覺且客制化地調整及操作控制介面及指令動作,從而節省更改控制介面及指令動作所耗費的勞力、時間和費用,提升競爭力及效率,已成為當前重要課題。 Therefore, how to provide a control system and its command setting method can freely edit the design of the control interface through the editing interface without modifying the firmware, so that the user can adjust and operate the control more quickly, intuitively and customizedly. Interfaces and command actions, saving labor, time and expense for changing control interfaces and command actions, and improving competitiveness and efficiency have become important issues at present.

有鑑於上述課題,本發明提供一種控制系統及其指令設定方法,在不用修改韌體的情況下,可以透過編輯介面自由編輯控制介面的設計,使使用者能夠更快速、直覺且客制化地調整及操作控制介面及指令動作,從而節省更改控制介面及指令動作所耗費的勞力、時間和費用,提升競爭力及效率。 In view of the above problems, the present invention provides a control system and a command setting method thereof, which can freely edit the design of the control interface through the editing interface without modifying the firmware, so that the user can more quickly, intuitively and customizely Adjust and operate the control interface and command actions, saving labor, time and expense for changing the control interface and command actions, and improving competitiveness and efficiency.

依據本發明的一種控制系統的指令設定方法,包括以下步驟:提供一編輯介面以編輯一使用者介面,使用者介面包括複數指令鍵、一指令列表及複數畫面元件。於編輯介面中新增及編輯指令鍵的內容,指令鍵的內容包括指令外觀、指令屬性、指令動作及指 令參數。於編輯介面中新增及排版指令鍵、指令列表及該些畫面元件。 An instruction setting method of a control system according to the present invention includes the steps of: providing an editing interface to edit a user interface, the user interface including a plurality of instruction keys, an instruction list, and a plurality of picture elements. Add and edit the contents of the command key in the editing interface. The contents of the command key include the appearance of the command, the command attribute, the command action and the finger Order parameters. Added and typed instruction keys, instruction lists, and these screen elements in the editing interface.

在一實施例中,指令設定方法更包括以下步驟:解譯編輯後之使用者介面。 In an embodiment, the instruction setting method further comprises the step of: interpreting the edited user interface.

在一實施例中,指令設定方法更包括以下步驟:於使用者介面中選擇至少一指令鍵,以設定並顯示一對應的指令鍵內容於指令列表。以及,執行指令列表中的指令鍵的內容。 In an embodiment, the instruction setting method further comprises the step of: selecting at least one instruction key in the user interface to set and display a corresponding instruction key content in the instruction list. And, the content of the instruction key in the instruction list is executed.

在一實施例中,指令列表顯示的指令鍵內容可為指令外觀及指令參數。並且,指令設定方法可更包括以下步驟:於使用者介面中,編輯指令列表顯示的指令參數。 In an embodiment, the instruction key content displayed by the instruction list may be an instruction appearance and an instruction parameter. Moreover, the instruction setting method may further include the step of: editing the instruction parameters displayed by the instruction list in the user interface.

在一實施例中,指令設定方法更包括以下步驟:於編輯介面中,編輯使用者介面、指令列表及畫面元件的外觀。 In an embodiment, the instruction setting method further comprises the steps of: editing the appearance of the user interface, the instruction list, and the screen component in the editing interface.

在一實施例中,畫面元件包括直線元件、折線元件、按鈕元件、文字元件、曲線元件、長方圖元件及儀表元件,以於使用者介面顯示及供一使用者操作功能。畫面元件例如可為數值輸入元件、切換畫面按鈕元件及基本圖形元件等。 In one embodiment, the picture elements include linear elements, polyline elements, button elements, text elements, curved elements, histogram elements, and instrumentation elements for display on the user interface and for a user to operate functions. The picture elements can be, for example, numerical input elements, switching picture button elements, basic graphic elements, and the like.

依據本發明的一種控制系統,包括一指令設定器及一指令編輯器。指令設定器具有一使用者介面,使用者介面包括複數指令鍵、一指令列表及複數畫面元件。指令編輯器具有一編輯介面,用以新增及編輯指令鍵的內容,指令鍵的內容包括指令外觀、指令屬性、指令動作及指令參數,並新增及排版指令鍵、指令列表及畫面元件。 A control system in accordance with the present invention includes an instruction setter and an instruction editor. The command setter has a user interface, and the user interface includes a plurality of command keys, a command list, and a plurality of picture elements. The instruction editor has an editing interface for adding and editing the contents of the instruction keys. The contents of the instruction keys include the appearance of the instructions, the attributes of the instructions, the actions of the instructions and the parameters of the instructions, and the addition and formatting of the command keys, the list of instructions and the screen elements.

在一實施例中,指令設定器係依據指令編輯器編輯後之使用者介面進行解譯。 In one embodiment, the command setter is interpreted according to the user interface edited by the command editor.

在一實施例中,當於使用者介面中選擇指令鍵後,指令設定器設定並顯示一對應的指令鍵內容於指令列表,且當於使用者介面中選擇一執行鍵後,指令設定器執行指令列表中指令鍵內容的指令動作。其中,於使用者介面中,指令列表顯示的指令鍵內容可為指令外觀及指令參數,且指令列表顯示的指令參數係允許一使用者編輯。 In an embodiment, after selecting the command key in the user interface, the command setter sets and displays a corresponding command key content in the instruction list, and when an execution key is selected in the user interface, the instruction setter executes The instruction action of the contents of the command key in the instruction list. In the user interface, the content of the instruction key displayed by the instruction list may be the appearance of the instruction and the instruction parameter, and the instruction parameter displayed by the instruction list allows a user to edit.

在一實施例中,於編輯介面中,指令編輯器允許一使用者編輯使用者介面、指令列表及畫面元件的外觀。 In one embodiment, in the editing interface, the command editor allows a user to edit the appearance of the user interface, the list of instructions, and the screen elements.

在一實施例中,畫面元件包括直線元件、折線元件、按鈕元件、文字元件、曲線元件、長方圖元件及儀表元件,以於使用者介面顯示及供一使用者操作功能。 In one embodiment, the picture elements include linear elements, polyline elements, button elements, text elements, curved elements, histogram elements, and instrumentation elements for display on the user interface and for a user to operate functions.

承上所述,依據本發明的一種控制系統及其指令設定方法,藉由設計一編輯介面與一使用者介面配合,讓使用者能在不用修改韌體的情況下,透過編輯介面自由地編輯使用者介面,甚至新增及編輯欲使用的指令內容。與習知技術相較,因本發明不需進行韌體程式的修改,故系統開發商等使用者可利用此通用的編輯介面快速地完成所欲想的使用者介面調整以及指令的新增、編輯,不僅讓整體控制系統更有設計彈性,更可節省修改的時間、勞力及開發成本。同時,系統開發商可因應不同的控制系統需求,而客制化地設定指令及新增編輯畫面元件以開發出更多元的使用者介面,並大幅減少其開發時間及成本,從而提高競爭力及效率。 According to the present invention, a control system and a command setting method thereof are designed to cooperate with a user interface by designing an editing interface, so that the user can freely edit through the editing interface without modifying the firmware. The user interface even adds and edits the content of the instructions to be used. Compared with the prior art, since the invention does not need to modify the firmware program, the system developer and the like can quickly complete the desired user interface adjustment and the instruction addition by using the general editing interface. The editor not only makes the overall control system more flexible, but also saves time, labor and development costs. At the same time, system developers can customize the instructions and add new editing screen components to develop more user interfaces in response to different control system requirements, and significantly reduce their development time and cost, thereby enhancing competitiveness. And efficiency.

再者,由於本發明中的使用者介面可由指令編輯器的編輯介面作各種外觀上的調整,進而可讓使用者介面變得圖形化,並具有更佳的視覺效果,此圖形化的使用者介面配合可自訂的指令動作編輯,可讓終端使用者更直覺且快速的進行操作,進而能強化指令編排過程的流暢度,以便於應用時的操作,並且準確地反應使用者意志。 Furthermore, since the user interface in the present invention can be adjusted in various appearances by the editing interface of the command editor, the user interface can be graphically displayed and have better visual effects. The interface can be customized with custom command actions, which allows the end user to operate more intuitively and quickly, thereby enhancing the smoothness of the instruction programming process, facilitating the operation of the application and accurately reflecting the user's will.

1‧‧‧指令設定器 1‧‧‧Instruction Setter

11‧‧‧使用者介面 11‧‧‧User interface

111、I‧‧‧指令鍵 111, I‧‧‧ command key

111a、a1、a2‧‧‧指令外觀 111a, a 1 , a 2 ‧ ‧ directive appearance

111b、b1、b2‧‧‧指令動作 111b, b 1 , b 2 ‧‧‧ instruction action

111c、c1、c2‧‧‧指令屬性 111c, c 1 , c 2 ‧ ‧ directive attributes

111d、d1、d2‧‧‧指令參數 111d, d 1 , d 2 ‧‧‧ instruction parameters

112、IL‧‧‧指令列表 112. List of IL‧‧‧ directives

113‧‧‧畫面元件 113‧‧‧ Picture components

2‧‧‧指令編輯器 2‧‧‧Instructor Editor

21‧‧‧編輯介面 21‧‧‧Editing interface

211、212‧‧‧功能 211, 212‧‧‧ function

CS‧‧‧控制系統 CS‧‧‧Control System

D0、D1、Y1、Y6‧‧‧記憶體 D0, D1, Y1, Y6‧‧‧ memory

E1、E2‧‧‧編輯鍵 E 1 , E 2 ‧ ‧ edit keys

P1、P2、P3‧‧‧參數 P1, P2, P3‧‧‧ parameters

S01~S03‧‧‧步驟 S01~S03‧‧‧Steps

Write Bit、Visible Bit‧‧‧屬性 Write Bit, Visible Bit‧‧‧ Properties

X1‧‧‧存取接點 X1‧‧‧ access points

圖1為一種習知控制系統的使用者控制介面;圖2為依據本發明較佳實施例之控制系統的指令設定方法的流程步驟圖;圖3為本發明較佳實施例之控制系統的系統方塊圖;圖4為本發明較佳實施例之使用者介面及編輯介面的功能方塊圖;圖5及圖6顯示本發明較佳實施例之不同態樣的指令鍵內容的示意圖;以及圖7為本發明較佳實施例之使用者介面的示意圖。 1 is a user control interface of a conventional control system; FIG. 2 is a flow chart of a command setting method of a control system according to a preferred embodiment of the present invention; FIG. 3 is a system of a control system according to a preferred embodiment of the present invention; FIG. 4 is a functional block diagram of a user interface and an editing interface according to a preferred embodiment of the present invention; FIGS. 5 and 6 are diagrams showing the contents of instruction keys in different aspects of a preferred embodiment of the present invention; and FIG. A schematic diagram of a user interface of a preferred embodiment of the present invention.

以下將參照相關圖式,說明依據本發明較佳實施例之控制系統及其指令設定方法,其中相同的元件將以相同的參照符號加以說明。 DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a control system and a command setting method thereof according to a preferred embodiment of the present invention will be described with reference to the accompanying drawings, wherein the same elements will be described with the same reference numerals.

圖2為依據本發明較佳實施例之控制系統的指令設定方法的流程步驟圖。首先須說明者,依據本發明的控制系統可以為工廠自動化系統、重型機械控制系統、運輸系統或可程式邏輯控制系統等任何電子及電腦控制系統,本發明並不予以限制。請參考圖2所 示,控制系統的指令設定方法,包括以下步驟S01~S03。 2 is a flow chart showing a method of setting an instruction of a control system in accordance with a preferred embodiment of the present invention. It should first be noted that the control system according to the present invention may be any electronic and computer control system such as a factory automation system, a heavy machinery control system, a transportation system or a programmable logic control system, and the invention is not limited thereto. Please refer to Figure 2 The instruction setting method of the control system includes the following steps S01 to S03.

步驟S01:提供一編輯介面以編輯一使用者介面,使用者介面包括複數指令鍵、一指令列表及複數畫面元件。使用者介面係供終端使用者操作編排指令,以控制控制系統完成一連串的動作,指令列表可用以顯示使用者已安排的指令。畫面元件可於使用者介面中顯示及供使用者選擇、操作其對應功能。 Step S01: providing an editing interface to edit a user interface, the user interface includes a plurality of instruction keys, an instruction list, and a plurality of picture elements. The user interface is for the end user to manipulate the programming instructions to control the control system to complete a series of actions, and the instruction list can be used to display the instructions that the user has arranged. The screen component can be displayed in the user interface and provided for the user to select and operate the corresponding function.

步驟S02:於編輯介面中新增及編輯指令鍵的內容,指令鍵的內容包括指令外觀、指令屬性、指令動作及指令參數。指令外觀、指令屬性、指令動作及指令參數所代表的意義及功能將於後續段落再詳加敘述。 Step S02: Adding and editing the content of the instruction key in the editing interface, the contents of the instruction key include the instruction appearance, the instruction attribute, the instruction action, and the instruction parameter. The meanings and functions represented by the appearance of the instructions, the attributes of the instructions, the actions of the instructions, and the parameters of the instructions are described in more detail in subsequent paragraphs.

步驟S03:於編輯介面中新增及排版指令鍵、指令列表及畫面元件,說明書中所提之「排版」代表的是使用者介面的版面調整,於此包括在使用者介面中排版指令鍵、指令列表及畫面元件顯示的位置、圖示等等,都可藉由此步驟S03作修改。 Step S03: adding and formatting command keys, instruction lists, and screen components in the editing interface. The "typesetting" mentioned in the manual represents a layout adjustment of the user interface, and includes a typesetting command key in the user interface, The position of the instruction list and the screen component display, the illustration, and the like can be modified by this step S03.

具體而言,圖3顯示使用上述指令設定方法的控制系統的系統方塊圖,圖4為使用者介面及編輯介面的功能方塊圖。請參考圖3及圖4所示,本實施例中之控制系統CS包括一指令設定器1及一指令編輯器2。 Specifically, FIG. 3 shows a system block diagram of a control system using the above-described command setting method, and FIG. 4 is a functional block diagram of a user interface and an editing interface. Referring to FIG. 3 and FIG. 4, the control system CS in this embodiment includes an instruction setter 1 and an instruction editor 2.

指令設定器1具有上述之使用者介面11,其包括複數指令鍵111、一指令列表112及複數畫面元件113,指令鍵111的內容包括指令外觀111a、指令動作111b、指令屬性111c及指令參數111d。指令編輯器2具有上述之編輯介面21,用以新增及編輯指令鍵111的內容(功能211),並可新增及排版指令鍵111、指令列表112及畫 面元件113(功能212)。 The command setter 1 has the user interface 11 described above, and includes a plurality of command keys 111, an instruction list 112, and a plurality of screen elements 113. The contents of the command keys 111 include an instruction appearance 111a, an instruction action 111b, an instruction attribute 111c, and an instruction parameter 111d. . The instruction editor 2 has the above-mentioned editing interface 21 for adding and editing the content of the instruction key 111 (function 211), and adding and formatting the instruction key 111, the instruction list 112 and the drawing. Face element 113 (function 212).

在較佳實施例中,編輯介面21還可更具有編輯使用者介面11、指令列表112及畫面元件113的外觀的功能,例如使用者介面11的背景顏色及指令列表112的格線顏色,選取顏色與列表寬高等等。 In a preferred embodiment, the editing interface 21 may further have the function of editing the appearance of the user interface 11, the instruction list 112, and the screen component 113, such as the background color of the user interface 11 and the grid color of the instruction list 112. Color and list width and so on.

以下詳細說明控制系統CS之實際運用方式。使用者介面11原本即設有預設之指令鍵111內容、指令列表112及畫面元件113,然而,當這些預設指令鍵111內容、排版甚至外觀設計不符合使用者需求時,使用者或系統開發商可透過指令編輯器2的編輯介面21自訂修改。編輯完成後,指令編輯器2將編輯資訊傳送至指令設定器1進行解譯,解譯資訊更新後,使用者介面11即顯示編輯後的排版畫面和新增或修改後的指令鍵111及其內容、指令列表112與畫面元件113。 The actual operation of the control system CS is described in detail below. The user interface 11 is originally provided with a preset command key 111 content, a command list 112, and a screen component 113. However, when the content, layout, or even the design of the preset command key 111 does not meet the user's needs, the user or the system The developer can customize the modification through the editing interface 21 of the instruction editor 2. After the editing is completed, the instruction editor 2 transmits the editing information to the instruction setter 1 for interpretation. After the interpretation information is updated, the user interface 11 displays the edited layout screen and the newly added or modified instruction key 111 and Content, instruction list 112 and screen element 113.

不過須特別說明的是,前述指令編輯器2只能在控制系統CS停止運作時於編輯介面21中進行編輯,並且當指令編輯器2將編輯後的資訊傳送給指令設定器1解譯後,指令設定器1在控制系統CS停止運作的狀態下才可選擇指令鍵111以編排一連續的控制動作,並可變更其指令參數111d。 However, it should be particularly noted that the aforementioned instruction editor 2 can only be edited in the editing interface 21 when the control system CS stops operating, and when the instruction editor 2 transmits the edited information to the instruction setter 1 for interpretation, The command setter 1 can select the command key 111 to arrange a continuous control action while the control system CS is stopped, and can change its command parameter 111d.

圖5及圖6顯示本發明較佳實施例之指令鍵111內容的示意圖。另參考圖4所示,指令鍵111的內容包括指令外觀111a、指令動作111b、指令屬性111c及指令參數111d,其代表意義及作用詳細說明如下。 5 and 6 show schematic views of the contents of the command key 111 in accordance with a preferred embodiment of the present invention. Referring to FIG. 4, the contents of the command key 111 include an instruction appearance 111a, an instruction action 111b, an instruction attribute 111c, and an instruction parameter 111d, and the representative meanings and functions thereof are described in detail below.

指令外觀111a可以是但不限於為指令鍵111的形狀、背景顏色、名稱、文字字型、文字大小,顯示圖樣、位置與寬高等等視覺上 的圖樣變化,用來描述指令鍵111外觀以及指令顯示於指令列表112時的資訊。指令動作111b為指令所擁有的邏輯流程,具有一個邏輯流程的編程介面可供編輯,編程介面可例如但不限於為結構化語言,例如巨集(Macro)、描述語言(Script),或是圖形化語言,例如階梯圖(Ladder Diagram)及功能區塊圖(Function Block Diagram)等。指令屬性111c則可例如但不限於寫入位址、可見位址、生效位址、生效準位、讀取位址及是否閃爍屬性等,且指令屬性111c的個數可以為零,或是設定一個以上的指令屬性111c個數。指令參數111d對於終端使用者而言,即代表對應指令後面所接的引數,系統開發商可以自由調整引數的內容,例如可以根據指令參數的型態定義其預設值與範圍值,還可以自訂指令參數111d的文字名稱、文字大小與文字字型。此外,指令參數111d的個數可以設為零,或是新增一個以上的指令參數111d個數;指令參數111d的型態可以設為常數、字串、位址變數,或是自訂的資料型態。 The command appearance 111a may be, but not limited to, the shape of the command key 111, the background color, the name, the text font, the text size, the display pattern, the position and the width and height, etc. visually The pattern change is used to describe the appearance of the command key 111 and the information when the command is displayed on the instruction list 112. The instruction action 111b is a logic flow owned by the instruction, and the programming interface with a logic flow can be edited. The programming interface can be, for example but not limited to, a structured language such as a macro, a script, or a graphic. Languages, such as ladder diagrams and function block diagrams. The command attribute 111c may be, for example but not limited to, a write address, a visible address, an effective address, an effective level, a read address, and a blinking attribute, and the number of the instruction attributes 111c may be zero or set. More than one instruction attribute 111c number. The command parameter 111d is for the terminal user, that is, the derivative number connected after the corresponding instruction, and the system developer can freely adjust the content of the argument, for example, the preset value and the range value can be defined according to the type of the command parameter. The text name, text size, and text font of the command parameter 111d can be customized. In addition, the number of command parameters 111d can be set to zero, or more than one instruction parameter 111d can be added; the type of the command parameter 111d can be set as a constant, a string, an address variable, or a custom data. Type.

須強調的是,圖5及圖6皆為舉例而言,其描述並非限制性者,且圖中之標號為了方便起見,指令外觀改用a1、a2標號、指令動作改用b1、b2標號、指令屬性改用c1、c2標號、指令參數改用d1、d2標號。 It should be emphasized that FIGS. 5 and 6 are all example, the description thereof is not a limiting sense, and the figures for convenience of reference, the appearance of the instruction to switch to a 1, a 2 reference, the operation instruction switch b 1 The b 2 label, the instruction attribute are changed to c 1 , the c 2 label, and the instruction parameter is changed to the d 1 and d 2 labels.

以圖5顯示之實施態樣為例,使用者可於指令外觀a1中新建立一個指令鍵111,將其排版在畫面上(12,50)的位置。並設定指令名稱與外觀,於此係將指令名稱設為「Opl」,名稱字型大小設定為20,名稱的文字顏色設為紅色,不指定其背景圖形,顯示名稱設為「自訂指令1」,顯示字型型態設為「斜體」。 Taking the embodiment shown in FIG. 5 as an example, the user can newly create an instruction key 111 in the appearance of the instruction a 1 and place it on the screen (12, 50). And set the command name and appearance, this will set the command name to "Opl", the name font size is set to 20, the name text color is set to red, the background graphic is not specified, and the display name is set to "custom command 1 The display font type is set to "italic".

接著設定指令屬性c1,於此可新增屬性Write Bit(寫入位址),將該屬性值設為Y1,預設值設為ON。其作用在於,當指令執行時,解譯器讀到此屬性Write Bit時,會把記憶體Y1的值設為ON。另新增屬性Visible Bit(可見位址),將屬性值設為Y6。其作用在於,當記憶體Y6的值為ON時,指令鍵111會顯示在畫面上;當記憶體Y6的值為OFF時,指令鍵111則隱藏,不顯示在畫面上,讓終端使用者無法使用此指令。 Then set the instruction attribute c 1 , here you can add the attribute Write Bit (write address), set the attribute value to Y1, and set the preset value to ON. The effect is that when the instruction is executed, the interpreter reads the attribute Write Bit and sets the value of the memory Y1 to ON. Also add the property Visible Bit and set the property value to Y6. The function is that when the value of the memory Y6 is ON, the command key 111 is displayed on the screen; when the value of the memory Y6 is OFF, the command key 111 is hidden and is not displayed on the screen, so that the terminal user cannot Use this directive.

再者,設定指令參數d1。例如新增參數P1,將參數名稱設為P1,P1的資料型態設為Const(常數),預設值設為10。新增參數P2,將該參數名稱設為P2,參數P2的資料型態設為Const(常數),預設值設為30。新增參數P3,將參數名稱設為P3,參數P3的資料型態設為記憶體類型,存取接點設為X1。 Furthermore, the command parameter d 1 is set . For example, the parameter P1 is added, the parameter name is set to P1, the data type of P1 is set to Const (constant), and the preset value is set to 10. Added parameter P2, set the parameter name to P2, set the data type of parameter P2 to Const (constant), and set the default value to 30. The parameter P3 is added, the parameter name is set to P3, the data type of parameter P3 is set to the memory type, and the access contact is set to X1.

最後,編程指令動作b1。例如可利用巨集編寫動作流程,先判斷存取接點X1是否為TRUE,如果條件成立,就把記憶體D0的值設為參數P1,記憶體D1的值設為參數P2。指令執行時,指令設定器1中的解譯器(圖未示)會執行此動作流程。 Finally, the programming instruction acts b 1 . For example, the operation flow can be written by using a macro, and it is first determined whether the access contact X1 is TRUE. If the condition is satisfied, the value of the memory D0 is set to the parameter P1, and the value of the memory D1 is set to the parameter P2. When the instruction is executed, the interpreter (not shown) in the instruction setter 1 performs this action flow.

另舉例一圖6顯示之實施態樣之指令鍵111內容。首先於指令外觀a2中新建立一個指令鍵111,將其排版在畫面上(12,90)的位置。接著設定指令名稱與外觀,例如指令名稱設為「Mold Open」,名稱字型大小設定為10,名稱的文字顏色設為藍色,不指定其背景圖形,顯示名稱設為「等待開模」。再來規劃指令屬性c2,新增屬性Write Bit,將該屬性值設為Y6,預設值設為ON。其作動為,當指令執行時,解譯器讀到此屬性Write Bit時,會把記憶體Y6的值設為ON。於此我們可不設定指令參數d2及指令動作b2Another example is the content of the instruction key 111 of the embodiment shown in FIG. First, an instruction key 111 is newly created in the instruction appearance a 2 to be placed on the screen (12, 90). Then set the command name and appearance. For example, the command name is set to "Mold Open", the name font size is set to 10, the name text color is set to blue, the background graphic is not specified, and the display name is set to "waiting for open mode". Then plan the instruction attribute c 2 , add the attribute Write Bit, set the attribute value to Y6, and set the default value to ON. The action is that when the instruction is executed, the interpreter reads the attribute Write Bit and sets the value of the memory Y6 to ON. Here we do not set the command parameter d 2 and the command action b 2 .

復參考圖4所示,使用者介面11中的畫面元件113可以為但不限於直線(Line)元件,折線(Poly line)元件,按鈕(Button)元件,文字(Text)元件,2D曲線(Curve)元件,長方圖(Bar)元件,儀表(Meter)元件等與指令無關的元件。舉例來說,畫面元件113可為使用者在使用使用者介面11時會用到的相關元件,例如可以新增一個可顯示下一頁畫面的按鈕元件,以供使用者將畫面切到下一頁的指令列表112;或者,新增一個輸入數值的元件,以供使用者設定指令參數111d的數值。此外,畫面元件113還可為顯示資訊的圖表。 Referring to FIG. 4, the picture element 113 in the user interface 11 may be, but not limited to, a line element, a poly line element, a button element, a text element, and a 2D curve. A component, a Bar component, a Meter component, etc., which are independent of the instruction. For example, the screen component 113 can be a related component that the user can use when using the user interface 11. For example, a button component can be added to display the next page for the user to cut the screen to the next. The instruction list 112 of the page; or, an element for inputting a value is added for the user to set the value of the instruction parameter 111d. In addition, the screen component 113 can also be a chart that displays information.

請參考圖7所示,其為本發明較佳實施例之使用者介面11的示意圖。上述之指令設定器1具有一使用者介面11,指令設定器1將指令編輯器2傳來的編輯資訊解譯後顯示於使用者介面11中,如圖7所示,使用者介面11包括指令鍵111、一指令列表112及畫面元件113。於此,指令鍵111包括圖5及圖6所增加之指令鍵,其名稱分別為「Opl」及「Mold Open」,另外還有系統預設的指令鍵,名稱為「JIG」,且畫面元件113包括使用者介面11右側的折線圖,以及可執行及停止控制系統運作的按鈕:「執行」及「停止」鍵。 Please refer to FIG. 7, which is a schematic diagram of the user interface 11 of the preferred embodiment of the present invention. The command setter 1 has a user interface 11, and the command setter 1 interprets the edit information transmitted from the command editor 2 and displays it in the user interface 11. As shown in FIG. 7, the user interface 11 includes instructions. Key 111, an instruction list 112, and picture element 113. Herein, the command key 111 includes the command keys added in FIG. 5 and FIG. 6, and the names are "Opl" and "Mold Open" respectively, and the system preset command key, the name is "JIG", and the screen component 113 includes a line graph on the right side of the user interface 11, and buttons for executing and stopping the operation of the control system: "execute" and "stop" buttons.

使用者介面11的操作方式為:於使用者介面11中選擇至少一指令鍵111,以設定並顯示新增一對應的指令鍵111內容於指令列表112,於此係以顯示指令外觀(指令的顯示名稱、代表圖示等)及指令參數為例。編輯完成後按下執行鍵113,以執行指令列表112中的指令鍵111的內容,或是按下停止鍵113以再次進行指令 的編輯。於此,在執行之前,於使用者介面11中,使用者還可調整指令列表112顯示的指令鍵111內容,例如變更指令參數(如圖7中之Speed、Force、Enable、P1、P2、P3)的數值。 The user interface 11 is operated by selecting at least one instruction key 111 in the user interface 11 to set and display a new corresponding instruction key 111 content in the instruction list 112, thereby displaying the appearance of the instruction (instruction The display name, representative icon, etc.) and the command parameters are examples. After the editing is completed, the execution key 113 is pressed to execute the content of the instruction key 111 in the instruction list 112, or the stop key 113 is pressed to execute the instruction again. Edit. Here, before the execution, in the user interface 11, the user can also adjust the content of the instruction key 111 displayed by the instruction list 112, for example, changing the instruction parameters (such as Speed, Force, Enable, P1, P2, P3 in FIG. 7). The value of ).

舉例而言,使用者分別按下指令鍵「JIG」、「Line」、「JIG」、「Mold Open」及「Opl」後,指令列表112即如圖7所顯示,藉由設置其他的畫面元件(圖未示,可例如為圖1中之編輯鍵E1、E2),即可修改其指令參數,甚至是刪除、變更指令列表112中的指令。 For example, after the user presses the command keys "JIG", "Line", "JIG", "Mold Open" and "Opl" respectively, the command list 112 is displayed as shown in FIG. 7 by setting other screen elements. (The figure is not shown, for example, the edit keys E 1 , E 2 in FIG. 1 ), and its instruction parameters can be modified, and even the instructions in the instruction list 112 can be deleted or changed.

本發明亦同時揭露一種應用上述之指令設定方法的控制系統CS,如圖3所示。控制系統CS包括一指令設定器1及一指令編輯器2。由於控制系統CS之詳細結構、組成元件及作用皆已於以上敘述指令設定方法時一併提及,故於此遂不再贅述。 The present invention also discloses a control system CS applying the above-described instruction setting method, as shown in FIG. The control system CS includes an instruction setter 1 and an instruction editor 2. Since the detailed structure, components, and functions of the control system CS have been mentioned in the above description of the command setting method, they will not be described here.

綜上所述,依據本發明的一種控制系統及其指令設定方法,藉由設計一編輯介面與一使用者介面配合,讓使用者能在不用修改韌體的情況下,透過編輯介面自由地編輯使用者介面,甚至新增及編輯欲使用的指令內容。與習知技術相較,因本發明不需進行韌體程式的修改,故系統開發商等使用者可利用此通用的編輯介面快速地完成所欲想的使用者介面調整以及指令的新增、編輯,不僅讓整體控制系統更有設計彈性,更可節省修改的時間、勞力及開發成本。同時,系統開發商可因應不同的控制系統需求,而客制化地設定指令及新增編輯畫面元件以開發出更多元的使用者介面,並大幅減少其開發時間及成本,從而提高競爭力及效率。 In summary, a control system and an instruction setting method thereof according to the present invention can be freely edited through an editing interface without modifying a firmware by designing an editing interface to cooperate with a user interface. The user interface even adds and edits the content of the instructions to be used. Compared with the prior art, since the invention does not need to modify the firmware program, the system developer and the like can quickly complete the desired user interface adjustment and the instruction addition by using the general editing interface. The editor not only makes the overall control system more flexible, but also saves time, labor and development costs. At the same time, system developers can customize the instructions and add new editing screen components to develop more user interfaces in response to different control system requirements, and significantly reduce their development time and cost, thereby enhancing competitiveness. And efficiency.

再者,由於本發明中的使用者介面可由指令編輯器的編輯介面作 各種外觀上的調整,進而可讓使用者介面變得圖形化,並具有更佳的視覺效果,此圖形化的使用者介面配合可自訂的指令動作編輯,可讓終端使用者更直覺且快速的進行操作,進而能強化指令編排過程的流暢度,以便於應用時的操作,並且準確地反應使用者意志。 Furthermore, since the user interface in the present invention can be made by the editing interface of the instruction editor Various appearance adjustments, which in turn allow the user interface to be graphical and have better visual effects. This graphical user interface can be customized with customizable command actions, making the end user more intuitive and fast. The operation can enhance the smoothness of the instruction programming process, facilitate the operation at the time of application, and accurately reflect the will of the user.

以上所述僅為舉例性,而非為限制性者。任何未脫離本發明之精神與範疇,而對其進行之等效修改或變更,均應包含於後附之申請專利範圍中。 The above is intended to be illustrative only and not limiting. Any equivalent modifications or alterations to the spirit and scope of the invention are intended to be included in the scope of the appended claims.

S01~S03‧‧‧步驟 S01~S03‧‧‧Steps

Claims (10)

一種控制系統的指令設定方法,包括以下步驟:提供一編輯介面以編輯一使用者介面,該使用者介面包括複數指令鍵、一指令列表及複數畫面元件;於該編輯介面中新增及編輯該些指令鍵的內容,該些指令鍵的內容包括指令外觀、指令屬性、指令動作及指令參數;於該編輯介面中新增及排版該些指令鍵、該指令列表及該些畫面元件;於該使用者介面中選擇至少一該指令鍵,以設定並顯示一對應的指令鍵內容於該指令列表;以及執行該指令列表中的該指令鍵的內容,其中該指令列表顯示的該指令鍵內容為指令外觀及指令參數。 A command setting method for a control system, comprising the steps of: providing an editing interface for editing a user interface, the user interface comprising a plurality of command keys, an instruction list, and a plurality of picture elements; adding and editing the editing interface The contents of the instruction keys, the contents of the instruction keys include an instruction appearance, an instruction attribute, an instruction action, and an instruction parameter; the instruction keys, the instruction list, and the picture elements are added and typed in the editing interface; Selecting at least one of the user interface to set and display a corresponding instruction key content in the instruction list; and executing the content of the instruction key in the instruction list, wherein the instruction key displays the instruction key content as Instruction appearance and instruction parameters. 如申請專利範圍第1項所述之指令設定方法,更包括以下步驟:解譯編輯後之該使用者介面。 The method for setting an instruction as described in claim 1 further includes the following steps: interpreting the edited user interface. 如申請專利範圍第1項所述之指令設定方法,更包括以下步驟:於該使用者介面中,編輯該指令列表顯示的指令參數。 The method for setting an instruction as described in claim 1 further includes the step of: editing, in the user interface, an instruction parameter displayed by the instruction list. 如申請專利範圍第1項所述之指令設定方法,更包括以下步驟:於該編輯介面中,編輯該使用者介面、該指令列表及該些畫面元件的外觀。 The method for setting an instruction according to claim 1 further includes the step of: editing the user interface, the list of instructions, and the appearance of the screen elements in the editing interface. 如申請專利範圍第1項所述之指令設定方法,其中該畫面元件包括直線元件、折線元件、按鈕元件、文字元件、曲線元件、長方圖元件及儀表元件,以於該使用者介面顯示及供一使用者操作功 能。 The method for setting an instruction according to claim 1, wherein the screen component comprises a linear component, a polygonal component, a button component, a text component, a curved component, a rectangular component, and a meter component for displaying the user interface and For a user to operate can. 一種控制系統,包括:一指令設定器,具有一使用者介面,該使用者介面包括複數指令鍵、一指令列表及複數畫面元件,以及一指令編輯器,具有一編輯介面,用以新增及編輯該些指令鍵的內容,該些指令鍵的內容包括指令外觀、指令屬性、指令動作及指令參數,並新增及排版該些指令鍵、該指令列表及該些畫面元件,其中當於該使用者介面中選擇該指令鍵後,該指令設定器設定並顯示一對應的指令鍵內容於該指令列表,且當於該使用者介面中選擇一執行鍵後,該指令設定器執行該指令列表中該指令鍵內容的指令動作,而該指令列表顯示的該指令鍵內容為指令外觀及指令參數。 A control system includes: an command setter having a user interface, the user interface including a plurality of command keys, a command list and a plurality of screen elements, and an instruction editor having an editing interface for adding and Editing the contents of the instruction keys, the contents of the instruction keys include an instruction appearance, an instruction attribute, an instruction action, and an instruction parameter, and adding and formatting the instruction keys, the instruction list, and the screen components, wherein After the instruction key is selected in the user interface, the instruction setter sets and displays a corresponding instruction key content in the instruction list, and when an execution key is selected in the user interface, the instruction setter executes the instruction list. The instruction action of the instruction key content, and the instruction key content displayed by the instruction list is the instruction appearance and the instruction parameter. 如申請專利範圍第6項所述之控制系統,其中該指令設定器係依據該指令編輯器編輯後之該使用者介面進行解譯。 The control system of claim 6, wherein the command setter is interpreted according to the user interface edited by the command editor. 如申請專利範圍第6項所述之控制系統,其中於該使用者介面中,該指令列表顯示的指令參數係允許一使用者編輯。 The control system of claim 6, wherein in the user interface, the instruction parameter displayed by the instruction list allows a user to edit. 如申請專利範圍第6項所述之控制系統,其中於該編輯介面中,該指令編輯器允許一使用者編輯該使用者介面、該指令列表及該些畫面元件的外觀。 The control system of claim 6, wherein in the editing interface, the command editor allows a user to edit the user interface, the list of instructions, and the appearance of the screen elements. 如申請專利範圍第6項所述之控制系統,其中該畫面元件包括直線元件、折線元件、按鈕元件、文字元件、曲線元件、長方圖元件及儀表元件,以於該使用者介面顯示及供一使用者操作功能。 The control system of claim 6, wherein the screen component comprises a linear component, a polygonal component, a button component, a text component, a curved component, a rectangular component, and a meter component for displaying and providing the user interface. A user operation function.
TW100119842A 2011-06-07 2011-06-07 Control system and instruction setting method thereof TWI448859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW100119842A TWI448859B (en) 2011-06-07 2011-06-07 Control system and instruction setting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100119842A TWI448859B (en) 2011-06-07 2011-06-07 Control system and instruction setting method thereof

Publications (2)

Publication Number Publication Date
TW201250419A TW201250419A (en) 2012-12-16
TWI448859B true TWI448859B (en) 2014-08-11

Family

ID=48139259

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100119842A TWI448859B (en) 2011-06-07 2011-06-07 Control system and instruction setting method thereof

Country Status (1)

Country Link
TW (1) TWI448859B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1833225A1 (en) * 1993-07-30 2007-09-12 Cannon Kabushiki Kaisha Object-oriented multimedia device control method and device via automatically generated graphical user interface
US20070266329A1 (en) * 2005-04-19 2007-11-15 The Mathworks, Inc. Graphical state machine based programming for a graphical user interface
TW200949662A (en) * 2008-05-16 2009-12-01 Universal Scient Ind Co Ltd System and method for controlling user interface
US20090327942A1 (en) * 2008-06-26 2009-12-31 Invensys Systems, Inc. multi-mode editor for configuring process control blocks including both logical functions and arithmetic computations

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1833225A1 (en) * 1993-07-30 2007-09-12 Cannon Kabushiki Kaisha Object-oriented multimedia device control method and device via automatically generated graphical user interface
US20070266329A1 (en) * 2005-04-19 2007-11-15 The Mathworks, Inc. Graphical state machine based programming for a graphical user interface
TW200949662A (en) * 2008-05-16 2009-12-01 Universal Scient Ind Co Ltd System and method for controlling user interface
US20090327942A1 (en) * 2008-06-26 2009-12-31 Invensys Systems, Inc. multi-mode editor for configuring process control blocks including both logical functions and arithmetic computations

Also Published As

Publication number Publication date
TW201250419A (en) 2012-12-16

Similar Documents

Publication Publication Date Title
JP6167087B2 (en) Configuring animations and events for operator interface displays in a process control system
US9389759B2 (en) Environment for responsive graphical designs
US9830417B1 (en) Methods and systems for generation and editing of parameterized figure group
TWI529551B (en) Method and system for implementing graphically editable parameterized cells
CN104731584A (en) Human-machine interface customizable configuration design method for open type numerical control system
EP3171266B1 (en) User interface widget modeling and placement
CN102460323B (en) For the system and method that the free form of programmable logic controller (PLC) annotates
JP5047401B1 (en) Project data creation device and programmable display
US9946806B2 (en) Exporting responsive designs from a graphical design tool
US20070271500A1 (en) Display method, computer program product and computer system
JP3835589B2 (en) Drawing device and computer-readable recording medium recording drawing program
TWI448859B (en) Control system and instruction setting method thereof
CN102819229B (en) Control system and instruction setting method thereof
JP2008021154A (en) Operation screen editing method for control indicator
JP6476080B2 (en) Design support apparatus, design support method, design support program, and recording medium
JP3913414B2 (en) Editor device and recording medium recording editor program
JP3795473B2 (en) Editor device and recording medium recording editor program
Peruzzini et al. Exploring the Adoption of UX-Driven Approaches to Design Industrial PLC User Interfaces
PERUZZINI et al. Leveraging Transdisciplinary Engineering in a Changing and Connected World 353 P. Koomsap et al.(Eds.) 2023 The Authors. This article is published online with Open Access by IOS Press and distributed under the terms of the Creative Commons Attribution Non-Commercial License 4.0 (CC BY-NC 4.0).
WO2014182484A1 (en) Design environment for responsive graphical designs
JP2710245B2 (en) Graph editing processor
JP6314141B2 (en) Document creation method and document creation apparatus for embedded software
JP4382017B2 (en) SCREEN CREATION DEVICE, SCREEN CREATION PROGRAM, RECORDING MEDIUM RECORDING THE PROGRAM, PROGRAMMABLE DISPLAY, CONTROL PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM
EP1862899A1 (en) Method of editing default graphic object for man-machine interface and editor using the same
JP2002157297A (en) Logical simulation system and input/output controller

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees