TW201447727A - Programmable display and program for same - Google Patents
Programmable display and program for same Download PDFInfo
- Publication number
- TW201447727A TW201447727A TW103104557A TW103104557A TW201447727A TW 201447727 A TW201447727 A TW 201447727A TW 103104557 A TW103104557 A TW 103104557A TW 103104557 A TW103104557 A TW 103104557A TW 201447727 A TW201447727 A TW 201447727A
- Authority
- TW
- Taiwan
- Prior art keywords
- screen
- data
- memory
- item
- processing
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/003—Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto
- G09G5/005—Adapting incoming signals to the display format of the display terminal
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
- G09G5/363—Graphics controllers
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/14—Solving problems related to the presentation of information to be displayed
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2354/00—Aspects of interface with display user
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2360/00—Aspects of the architecture of display systems
- G09G2360/12—Frame memory handling
- G09G2360/127—Updating a frame memory using a transfer of data from a source area to a destination area
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
- Programmable Controllers (AREA)
- Digital Computer Display Output (AREA)
Abstract
Description
本發明,係有關於可編程顯示器等。 The present invention relates to a programmable display or the like.
可編程顯示器,一般而言,係與PLC本體或溫調裝置等之各種連接機器作連接,並顯示像是進行此些之連接機器的狀態顯示的數值顯示或燈泡等之項目、或者是用以讓使用者發出任意之指示的開關等之項目的畫像。另外,項目,係亦被稱作畫面構件等。在可編程顯示器之畫面(稱作操作顯示畫面)上,通常係顯示有複數之畫面構件(項目)的畫像。用以顯示此種操作顯示畫面之資料等(稱作畫面資料等),係預先在未圖示之支援裝置中而由開發者來任意地作成,並從支援裝置而下載至可編程顯示器中。 A programmable display is generally connected to various connected devices such as a PLC main body or a temperature control device, and displays a numerical display such as a status display of such a connected device or a light bulb or the like, or is used for An image of an item such as a switch that allows the user to give an arbitrary instruction. In addition, the item is also referred to as a screen member or the like. On a screen of a programmable display (referred to as an operation display screen), an image of a plurality of screen members (items) is usually displayed. The information for displaying such an operation display screen (referred to as screen material or the like) is arbitrarily created by a developer in a support device (not shown), and is downloaded from the support device to the programmable display.
在上述畫面資料中,係針對上述各項目之每一者,而包含有該項目之畫像(開關之畫像或燈泡之畫像)和顯示位置座標,並更進而包含有後述之外部記憶體的既定區域之位址(分配記憶體位址)等的資料。進而,係亦有包含有某些程式等的情況。 In the above-mentioned screen data, each of the above-mentioned items includes an image of the item (an image of a switch or an image of a light bulb) and a display position coordinate, and further includes a predetermined area of an external memory to be described later. Information such as the address (allocation memory address). Further, there are cases where some programs are included.
上述各項目(畫面構件),例如,係為分別與任意之連接機器的任意之構成要素相對應,並進行該構成要素之狀態顯示或接收該構成要素之ON/OFF指示者。例如,當其為將溫調裝置之溫度測定值作數值顯示之項目的情況時,係成為隨時將現在的溫度藉由數值來作顯示。或者是,若是其為代表溫調裝置之ON/OFF狀態的燈泡之項目,則若是溫調裝置為ON狀態,係成為顯示燈泡點燈,若是為OFF狀態,則係成為顯示燈泡熄燈。 Each of the above-described items (screen members) is associated with an arbitrary component of an arbitrary connected device, and displays the state of the component or receives an ON/OFF instructor of the component. For example, when it is an item for numerically displaying the temperature measurement value of the temperature adjustment device, the current temperature is displayed by the numerical value at any time. Alternatively, if it is a light bulb item that represents the ON/OFF state of the temperature adjustment device, if the temperature adjustment device is in the ON state, the display lamp is turned on, and if it is in the OFF state, the display lamp is turned off.
另外,在支援裝置中,係預先作為項目畫像而登記有燈泡點燈畫像和燈泡熄燈畫像,在上述畫面資料中,係成為針對1個的燈泡項目而包含有燈泡點燈畫像和燈泡熄燈畫像。當然,係並不被限定於燈泡的情況,針對其他之項目種類(例如開關等),亦為相同。 In addition, in the support device, a light bulb lighting image and a light bulb light-off image are registered in advance as a project image, and in the screen data, a light bulb lighting image and a light bulb lighting image are included for one light bulb item. Of course, it is not limited to the case of a light bulb, and is also the same for other types of items (such as switches).
關連於上述各種項目之顯示控制,係藉由對於上述各項目之每一者而例如定期性地實行既定之處理,而實現之。所謂既定之處理,例如,係為將連接機器內之記憶體裝置(假設為外部記憶體)的既定區域之儲存資料(分配記憶體區域之儲存資料)讀出,並基於此儲存資料來決定、顯示項目之顯示內容的處理(顯示內容更新處理)等。另外,連接機器,係隨時將上述外部記憶體之既定區域的儲存資料作更新(例如在上述溫調裝置中,係隨時更新上述溫度測定值)。 The display control relating to the above various items is realized by, for example, periodically performing predetermined processing for each of the above items. The predetermined processing is, for example, reading the stored data (the stored data of the allocated memory area) of a predetermined area of the memory device (assumed to be an external memory) connected to the device, and determining based on the stored data, The processing of displaying the display content of the item (display content update processing) and the like are displayed. Further, the connection device updates the stored data of the predetermined area of the external memory at any time (for example, in the above-described temperature adjustment device, the temperature measurement value is updated at any time).
又,係亦存在有下述一般之構成:亦即是,將從上述分配記憶體區域所讀出之資料暫時性地儲存在可 編程顯示器內之記憶體裝置(假設為共有記憶體)的既定區域中,並基於此儲存資料來決定、顯示項目之顯示內容。 Moreover, there is also a general configuration in which the data read from the allocated memory area is temporarily stored in the The programmed area of the memory device (assumed to be a shared memory) in the display is programmed, and the display content of the item is determined and displayed based on the stored data.
於此例之情況中,可編程顯示器之既定的功能部(於此係假設為未圖示之通訊部),例如係定期性地實行此一將上述分配記憶體區域之儲存資料讀出並儲存在共有記憶體中的處理。上述通訊部,例如,係與上述PLC本體或溫調裝置等之各種連接機器進行通訊,並取得連接機器內之上述外部記憶體的既定之記憶區域的儲存資料(上述分配記憶體區域之儲存資料),再將此資料覆寫儲存於上述共有記憶體之既定區域中。又,在可編程顯示器中之進行關連於上述各種項目之顯示控制的功能部(假設係為項目顯示部),係藉由定期性地對於共有記憶體作存取,而對於項目顯示內容作控制。 In the case of this example, the predetermined function portion of the programmable display (herein assumed to be a communication unit (not shown)) is periodically executed, for example, to read and store the stored data of the allocated memory area. Processing in shared memory. The communication unit communicates with various connection devices such as the PLC main body or the temperature adjustment device, and acquires stored data of a predetermined memory area of the external memory connected to the device (the storage data of the allocated memory area). ), and then overwrite the data in the predetermined area of the above shared memory. Further, in the programmable display, a function unit (assuming that the item display unit) is connected to the display control of the various items described above, and the item display content is controlled by periodically accessing the shared memory. .
又,從先前技術起,上述畫面資料,通常係為由複數之螢幕(畫面)所構成者。各螢幕,基本上,係由1以上之畫面構件(項目)所構成,並且係為顯示有用以切換至其他螢幕之專用的切換鍵(螢幕切換開關)者。在螢幕切換開關處,係被分配有切換目標之螢幕的辨識ID等。 Further, from the prior art, the above-mentioned screen material is usually composed of a plurality of screens (screens). Each screen is basically composed of one or more screen members (items), and is a dedicated switching key (screen switching switch) that is useful for switching to other screens. At the screen change switch, the identification ID of the screen to which the switching target is assigned, and the like are assigned.
關於此種螢幕切換,例如係周知有專利文獻1中所記載之先前技術。 Regarding such a screen switching, for example, the prior art described in Patent Document 1 is known.
專利文獻1之發明,係有關於可編程顯示器,並以消除資源使用上之浪費並將處理負載抑制為低以削減畫面切 換之時間一事作為目的。 The invention of Patent Document 1 relates to a programmable display, and eliminates waste of resource use and suppresses processing load to be low to reduce picture cut. Change the time for the purpose.
因此,在專利文獻1之發明中,若是檢測出畫面切換鍵之壓下,則係將對於構成與該被壓下之畫面切換鍵附加有對應的畫面之資料作特定的資訊,作為下一畫面用之讀出資料資訊而作登記,而若是檢測出該畫面切換鍵之釋放,則將基於下一畫面用之讀出資料資訊而從控制對象所讀出了的資料,置換為顯示在顯示畫面上之現在畫面用之讀出資料。 Therefore, in the invention of Patent Document 1, if the screen switching key is detected, the information corresponding to the screen constituting the screen switching key to be pressed is specified as the next screen. The data information is read and registered, and if the release of the screen switching key is detected, the data read from the control object based on the read data information for the next screen is replaced with the display on the display screen. The current screen is used to read the data.
[專利文獻1]日本特開2008-191986號公報 [Patent Document 1] Japanese Patent Laid-Open Publication No. 2008-191986
在可編程顯示器中,當進行螢幕切換的情況時,切換目標之螢幕上的各項目之顯示內容,係有必要為將現在之上述分配記憶體區域的儲存資料之內容作了反映者。反過來說,若是不取得切換目標之螢幕上的各項目之分配記憶體區域的儲存資料,則實質上,係成為無法顯示切換目標之螢幕。 In the case of a programmable display, when the screen switching is performed, it is necessary to reflect the contents of the stored data of the current allocated memory area in the display content of each item on the screen of the target. Conversely, if the stored data of the allocated memory area of each item on the screen that does not acquire the switching target is obtained, the screen is substantially unable to display the switching target.
相對於此,例如當構成為暫時使用任意之預設畫像(例如使全部項目均為OFF)來顯示假的切換目標之螢幕的情況時,當然的,由於此畫面係並未對關連於各項目之現狀有所反映,因此係會產生問題。例如,當項目為代表上述溫調裝置之ON/OFF狀態的燈泡之項目的情況時,可以推測到會發生雖然實際上溫調狀態係為ON狀態但是卻顯示有(身為預設畫像之)燈泡熄燈畫像的情形。 當然,若是經過某種程度的時間,則由於係能夠取得上述分配記憶體區域之儲存資料,因此係成為進行正常之狀態的螢幕顯示,但是,若是使用者看到最初的顯示畫面並誤解成溫調裝置係為OFF狀態,則會造成問題。 On the other hand, for example, when it is configured to temporarily use an arbitrary preset image (for example, all items are OFF) to display a screen of a fake switching target, of course, since this screen is not related to each item. The status quo is reflected, so there will be problems. For example, when the item is a light bulb item representing the ON/OFF state of the above-described temperature control device, it can be inferred that although the temperature adjustment state is actually ON, it is displayed (as a preset image). The case where the light bulb is turned off. Of course, if the storage data of the allocated memory area is acquired after a certain period of time, the screen display is performed in a normal state. However, if the user sees the first display screen and misunderstands the temperature. Adjusting the device to the OFF state can cause problems.
因此,在先前技術中,係先取得上述分配記憶體區域之儲存資料,之後再顯示切換目標之螢幕。於此,通常,對於分配記憶體區域之存取處理,係為耗費時間者。故而,在直到切換目標之螢幕被作顯示為止的期間中,係會耗費時間。 Therefore, in the prior art, the stored data of the allocated memory area is obtained first, and then the screen of the switching target is displayed. Here, in general, access processing for the allocated memory area is time consuming. Therefore, it takes time until the screen of the switching destination is displayed.
基於上述之理由,在先前技術中,於螢幕之切換中係會耗費時間。 For the above reasons, in the prior art, it takes time to switch between screens.
在上述專利文獻1之發明中,由於係在檢測出畫面切換鍵之壓下的階段時,開始用以進行螢幕切換之處理,因此,若是相較於其之先前技術(在檢測出畫面切換鍵之釋放的階段時才開始用以進行螢幕切換之處理),則螢幕切換係變快。 In the invention of Patent Document 1, since the process for switching the screen is started when the phase of the screen switching key is detected, the prior art (in the case of detecting the screen switching key) is detected. When the release phase is started for screen switching, the screen switching system becomes faster.
然而,在引用文獻1之發明中,結局上仍係成為從畫面切換鍵被進行了操作之後才開始處理。通常,上述將分配記憶體區域之儲存資料讀出的處理,係為會耗費時間者,特別是當在切換目標之螢幕上存在有多數之項目的情況時,係成為耗費更多的時間。因此,在上述專利文獻1之手法中,對於實現能夠藉由畫面切換鍵之操作而立即地進行螢幕切換一事而言,係仍並不足夠。 However, in the invention cited in the document 1, the result is that the processing is started only after the screen switching key has been operated. In general, the above-described process of reading the stored data of the allocated memory area is time consuming, and in particular, when there are a large number of items on the screen of the switching destination, it takes more time. Therefore, in the method of Patent Document 1, it is not sufficient to realize that the screen switching can be performed immediately by the operation of the screen switching key.
本發明,係在於提供一種能夠將在可編程顯 示器中之螢幕切換迅速地進行之可編程顯示器及其程式等。 The present invention is to provide a programmable display The programmable display and its programs are quickly switched between screens in the display.
本發明,在可編程顯示器中,例如係具備下述之各手段。 In the present invention, for example, the programmable display includes the following means.
第1資料取得手段,係從與顯示中之任意的螢幕上之各項目(item)相關連的外部記憶體取得資料,並將該取得資料儲存在第1內部記憶體中;畫面顯示手段,係基於前述第1內部記憶體之儲存資料,來進行關連於前述顯示中之螢幕的畫面顯示/更新;第2資料取得手段,係從與其他螢幕上之各項目相關連的外部記憶體取得資料,並將該取得資料儲存在第2內部記憶體中;螢幕切換處理手段,係當存在有從前述任意之螢幕切換至前述其他螢幕的切換指示時,使用前述第2內部記憶體之儲存資料來切換至前述其他螢幕。 The first data acquisition means acquires data from an external memory associated with each item on the screen displayed on the screen, and stores the acquired data in the first internal memory; the screen display means The screen display/update associated with the screen displayed in the display is performed based on the stored data of the first internal memory; and the second data acquisition means acquires data from external memory associated with each item on the other screen. And storing the acquired data in the second internal memory; the screen switching processing means switching when using the storage data of the second internal memory when there is a switching instruction for switching from the arbitrary screen to the other screen To the other screens mentioned above.
1‧‧‧可編程顯示器 1‧‧‧Programmable display
2‧‧‧通訊介面 2‧‧‧Communication interface
3‧‧‧通訊線路 3‧‧‧Communication lines
4‧‧‧連接機器 4‧‧‧Connecting machine
4-1‧‧‧連接機器 4-1‧‧‧Connected machine
4-2‧‧‧連接機器 4-2‧‧‧Connected machine
5‧‧‧作畫編輯裝置 5‧‧‧ Painting editing device
6‧‧‧通訊線路 6‧‧‧Communication lines
10‧‧‧顯示操作控制裝置 10‧‧‧Display operation control device
11‧‧‧CPU 11‧‧‧CPU
12‧‧‧ROM 12‧‧‧ROM
13‧‧‧RAM 13‧‧‧RAM
14‧‧‧通訊控制器 14‧‧‧Communication controller
15‧‧‧圖形控制器 15‧‧‧Graphics controller
16‧‧‧觸控面板控制器 16‧‧‧Touch Panel Controller
17‧‧‧匯流排 17‧‧‧ Busbar
18‧‧‧觸控面板 18‧‧‧Touch panel
19‧‧‧顯示器 19‧‧‧ Display
21‧‧‧本體程式 21‧‧‧ body program
22‧‧‧畫面資料 22‧‧‧ Screen Information
23‧‧‧通訊程式 23‧‧‧Communication program
31‧‧‧作畫編輯器 31‧‧‧painting editor
32‧‧‧畫面資料檔案 32‧‧‧Screen data file
33‧‧‧通訊程式檔案 33‧‧‧Communication Program Files
41‧‧‧第1資料取得部 41‧‧‧First Data Acquisition Department
42‧‧‧畫面顯示部 42‧‧‧ Screen display
43‧‧‧第2資料取得部 43‧‧‧Second Data Acquisition Department
44‧‧‧螢幕切換處理部 44‧‧‧Screen Switching Processing Department
51‧‧‧項目產生部 51‧‧‧Project Generation Department
52‧‧‧項目處理排程部 52‧‧‧Project Processing Schedule
53‧‧‧項目處理部 53‧‧‧Project Processing Department
54‧‧‧通訊處理部 54‧‧‧Communication Processing Department
54-1‧‧‧通訊處理部 54-1‧‧‧Communication Processing Department
54-2‧‧‧通訊處理部 54-2‧‧‧Communication Processing Department
55‧‧‧共有記憶體 55‧‧‧Common memory
56‧‧‧項目清單 56‧‧‧Project list
57‧‧‧通訊記憶體 57‧‧‧Communication Memory
61‧‧‧埠 61‧‧‧埠
62‧‧‧裝置名稱 62‧‧‧Device name
63‧‧‧位址 63‧‧‧ address
64‧‧‧資料 64‧‧‧Information
65‧‧‧錯誤資訊 65‧‧‧Error information
71‧‧‧埠 71‧‧‧埠
72‧‧‧裝置名稱 72‧‧‧Device name
73‧‧‧位址 73‧‧‧ address
74‧‧‧資料 74‧‧‧Information
75‧‧‧更新時間 75‧‧‧Update time
81‧‧‧項目型態 81‧‧‧Project type
82‧‧‧座標 82‧‧‧ coordinates
83‧‧‧尺寸 83‧‧‧ size
84‧‧‧裝置名稱 84‧‧‧Device name
85‧‧‧位址 85‧‧‧ address
86‧‧‧每一項目型態之資料 86‧‧‧Information on each project type
87‧‧‧完成處理旗標 87‧‧‧Complete the processing flag
90‧‧‧記憶體清單 90‧‧‧ memory list
91‧‧‧裝置名稱 91‧‧‧Device name
92‧‧‧位址 92‧‧‧ address
93‧‧‧資料 93‧‧‧Information
94‧‧‧錯誤資訊 94‧‧‧Error information
100‧‧‧記憶體資訊 100‧‧‧ memory information
101‧‧‧資料 101‧‧‧Information
102‧‧‧錯誤資訊 102‧‧‧Error Information
[圖1]係為包含本例之可編程顯示器的系統全體之概略構成圖。 Fig. 1 is a schematic configuration diagram of the entire system including the programmable display of this example.
[圖2]係為本例之可編程顯示器的硬體構成例。 FIG. 2 is a hardware configuration example of the programmable display of this example.
[圖3]係為本系統之軟體構成圖。 [Fig. 3] is a software composition diagram of the system.
[圖4]係為本例之可編程顯示器的功能區塊圖。 [Fig. 4] is a functional block diagram of the programmable display of this example.
[圖5]係為對於本例之可編程顯示器的概略之動作例 作展示之流程圖。 [Fig. 5] is a schematic operation example of the programmable display of this example. A flow chart for the display.
[圖6]係為對於圖5之步驟S2的處理之詳細例作展示之流程圖。 FIG. 6 is a flow chart showing a detailed example of the processing of step S2 of FIG. 5.
[圖7]複數之螢幕的附加關連資訊之其中一例。 [Fig. 7] An example of additional related information of a plurality of screens.
[圖8]係為本例之可編程顯示器的構成、處理功能圖。 Fig. 8 is a view showing the configuration and processing function of the programmable display of the present embodiment.
[圖9](a)~(d),係為共有記憶體之資料構造例/資料儲存例等。 [Fig. 9] (a) to (d) are data structure examples/data storage examples of shared memory.
[圖10](a)、(b),係為項目清單之資料構造例等。 [Fig. 10] (a) and (b) are examples of data structures of the item list.
[圖11](a)係為記憶體清單、(b)係為記憶體資訊之資料構造例。 [Fig. 11] (a) is a memory list, and (b) is a data structure example of memory information.
[圖12]對於螢幕切換前後之各項目的模樣作展示之圖。 [Fig. 12] A diagram showing the appearance of each item before and after the screen switching.
[圖13]係為通訊處理部之處理流程圖(1/4)。 Fig. 13 is a flowchart (1/4) of the processing of the communication processing unit.
[圖14]係為通訊處理部之處理流程圖(2/4)。 Fig. 14 is a flowchart (2/4) of the processing of the communication processing unit.
[圖15]係為通訊處理部之處理流程圖(3/4)。 Fig. 15 is a flowchart (3/4) of the processing of the communication processing unit.
[圖16]係為通訊處理部之處理流程圖(4/4)。 Fig. 16 is a flowchart (4/4) of the processing of the communication processing unit.
[圖17]係為項目處理部之處理流程圖。 Fig. 17 is a flowchart showing the processing of the item processing unit.
[圖18]係為對於各處理部之處理時間的其中一例作展示之圖。 FIG. 18 is a view showing an example of processing time of each processing unit.
以下,參考圖面,針對本發明之實施形態作 說明。 Hereinafter, with reference to the drawings, the embodiments of the present invention are made. Description.
圖1,係為包含本例之可編程顯示器1的系統全體之概略構成圖。 Fig. 1 is a schematic configuration diagram of the entire system including the programmable display 1 of this example.
另外,圖1中所示之構成,係僅為其中一例,而並不被限定於此例。例如,係並非絕對需要為將可編程顯示器1經由通訊線路3來與作畫編輯裝置5作了連接之構成。可編程顯示器1和作畫編輯裝置5,係亦可相互獨立地存在。可編程顯示器1,只要是儲存由本手法所得之畫面資料,並使用此畫面資料來進行可編程顯示器用之畫面之顯示等者,則不論是何種構成均可。 In addition, the configuration shown in FIG. 1 is merely an example, and is not limited to this example. For example, it is not absolutely necessary to connect the programmable display 1 to the drawing editing apparatus 5 via the communication line 3. The programmable display 1 and the drawing editing device 5 may also exist independently of each other. The programmable display 1 can be configured as long as it stores the screen data obtained by the method and displays the screen for the programmable display using the screen data.
圖1中所示之可編程顯示器控制器系統,係具備有各種連接機器4、和經由通訊線路6來與各種連接機器4作連接之可編程顯示器1。進而,可編程顯示器1,係成為經由通訊線路3來與作畫編輯裝置5作了連接之構成。在可編程顯示器1處,係具備有複數之通訊介面2(通訊埠),並經由與被連接於各通訊介面2的通訊線路3/通訊線路6來和各種連接機器4或作畫編輯裝置5作連接。 The programmable display controller system shown in FIG. 1 is provided with various connected devices 4 and a programmable display 1 connected to various connected devices 4 via a communication line 6. Further, the programmable display 1 is configured to be connected to the drawing editing device 5 via the communication line 3. At the programmable display 1, there is a plurality of communication interfaces 2 (communication ports), and through various communication lines 3/communication lines 6 connected to the communication interfaces 2, and various connection devices 4 or drawing editing devices 5 Make a connection.
作畫編輯裝置5,係為相當於上述背景技術中之支援裝置者,並具備有以讓使用者能夠任意地作成用以將上述操作顯示畫面顯示在可編程顯示器1上的資料等(畫面資料)的方式來進行支援之功能。在先前技術中,係預先準備有各種的項目畫像,使用者係反覆進行選擇所希望之項目畫像並配置在所希望之位置處的作業,而進行 上述畫面資料之作成。 The drawing editing device 5 is a support device corresponding to the above-described background art, and is provided with a material for allowing the user to arbitrarily create the operation display screen on the programmable display 1. ) The way to support. In the prior art, various item images are prepared in advance, and the user repeatedly performs an operation of selecting a desired item image and arranging it at a desired position. The creation of the above picture materials.
此畫面資料,係如同上述一般,為由複數之螢幕所成者,在各螢幕上,係被配置有任意之1以上的項目。又,作為此種項目之其中一者,係存在有對於其他螢幕之切換開關。作為關連於此切換開關之資訊,當然的,係成為包含有切換目標之螢幕的辨識資訊(螢幕No.)等。另外,關於此事,係可為與先前技術略相同。 This screen data is as described above, and is composed of a plurality of screens, and any one or more items are arranged on each screen. Moreover, as one of such items, there are switching switches for other screens. As the information related to the changeover switch, of course, it is identification information (screen No.) of the screen including the switching target. In addition, regarding this matter, it may be slightly the same as the prior art.
但是,在先前技術中,若是此切換開關***作,則係作為「用以取得為了進行螢幕切換所必要之資料而進行之處理」,而進行上述「對於切換目標螢幕之各項目的分配記憶體區域之存取」,但是,在本手法中,基本而言,在進行螢幕切換時,係並不需要進行對於分配記憶體區域之存取(然而,係並非為100%不需要)。當然的,在螢幕之切換後,係有必要隨時進行由對於分配記憶體區域之存取(外部記憶體存取)所進行的上述顯示內容更新處理。詳細內容係於後再述。 However, in the prior art, if the switch is operated, the above-mentioned "distribution memory for each item of the switching target screen" is performed as "processing for obtaining data necessary for screen switching". "Access to the area", however, in this method, basically, when performing screen switching, access to the allocated memory area is not required (however, it is not 100% unnecessary). Of course, it is necessary to perform the above-described display content update processing by access to the allocated memory area (external memory access) at any time after the switching of the screen. The details will be described later.
作畫編輯裝置5,係可視為用以對於可編程顯示器用之畫面(畫面資料)的作成進行支援之支援裝置的其中一例。此後,係設為亦有記載為支援裝置5的情況。 The drawing editing device 5 can be regarded as an example of a supporting device for supporting the creation of a screen (screen material) for a programmable display. Thereafter, it is assumed that the support device 5 is also described.
上述畫面資料,係被下載至可編程顯示器1處。可編程顯示器1,係與先前技術相同地,進行構成畫面資料之複數的螢幕中之任意的螢幕之顯示。另外,在各螢幕上,係進行有相關於該螢幕之項目顯示,並且係亦顯示有上述螢幕切換用之開關。又,在任意之螢幕的顯示 中,例如係定期性地進行上述顯示內容更新處理。因此,係進行關連於顯示中之螢幕上的各項目之上述對於分配記憶體區域之存取,並取得最新的資料,再藉由此最新的資料來進行螢幕之顯示。 The above screen data is downloaded to the programmable display 1. The programmable display 1 performs display of any of a plurality of screens constituting a plurality of screen materials in the same manner as in the prior art. In addition, on each screen, an item display relating to the screen is displayed, and the above-described switch for switching the screen is also displayed. Also, in the display of any screen For example, the display content update process described above is periodically performed. Therefore, the above-mentioned access to the allocated memory area of each item on the screen being displayed is performed, and the latest information is acquired, and the latest information is used to display the screen.
又,在任意之螢幕顯示中,若是上述螢幕切換開關***作,則係切換至與此開關相對應之既定的其他螢幕並作顯示。此時,如同上述一般,若是針對成為切換目標之其他螢幕上的各項目而並未得到最新的資料,則係成為並不進行其他螢幕之顯示。 Further, in any of the screen displays, if the above-described screen changeover switch is operated, it is switched to a predetermined other screen corresponding to the switch and displayed. At this time, as described above, if the latest data is not obtained for each item on the other screen to be the switching destination, the display of the other screen is not performed.
因此,在先前技術中,為了進行上述之切換至其他螢幕並作顯示,係有必要對於所對應之分配記憶體區域作存取(外部記憶體存取),但是,在本手法中,係並無此必要(然而,係並非為絕對,亦可能會有需要進行存取的情況),故而,係成為迅速地進行螢幕切換。詳細內容係於後再述。 Therefore, in the prior art, in order to perform the above switching to other screens and display, it is necessary to access the corresponding allocated memory area (external memory access), but in this method, This is not necessary (however, it is not absolute, and there may be cases where access is required), so it is necessary to quickly switch screens. The details will be described later.
另外,作畫編輯裝置5,例如係藉由一般性之泛用電腦(個人電腦等)而實現。故而,雖並未特別進行圖示等,但是其係具有一般性之個人電腦等的構成。亦即是,例如,係具備CPU等之演算處理器、記憶體、硬碟等之記憶裝置、鍵盤或滑鼠等之操作部、顯示器等之顯示部、通訊功能部等。 Further, the drawing editing device 5 is realized by, for example, a general-purpose computer (personal computer or the like). Therefore, although it is not particularly illustrated, it has a configuration of a general personal computer or the like. In other words, for example, a calculation processor such as a CPU, a memory device such as a memory or a hard disk, an operation unit such as a keyboard or a mouse, a display unit such as a display, a communication function unit, and the like are provided.
在上述記憶裝置中,係預先記憶有既定之應用程式,上述演算處理器係藉由實行此應用程式,而實現作畫編輯裝置5之各種功能。另外,作畫編輯裝置5之各 種功能,由於係為已簡單地作了說明之既存的功能,因此係並不作更進一步之說明。 In the above memory device, a predetermined application is stored in advance, and the arithmetic processor realizes various functions of the drawing editing device 5 by executing the application. In addition, each of the painting editing devices 5 The function is not described further because it is an existing function that has been briefly explained.
又,可編程顯示器1,其硬體構成自身亦係可為一般性之構成。故而,以下,係參考圖2來作簡單說明。 Further, the programmable display 1 may have a general configuration of the hardware itself. Therefore, the following is briefly explained with reference to FIG.
圖2,係為本例之可編程顯示器1的硬體構成例。 FIG. 2 is a hardware configuration example of the programmable display 1 of the present example.
可編程顯示器1,係具備有與上述之先前技術例略相同的基於上述之畫面資料等來進行各螢幕(操作顯示畫面)之顯示或螢幕切換等的功能。但是,關於螢幕切換,係為與先前技術相異者,其詳細內容係於後再述。 The programmable display 1 has a function of performing display or screen switching of each screen (operation display screen) based on the above-described screen data or the like, which is slightly the same as the above-described prior art example. However, regarding the screen switching, it is different from the prior art, and the details thereof will be described later.
圖示之可編程顯示器1,係具備有顯示操作控制裝置10、和觸控面板18、和顯示器19、和上述通訊介面2等。 The programmable display 1 shown is provided with a display operation control device 10, a touch panel 18, a display 19, and the communication interface 2 described above.
顯示操作控制裝置10,係由CPU11、ROM12(快閃記憶體等)、RAM13、通訊控制器14、圖形控制器15、觸控面板控制器16等所成,此些係被與匯流排17作連接。 The display operation control device 10 is formed by the CPU 11, the ROM 12 (flash memory, etc.), the RAM 13, the communication controller 14, the graphics controller 15, the touch panel controller 16, etc., and these systems are connected to the bus bar 17 connection.
CPU11,係為對於顯示操作控制裝置10全體作控制的中央處理裝置(演算處理器)。CPU11,係藉由實行預先被儲存在ROM12中之程式(例如後述之本體程式21等),而進行可編程顯示器1之各種演算動作(處理)。針對此處理,雖係已簡單地作了說明,但是係於後作更詳細之說明。 The CPU 11 is a central processing unit (calculation processor) that controls the entire display operation control device 10. The CPU 11 performs various arithmetic operations (processing) of the programmable display 1 by executing a program (for example, a main body program 21 to be described later) stored in the ROM 12 in advance. Although this processing has been briefly described, it will be described in more detail later.
又,在ROM12中,係儲存有在上述背景技術 中所說明了的畫面資料(後述之畫面資料22)等。如同上述一般,在本例中,畫面資料22係藉由複數之(典型而言,係為多數之)螢幕的資料所構成。各螢幕(操作顯示畫面)之資料,例如係為由上述之被配置在畫面上的開關、燈泡等之各項目的畫像和顯示位置座標以及大小等之資料和上述分配記憶體位置等所成。又,進而,在各螢幕之每一者處,係亦被配置有上述螢幕切換開關。另外,螢幕切換開關,係可視為項目之其中一種,而為並不進行外部記憶體存取之型態的項目。 Moreover, in the ROM 12, the background technology is stored The screen data (the screen material 22 described later) described in the above. As in the above, in this example, the picture material 22 is composed of a plurality of (typically, majority) screen materials. The information of each screen (operation display screen) is formed, for example, by the above-described image of each of the switches, the light bulb, and the like arranged on the screen, the coordinates of the display position coordinates, the size, and the like, and the position of the distribution memory. Further, in each of the screens, the above-described screen changeover switch is also disposed. In addition, the screen change switch can be regarded as one of the items, and is a type that does not perform external memory access.
於此,上述外部記憶體位址,在先前技術中,係為僅關連於現在顯示中之螢幕上的項目而被實行者。但是,在本手法中,係不僅是現在顯示中之螢幕,而亦對於切換目標候補之螢幕進行上述外部記憶體存取。之後,係將取得的資料預先儲存在可編程顯示器1內之既定的記憶區域(內部緩衝區等)中。 Here, the above external memory address is implemented in the prior art as an item only related to the screen currently displayed. However, in this method, not only the screen currently displayed, but also the external memory access to the screen of the switching target candidate. Thereafter, the acquired data is stored in advance in a predetermined memory area (internal buffer, etc.) in the programmable display 1.
藉由上述CPU11之處理,例如基於上述畫面資料22或藉由上述外部記憶體存取所得到的取得資料等而構成的顯示對象資料,係被展開(描繪)在例如RAM13(或者是未圖示之VIDEO RAM)上。詳細內容係於後再述。基於此描繪,圖形控制器15係在顯示器19上而顯示上述之操作顯示畫面等。 By the processing of the CPU 11, for example, the display target data configured based on the screen data 22 or the acquired data obtained by the external memory access is expanded (drawn) in, for example, the RAM 13 (or not shown). On the VIDEO RAM). The details will be described later. Based on this depiction, the graphics controller 15 is displayed on the display 19 to display the above-described operation display screen and the like.
顯示器19,例如係藉由液晶面板等所成,並以重疊在此液晶面板上的方式而設置有觸控面板18。在顯示器19上,係被顯示有複數之螢幕中的任意之螢幕。 在各螢幕上,係如同上述一般,各項目畫像係被顯示在既定位置處。 The display 19 is formed, for example, by a liquid crystal panel or the like, and is provided with a touch panel 18 so as to be superposed on the liquid crystal panel. On the display 19, any of the plurality of screens is displayed. On each screen, as in the above, each item image is displayed at a predetermined position.
又,通訊控制器14,係經由通訊介面2,而進行與未圖示之身為PLC本體等或者是溫調裝置等的連接機器4或作畫編輯裝置5之間的通訊(資料送受訊等)。 Further, the communication controller 14 performs communication with the connection device 4 or the drawing editing device 5, which is a PLC main body or the like, or a temperature adjustment device, via the communication interface 2 (data transmission and reception, etc.) ).
由作業員等所進行之在觸控面板18上的推壓操作(觸碰)位置之檢測結果,係經由觸控面板控制器16而被導入至CPU11等之中並進行解析。例如,係成為基於各項目之上述顯示位置座標和大小的資料等來進行解析。例如,若是作業員等對於開關之畫像的顯示位置作了觸碰,則CPU11等,係成為解析出對於此開關而進行有操作一事。 The detection result of the pressing operation (touch) position on the touch panel 18 by the operator or the like is introduced into the CPU 11 or the like via the touch panel controller 16 and analyzed. For example, it is analyzed based on the above-described display position coordinates and size of each item. For example, if the operator or the like touches the display position of the portrait of the switch, the CPU 11 or the like analyzes the operation of the switch.
於圖3中,對於上述本系統之軟體構成圖作展示。 In Fig. 3, the software composition diagram of the above system is shown.
在可編程顯示器1中,本體程式21、畫面資料22、通訊程式23等之各種程式/資料,例如係被儲存在上述ROM12(快閃記憶體等)中。藉由使CPU11對於此些之程式/資料等進行讀出、實行/參考等,而進行可編程顯示器用之各操作顯示畫面(各螢幕等)的顯示控制等。 In the programmable display 1, various programs/materials such as the main body program 21, the screen data 22, and the communication program 23 are stored, for example, in the ROM 12 (flash memory or the like). By causing the CPU 11 to read, execute, or reference such programs/data, etc., display control of each operation display screen (each screen or the like) for the programmable display is performed.
此操作顯示畫面,係由上述之數值顯示、燈泡、開關等的各種項目之畫像顯示所成,各項目之顯示內容,例如係以對於從各連接機器4之外部記憶體的既定之記憶區域(分配記憶體區域)所取得的資料(取得資料) 作了反映的形態,而隨時被更新。 This operation display screen is formed by the above-described numerical display, image display of various items such as a light bulb, a switch, and the like, and the display content of each item is, for example, a predetermined memory area for the external memory from each connected device 4 ( Information obtained by allocating memory area) (acquiring information) The form of reflection is made and is updated at any time.
亦即是,CPU11,係基於本體程式21和畫面資料22以及上述取得資料,而實行上述操作顯示畫面之顯示控制。此時,此操作顯示畫面上之各項目(各畫面構件)的顯示內容,係成為對於上述取得資料之內容作了反映者(溫度等之數值顯示或燈泡之點燈/熄燈等)。 In other words, the CPU 11 performs display control of the operation display screen based on the main program 21 and the screen data 22 and the acquired data. At this time, the display content of each item (each screen member) on the operation display screen is reflected by the content of the acquired data (the numerical value display of temperature or the like, or the lighting/lighting of the light bulb, etc.).
故而,在進行螢幕切換時,係亦有必要針對關連於切換目標之螢幕的各種項目之各者,而以對於其之分配記憶體區域的最近之(現在之/最新之)儲存資料作了反映的形態,來開始顯示。故而,在先前技術中,若是螢幕切換開關***作,則首先,係有比較對於與切換目標之螢幕上的各項目相對應之各分配記憶體區域進行存取並取得資料,故而係會耗費處理時間。但是,在本手法中,就算是並不對於分配記憶體區域進行存取,亦能夠進行對於該分配記憶體區域之最新的儲存資料作了反映之顯示。詳細內容係於後再述。 Therefore, in the case of screen switching, it is also necessary to reflect the most recent (current/latest) stored data for the allocated memory area for each of the various items related to the switching target screen. The form to start showing. Therefore, in the prior art, if the screen changeover switch is operated, firstly, it is compared with each of the allocated memory areas corresponding to each item on the screen of the switching target, and the data is acquired, so that it is expensive to process. time. However, in this method, even if the access memory area is not accessed, the latest stored data of the allocated memory area can be displayed. The details will be described later.
上述畫面資料22,例如係為將預先在作畫編輯裝置5側所任意作成的畫面資料檔案32下載至可編程顯示器1中並作了儲存者。亦即是,係可將畫面資料22和畫面資料檔案23視為實質性相同者。另外,以下,設為亦會有並不對於兩者特別作區分而例如將畫面資料檔案32記載為畫面資料22來進行說明的情況。 The screen material 22 is, for example, a screen material file 32 which is arbitrarily created on the side of the drawing editing apparatus 5, and is downloaded to the programmable display 1 and stored. That is, the screen material 22 and the screen material file 23 can be regarded as substantially identical. In addition, hereinafter, it is assumed that the screen material file 32 is described as the screen material 22, and the screen data file 32 is not particularly distinguished.
又,上述通訊程式23,亦係為例如將預先儲存在作畫編輯裝置5側的通訊程式檔案33(之一部分) 下載至可編程顯示器1中並作了儲存者。 Further, the communication program 23 is, for example, a communication program file 33 (partial portion) to be stored in advance on the side of the drawing editing device 5. Downloaded to the programmable display 1 and made a storage.
可編程顯示器1之通訊程式23,係為用以經由通訊線路6而與連接機器4進行通訊的程式。通常,係在連接機器4之各機種中而分別具備固有之通訊協定(protocol)依據此通訊協定,來進行可編程顯示器1和連接機器4之間的通訊。因此,通訊程式23,係成為需要對於各連接機器4之每種機種而分別進行開發。另外,當然的,係藉由使CPU11等實行通訊程式23,而實現與連接機器4之間的通訊處理。 The communication program 23 of the programmable display 1 is a program for communicating with the connection device 4 via the communication line 6. Usually, each of the models connected to the device 4 has an inherent communication protocol to perform communication between the programmable display 1 and the connected device 4 in accordance with the communication protocol. Therefore, the communication program 23 needs to be separately developed for each model of each connected device 4. Further, of course, communication processing with the connected device 4 is realized by causing the CPU 11 or the like to execute the communication program 23.
身為PLC本體等之連接機器4,係存在有各種的製造商、機種,在各製造商/機種中,係存在有獨自的通訊程式,上述通訊程式23,係成為因應於連接機器4之製造商/機種,而依存於情況而成為具備有複數種類者。 As a connection device 4 such as a PLC main body, there are various manufacturers and models. In each manufacturer/model, there is a separate communication program, and the communication program 23 is manufactured in response to the connection device 4. Provider/model, and depending on the situation, it becomes a person with multiple types.
另外,可編程顯示器1和作畫編輯裝置5之間的通訊,例如係藉由本體程式21和作畫編輯器31來進行(通訊功能係被組入至作畫編輯器31中)。關於此點,由於係並不重要,因此係並不進行圖示以及說明。 Further, communication between the programmable display 1 and the drawing editing device 5 is performed, for example, by the main body program 21 and the drawing editor 31 (the communication function is incorporated in the drawing editor 31). In this regard, since it is not important, it is not illustrated and described.
通訊程式23,通常,係在作畫編輯裝置5內之未圖示的HD(硬碟)中,作為複數之通訊程式檔案33群(對於各機種而完成開發的複數之通訊程式)而預先作記憶。又,作畫編輯裝置5,若是使用者藉由作畫編輯器31而選擇、指定任意之連接機器4,則係將與該所選擇的連接機器4相對應之通訊程式檔案33傳輸至可編程顯示 器1處,並作為上述通訊程式23而記憶。 The communication program 23 is usually pre-made as a plurality of communication program files 33 groups (communication programs developed for each model) in an HD (hard disk) not shown in the drawing editing device 5. memory. Further, if the drawing editing device 5 selects and designates any of the connected devices 4 by the drawing editor 31, the communication program file 33 corresponding to the selected connected device 4 is transferred to the programmable device. display At the device 1, it is memorized as the above communication program 23.
另外,上述實現對於分配記憶體區域之存取和畫面顯示等的各種處理之程式,例如係可被包含在本體程式21中,亦可被包含在畫面資料檔案32(畫面資料22)中。不論如何,均係成為藉由使例如上述CPU11實行此種程式,而實現可編程顯示器1之各種動作。 Further, the above-described program for realizing various processes such as access to the memory area and screen display, for example, may be included in the main body program 21 or may be included in the picture material file 32 (picture material 22). In any case, various operations of the programmable display 1 are realized by, for example, executing the program by the CPU 11 described above.
於此,作畫編輯裝置5之作畫編輯器31,係亦具備有讓使用者作成所期望之操作顯示畫面(其畫面資料)的支援功能。關於此,係如同前述一般,將預先所作成之各種項目,記憶在作畫編輯裝置5之硬碟等之中。藉由由作畫編輯器31所得到之操作顯示畫面的作成支援功能,此些之各種項目係被作一覽顯示,使用者係選擇所期望之項目並配置在所期望的位置處。關於此功能本身,係與先前技術略相同。 Here, the painting editor 31 of the drawing editing device 5 is also provided with a support function for allowing the user to create a desired operation display screen (the screen material). In this regard, as described above, various items prepared in advance are memorized in a hard disk or the like of the drawing editing apparatus 5. The various items are displayed in a list by the creation support function of the operation display screen obtained by the drawing editor 31, and the user selects the desired item and arranges it at a desired position. The function itself is slightly the same as the prior art.
另外,作畫編輯裝置5,例如係為個人電腦等,並且,雖未特別圖示,但係具備有一般性之泛用電腦的構成(CPU、記憶部(硬碟、記憶體等)、通訊部、操作部(滑鼠等)、顯示器)。藉由使CPU實行預先被記憶在記憶部中之應用程式,來實現作畫編輯器31之處理功能。但是,如同上述一般,由於作畫編輯器31之處理功能本身係只要與先前技術相同即可,因此係並不作更進一步的說明。 In addition, the drawing editing device 5 is, for example, a personal computer or the like, and is not particularly illustrated, but has a general-purpose computer (CPU, memory unit (hard disk, memory, etc.), communication). Department, operation department (mouse, etc.), display). The processing function of the painting editor 31 is realized by causing the CPU to execute an application previously stored in the memory unit. However, as described above, since the processing function of the drawing editor 31 itself is as long as the prior art, it will not be further explained.
圖4,係為本例之可編程顯示器1的功能區塊圖。本例之可編程顯示器1,例如係具備有圖示之第1資 料取得部41、畫面顯示部42、第2資料取得部43、螢幕切換處理部44的各種功能部。另外,此些之各種功能部,係藉由使上述CPU11實行例如預先被記憶在上述ROM12等中的既定之應用程式,而實現之。 4 is a functional block diagram of the programmable display 1 of the present example. The programmable display 1 of this example is, for example, provided with the first capital shown in the figure. Various function units of the material acquisition unit 41, the screen display unit 42, the second data acquisition unit 43, and the screen switching processing unit 44. Further, the various functional units are realized by causing the CPU 11 to execute, for example, a predetermined application program that is previously stored in the ROM 12 or the like.
第1資料取得部41,係從與顯示中之任意的螢幕上之各項目相關連的外部記憶體取得資料,並將該取得資料儲存在第1內部記憶體(例如後述之共有記憶體55)中。 The first data acquisition unit 41 acquires data from an external memory associated with each item on the screen displayed on the screen, and stores the acquired data in the first internal memory (for example, the shared memory 55 to be described later). in.
畫面顯示部42(例如後述之項目處理部53),係基於前述第1內部記憶體之儲存資料,來進行關連於前述顯示中之螢幕的畫面顯示/更新。 The screen display unit 42 (for example, the item processing unit 53 to be described later) displays and updates the screen associated with the screen being displayed based on the stored data of the first internal memory.
第2資料取得部43,係在正顯示上述任意之螢幕的狀態下,以背景執行(BACKGROUND)而從與其他螢幕上(例如切換候補螢幕上)之各項目相關連的外部記憶體取得資料,並將該取得資料儲存在第2內部記憶體(例如後述之通訊記憶體57)中。 The second data acquisition unit 43 acquires data from an external memory associated with each item on another screen (for example, switching the candidate screen) by the background execution (BACKGROUND) while the arbitrary screen is being displayed. The acquired data is stored in the second internal memory (for example, the communication memory 57 to be described later).
另外,上述之所謂「以背景執行」,例如,係指針對上述其他之螢幕(例如切換候補螢幕)而進行資料取得但是(至少在正顯示上述任意之螢幕的狀態下)並不進行顯示,但是,係並不被限定於此。另外,在後續之說明中,係並不一一記載「背景執行」,但是,例如後述之切換候補螢幕的記憶體事先讀取處理,係為藉由「背景執行」而實行者。 In addition, the above-mentioned "execution by the background" is performed by, for example, the data is acquired on the other screen (for example, switching the candidate screen), but (at least in the state where the arbitrary screen is being displayed), but the display is not performed, but The system is not limited to this. In the following description, the "background execution" is not described one by one. However, for example, the memory read processing of the switching candidate screen described later is performed by "background execution".
螢幕切換處理部44,係當存在有從前述任意 之螢幕切換至前述其他螢幕的切換指示時,使用前述第2內部記憶體之儲存資料來切換至前述其他螢幕。 The screen switching processing unit 44 is present if any When the screen is switched to the switching instruction of the other screens described above, the storage data of the second internal memory is used to switch to the other screens.
另外,例如亦可將後述之通訊處理部54視為例如相當於上述之第1資料取得部41以及第2資料取得部43,但是,係並不被限定於此。又,螢幕切換處理部44之處理功能,例如係亦可視為實現後述之通訊處理部54和項目產生部51的其中一方(或者是雙方)者,但是,係並不被限定於此。 In addition, for example, the communication processing unit 54 to be described later may be regarded as equivalent to, for example, the first data acquisition unit 41 and the second data acquisition unit 43 described above, but is not limited thereto. In addition, the processing function of the screen switching processing unit 44 may be regarded as one of (or both) the communication processing unit 54 and the item generation unit 51 to be described later, but is not limited thereto.
又,上述螢幕切換處理部44,例如係將上述第2內部記憶體之儲存資料儲存在上述第1內部記憶體中(例如進行複製)。藉由此,在螢幕切換時,就算是並不進行上述第1資料取得部41之處理,亦係藉由上述畫面顯示部42而進行關連於其他螢幕之畫面顯示。亦即是,係實現上述切換至其他螢幕。 Further, the screen switching processing unit 44 stores, for example, the stored data of the second internal memory in the first internal memory (for example, copying). As a result, even if the processing by the first data acquisition unit 41 is not performed during the screen switching, the screen display unit 42 displays the screens that are related to other screens. That is, the above switching to other screens is achieved.
但是,在螢幕切換時,當在上述其他螢幕上的各項目中存在有並未使資料被儲存在上述第2內部記憶體中之項目的情況時,針對該項目,係成為需要進行上述第1資料取得部41之處理。於此情況,係藉由進行此處理,而實現上述切換至其他螢幕。 However, when there is a case in which items are not stored in the second internal memory in each item on the other screens at the time of screen switching, it is necessary to perform the first item for the item. The processing by the data acquisition unit 41. In this case, by performing this processing, the above switching to other screens is achieved.
又,由上述螢幕切換處理部44所進行之上述切換至其他螢幕,只要是如同上述一般之使用第2內部記憶體的儲存資料所進行者,則不論是何種構成均可,而並不被限定於上述之「將第2內部記憶體之儲存資料儲存在上述第1內部記憶體中(例如進行複製)」之例。例如, 作為其他例子,係存在有以將上述第2內部記憶體作為上述第1內部記憶體來處理的方式而進行記憶體管理控制的方法等。 Further, the above-described switching to the other screen by the screen switching processing unit 44 is not limited to any configuration as long as it is performed using the stored data of the second internal memory as described above. The example of "storing the stored data of the second internal memory in the first internal memory (for example, copying)" is limited to the above. E.g, As another example, there is a method of performing memory management control such that the second internal memory is processed as the first internal memory.
又,係優先性實行由前述第1資料取得部41進行之資料取得、儲存處理,並在閒置時間中實行由前述第2資料取得部43進行之資料取得、儲存處理。因此,例如,第2資料取得部43,係在其之每一次的處理實行中,將其他螢幕上之各項目中的一部分之項目作為處理對象項目。換言之,係並非針對其他螢幕上之全部項目而一次性進行從外部記憶體而來之資料取得,而是少量地(例如一次僅取得1個項目)來進行資料取得。因此,係有必要在每一次之處理實行時,對於處理對象項目(從外部記憶體而取得資料之項目)作選擇。此選擇方法,係可採用各種方法,例如,係構成為將完全沒有被進行資料取得之項目優先性地作為處理對象項目,但是,當然的,係並不被限定於此。 In addition, the data acquisition and storage processing by the first data acquisition unit 41 is performed preferentially, and the data acquisition and storage processing by the second data acquisition unit 43 is performed during the idle time. For this reason, for example, the second data acquisition unit 43 sets a part of each of the other items on the screen as the processing target item during the execution of each of the processes. In other words, the data acquisition from the external memory is not performed once for all the items on the other screens, but the data is acquired in a small amount (for example, only one item is acquired at a time). Therefore, it is necessary to select a processing target item (an item that acquires data from an external memory) when each processing is performed. In the selection method, various methods can be employed. For example, it is configured to preferentially treat a project that has not been subjected to data acquisition as a processing target item, but it is of course not limited thereto.
圖5,係為對於本例之可編程顯示器1的概略之動作例作展示之流程圖。 Fig. 5 is a flow chart showing an exemplary operation of the programmable display 1 of this example.
圖6,係為對於圖5之步驟S2的處理之詳細例作展示之流程圖。 Fig. 6 is a flow chart showing a detailed example of the processing of step S2 of Fig. 5.
在圖5之例中,係於在正針對任意之螢幕而進行畫面顯示的期間中,將進行關連於該現在顯示中之螢幕的上述之既存的顯示內容更新處理(步驟S1),並且實行「以背景執行而進行外部記憶體事先讀取處理」(步 驟S2)一事,作反覆的進行。之後,在如此這般而反覆實行步驟S1、S2之處理的期間中之任意的時間點,若是存在有螢幕切換指示(例如使用者對於上述未圖示之螢幕切換開關進行操作),則圖示之步驟S3的判定係成為YES,並移行至步驟S4之後的處理。 In the example of FIG. 5, in the period in which the screen is being displayed for any screen, the above-described existing display content update processing relating to the screen currently being displayed is performed (step S1), and " External memory read processing in the background execution" Step S2), repeating. Thereafter, at any time during the period in which the processes of steps S1 and S2 are repeatedly performed as described above, if there is a screen switching instruction (for example, the user operates the screen switching switch (not shown)), the icon is displayed. The determination in step S3 is YES, and the process proceeds to the process after step S4.
針對步驟S2之處理,其詳細內容係於後參考圖6再作說明,但是,概略而言,關於存在有會在上述現在顯示中之螢幕的下一個而被作顯示的可能性之螢幕(稱作切換候補螢幕),係預先從關連於該切換候補螢幕之各項目的各「分配記憶體區域」而進行儲存資料的讀出。 The details of the processing of step S2 will be described later with reference to FIG. 6, but in summary, the screen regarding the possibility of being displayed next to the screen in the current display (called For switching the candidate screen, the stored data is read in advance from each of the "allocated memory areas" associated with each of the switching candidate screens.
於此,為了便於說明,而假設各螢幕為僅具備有1個項目者(但是並不包括切換開關),並假設上述切換候補螢幕係僅存在有1個。並且,假設例如上述現在顯示中之螢幕上的項目之「分配記憶體位址」為D100,上述切換候補螢幕上之項目的「分配記憶體位址」係為D200。 Here, for convenience of explanation, it is assumed that each screen has only one item (but does not include a switch), and it is assumed that only one of the switching candidate screens is present. Further, for example, it is assumed that the "allocated memory address" of the item on the screen currently displayed is D100, and the "allocated memory address" of the item on the switching candidate screen is D200.
於此例之情況,在上述步驟S1中,係成為將D100之儲存資料讀出並基於該讀出資料來進行既存之顯示內容更新處理。又,在上述步驟S2中,係成為將D200之儲存資料讀出並將該讀出資料暫時性地保持在既定之記憶區域(內部緩衝區)中。 In the case of this example, in the above-described step S1, the stored data of D100 is read and the existing display content update processing is performed based on the read data. Further, in the above step S2, the stored data of D200 is read and the read data is temporarily held in a predetermined memory area (internal buffer).
另外,當切換候補螢幕存在有複數的情況時,亦可構成為針對其他切換候補螢幕而亦從該螢幕上之項目的「分配記憶體區域」來讀出資料並保持在上述內部 緩衝區中。 In addition, when there is a plurality of switching candidate screens, it is also possible to read and retain data from the "allocated memory area" of the item on the screen for the other switching candidate screens. In the buffer.
但是,基本上,由於係優先進行關連於上述現在顯示中之螢幕的處理(從分配記憶體區域而讀出資料和顯示更新處理等),因此,係以利用並未進行此些之處理的閒置時間來進行關連於上述切換候補螢幕之資料讀出處理為理想。 However, basically, since the processing relating to the screen in the above-described current display is preferentially performed (reading data and displaying update processing from the allocation of the memory area, etc.), it is possible to use the idle processing which does not perform such processing. It is desirable to perform data reading processing related to the above-described switching candidate screen.
又,之後,在步驟S2之處理中,進行一次將關連於所有的切換候補螢幕之全部項目之資料讀出的處理一事係為困難。因此,係成為在每次實行步驟S2之處理時,少量地進行資料讀出(在每一次處理中,僅有切換候補螢幕之各項目中的一部分之項目會成為讀出對象)。故而,依存於情況,當進行後述之螢幕切換操作時,係成為並非一定會已進行了關連於切換目標螢幕上之全部項目的資料讀出。 Further, after that, in the process of step S2, it is difficult to perform the process of reading the data related to all the items of all the switching candidate screens. Therefore, when processing of step S2 is performed each time, data reading is performed in a small amount (in each processing, only a part of each item of the switching candidate screen is read). Therefore, depending on the situation, when a screen switching operation to be described later is performed, data reading that is not necessarily related to all items on the switching target screen is not necessarily performed.
之後,若是使用者在上述現在顯示裝置之螢幕上而進行螢幕切換操作(步驟S3),則係對於切換螢幕上之各項目的每一者而分別進行下述之步驟S4的判定,並因應於判定結果而實行下述之步驟S5、S6的其中一者之處理。 Thereafter, if the user performs a screen switching operation on the screen of the current display device (step S3), the following step S4 is performed for each of the items on the screen, and the corresponding step S4 is determined. The determination result is performed by one of the following steps S5 and S6.
亦即是,係針對切換目標螢幕上之各項目的每一者,而判定關連於該項目之從「分配記憶體區域」而來的讀出資料是否存在於上述內部緩衝區中(步驟S4)。而,當讀出資料為存在於內部緩衝區中的情況時(步驟S4,YES),係將該內部緩衝區之資料讀出(步驟 S5)。另一方面,當讀出資料並不存在於內部緩衝區中的情況時(步驟S4,NO),係從關連於該項目之「分配記憶體區域」而讀出資料(步驟S6)。 In other words, it is determined whether the read data from the "allocated memory area" associated with the item exists in the internal buffer in response to each of the items on the switching target screen (step S4). . However, when the read data is present in the internal buffer (step S4, YES), the data of the internal buffer is read (step S5). On the other hand, when the read data does not exist in the internal buffer (NO in step S4), the data is read from the "allocated memory area" associated with the item (step S6).
之後,若是針對切換目標螢幕上之全部的項目而藉由上述步驟S5、S6之某一者的處理而將資料讀出,則係基於該讀出資料而進行切換目標螢幕之畫面顯示(進行螢幕切換)(步驟S7)。 Then, if the data is read by the processing of one of the above steps S5 and S6 for all the items on the switching target screen, the screen display of the switching target screen is performed based on the read data (screening is performed) Switch) (step S7).
之後,回到步驟S1,上述切換目標螢幕係成為新的上述現在顯示中之螢幕,並成為進行上述步驟S1之處理。之後,例如,係成為針對可能會成為從新的現在顯示中之螢幕所進行切換的目標之螢幕(新的切換目標候補螢幕),而進行上述步驟S2之處理。 Thereafter, the process returns to step S1, and the switching target screen becomes a new screen in the current display, and the processing in the above step S1 is performed. Thereafter, for example, a screen (a new switching target candidate screen) that is likely to be a target for switching from a new current display screen is performed, and the processing of the above step S2 is performed.
另外,假設當針對切換目標螢幕上之全部項目而步驟S4之判定均成為NO的情況時,係成為實質性地進行與先前技術相同之處理,並成為會在螢幕切換中而耗費時間。但是,除了此種特殊的情況以外,在螢幕切換中所耗費的時間均係成為相較於先前技術而更加縮短。當然的,此係因為,在步驟S5之處理中所耗費的時間,係為較步驟S6之處理中所耗費的時間而更短之時間之故。 In addition, it is assumed that when the determination of step S4 is NO for all the items on the switching target screen, the processing similar to the prior art is substantially performed, and it takes time to switch between screens. However, in addition to this special case, the time spent in screen switching is further shortened compared to the prior art. Of course, this is because the time taken in the process of step S5 is shorter than the time taken in the process of step S6.
以下,參考圖6,針對上述步驟S2之處理作更詳細之說明。 Hereinafter, the processing of the above step S2 will be described in more detail with reference to FIG.
如同上述一般,係成為在每次實行步驟S2之處理時,每次少量地進行從外部記憶體而來之資料讀出(以及對於內部緩衝區之暫時性記憶)。因此,在每次實行步驟 S2時,係需要對於此時之成為資料讀出對象的少數之(1以上之)項目作決定。此讀出對象記憶體選定之主要處理,係為圖6中所示之步驟S55之處理。 As described above, the data reading from the external memory (and the temporary memory for the internal buffer) is performed a small amount each time the processing of step S2 is performed. So every step of the implementation In the case of S2, it is necessary to make a decision on a few (1 or more) items which are data reading targets at this time. The main processing for selecting the read object memory is the processing of step S55 shown in FIG. 6.
另外,讀出對象記憶體之選定方法,係可採用各種方法,於此所說明之圖6中所示之方法,係僅為其中一例。 Further, various methods can be employed for selecting the method of selecting the target memory, and the method shown in Fig. 6 described here is only one example.
在圖6之例中,首先,係判定是否存在有畫面關連附加資訊(步驟S51)。 In the example of Fig. 6, first, it is determined whether or not there is picture related additional information (step S51).
於圖7中,對於畫面關連附加資訊之其中一例作展示。另外,畫面關連附加資訊,例如係為將在作畫編輯裝置5側而伴隨著開發者任意的畫面資料22之作成所被作成者與畫面資料22一同地下載至可編程顯示器1處並作了記憶者。 In Fig. 7, one of the examples of screen related additional information is shown. Further, the screen-related additional information is downloaded to the programmable display 1 together with the screen material 22, for example, on the side of the drawing editing apparatus 5 with the developer's arbitrary screen data 22 being created. Memory.
畫面關連附加資訊,例如,係為對於構成畫面資料22之複數的螢幕間之遷移關係(切換出發點和切換目標)作展示者。在圖7中,各矩形和矩形內之名稱,係代表各螢幕和螢幕名稱。又,將矩形間作連結之直線,係為代表各螢幕之遷移關係(切換出發點和切換目標)者。例如,從圖示之「管理畫面」螢幕所出發之切換目標,係僅存在有「生產線1」螢幕。從圖示之「生產線1-2」螢幕所出發之切換目標,係成為「生產線1」螢幕或者是「生產線1-1」螢幕。從圖示之「生產線1」螢幕所出發之切換目標,係成為「生產線1-1」螢幕或「生產線1-2」螢幕或「生產線2」螢幕或者是「管理畫面」螢幕。 The screen related additional information, for example, is a display for the transition relationship between the screens (switching the starting point and switching target) constituting the plurality of screen materials 22. In Figure 7, the names within each rectangle and rectangle represent the names of the screens and screens. Further, a straight line connecting the rectangles is a representative of the migration relationship (switching start point and switching target) of each screen. For example, there is only a "Production Line 1" screen for the switching destination from the "Management Screen" screen shown. The switching destination from the "Production Line 1-2" screen shown in the figure is the "Production Line 1" screen or the "Production Line 1-1" screen. The switching target from the "Production Line 1" screen shown in the figure is the "Production Line 1-1" screen or the "Production Line 1-2" screen or the "Production Line 2" screen or the "Management Screen" screen.
但是,畫面關連附加資訊,係並非一定會被作成。因此,首先,係判定畫面關連附加資訊之有無(步驟S51)。之後,若是存在有畫面關連附加資訊(步驟S51,YES),則係參考此畫面關連附加資訊,而將可能會成為從現在顯示中之螢幕所出發的切換目標之螢幕(切換候補螢幕),作為選定優先度為高之螢幕(步驟S52)。之後,移行至步驟S53。另外,係亦可將「選定優先度為高之螢幕」稱作「外部記憶體先行讀取對象螢幕」。 However, the screen is not necessarily related to additional information. Therefore, first, it is determined whether or not the screen is related to the additional information (step S51). After that, if there is a screen related additional information (YES in step S51), the screen is connected to the additional information, and the screen may be the switching target (switching candidate screen) from the screen currently displayed. A screen having a high priority is selected (step S52). Thereafter, the process proceeds to step S53. In addition, "the screen with the highest priority selected" can also be referred to as the "external memory read target screen".
另一方面,若是並不存在有畫面關連附加資訊(步驟S51,NO),則係直接移行至步驟S53。 On the other hand, if there is no screen related additional information (NO in step S51), the process proceeds directly to step S53.
另外,此係僅為其中一例,而並不被限定於此例子。例如,亦可構成為:就算是並不存在有上述畫面關連附加資訊,亦基於現在顯示中之螢幕上的特定之項目(上述螢幕切換開關)的資料,來決定上述選定優先度為高之螢幕。亦即是,在關連於螢幕切換開關之項目資料中,係包含有成為切換目標之螢幕的辨識資訊。故而,係只要將此辨識資訊所代表之螢幕設為上述選定優先度為高之螢幕即可。 In addition, this is only an example, and is not limited to this example. For example, it may be configured to determine the selected screen with a higher priority based on the data of the specific item (the above-mentioned screen switch) on the screen currently displayed, even if there is no such screen related additional information. . That is, in the project data related to the screen switch, the identification information of the screen to be the switching target is included. Therefore, it is only necessary to set the screen represented by the identification information to the screen with the selected priority being high.
另外,當能夠成為從任意之螢幕所出發的切換目標之螢幕係存在有複數的情況時,在該任意之螢幕上,係成為顯示有複數之上述螢幕切換開關。於此情況,與此些之複數之螢幕切換開關相對應的複數之螢幕,係成為上述選定優先度為高之螢幕。另外,此些複數之螢幕, 係成為切換目標候補螢幕,並成為被切換至其中之與被使用者所操作了的螢幕切換開關相對應之螢幕處。因此,較理想,當進行了該使用者操作時,係已針對關連於所有的切換目標候補螢幕之全部的項目而進行了一次的外部記憶體先行讀取處理。若是如此,則由於不論是指定了複數的切換目標候補螢幕中之何者,針對該螢幕之全部的項目所進行的上述步驟S4之判定均係成為YES,因此在進行螢幕切換時係成為不需要進行外部記憶體存取。 Further, when there is a plurality of screens that can be used as switching targets from any of the screens, the above-described screen switching switches are displayed on the arbitrary screen. In this case, the plurality of screens corresponding to the plurality of screen switching switches are screens having the selected priority higher. In addition, these plural screens, It becomes a switching target candidate screen and becomes a screen that is switched to correspond to the screen change switch operated by the user. Therefore, it is preferable that when the user operation is performed, the external memory read processing is performed once for all the items related to all of the switching target candidate screens. If this is the case, the determination of the above-described step S4 for all the items of the screen is YES regardless of which of the plurality of switching target candidate screens is specified. Therefore, it is not necessary to perform screen switching. External memory access.
又,在步驟S53中,係判定是否已將全部資料儲存在內部緩衝區中。此一步驟,例如係為判定是否關連於所有的切換目標候補螢幕之全部項目而至少一次地從其之分配記憶體區域來讀出資料並儲存在內部緩衝區域中(是否已從全部的讀出對象記憶體而取得了資料)者。 Further, in step S53, it is determined whether or not all the data has been stored in the internal buffer. In this step, for example, it is determined whether or not all the items of the switching target candidate screen are related to each other and the data is read from the allocated memory area at least once and stored in the internal buffer area (whether it has been read from all). Those who have obtained data from the object memory.
例如,作為其中一例,在步驟S55之先行讀取記憶體選定處理中,直到成為上述「已將全部資料儲存在內部緩衝區中」的狀態為止,係成為進行從尚未取得資料之讀出對象記憶體之中而進行選定的模式(資料未取得記憶體優先模式)。之後,若是成為不存在尚未取得資料的讀出對象記憶體(成為已將全部資料儲存在內部緩衝區中),則接著,係成為針對內部緩衝區之儲存資料而從最舊的資料起依序更新為最新之資料的模式(舊資料優先更新模式)。 For example, in one of the preceding read memory selection processes in step S55, until the state in which "all data has been stored in the internal buffer" is performed, the read target memory from which data has not been acquired is performed. The selected mode is selected in the body (the data does not have the memory priority mode). Then, if there is no memory of the read target that has not yet acquired the data (it is stored in the internal buffer), then it is sequentially stored from the oldest data for the data stored in the internal buffer. Update to the latest data mode (old data priority update mode).
另外,在成為了步驟S53會變成YES的狀況之後,如同上述一般,由於就算是使用者作為切換目標而 選擇何者之螢幕,步驟S4均會成為YES,因此,係成為完全不需要為了切換螢幕而進行外部記憶體存取。 In addition, after the situation in which the step S53 becomes YES, as in the above, even if the user is the switching target Selecting which screen to use will result in YES in step S4. Therefore, it is completely unnecessary to perform external memory access in order to switch screens.
直到上述步驟S53之判定成為YES為止,係設為上述未取得記憶體優先模式,若是上述步驟S53之判定成為YES,則係將模式切換為上述舊資料優先更新模式(步驟S54)。之後,係成為維持舊資料優先更新模式,直到螢幕切換被進行為止。另外,若是進行了步驟S7之螢幕切換,則係先回復到上述未取得記憶體優先模式,之後回到步驟S1。 Until the determination in the above step S53 is YES, the memory acquisition priority mode is set, and if the determination in the above step S53 is YES, the mode is switched to the old data priority update mode (step S54). After that, the old data priority update mode is maintained until the screen switching is performed. On the other hand, if the screen switching in step S7 is performed, the memory priority mode is first restored, and the process returns to step S1.
若是實行了上述之步驟S51~54之中的1以上之處理,則係實行步驟S55之先行讀取記憶體選定處理。 If one or more of the above-described steps S51 to S54 are executed, the preceding read memory selection processing of step S55 is executed.
步驟S55之處理,例如,當身為上述未取得記憶體優先模式的情況時,係從尚未取得資料之項目(其之分配記憶體)中而優先性地選定先行讀取記憶體。此時,係亦可將尚未取得資料之項目中的上述選定優先度為高之螢幕的項目作為優先性選擇者,但是,係並不被限定於此例。另外,在後述之步驟S56之處理中,係成為從所選定了的先行讀取記憶體而將資料讀出。 In the case of the processing of the step S55, for example, when the memory priority mode is not obtained, the memory is preferentially selected from the items (the allocated memory) of which the data has not yet been acquired. In this case, the item having the highest priority selected in the item that has not yet obtained the data may be used as the priority selector, but is not limited to this example. Further, in the processing of step S56 to be described later, the data is read from the selected preceding read memory.
另一方面,當現在係身為上述舊資料優先更新模式的情況時,係將與內部緩衝區之儲存資料中的最為古老之資料(例如基於後述之更新時間75來作判別)相對應之項目(其之分配記憶體),選定為先行讀取記憶體。 On the other hand, when it is now the case of the above-mentioned old data priority update mode, it is the item corresponding to the oldest data in the internal buffer storage data (for example, based on the update time 75 described later). (The allocated memory) is selected to read the memory first.
另外,不論是在何者的情況中,先行讀取記憶體均係並非為被限定為1個,而亦可為複數(亦可設為預先所決定的既定數量)。 In addition, in any case, the read memory is not limited to one, but may be plural (may also be set to a predetermined number determined in advance).
以上,係為基本性之先行讀取記憶體的選定方法,但是,係並不被限定於此些例子,例如當存在有閒置物理埠的情況時,係亦可構成為將使用該閒置物理埠而被進行存取之外部記憶體(分配記憶體)優先性地作選定。針對此事,例如,在後述之圖8之例中,係存在有與圖示之連接機器4-1作連接的埠、和與連接機器4-2作連接的埠。於此例中,當起因於關連於現在顯示中之螢幕的分配記憶體存取處理,而現在為與連接機器4-1通訊中的情況時,與連接機器4-2作連接之埠,係為上述閒置物理埠。因此,在此例的情況時,係亦可構成為將其之分配記憶體為連接機器4-2內之記憶體的項目,優先性地選定為先行讀取記憶體。 The above is a basic method for selecting the memory to be read first. However, it is not limited to these examples. For example, when there is an idle physical device, the idle physical device may be used. The external memory (allocation memory) that is accessed is preferentially selected. In this case, for example, in the example of FIG. 8 to be described later, there are a port connected to the connection device 4-1 shown in the drawing, and a port connected to the connection device 4-2. In this example, when the memory access processing related to the screen currently being displayed is caused by the connection with the connected device 4-1, the connection to the connected device 4-2 is performed. For the above idle physical 埠. Therefore, in the case of this example, the item whose memory is connected to the memory in the device 4-2 may be preferentially selected as the look-ahead memory.
或者是,亦可構成為:針對滿足既定之條件的項目,而與關連於上述現在顯示中之螢幕的分配記憶體存取處理一同地來順便進行資料讀出(以及對於內部緩衝區之儲存)。 Alternatively, it may be configured to perform data reading (and storage for an internal buffer) along with the allocated memory access processing associated with the screen currently being displayed for the item satisfying the predetermined condition. .
所謂上述滿足既定之條件的項目,例如,係為以將關連於該項目之後述的記憶體清單P2之資料合成(追加)至後述之記憶體清單90中為理想的項目。於以下列舉出此種項目的其中一例,但是係並不被限定於此些之例。.對與關連於上述現在顯示中之螢幕的存取目標之 記憶體裝置同樣的記憶體裝置進行存取之項目。 The item that satisfies the predetermined condition is, for example, an item that is synthesized (added) to the memory list 90 to be described later by combining the data of the memory list P2 described later in the item. An example of such an item is listed below, but is not limited to these examples. . For access to the screen associated with the above-mentioned current display A memory device that accesses the same memory device.
.對於與關連於上述現在顯示中之螢幕的分配記憶體區域(例如D100~D103)相連續之記憶體區域(在此例中,係為D104等)進行存取之項目。換言之,係為例如成為能夠統籌為D100~D104等而整批進行存取之項目。 . An item for accessing a memory area (in this example, D104 or the like) that is continuous with the allocated memory area (for example, D100 to D103) of the screen currently being displayed. In other words, for example, it is an item that can be collectively accessed for D100 to D104 and the like.
之後,從在上述步驟S55中所選定了的先行讀取記憶體而讀出資料(步驟S56),並將該讀出的資料暫時性地記憶在內部緩衝區中(步驟S57)。 Thereafter, the data is read from the preceding read memory selected in the above-described step S55 (step S56), and the read data is temporarily stored in the internal buffer (step S57).
另外,當然的,若是可能,則係亦可在步驟S55中而將所有讀出對象記憶體均選定為先行讀取記憶體。 Further, of course, if it is possible, all of the read target memories may be selected as the look-ahead memory in step S55.
在本手法中,當被指示有切換至任意之螢幕時,當針對該切換目標螢幕上之全部項目而均進行了上述步驟S56、S57之處理的情況時,係成為使用上述內部緩衝區之資料來顯示該切換目標螢幕(其之初期狀態)。亦即是,係成為不需要在螢幕切換時而從外部記憶體來取得資料(不需要與連接機器4進行通訊)。故而,係成為以非常短的時間而實現螢幕切換。 In the present method, when it is instructed to switch to an arbitrary screen, when the processing of the above steps S56 and S57 is performed for all the items on the switching target screen, the data of the internal buffer is used. To display the switching target screen (the initial state). In other words, it is not necessary to acquire data from the external memory when the screen is switched (it is not necessary to communicate with the connected device 4). Therefore, the screen switching is realized in a very short time.
又,就算是在僅針對上述切換目標螢幕上之項目的一部分而進行了上述步驟S56、S57之處理的情況,相較於先前技術,亦係成為以較短的時間而實現了螢幕切換。另外,通常,螢幕切換,係構成為若是尚未進行關連於切換目標螢幕之全部項目的資料取得,則並不進行 切換。 Further, even in the case where the processing of the above-described steps S56 and S57 is performed only for a part of the items on the switching target screen, the screen switching is realized in a shorter time than in the prior art. In addition, in general, the screen switching is not performed if the data acquisition of all the items related to the switching target screen has not been performed yet. Switch.
圖8,係為本例之可編程顯示器1的構成、處理功能圖。 Fig. 8 is a view showing the configuration and processing function of the programmable display 1 of the present embodiment.
CPU11,例如係藉由實行被記憶在上述ROM12中之既定的程式(例如上述本體程式21、通訊程式23等),來實現例如圖8之虛線內所示的各種處理功能部。亦即是,係實現圖示之項目產生部51、項目處理排程部52、項目處理部53、通訊處理部54(54-1、54-2等)等之各種處理功能部的下述之處理功能。 The CPU 11 realizes, for example, various processing function units shown by broken lines in Fig. 8 by executing a predetermined program (e.g., the main body program 21, the communication program 23, and the like) stored in the ROM 12. In other words, the following processing function units such as the item generation unit 51, the item processing scheduling unit 52, the item processing unit 53, and the communication processing unit 54 (54-1, 54-2, etc.) are shown. Processing function.
另外,例如,項目產生部51和項目處理排程部52以及項目處理部53,係藉由本體程式21而實現。通訊處理部54,係藉由本體程式21和通訊程式23而實現。 Further, for example, the item generation unit 51, the item processing schedule unit 52, and the item processing unit 53 are realized by the body program 21. The communication processing unit 54 is realized by the main body program 21 and the communication program 23.
項目產生部51,係基於上述畫面資料22等,而產生項目清單56。此係例如以將畫面資料22之一部分抽出的形式而產生之(進而追加後述之完成處理旗標87)。 The item generation unit 51 generates a item list 56 based on the above-described screen material 22 and the like. This is generated, for example, by extracting a part of the screen material 22 (and adding the completion processing flag 87 described later).
於此,如同上述一般,畫面資料22係由關連於複數之螢幕的資料所成,在項目清單56中,基本上係儲存有關連於現在顯示中之螢幕的資料。因此,項目產生部51,係在每一次螢幕切換開關被進行了操作時,將既存之項目清單56和共有記憶體55之資料消除,並產生與切換目標螢幕相對應之新的項目清單56和共有記憶體55(但是,在此時間點,於共有記憶體55之資料64中係並 不存在有資料,而是成為之後被複製有例如通訊記憶體57之資料)。 Here, as in the above, the screen material 22 is formed by data related to a plurality of screens. In the item list 56, basically, the data relating to the screen connected to the current display is stored. Therefore, the project generating unit 51 eliminates the data of the existing item list 56 and the shared memory 55 every time the screen change switch is operated, and generates a new item list 56 corresponding to the switching target screen and Shared memory 55 (however, at this point in time, in the data 64 of the shared memory 55 There is no data, but it is a material that is copied, for example, to the communication memory 57.
項目產生部51,係進而在將通訊記憶體57之資料複製至共有記憶體55處之後等的時間點,而將通訊記憶體57之資料消除,並產生與下一個切換目標候補之螢幕相對應之新的通訊記憶體57(但是,於此時間點,在通訊記憶體57之資料74中係並不存在有資料)。但是,此處理,係亦可為由通訊處理部54所進行者。另外,上述之所謂「下一個切換目標候補之螢幕」,係為與在上述切換目標螢幕中之螢幕切換開關相對應的螢幕。 The item generating unit 51 further eliminates the data of the communication memory 57 at a time point after copying the data of the communication memory 57 to the shared memory 55, and generates a screen corresponding to the screen of the next switching target candidate. The new communication memory 57 (however, at this point in time, there is no data in the data 74 of the communication memory 57). However, this processing may be performed by the communication processing unit 54. Further, the above-mentioned "screen of the next switching target candidate" is a screen corresponding to the screen switching switch in the switching target screen.
項目處理排程部52,係進行由項目處理部53所致之各項目的顯示更新處理等之排程管理。亦即是,項目處理排程部52,例如係定期性地呼叫項目處理部53並使其實行例如後述之圖17的處理(換言之,將圖17之處理作循環性的實行)。 The item processing schedule unit 52 performs schedule management such as display update processing for each item by the item processing unit 53. In other words, the item processing schedule unit 52 periodically calls the item processing unit 53 to perform the processing of FIG. 17 which will be described later (in other words, the processing of FIG. 17 is cyclically performed).
項目處理部53,係基於上述項目清單56或後述之共有記憶體55的儲存資料,而對於各項目之每一者,進行將其之畫像顯示於既定位置處並且將其顯示內容作更新之處理(例如ON/OFF畫像之切換或數值顯示之數值更新等)。 The item processing unit 53 performs processing for displaying each of the items at a predetermined position and updating the display contents based on the item list 56 or the stored data of the shared memory 55 to be described later. (For example, switching of ON/OFF images or numerical display of numerical values, etc.).
項目處理部53,係伴隨於上述處理而將各種畫像描繪(展開)於RAM13上。藉由此,圖形控制器15係成為藉由將該描繪資料顯示在顯示器上,而顯示上述顯示操作畫面。此描繪資料,係藉由項目處理部53而例如 在每一次實行後述之圖17之處理時被隨時作更新。另外,關於項目處理部53之處理自身,基本上係可為與先前技術略相同。 The item processing unit 53 draws (expands) various types of portraits on the RAM 13 in accordance with the above processing. Thereby, the graphics controller 15 displays the display operation screen by displaying the drawing material on the display. This drawing data is, for example, by the item processing unit 53 It is updated at any time during the execution of the processing of Fig. 17 described later. Further, the processing itself of the item processing unit 53 can basically be slightly the same as the prior art.
通訊處理部54,係為與各連接機器4(4-1、4-2)相對應地所具備之通訊處理部54-1、54-1。通訊處理部54,例如,係進行共有記憶體55之儲存資料的更新處理。 The communication processing unit 54 is a communication processing unit 54-1 and 54-1 provided in association with each of the connected devices 4 (4-1, 4-2). The communication processing unit 54 performs, for example, update processing of the stored data of the shared memory 55.
亦即是,圖示之通訊處理部54-1,係使用與連接機器4-1相對應之通訊埠WAY1,而經由通訊線路6來進行與連接機器4-1之間的通訊,並取得其之外部記憶體的既定區域(分配記憶體區域)之儲存資料。此係指將關連於現在顯示中的螢幕上之項目中的被分配有連接機器4-1內的外部記憶體之項目的資料作取得。取得資料,係被覆寫儲存於共有記憶體55之既定區域中。 In other words, the communication processing unit 54-1 shown in the figure uses the communication 埠 WAY1 corresponding to the connection device 4-1, and communicates with the connection device 4-1 via the communication line 6, and acquires it. The stored data of the established area (distributed memory area) of the external memory. This refers to the acquisition of the data of the item connected to the external memory in the connected machine 4-1 among the items on the screen currently displayed. The acquired data is overwritten and stored in a predetermined area of the shared memory 55.
同樣的,圖示之通訊處理部54-2,係使用與連接機器4-2相對應之通訊埠WAY2,而經由通訊線路6來進行與連接機器4-2之間的通訊,並取得其之外部記憶體的既定區域(分配記憶體區域)之儲存資料。此係指將關連於現在顯示中的螢幕上之項目中的被分配有連接機器4-2內的外部記憶體之項目的資料作取得。取得資料,係被覆寫儲存於共有記憶體55之既定區域中。 Similarly, the communication processing unit 54-2 shown in the figure uses the communication 埠 WAY 2 corresponding to the connection device 4-2, and communicates with the connection device 4-2 via the communication line 6, and obtains the communication device 6-2. Storage data for a given area of the external memory (allocation memory area). This refers to the acquisition of data related to the items of the external memory connected to the machine 4-2 among the items on the screen currently displayed. The acquired data is overwritten and stored in a predetermined area of the shared memory 55.
但是,上述共有記憶體55之儲存資料的更新處理自身,係與既存之處理略相同。本例之各通訊處理部54,係不僅是實行上述既存處理,而更進而實行下述之新 規處理。 However, the update processing of the stored data of the shared memory 55 described above is slightly the same as the existing processing. Each of the communication processing units 54 of this example performs not only the above-described existing processing but also the following new Regulation processing.
亦即是,各通訊處理部54,係更進而實行對於通訊記憶體57之儲存資料進行更新的處理。於此,在通訊記憶體57中,係儲存關連於上述切換候補螢幕之資料。如同上述一般,例如,上述切換候補之螢幕,係為與現在顯示中之螢幕上的螢幕切換開關相對應之螢幕。 In other words, each of the communication processing units 54 further performs processing for updating the stored data of the communication memory 57. Here, in the communication memory 57, the data related to the switching candidate screen is stored. As described above, for example, the screen of the switching candidate is a screen corresponding to the screen switching switch on the screen currently displayed.
又,通訊處理部54,係為針對該切換候補螢幕而亦與上述現在顯示中之螢幕略相同地進行從相符之外部記憶體而來的資料取得。但是,取得資料,係並非被儲存於共有記憶體55中,而是被記憶在上述內部緩衝區中。相當於此內部緩衝區者,係為通訊記憶體57。亦即是,通訊處理部54,係將切換候補螢幕上之各項目的分配記憶體區域的儲存資料讀出,並儲存在通訊記憶體57中。當然的,各通訊處理部54-1、54-2,係成為分別僅進行從自身所負責的連接機器4而來之資料讀出。 Further, the communication processing unit 54 acquires data from the corresponding external memory in the same manner as the screen in the current display for the switching candidate screen. However, the acquired data is not stored in the shared memory 55, but is stored in the internal buffer. The equivalent of this internal buffer is the communication memory 57. In other words, the communication processing unit 54 reads the stored data of the allocated memory area of each item on the switching candidate screen and stores it in the communication memory 57. Of course, each of the communication processing units 54-1 and 54-2 reads only the data from the connection device 4 in charge of itself.
上述新規處理,可以說是通訊記憶體57之儲存資料的更新處理。此處理之其中一例,係為上述之圖6的處理。 The above new regulation processing can be said to be the update processing of the stored data of the communication memory 57. An example of this processing is the processing of FIG. 6 described above.
另外,基於上述說明,通訊記憶體57之資料構造(各資料項目),基本上係與共有記憶體55略相同。共有記憶體55和通訊記憶體57之資料構造,係於圖9中作展示並於後再作說明。 Further, based on the above description, the data structure (each data item) of the communication memory 57 is basically the same as the shared memory 55. The data structure of the shared memory 55 and the communication memory 57 is shown in Fig. 9 and will be described later.
又,當在任意之時序處而由使用者來對於螢幕切換開關進行了操作時,通訊處理部54(或者是項目 產生部51等)係將通訊記憶體57之儲存資料複製(覆寫)至共有記憶體55中。藉由此,係並不需要對於外部記憶體(分配記憶體區域)進行存取,便能夠顯示切換目標螢幕。 Further, when the screen switch is operated by the user at an arbitrary timing, the communication processing unit 54 (or the item) The generating unit 51 or the like copies (overwrites) the stored data of the communication memory 57 into the shared memory 55. By this means, it is not necessary to access the external memory (allocated memory area), and the switching target screen can be displayed.
於此,先針對上述項目清單56、共有記憶體55、通訊記憶體57之具體例作說明。 Here, a specific example of the item list 56, the shared memory 55, and the communication memory 57 will be described first.
在圖9(a)中,對於共有記憶體55之資料構造例作展示,於圖9(b)中,對於共有記憶體55之資料儲存例作展示。 In Fig. 9(a), a data structure example of the shared memory 55 is shown, and in Fig. 9(b), a data storage example of the shared memory 55 is shown.
在圖示之例中,共有記憶體55,係由埠61、裝置名稱62、位址63、資料64、錯誤資訊65之各資料項目所成。 In the illustrated example, the shared memory 55 is formed by each data item of 埠61, device name 62, address 63, data 64, and error information 65.
埠61,係為上述通訊埠之辨識資訊等,實質上係成為對於通訊對象之連接機器4作辨識的資訊。裝置62,係為通訊對象之連接機器4內的記憶體裝置(外部記憶體)之辨識資訊。位址63,係為在裝置62所代表之外部記憶體中的既定之記憶區域的位址,在資料64中,係儲存有從此記憶區域所取得之資料。 埠61 is information for identifying the communication device and the like, and is substantially information for identifying the connection device 4 of the communication target. The device 62 is identification information of a memory device (external memory) in the connection device 4 of the communication target. The address 63 is the address of a predetermined memory area in the external memory represented by the device 62. In the data 64, the data obtained from the memory area is stored.
另外,裝置名稱62和位址63,係可視為相當於各項目之上述「分配記憶體位址」。此些,例如,係為將後述之項目清單56的裝置名稱84、位址85作了複製者。又,埠61,例如係亦可為藉由基於裝置名稱62而對於相符之連接機器4作判別一事所判定出之通訊埠號碼等。或者是,在後述之裝置名稱84中,係亦可除了記憶 體裝置名稱以外,更進而包含有通訊埠辨識資訊等。 Further, the device name 62 and the address 63 can be regarded as equivalent to the above-mentioned "allocated memory address" of each item. For example, the device name 84 and the address 85 of the item list 56 to be described later are copied. Further, the parameter 61 may be, for example, a communication number or the like determined by discriminating the connected device 4 based on the device name 62. Alternatively, in the device name 84 described later, the system may be in addition to the memory. In addition to the name of the device, it further includes communication and identification information.
另外,在錯誤資訊65中,當發生有與連接機器4之間的通訊錯誤等的情況時,係儲存有該錯誤資訊(圖9(b)中所示之“錯誤”等)。 Further, in the error information 65, when a communication error or the like with the connected device 4 occurs, the error information ("error" or the like shown in FIG. 9(b)) is stored.
在圖9(c)中,對於通訊記憶體57之資料構造例作展示,於圖9(d)中,對於通訊記憶體57之資料儲存例作展示。 In Fig. 9(c), a data structure example of the communication memory 57 is shown, and in Fig. 9(d), a data storage example of the communication memory 57 is shown.
通訊記憶體57,係由埠71、裝置名稱72、位址73、資料74、更新時間75之各資料項目所成。其中,埠71、裝置名稱72、位址73、資料74之各資料項目,係亦可為與上述共有記憶體55之各資料項目61、62、63、64略相同。在更新時間75中,係當每次資料74之儲存資料被作更新時,而儲存有此時之時間(例如從啟動時開始而經過的時間等)。後述之資料74的更新處理,例如所有記錄中之更新時間75為最小(換言之,從前一次之更新時起而經過最久之時間者:最舊者)之記錄,係成為更新處理對象記錄。 The communication memory 57 is formed by each data item of 埠71, device name 72, address 73, data 74, and update time 75. The data items of the device 71, the device name 72, the address 73, and the data 74 may be slightly the same as the data items 61, 62, 63, and 64 of the shared memory 55. In the update time 75, each time the stored data of the material 74 is updated, the time of the time (for example, the time elapsed since the start of the start, etc.) is stored. The update processing of the material 74 to be described later, for example, the record in which the update time 75 in all the records is the smallest (in other words, the oldest time from the previous update) is the update processing target record.
例如,在圖9(d)所示之例中,開頭記錄(更新時間75=‘5000’之記錄)係成為更新處理對象記錄。當然,係並不被限定於此例,例如更新處理對象記錄係亦可為複數。亦即是,亦可不僅是最舊的紀錄,而亦將第2舊或第3舊之記錄作為更新處理對象記錄。 For example, in the example shown in Fig. 9(d), the start record (update time 75 = '5000' record) is the update process target record. Of course, the system is not limited to this example. For example, the update processing object record system may be plural. That is to say, it is also possible to record not only the oldest record but also the second oldest or third oldest record as the update processing target.
又,在圖10(a)中,係對於項目清單56之資料構造例作展示。 Further, in Fig. 10(a), the data structure example of the item list 56 is shown.
圖示之例的項目清單56,係由項目型態81、座標82、尺寸83、裝置名稱84、位址85、「每一項目型態之資料」86、完成處理旗標67之各資料項目所成。 The item list 56 of the illustrated example is composed of item type 81, coordinate 82, size 83, device name 84, address 85, "data for each item type" 86, and various data items of the processing flag 67. Made into.
如同上述一般,在項目清單56中,係被儲存有關連於現在顯示中之螢幕上的各項目之既定資訊。基本上,各記錄係為與各項目相對應者。故而,在每次螢幕被作切換時,項目清單56係被更新。亦即是,在螢幕切換時,該時間點之項目清單56的儲存資料係被消除,並成為基於畫面資料22而產生、儲存新的資料。當然的,新的資料,係成為關連於切換目標螢幕上之各項目的資料。 As in the above, in the item list 56, the established information about each item connected to the screen currently displayed is stored. Basically, each record is a counterpart to each item. Therefore, the item list 56 is updated each time the screen is switched. That is, at the time of screen switching, the stored data of the item list 56 at that point in time is eliminated, and new material is generated and stored based on the picture material 22. Of course, the new information is the data that is related to each item on the switching target screen.
在項目型態81中,係儲存有代表該項目之種類(開關、燈泡、數值顯示等)的項目種類辨識資訊。另外,作為項目種類,係亦可更進而為「螢幕切換開關」等。 In the project type 81, item type identification information representing the type of the item (switch, bulb, numerical display, etc.) is stored. In addition, as a project type, it is also possible to further use a "screen switch".
又,裝置名稱84和位址85,係為關連於各項目之上述外部記憶體存取的資訊,而相當於上述分配記憶體位址。亦即是,在裝置名稱84所代表之外部記憶體中的位址85所代表之記憶區域,係為被分配至該項目之區域(上述分配記憶體區域)。此分配記憶體區域之儲存資料,係為代表關連於該項目之監視/控制對象的現在之狀態者。例如,若是項目型態81為燈泡,則代表燈泡之點燈/熄燈的旗標資料等,係為上述儲存資料。此儲存資料,係在連接機器4側而被隨時作更新。又,分配記憶體區域之儲存資料係被定期性地讀出,並暫時性地記憶在上 述共有記憶體55之相符合的記錄之資料64中。 Further, the device name 84 and the address 85 are information related to the external memory access of each item, and correspond to the above-mentioned allocated memory address. That is, the memory area represented by the address 85 in the external memory represented by the device name 84 is the area allocated to the item (the above-mentioned allocated memory area). The stored data of the allocated memory area is the current state representative of the monitoring/control object associated with the item. For example, if the item type 81 is a light bulb, the flag data indicating the lighting/lighting of the light bulb is the above stored data. This stored data is updated on the side of the connected machine 4 at any time. Moreover, the stored data of the allocated memory area is periodically read and temporarily stored on the upper side. The information of the recorded records of the shared memory 55 is 64.
在「每一項目型態之資料」86中,例如係儲存有關連於該項目之畫像等(例如,若是燈泡項目,則係為燈泡點燈畫像和燈泡熄燈畫像,或者是,若是開關項目,則係為開關ON畫像和開關OFF畫像等之各種項目畫像)。 In the "data for each item type" 86, for example, an image relating to the item is stored (for example, in the case of a light bulb item, a light bulb lighting portrait and a light bulb light-off image, or, if it is a switch item, It is a series of project images such as a switch ON image and a switch OFF image).
在座標82和尺寸83中,係儲存有代表在上述操作顯示畫面(螢幕)上之上述項目畫像的顯示位置和大小之資訊。 In the coordinates 82 and the size 83, information indicating the display position and size of the above-described item portrait on the operation display screen (screen) is stored.
於此,上述螢幕切換開關,亦係為上述項目之其中一種,故而,關連於螢幕切換開關之資訊,亦係被儲存在項目清單56中。 Here, the above-mentioned screen changeover switch is also one of the above items, and thus the information related to the screen changeover switch is also stored in the item list 56.
在圖10(b)中,係對於項目清單56中之螢幕切換開關的資料構造例作展示。 In Fig. 10(b), a data construction example of the screen change switch in the item list 56 is shown.
首先,由於螢幕切換開關係為開關的其中一種,因此在項目清單81中,係被儲存有「開關」。但是,係並不被限定於此例,當作為項目種類而規定有「螢幕切換開關」的情況時,在項目型態81中,係儲存有「螢幕切換開關」。在本說明中,係設為採用此例者。 First, since the screen switching relationship is one of the switches, in the item list 81, the "switch" is stored. However, the present invention is not limited to this example. When the "screen switching switch" is specified as the item type, the "screen switching switch" is stored in the item type 81. In this description, it is assumed that the example is adopted.
又,由於係為並不需要進行外部記憶體存取之項目,因此裝置名稱84和位址85之儲存資料係成為「無」。 Further, since it is not necessary to perform an external memory access item, the stored data of the device name 84 and the address 85 is "None".
又,在「每一項目型態之資料」86中,係不僅是儲存有上述項目畫像,而亦儲存有與該螢幕切換開關相對應 的切換目標螢幕之辨識ID(畫面號碼等)。 In addition, in the "data for each item type" 86, not only the image of the above item but also the screen switch is stored. The identification ID (screen number, etc.) of the switching target screen.
於圖12中,對於螢幕切換前後之各項目的模樣作展示。 In Fig. 12, the appearance of each item before and after the screen switching is shown.
在圖示之例中,對於從畫面No.1之螢幕而切換至畫面No.2之螢幕的模樣作展示。亦即是,若是在正在顯示畫面No.1之螢幕的狀態下而對於該螢幕上之螢幕切換開關(圖示之「切換至畫面No.2之SW」)進行操作,則係成為切換至畫面No.2之螢幕。另外,雖並未圖示,但是,在畫面No.2之螢幕上,亦係存在有螢幕切換開關。 In the illustrated example, the appearance of switching from the screen of screen No. 1 to the screen of screen No. 2 is shown. In other words, if the screen switching switch ("Switch to screen SW of screen No. 2") is operated while the screen No. 1 is being displayed, the screen is switched to the screen. Screen of No. 2. Further, although not shown, a screen change switch is also present on the screen of the screen No. 2.
圖示之各螢幕上之5個矩形,係代表該螢幕上的項目顯示,但是係並非代表實際的顯示內容。亦即是,各矩形內之文字,係代表各項目之分配記憶體位址。如同圖示一般,藉由切換螢幕,所顯示之項目係改變,故而,分配記憶體位置亦係成為會有所改變。 The five rectangles on each screen shown represent the items displayed on the screen, but they are not representative of the actual display. That is, the text in each rectangle represents the allocated memory address of each item. As shown in the figure, by switching the screen, the displayed items are changed, and therefore, the position of the allocated memory is also changed.
亦即是,例如,當正在顯示畫面No.1之螢幕的狀態時,上述通訊處理部54,係從圖示之各分配記憶體‘D100’、‘D200’、‘D300’、‘X0’、‘Y0’而讀出儲存資料並記憶在共有記憶體55中。又,項目處理部53,係基於共有記憶體55之儲存資料而進行畫面No.1之螢幕的顯示。關於此處理自身,係與先前技術略相同,但是,在本手法中,通訊處理部54,係更進而進行從關連於畫面No.2之螢幕的圖示之各分配記憶體‘D1100’、‘D1200’、‘D1300’、‘M0’、‘M1’而分別讀出儲存資料並記憶在通訊記憶體57中之處理。在本手法中, 更進而,若是上述「切換至畫面No.2之SW」***作,則係使通訊處理部54等亦實行將通訊記憶體57之儲存資料複製至共有記憶體55中之處理等。 In other words, for example, when the screen of the screen No. 1 is being displayed, the communication processing unit 54 allocates the memories 'D100', 'D200', 'D300', 'X0' from the respective pictures, The stored data is read and stored in the shared memory 55 of 'Y0'. Further, the item processing unit 53 displays the screen of the screen No. 1 based on the stored data of the shared memory 55. The processing itself is slightly the same as the prior art. However, in the present method, the communication processing unit 54 further performs the distribution memory 'D1100', 'from the diagram connected to the screen of the screen No. 2. D1200', 'D1300', 'M0', 'M1' read the stored data and memorize it in the communication memory 57, respectively. In this method, Further, when the "switch to screen No. 2" is operated, the communication processing unit 54 or the like also performs a process of copying the stored data of the communication memory 57 to the shared memory 55.
以下,針對上述通訊處理部54、項目處理部53之處理作更詳細之說明。 Hereinafter, the processing of the communication processing unit 54 and the item processing unit 53 will be described in more detail.
圖13、圖14、圖15、圖16,係為通訊處理部54之處理流程圖(1/4)、(2/4)、(3/4)、(4/4)。 13 , 14 , 15 , and 16 are flowcharts (1/4), (2/4), (3/4), and (4/4) of the processing by the communication processing unit 54.
以下,參考圖13、圖14、圖15、圖16(係有並不特別區分而記載為圖13等的情況),針對通訊處理部54作說明。 Hereinafter, the communication processing unit 54 will be described with reference to FIG. 13 , FIG. 14 , FIG. 15 , and FIG. 16 (which are described as FIG. 13 and the like without being particularly distinguished).
例如,在圖8之例中,各通訊處理部54-1、54-2,係分別為將圖13等之處理以循環(以一定週期)來實行者。 For example, in the example of FIG. 8, each of the communication processing units 54-1 and 54-2 performs the processing of FIG. 13 and the like in a cycle (with a predetermined period).
在圖13等之處理例中,首先,係參考共有記憶體55,而產生關連於自身所負責之連接機器4的記憶體清單90(步驟S11)。例如,在由通訊處理部54-1所致之處理的情況時,係成為從共有記憶體55而產生關連於連接機器4-1之記憶體清單90。 In the processing example of FIG. 13 and the like, first, referring to the shared memory 55, a memory list 90 associated with the connected device 4 for which it is responsible is generated (step S11). For example, in the case of the processing by the communication processing unit 54-1, the memory list 90 associated with the connection device 4-1 is generated from the shared memory 55.
在圖11(a)中,對於此記憶體清單90之資料構造例作展示。 In Fig. 11(a), a data construction example of this memory list 90 is shown.
在圖示之例中,記憶體清單90,係由裝置名稱91、位址92、資料93、錯誤資訊94之各資料項目所成。另外,錯誤資訊94係並非為絕對需要。 In the illustrated example, the memory list 90 is formed by each of the device name 91, the address 92, the data 93, and the error information 94. In addition, the error message 94 is not absolutely necessary.
例如,上述通訊處理部54-1,係從共有記憶 體55而將埠61為「WAY1」之記錄全部抽出。之後,將該各抽出記錄之裝置名稱62、位址63、資料64之資訊,儲存(複製)至上述裝置名稱91、位址92、資料93中。藉由此,係成為產生關連於上述連接機器4-1之記憶體清單90。另外,資料93係並非為絕對需要。 For example, the communication processing unit 54-1 described above is a shared memory. In the case of the body 55, all the records in which the 埠61 is "WAY1" are extracted. Thereafter, the information of the device name 62, the address 63, and the data 64 of each extracted record is stored (copied) into the device name 91, the address 92, and the data 93. As a result, a memory list 90 associated with the connected device 4-1 is generated. In addition, the information 93 is not absolutely necessary.
之後,一面參考所產生的記憶體清單90,一面反覆實行圖示之步驟S12~S23之間的處理,直到步驟S23之判定成為NO為止。 Thereafter, the processing between steps S12 to S23 shown in the figure is repeatedly performed while referring to the generated memory list 90 until the determination in step S23 becomes NO.
亦即是,係從記憶體清單90而取出未處理之記錄(作為處理對象記錄),並基於此處理對象記錄之內容來產生記憶體讀入指令而經由通訊線路6來送訊至自身所負責之連接機器4處(步驟S16)。之後,係成為等待從連接機器4而來之對於此記憶體讀入指令的回應(步驟S17)。但是,在進行步驟S16之處理前,係進行現狀檢查並判定是否為螢幕切換中(步驟S12)。 In other words, the unprocessed record (as the processing target record) is taken out from the memory list 90, and a memory read command is generated based on the content of the process target record, and is sent to the user via the communication line 6. The machine 4 is connected (step S16). Thereafter, it is a response to the memory read command from the connected device 4 (step S17). However, before the process of step S16 is performed, the status check is performed and it is determined whether or not the screen is being switched (step S12).
關於此事,例如,係預先設定有與上述螢幕切換開關相對應之既定的記憶區域,在此既定之記憶區域中係儲存有旗標。而,在每次螢幕切換開關***作時,旗標係成為ON。另外,在上述既定之記憶區域中,係亦可並不僅記憶有上述旗標,而亦記憶有切換目標螢幕之辨識ID(畫面號碼等)。 Regarding this, for example, a predetermined memory area corresponding to the above-described screen changeover switch is set in advance, and a flag is stored in the predetermined memory area. However, the flag is turned ON each time the screen change switch is operated. Further, in the predetermined memory area, not only the flag but also the identification ID (screen number or the like) of the switching target screen may be stored.
另外,項目產生埠51,係恆常對於此旗標作監視,並在每次旗標成為ON時,實行上述項目清單56之產生處理。亦即是,係將項目清單56之現在的資料消 除,並從畫面資料22而抽出上述切換目標螢幕之各項目的資訊,再將此儲存在項目清單56中。 In addition, the item generation 埠51 is constantly monitored for this flag, and the generation process of the above item list 56 is executed every time the flag is turned ON. That is, the current data of the project list 56 is eliminated. In addition, the information of each item of the switching target screen is extracted from the screen data 22, and then stored in the item list 56.
上述步驟S12之判定處理,作為其中一例,例如係為參考上述旗標而進行者,若是旗標為ON,則判定係為螢幕切換中(步驟S12,YES),並移行至步驟S13。在步驟S13中,係對於通訊記憶體57進行檢索,並例如檢測出後述之相符記錄,再針對該相符記錄,而確認是否已完成資料儲存(在資料74中是否被儲存有任何之資料、是否存在有先行讀取資料)(步驟S14)。 The determination processing of the above-described step S12 is, for example, a reference to the flag, and if the flag is ON, it is determined that the screen is being switched (YES in step S12), and the process proceeds to step S13. In step S13, the communication memory 57 is searched, and for example, a matching record to be described later is detected, and then the matching record is checked to confirm whether or not the data storage has been completed (whether or not any material is stored in the data 74, There is a prior reading of the data) (step S14).
於此,上述步驟S14之判定,作為其中一例,係針對上述切換目標螢幕之全部的項目而實行。但是,當上述切換候補螢幕為存在有複數的情況時,於通訊記憶體57中,係成為被儲存有關連於此些之複數之切換候補螢幕的多數之項目的資料。故而,係有必要從此些多數的項目中而判別出上述切換目標螢幕之項目。因此,例如,作為其中一例,在通訊記憶體57之各記錄中,係亦可構成為記憶有與該記錄(項目)相對應之螢幕的上述辨識ID(畫面號碼等),但是,係並不被限定於此例。 Here, the determination of the above-described step S14 is performed as an example of all of the items of the switching target screen. However, when there is a plural number of the switching candidate screens, the communication memory 57 is a material for storing a plurality of items related to the plurality of switching candidate screens connected thereto. Therefore, it is necessary to discriminate the above-mentioned items of the switching target screen from such a large number of items. Therefore, for example, as an example, each of the records of the communication memory 57 may be configured to store the identification ID (screen number or the like) of the screen corresponding to the record (item), but it is not It is limited to this example.
不論如何,係針對在通訊記憶體57中之與上述切換目標螢幕之項目相對應的全部記錄(相符記錄),而進行上述步驟S14之判定。之後,相符記錄中之被判定為上述完成資料儲存(步驟S14,YES)之記錄(複製對象記錄),係全部將其資料複製至共有記憶體55中(步驟S15)。例如,係將上述各複製對象記錄之資料項目71 ~73和資料74,複製至共有記憶體55之資料項目61~63和資料64中。另外,此時,針對資料未儲存之記錄,亦係可構成為將其之資料項目71~73複製至共有記憶體55之資料項目61~63中。 In any case, the determination of the above step S14 is performed for all the records (conformance records) corresponding to the items of the switching target screen in the communication memory 57. Thereafter, the record (copy target record) determined to be the above-described completed material storage (step S14, YES) in the coincidence record is all copied to the shared memory 55 (step S15). For example, the data item 71 recorded by each of the above-mentioned copy objects is ~73 and data 74 are copied to data items 61-63 and data 64 of the shared memory 55. Further, at this time, the records in which the data are not stored may be configured to copy the data items 71 to 73 to the data items 61 to 63 of the shared memory 55.
另外,在實行上述對於共有記憶體55之複製前,係亦可構成為將共有記憶體55之既存資料全部消除。 Further, before the copying of the shared memory 55 is performed, the existing data of the shared memory 55 may be completely eliminated.
另一方面,當在上述切換目標螢幕之各項目中存在有1以上之上述步驟S14的判定係成為NO之項目(資料取得對象項目)的情況時,係對於各資料取得對象項目之每一者,而實行藉由步驟S16、S17之處理來進行外部記憶體存取並取得資料,再藉由步驟S19之處理來將該取得資料儲存在共有記憶體55之相符記錄之資料64中的處理。另外,於此情況之外部記憶體存取目標,係並非為基於在上述步驟S11中所作成的記憶體清單90,而是構成為基於上述通訊記憶體57之裝置名稱72和位址73者,但是,係並不被限定於此例。 On the other hand, when there is a case where the determination of the above-described step S14 is one of the NO items (the data acquisition target item) in each of the items of the switching target screen, each of the data acquisition target items is used. Then, the external memory access is performed by the processing of steps S16 and S17, and the data is acquired, and the acquired data is stored in the data 64 of the matching record of the shared memory 55 by the processing of step S19. In addition, the external memory access target in this case is not based on the memory list 90 created in the above step S11, but is configured based on the device name 72 and the address 73 of the communication memory 57. However, it is not limited to this example.
當然的,當針對切換目標螢幕上之全部的項目而上述步驟S14之判定均係成為YES的情況時,係並不需要進行上述步驟S16、S17等之處理。又,當然的,此係為進行螢幕切換時的情形,在進行了切換之後,係成為定期性地實行針對現在顯示中之螢幕上的各項目而實行步驟S16、S17等的處理。 Of course, when the determination of the above step S14 is YES for all the items on the switching target screen, it is not necessary to perform the processing of the above steps S16, S17 and the like. Further, of course, this is a case where the screen switching is performed, and after the switching is performed, the processing of executing steps S16, S17, and the like for each item on the screen currently being displayed is periodically performed.
另外,在上述步驟S13之處理實行前,係亦 可進行將上述旗標設為旗標OFF的處理。進而,係亦可將上述記憶體清單90之全部資料設為完成處理狀態(藉由此來將步驟S23強制性地設為NO判定)。 In addition, before the processing of the above step S13 is carried out, The process of setting the above flag to the flag OFF can be performed. Further, all of the data in the memory list 90 may be set to the completion processing state (by which the step S23 is forcibly set to the NO determination).
另外,上述步驟S12之判定成為YES的情況時之處理(特別是步驟S13、S14、S15之處理),係並不被限定於上述之其中一例。例如,項目產生部51,雖係設為如同上述一般而因應於旗標ON來重新產生項目清單56,但是,係亦可設為伴隨於此而亦重新產生共有記憶體55。於此例之情況,例如在進行上述步驟S15之處理時,當共有記憶體55之資料項目61~63已成為與切換目標螢幕相對應者的情況時,係僅需要將資料74複製至資料64處即可(並不需要連其他的資料項目都一起複製)。 Further, the processing in the case where the determination in the above step S12 is YES (particularly, the processing in steps S13, S14, and S15) is not limited to the above-described example. For example, although the item generating unit 51 reproduces the item list 56 in response to the flag ON as described above, the shared memory 55 may be regenerated in association with this. In the case of this example, for example, when the processing of the above step S15 is performed, when the data items 61 to 63 of the shared memory 55 have become corresponding to the switching target screen, it is only necessary to copy the material 74 to the data 64. You can do it (you don't need to copy other data items together).
以上,係針對存在有螢幕切換指示的情況時之處理而作了說明。 The above description has been made on the case where there is a case where there is a screen switching instruction.
另一方面,當並不存在有螢幕切換指示的情況時(步驟S12,NO),係基於在上述步驟S11中所作成之記憶體清單90,來針對現在顯示中之螢幕上的各項目,而反覆進行步驟S16~S23之間的處理,直到步驟S23成為NO為止。 On the other hand, when there is no screen switching instruction (step S12, NO), based on the memory list 90 created in the above step S11, for each item on the screen currently displayed, The processing between steps S16 to S23 is repeated until step S23 becomes NO.
針對上述步驟S16,在上述記憶體讀入指令中,係包含有由上述記憶體清單90之裝置名稱91或位址92等所致的分配記憶體位址之資訊。連接機器4,係從此分配記憶體位址所代表之記憶區域而將資料讀出,並進行將此讀出資料作回送的回應處理。但是,係亦會有發生通 訊錯誤的情況,於此情況(步驟S18,YES),係在共有記憶體55之相符記錄的上述錯誤資訊65中儲存「錯誤」(步驟S22),並移行至步驟S23。 In the above-described step S16, the memory read command includes information on the allocated memory address caused by the device name 91 or the address 92 of the memory list 90. The connection machine 4 reads the data from the memory area represented by the memory address, and performs a response process for returning the read data. However, there will also be a pass. In the case of an error, in this case (YES in step S18), "error" is stored in the error information 65 of the coincidence record of the shared memory 55 (step S22), and the process proceeds to step S23.
通訊處理部54,當並不存在有通訊錯誤(步驟S18,NO)而從連接機器4正常地作了回應的情況時(步驟S17),係將在此回應中所包含之讀出資料,於上述共有記憶體55中而覆寫儲存在相當於處理對象記錄之記錄中的上述資料64之欄中(步驟S19)。但是,上述相當於處理對象記錄之記錄(稱作相符記錄),係亦會有並非存在於共有記憶體55處而是存在於通訊記憶體57中的情況。此種情況,係為上述處理對象記錄為藉由後述之步驟S31的處理而暫時性地被追加於記憶體清單90中的情況。 When there is no communication error (step S18, NO) and the communication device 4 normally responds (step S17), the communication processing unit 54 reads the data contained in the response. The shared memory 55 overwrites the data stored in the record corresponding to the record of the processing target (step S19). However, the above-described record (referred to as a coincidence record) corresponding to the record of the processing target may be present in the communication memory 57 instead of the shared memory 55. In this case, the processing target is temporarily added to the memory list 90 by the processing of step S31 which will be described later.
例如,當上述步驟S19被正常地實行了的情況時,係在步驟S20中而判定為無合成(步驟S20,NO),並移行至步驟S23處。另一方面,當上述相符記錄並不存在於共有記憶體55中的情況時,係判定為「有合成」(步驟S20,YES),並將藉由上述步驟S17所取得之讀出資料,儲存在通訊記憶體57中之相符記錄的資料74中(步驟S21)。之後,移行至步驟S23。 For example, when the above-described step S19 is normally performed, it is determined in step S20 that there is no synthesis (step S20, NO), and the process proceeds to step S23. On the other hand, when the coincidence record does not exist in the shared memory 55, it is determined to be "synthesized" (step S20, YES), and the read data obtained by the above step S17 is stored. It is recorded in the recorded data 74 in the communication memory 57 (step S21). Thereafter, the process proceeds to step S23.
另外,步驟S11之處理,在圖中,係成為於每次實行圖13等之處理時而會在最初被進行,但是,係並不被限定於此例。此係因為,只要共有記憶體55之內容並未改變(亦即是,只要並未被進行螢幕切換),則係 並沒有逐一作成記憶體清單90的必要性之故。當然的,當進行了螢幕切換的情況時,由於共有記憶體55之內容係被變更為與切換目標螢幕相對應者,因此係有必要實行步驟S11之處理。在此意義下,例如,當步驟S12成為了YES的情況時,係亦可設為在與此相對應之上述各種處理的實行結束之後,例如在步驟S23剛成為了NO之後等的時間點,實行步驟S11之處理。 In addition, the process of step S11 is performed at the beginning of the process of FIG. 13 every time, but it is not limited to this example. This is because, as long as the content of the shared memory 55 has not changed (that is, as long as it has not been screen switched), The necessity of the memory list 90 is not made one by one. Of course, when the screen switching is performed, since the content of the shared memory 55 is changed to correspond to the switching target screen, it is necessary to perform the processing of step S11. In this case, for example, when the step S12 is YES, it is also possible to set a time point after the execution of the above-described various processes corresponding thereto, for example, immediately after the NO is reached in step S23. The processing of step S11 is carried out.
當在記憶體清單90中殘留有未處理之記錄的情況時(步驟S23,YES),係回到步驟S12,若是已沒有未處理之記錄(步驟S23,NO),則在先前技術中,係成為結束處理,但是,在本處理中,只要存在有閒置時間(步驟S24,YES),則係實行關連於切換候補螢幕之下述的資料先行讀出處理。 When there is an unprocessed record remaining in the memory list 90 (YES in step S23), the process returns to step S12, and if there is no unprocessed record (step S23, NO), in the prior art, In the present process, if there is an idle time (YES in step S24), the following data read processing associated with the switching candidate screen is executed.
首先,最初,係基於通訊記憶體57而產生記憶體清單P2(步驟S26)。記憶體清單P2,其資料構造自身由於係為與上述記憶體清單90相同,因此在此係使用圖11(a)中所展示之各資料項目91~94來進行說明。 First, initially, the memory list P2 is generated based on the communication memory 57 (step S26). Since the memory list P2 has the same data structure as the memory list 90 described above, the data items 91 to 94 shown in Fig. 11(a) are used here for explanation.
在本例中,例如,係在每次進行本處理時,將記憶體清單P2之各記錄中的任意1個記錄作為處理對象,並實行資料先行讀出處理。關於此點,例如,係將未取得資料之項目作為優先性之處理對象。亦即是,當在記憶體清單P2之各記錄中存在有於資料93中而並不具備儲存資料之記錄的情況時(步驟S27,YES),係將此作為 處理對象記錄。當未取得資料之記錄存在有複數的情況時,例如係從上起而依序(依登記順序)作為處理對象記錄(步驟S28)。 In this example, for example, each time the present process is performed, any one of the records in the memory list P2 is used as the processing target, and the data read-out processing is executed. In this regard, for example, an item that has not obtained data is treated as a priority. That is, when there is a case where the records of the memory list P2 are present in the data 93 and there is no record of the stored data (step S27, YES), this is taken as Process object records. When there is a case where there is a plural number of records of the unobtained data, for example, from the top, the processing is sequentially performed (in the order of registration) as the processing target (step S28).
另一方面,當記憶體清單P2之全部記錄均係成為已完成資料取得的情況時(步驟S27,NO),係將最舊的資料之記錄作為處理對象記錄(步驟S29)。關於此,例如,係判別出通訊記憶體57之各記錄中的更新時間75之資料值為最小的記錄,並將對應於此記錄之記憶體清單P2的記錄作為處理對象記錄。 On the other hand, when all the records of the memory list P2 are the acquired data (NO in step S27), the record of the oldest data is recorded as the processing target (step S29). In this regard, for example, it is determined that the data value of the update time 75 in each record of the communication memory 57 is the smallest, and the record corresponding to the memory list P2 of this record is recorded as the processing target.
另外,亦可在記憶體清單P2中,設置將更新時間75作了複製的資料項目(設為未圖示之更新時間95)。於此情況,步驟S29之處理,係成為從記憶體清單P2之各記錄中,而將上述更新時間95之資料值為最小的記錄,作為處理對象記錄。 Further, in the memory list P2, a data item in which the update time 75 is copied (an update time 95 not shown) may be set. In this case, the processing of step S29 is to record from the respective records of the memory list P2, and the data value of the update time 95 is the smallest, and is recorded as the processing target.
又,針對上述處理對象記錄,係與上述之步驟S16、S17略相同地,而進行記憶體讀入指令之產生、送訊以及回應之受訊(步驟S32、S33)。而,當並不存在有通訊錯誤(步驟S34,NO)而正常地進行了回應之受訊的情況時,係將受訊資料覆寫儲存於通訊記憶體57之相符記錄的資料74中(步驟S35)。進而,此時,係將上述更新時間75更新(例如,將從啟動時起直到現在之時間點為止的經過時間作儲存)。另外,當存在有通訊錯誤的情況時(步驟S34,YES),係設為未處理(步驟S36)。 Further, the processing target record is subjected to the generation, transmission, and response of the memory read command in a slightly similar manner to the above-described steps S16 and S17 (steps S32 and S33). On the other hand, when there is no communication error (step S34, NO) and the response is normally received, the received data is overwritten in the data 74 of the matching record of the communication memory 57 (steps) S35). Further, at this time, the update time 75 is updated (for example, the elapsed time from the start of the time up to the current time point is stored). In addition, when there is a communication error (YES in step S34), it is set as unprocessed (step S36).
或者是,係亦可在藉由上述步驟S28或S29而決定了處理對象記錄之後,判定是否以將關連於該處理對象記錄之外部記憶體存取處理和關連於現在顯示中螢幕之外部記憶體存取處理進行合成為較理想(步驟S30)。此判定方法之具體例,由於係已作了說明,因此於此係省略。 Alternatively, after determining the processing target record by the above step S28 or S29, it is determined whether the external memory access processing related to the processing target record and the external memory connected to the current display screen are determined. It is preferable that the access processing is synthesized (step S30). The specific example of this determination method has been described because it has been described here.
當判定為係以進行合成為較理想的情況時(步驟S30,YES),係亦可構成為將處理對象記錄暫時性地合成(追加儲存)於上述記憶體清單90中(步驟S31)。於此情況,處理對象記錄係被從記憶體清單P2而刪除。 When it is determined that the combination is preferable (YES in step S30), the processing target record may be temporarily combined (added and stored) in the memory list 90 (step S31). In this case, the processing target record is deleted from the memory list P2.
關於被實行有上述步驟S31之處理的項目,係成為與從關連於現在顯示中之螢幕的分配記憶體區域而來之資料取得處理一同地而被進行有資料之先行讀取處理。又,藉由上述步驟S21之處理,由先行讀取處理所得到之取得資料,係成為被覆寫儲存於通訊記憶體57之相符記錄的資料74中。 The item to be subjected to the processing of the above-described step S31 is subjected to the advance reading processing of the material together with the data acquisition processing from the allocated memory area of the screen currently being displayed. Further, by the processing of the above-described step S21, the acquired data obtained by the preceding reading processing is overwritten with the data 74 stored in the matching record of the communication memory 57.
另外,圖13~圖16,係為針對與藉由上述之圖6的步驟S55中所說明之選擇方法中之基本性的選擇方法相對應之處理例而作展示者,而並不被限定於此例。亦可追加藉由步驟S55所說明了的其他之選擇方法,但是於此係省略其具體例。 13 to FIG. 16 are shown as examples of processing corresponding to the selection method of the basicity in the selection method described in step S55 of FIG. 6 described above, and are not limited thereto. This example. Other selection methods described in step S55 may be added, but specific examples thereof are omitted here.
圖17,係為項目處理部53之處理流程圖。 Fig. 17 is a flowchart showing the processing of the item processing unit 53.
如同上述一般,圖17之處理,係在項目處理排程部 52之管理下而循環實行。 As mentioned above, the processing of Figure 17 is in the project processing scheduling department. Under the management of 52, it is implemented cyclically.
在圖17之處理例中,項目處理部53,首先係實行項目清單56之初期化處理(步驟S41)。關於此,例如,係將項目清單56之全部記錄的完成處理旗標87設為「未處理」。之後,係反覆實行步驟S42~S47之處理,直到後述之步驟S47成為NO為止。 In the processing example of FIG. 17, the item processing unit 53 first performs the initialization processing of the item list 56 (step S41). In this regard, for example, the completion processing flag 87 of all the records of the item list 56 is set to "unprocessed". Thereafter, the processing of steps S42 to S47 is repeatedly executed until step S47 described later becomes NO.
亦即是,係將在項目清單56中而旗標87為「未處理」之記錄中的任意之記錄作為處理對象記錄,並參考該處理對象記錄而取得其之裝置名稱84、位址85等(步驟S42),再使用此些來對於共有記憶體55之相符記錄進行檢索並取得其資料(步驟S43)。亦即是,例如,其之裝置名稱62以及位址63為與上述裝置名稱84以及位址85相同的記錄,係為上述相符記錄。之後,將相符記錄之資料64和錯誤資訊65,作為記憶體資訊100而取得(步驟S43)。 In other words, any record in the item list 56 and the flag 87 is "unprocessed" is recorded as a processing target, and the device name 84, address 85, etc. obtained by referring to the processing target record are obtained. (Step S42), the matching record of the shared memory 55 is searched for and the data is acquired (step S43). That is, for example, the device name 62 and the address 63 are the same records as the device name 84 and the address 85 described above, and are the above-described matching records. Thereafter, the matching recorded data 64 and the error information 65 are obtained as the memory information 100 (step S43).
另外,記憶體資訊100,係由圖11(b)中所示之資料101、錯誤資訊102所成,此些係為上述所取得了的資料64和錯誤資訊65。 In addition, the memory information 100 is formed by the data 101 and the error information 102 shown in FIG. 11(b), and these are the obtained data 64 and error information 65.
而,若是錯誤資訊102並非為「錯誤」(步驟S44,NO),則係進行使用有資料101和上述處理對象記錄之資訊(項目之畫像和座標、尺寸等)的通常之項目描繪處理(例如在RAM13上而展開)(步驟S45)。之後,將上述處理對象記錄之完成處理旗標87設為旗標ON(完成處理)(步驟S46)。 On the other hand, if the error information 102 is not "error" (NO in step S44), the normal item drawing processing (for example, using the data 101 and the information of the processing target (the image, the coordinates, the size, etc.) of the processing target is performed (for example, It is expanded on the RAM 13) (step S45). Thereafter, the completion processing flag 87 of the processing target record is set to flag ON (complete processing) (step S46).
另一方面,當錯誤資訊102為「錯誤」的情況時(步驟S44,YES),係並不實行上述步驟S45之處理地,而直接實行上述步驟S46之處理。 On the other hand, when the error information 102 is "error" (YES in step S44), the processing of the above-described step S46 is directly executed without performing the processing of the above-described step S45.
之後,當殘留有未處理之記錄的情況時(步驟S47,YES),係回到步驟S42。若是針對全部記錄而實行了處理(步驟S47,NO),則結束本處理。 Thereafter, when there is an unprocessed record remaining (YES in step S47), the process returns to step S42. If the processing is performed for all the records (step S47, NO), the processing ends.
上述項目處理部53之處理自身,係可為與先前技術略相同。另外,在先前技術中,當於步驟S43中並不存在有資料64的情況時,步驟S44之判定係成為YES,因此係成為並不進行項目描繪。故而,例如當在剛進行了螢幕切換之後而在共有記憶體55中尚未儲存有任何之資料的情況時,直到結束了從分配記憶體區域而取得資料並儲存在共有記憶體55中之處理為止,係成為不會進行項目描繪。亦即是,係成為在直到上述處理結束為止的期間中均不會進行切換目標之螢幕的顯示,而成為在螢幕切換中會耗費時間。在本手法中,係能夠解決此種先前技術之問題。 The processing of the item processing unit 53 described above may be slightly the same as the prior art. Further, in the prior art, when there is no material 64 in the step S43, the determination in the step S44 is YES, so that the item drawing is not performed. Therefore, for example, when any data has not been stored in the shared memory 55 immediately after the screen switching, the processing of acquiring the data from the allocated memory area and storing it in the shared memory 55 is completed. , the system will not be painted. In other words, it is not necessary to display the screen of the switching target until the end of the above-described processing, and it takes time to switch between screens. In this method, it is possible to solve the problems of this prior art.
於圖18中,對於各處理部之處理時間的其中一例作展示。 In Fig. 18, an example of the processing time of each processing unit is shown.
項目處理排程部52,係如同上述一般,循環性地(圖示之現在畫面的項目處理時間;顯示循環)啟動項目處理部53,並使其實行例如圖17中所示之處理。 The item processing schedule unit 52 starts the item processing unit 53 cyclically (the item processing time of the current screen shown; the display loop) as described above, and executes the processing shown in Fig. 17, for example.
各通訊處理部54,例如,基本上,係只要在從項目處理部53於任意之時序處而結束了圖17之處理的 實行後起直到下一次之實行圖17之處理為止的期間中,而結束關連於現在顯示中螢幕之資料取得處理(下一個的外部記憶體存取處理)之實行即可。在先前技術中,由於多係以使各通訊處理部54之處理具有餘裕地來實行的方式而進行設定,因此產生如同圖示一般之閒置時間的可能性係為高。 For example, basically, each communication processing unit 54 ends the processing of FIG. 17 at an arbitrary timing from the item processing unit 53. In the period from the start of the execution until the next processing of FIG. 17 is performed, the execution of the data acquisition processing (the next external memory access processing) related to the current display screen may be completed. In the prior art, since the setting is performed in such a manner that the processing of each communication processing unit 54 is performed with a margin, the possibility of occurrence of an idle time as shown in the figure is high.
如此這般,針對通訊處理部54,係在各顯示循環之每一者中,產生有既定之通訊處理(對於現在顯示中之螢幕上的各項目之每一者,而取得其之分配記憶體區域的儲存資料並記憶在共有記憶體55中之處理)的實行時間、和閒置時間。因此,在本手法中,係利用此閒置時間,來實行上述資料先行讀取處理。 In this manner, the communication processing unit 54 generates a predetermined communication process for each of the display cycles (for each of the items on the screen currently displayed, the allocated memory is obtained. The execution time and idle time of the area where the data is stored and memorized in the shared memory 55). Therefore, in this method, the idle time is used to perform the above-mentioned data read processing.
如同上述一般,若依據本例之可編程顯示器1,則係能夠迅速地進行在可編程顯示器中之螢幕切換。 As described above, according to the programmable display 1 of this example, it is possible to quickly perform screen switching in the programmable display.
1‧‧‧可編程顯示器 1‧‧‧Programmable display
41‧‧‧第1資料取得部 41‧‧‧First Data Acquisition Department
42‧‧‧畫面顯示部 42‧‧‧ Screen display
43‧‧‧第2資料取得部 43‧‧‧Second Data Acquisition Department
44‧‧‧螢幕切換處理部 44‧‧‧Screen Switching Processing Department
Claims (11)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2013/054523 WO2014128918A1 (en) | 2013-02-22 | 2013-02-22 | Programmable display and program for same |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201447727A true TW201447727A (en) | 2014-12-16 |
TWI549049B TWI549049B (en) | 2016-09-11 |
Family
ID=51390745
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW103104557A TWI549049B (en) | 2013-02-22 | 2014-02-12 | Programmable displays and their programs |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP6033394B2 (en) |
CN (1) | CN104995590B (en) |
TW (1) | TWI549049B (en) |
WO (1) | WO2014128918A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI585556B (en) * | 2015-01-28 | 2017-06-01 | 三菱電機股份有限公司 | Intelligent functional module and programmable logic controller system |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6474253B2 (en) * | 2014-12-26 | 2019-02-27 | 株式会社キーエンス | Display system |
WO2020261432A1 (en) * | 2019-06-26 | 2020-12-30 | 三菱電機株式会社 | Programmable display and data management method |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6429974A (en) * | 1987-07-24 | 1989-01-31 | Nec Corp | Document displaying method |
JPH11212628A (en) * | 1998-01-28 | 1999-08-06 | Omron Corp | Display device for control system |
JP2002259013A (en) * | 2001-03-02 | 2002-09-13 | Digital Electronics Corp | Image display method |
JP2006331278A (en) * | 2005-05-30 | 2006-12-07 | Digital Electronics Corp | Programmable display, control program, storage medium recording the program, screen forming device, screen forming program, and storage medium recording the program |
JP4476223B2 (en) * | 2006-01-17 | 2010-06-09 | 株式会社キーエンス | Screen data creation device, screen data editing method, and screen data editing program |
JP4813392B2 (en) * | 2007-02-06 | 2011-11-09 | 三菱電機株式会社 | Programmable display |
TW200917802A (en) * | 2007-10-15 | 2009-04-16 | Chunghwa Telecom Co Ltd | Real-time interactive menu system for programmable mobile device |
WO2013140496A1 (en) * | 2012-03-19 | 2013-09-26 | 三菱電機株式会社 | Device for preparing screen data for programmable display unit |
-
2013
- 2013-02-22 WO PCT/JP2013/054523 patent/WO2014128918A1/en active Application Filing
- 2013-02-22 CN CN201380069714.1A patent/CN104995590B/en active Active
- 2013-02-22 JP JP2015501186A patent/JP6033394B2/en active Active
-
2014
- 2014-02-12 TW TW103104557A patent/TWI549049B/en active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI585556B (en) * | 2015-01-28 | 2017-06-01 | 三菱電機股份有限公司 | Intelligent functional module and programmable logic controller system |
Also Published As
Publication number | Publication date |
---|---|
CN104995590A (en) | 2015-10-21 |
JPWO2014128918A1 (en) | 2017-02-02 |
WO2014128918A1 (en) | 2014-08-28 |
TWI549049B (en) | 2016-09-11 |
CN104995590B (en) | 2018-11-09 |
JP6033394B2 (en) | 2016-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6006399B2 (en) | Programmable display, its program | |
KR101700553B1 (en) | System development device, method, and program | |
TWI549049B (en) | Programmable displays and their programs | |
JP2017204120A (en) | Information processing device, installer and printer driver | |
TWI533098B (en) | Programmable display, programmable controller system, program | |
JP2005352464A5 (en) | ||
WO2015059816A1 (en) | Programmable display device, and program | |
JP5883936B2 (en) | Programmable controller system | |
CN105930433A (en) | Photo album processing method and apparatus | |
TWI582555B (en) | A programmable controller system, a programmable display, a support device, a program | |
KR20160049568A (en) | System and method for comparing and managing source code | |
JP6095743B2 (en) | Support device, program | |
JP5884925B2 (en) | Management support apparatus, management support method, and management support program | |
TWI584090B (en) | A programmable controller system, a programmable display, a drawing editing device, a recording medium recording a program | |
JP2016212916A (en) | Programmable display unit and program | |
JP2009048425A (en) | Project management system, project management device, project management method, and project management program | |
CN109358885A (en) | A kind of update method of start-up picture, system, device and readable storage medium storing program for executing | |
WO2015059818A1 (en) | Programmable display device, and program | |
JP5682452B2 (en) | CHANGE MANAGEMENT SUPPORT DEVICE, CHANGE MANAGEMENT SUPPORT METHOD, AND CHANGE MANAGEMENT SUPPORT PROGRAM | |
JP2008234379A (en) | Software generation device and software generation method | |
JP3253133B2 (en) | Monitoring device and monitoring method for programmable controller | |
JP2005148978A (en) | Hard copy support device and hard copy support program | |
JP2015079398A (en) | Drawing editor device, program for the same | |
JP5279767B2 (en) | General program | |
JP2008011263A (en) | Photographing device, and its control method, program, and storage medium |