TWI612405B - Control device and control system - Google Patents

Control device and control system Download PDF

Info

Publication number
TWI612405B
TWI612405B TW105104896A TW105104896A TWI612405B TW I612405 B TWI612405 B TW I612405B TW 105104896 A TW105104896 A TW 105104896A TW 105104896 A TW105104896 A TW 105104896A TW I612405 B TWI612405 B TW I612405B
Authority
TW
Taiwan
Prior art keywords
source
control
data
binary
memory
Prior art date
Application number
TW105104896A
Other languages
Chinese (zh)
Other versions
TW201640240A (en
Inventor
加納敏之
臼井善夫
Original Assignee
三菱電機股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機股份有限公司 filed Critical 三菱電機股份有限公司
Publication of TW201640240A publication Critical patent/TW201640240A/en
Application granted granted Critical
Publication of TWI612405B publication Critical patent/TWI612405B/en

Links

Classifications

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

Abstract

本發明提供一種控制裝置,該控制裝置係具備:記憶部,係記憶包含控制程式及執行控制程式時所參考的資訊之來源專案資料、以及將來源專案資料予以編譯而成之二進位專案資料;記憶體,係在執行控制程式時被載入有二進位專案資料;二進位改寫部,係根據接收之資料,將記憶於記憶部之二進位專案資料、以及被載入於記憶體之二進位專案資料予以改寫;以及來源改寫部,係根據接收之資料,將記憶於記憶部之來源專案資料予以改寫。 The present invention provides a control device, which is provided with a memory unit for memorizing the source project data of the information referenced when the control program and the control program are executed, and the binary project data compiled from the source project data; The memory is loaded with binary data when executing the control program; the binary rewriting department stores the binary data stored in the memory and the binary input in the memory according to the received data. The project information is rewritten; and the source rewriting department rewrites the source project data memorized in the memory department based on the received information.

Description

控制裝置及控制系統 Control device and control system

本發明係有關於一種控制產業機械之控制裝置以及控制系統。 The present invention relates to a control device and a control system for controlling industrial machinery.

為了控制產業機械而使用控制裝置。控制裝置係例示有可程式控制器(JIS B 3502:2011,programmable controllers(PLC))、C語言控制器(controller)、運動(motion)控制器、或反向器(inverter,依中華民國國家教育研究院「雙語詞彙、學術名詞暨辭書資訊網」稱為反向器,亦有稱為逆變器或變頻器之情形)。 Control devices are used to control industrial machinery. The control device is exemplified by a programmable controller (JIS B 3502: 2011, programmable controllers (PLC)), a C language controller (controller), a motion controller, or an inverter (in accordance with the National Education of the Republic of China). The Institute's "Bilingual Vocabulary, Academic Nouns and Dictionary Information Network" is called an inverter, also known as an inverter or a frequency converter.

包含以控制裝置所執行之控制程式(program)、以及執行控制程式時所參考的資訊之資料(data)係稱為專案(project)資料。執行控制程式時所參考的資訊係例示有:在控制演算所使用之數值的參數(parameter)、表示規定控制裝置的記憶體(memory)內的作業區域之裝置(device)記憶體或控制裝置和產業機械的連接狀態之連接資訊。 The data contained in the control program executed by the control device and the information referred to when the control program is executed is referred to as project data. The information to be referred to when executing the control program is exemplified by a parameter for controlling the numerical value used in the calculation, a device memory or a control device indicating a work area in a memory of a predetermined control device. Connection information of the connection status of industrial machinery.

關於專案資料,係藉由在個人電腦(personal computer)上執行工程工具(engineering tool)程式而作成來 源(source,又稱原始碼),編譯(compile)為二進位(binary)後傳送至控制裝置。 The project information is created by executing an engineering tool program on a personal computer. The source (source, also known as the source code) is compiled into a binary and transmitted to the control device.

相關技術上,專利文獻1係記載著在程式編寫(programming)裝置上作成應用程式(application)的來源碼,且將其編譯而產生連接資訊表格(table)而下載(download)於反向器之技術(發明摘要)。 Related Art, Patent Document 1 describes that a source code of an application is created on a programming device, and is compiled to generate a connection information table and downloaded to an inverter. Technology (Abstract of Invention).

執行控制程式時所參考的資訊係會有在使用工程工具程式而作成時無法決定之情形。例如,在比例積分微分(PID)控制演算所使用之比例(P)增益(gain)、積分(I)時間或微分(D)時間係藉由使產業機械在動作狀態下所決定。如上述之參數在專案資料的來源作成時係記述暫定的初始值。 The information that is referenced when executing the control program may not be determined when the engineering tool is used. For example, the ratio (P) gain, integral (I) time, or derivative (D) time used in the proportional integral derivative (PID) control algorithm is determined by operating the industrial machine in an operating state. The above-mentioned parameters describe the tentative initial value when the source of the project data is created.

如此,由於執行控制程式時所參考的資訊係藉由產業機械動作而決定,故記述於個人電腦內的專案資料的來源之初始值和控制裝置內所改寫之決定值不相同。因此,之後使用工程工具程式而進行專案資料的來源之編輯時,由於個人電腦內的專案資料的來源係記述初始值,故在控制裝置內所改寫後之決定值會喪失。 As described above, since the information referred to when the control program is executed is determined by the industrial machine operation, the initial value of the source of the project data described in the personal computer is different from the determined value of the rewriting in the control device. Therefore, when the source of the project data is edited using the engineering tool program, since the source of the project data in the personal computer is the initial value, the decision value after the rewriting in the control device is lost.

專利文獻2係記載PLC支援裝置20,其係具備:調整手段205(段落0026至段落0030),係執行微調整PLC1的參數之調整(tuning)操作;以及備份手段206(段落0033至段落0037),係將暫存(buffer)於記憶體空間203的控制資料量予以備份(backup)。 Patent Document 2 describes a PLC support device 20 including an adjustment means 205 (paragraphs 0026 to 0030), a tuning operation for performing parameter adjustment of the fine adjustment PLC1, and a backup means 206 (paragraphs 0033 to 0037). The backup data amount buffered in the memory space 203 is backed up.

[先行技術文獻] [Advanced technical literature]

[專利文獻] [Patent Literature]

[專利文獻1]國際公開第2006/112324號 [Patent Document 1] International Publication No. 2006/112324

[專利文獻2]特開2004-178157號公報 [Patent Document 2] JP-A-2004-178157

專利文獻2之技術係記載了控制資料量之備份,但並未記載參數之備份。此外,在專利文獻2之技術中,在操作PLC1而調整了參數時、以及在和PLC支援裝置20不同的裝置調整了PLC1的參數時,PLC1內的參數和PLC支援裝置20內的參數會不相同。亦即,在PLC1內所被改寫後之參數係喪失。 The technique of Patent Document 2 describes the backup of the amount of control data, but does not describe the backup of the parameters. Further, in the technique of Patent Document 2, when the parameters are adjusted when the PLC 1 is operated and when the parameters of the PLC 1 are adjusted by the device different from the PLC support device 20, the parameters in the PLC 1 and the parameters in the PLC support device 20 are not the same. That is, the parameters after being rewritten in PLC1 are lost.

本發明係有鑑於上述課題而創作,其目的在於獲得能抑制改寫後的資料喪失之控制裝置。 The present invention has been made in view of the above problems, and an object thereof is to provide a control device capable of suppressing loss of data after rewriting.

本發明係具備記憶部係記憶包含控制程式及執行控制程式時所參考的資訊之來源專案資料、以及將來源專案資料予以編譯而成之二進位專案資料。本發明係具備:記憶體,係在執行控制程式時被載入有二進位專案資料;二進位改寫部,係根據接收之資料,將記憶於記憶部之二進位專案資料、以及被載入於記憶體之二進位專案資料予以改寫;以及來源改寫部,係將記憶於記憶部之來源專案資料予以改寫。 The present invention is provided with a source program material for memorizing the information contained in the control program and the control program, and a binary project data compiled from the source project data. The invention has a memory that is loaded with binary project data when executing the control program, and a binary rewriting unit that stores the data of the binary data stored in the memory unit according to the received data, and is loaded in The memory of the second-entry project data is rewritten; and the source rewriting department rewrites the source project data memorized in the memory department.

本發明之控制裝置係能達成能抑制喪失改寫的資料之功效。 The control device of the present invention is capable of achieving the effect of suppressing the loss of rewritten data.

1‧‧‧控制系統 1‧‧‧Control system

2‧‧‧控制程式作成裝置 2‧‧‧Control program making device

3‧‧‧可程式顯示器 3‧‧‧Programmable display

4‧‧‧上位控制裝置 4‧‧‧Upper control device

5、5A‧‧‧控制裝置 5, 5A‧‧‧ control device

5a‧‧‧主基板 5a‧‧‧Main substrate

5a1‧‧‧CPU 5a1‧‧‧CPU

5a1a‧‧‧二進位改寫部 5a1a‧‧‧Two-digit rewriting department

5a1b‧‧‧來源改寫部 5a1b‧‧‧Source Rewriting Department

5a1b1‧‧‧同值化必要性判定部 5a1b1‧‧‧Assessment necessity judgment department

5a1b2‧‧‧緩衝寫入部 5a1b2‧‧‧Buffer writing section

5a1b3‧‧‧來源寫入部 5a1b3‧‧‧Source Writer

5a2‧‧‧記憶體 5a2‧‧‧ memory

5a2a、5a7a1、24b1‧‧‧二進位控制程式 5a2a, 5a7a1, 24b1‧‧‧ binary control program

5a2b、5a7a2、24b2‧‧‧二進位控制參數 5a2b, 5a7a2, 24b2‧‧‧ binary control parameters

5a2c、5a7a3、24b3‧‧‧二進位裝置記憶體 5a2c, 5a7a3, 24b3‧‧‧ binary device memory

5a2d‧‧‧緩衝器 5a2d‧‧‧buffer

5a3‧‧‧計時器 5a3‧‧‧Timer

5a4‧‧‧外部記憶槽 5a4‧‧‧External memory slot

5a5‧‧‧通信介面 5a5‧‧‧Communication interface

5a6‧‧‧匯流排介面 5a6‧‧‧ bus interface

5a7‧‧‧內部記憶部 5a7‧‧‧Internal Memory

5a7a、24b‧‧‧二進位專案資料 5a7a, 24b‧‧‧ binary data

5b、5c‧‧‧副基板 5b, 5c‧‧‧subsubstrate

6、7‧‧‧機械 6, 7‧‧‧ Machinery

8‧‧‧外部記憶部 8‧‧‧External Memory Department

8a、24a‧‧‧來源專案資料 8a, 24a‧‧‧ source project information

8a1、24a1‧‧‧來源控制程式 8a1, 24a1‧‧‧ source control program

8a2、24a2‧‧‧來源控制參數 8a2, 24a2‧‧‧ source control parameters

8a3、24a3‧‧‧來源裝置記憶體 8a3, 24a3‧‧‧ source device memory

8a4、24a4‧‧‧同值化必要性清單 8a4, 24a4‧‧‧ List of Necessity Necessities

9‧‧‧系統電源 9‧‧‧System Power Supply

10‧‧‧UPS(不中斷電力供應) 10‧‧‧UPS (without interruption of power supply)

21‧‧‧CPU(中央處理單元) 21‧‧‧CPU (Central Processing Unit)

21a‧‧‧工程工具部 21a‧‧‧Engineering Tools Department

21a1‧‧‧來源專案資料編輯部 21a1‧‧‧Source Project Information Editorial Department

21a2‧‧‧編譯部 21a2‧‧‧Compilation Department

22‧‧‧RAM(隨機存取記憶體) 22‧‧‧RAM (random access memory)

23‧‧‧ROM(唯讀記憶體) 23‧‧‧ROM (read only memory)

24‧‧‧記憶部 24‧‧‧Memory Department

24a1a、24a1b‧‧‧功能區塊 24a1a, 24a1b‧‧‧ functional blocks

25‧‧‧輸入部 25‧‧‧ Input Department

26‧‧‧顯示部 26‧‧‧Display Department

27‧‧‧通信介面 27‧‧‧Communication interface

31‧‧‧參數設定畫面 31‧‧‧ parameter setting screen

31a至31u‧‧‧輸入欄 31a to 31u‧‧‧ input field

B1‧‧‧內部匯流排 B1‧‧‧Internal busbar

B2‧‧‧擴張匯流排 B2‧‧‧Expansion bus

N‧‧‧網路 N‧‧‧Network

第1圖係顯示使用實施形態1的控制裝置之控制系統的構成之圖。 Fig. 1 is a view showing the configuration of a control system using the control device of the first embodiment.

第2圖係顯示實施形態1的控制程式作成裝置之硬體(hardware)的構成之圖。 Fig. 2 is a view showing the configuration of hardware of the control program creation device of the first embodiment.

第3圖係顯示實施形態1的控制程式作成裝置之功能區塊(block)圖。 Fig. 3 is a block diagram showing the function of the control program creation device of the first embodiment.

第4圖係顯示實施形態1的來源控制程式之例之圖。 Fig. 4 is a view showing an example of a source control program of the first embodiment.

第5圖係顯示實施形態1的來源控制參數之例之圖。 Fig. 5 is a view showing an example of source control parameters of the first embodiment.

第6圖係顯示實施形態1的來源裝置記憶體之例之圖。 Fig. 6 is a view showing an example of the source device memory of the first embodiment.

第7圖係顯示實施形態1的同值化必要性清單(list)之例之圖。 Fig. 7 is a view showing an example of the list of equivalence necessity of the first embodiment.

第8圖係顯示實施形態1的參數設定畫面之例之圖。 Fig. 8 is a view showing an example of a parameter setting screen of the first embodiment.

第9圖係顯示實施形態1的控制裝置之硬體構成之圖。 Fig. 9 is a view showing the hardware configuration of the control device of the first embodiment.

第10圖係顯示實施形態1的控制裝置之功能區塊圖。 Fig. 10 is a functional block diagram showing the control device of the first embodiment.

第11圖係顯示實施形態1的二進位改寫處理之流程圖(flow chart)。 Fig. 11 is a flow chart showing the binary rewriting process of the first embodiment.

第12圖係顯示實施形態1的控制裝置之來源寫入處理之流程圖。 Fig. 12 is a flow chart showing the source write processing of the control device of the first embodiment.

第13圖係顯示實施形態1之來源改寫處理之流程圖。 Fig. 13 is a flow chart showing the source rewriting process of the first embodiment.

第14圖係顯示實施形態1的控制程式作成裝置之專案 資料編輯處理之流程圖。 Figure 14 is a view showing a control program creation device of the first embodiment Flow chart of data editing process.

第15圖係顯示實施形態2的控制裝置之功能區塊圖。 Fig. 15 is a block diagram showing the function of the control device of the second embodiment.

第16圖係顯示實施形態2的控制裝置之來源改寫處理之流程圖。 Fig. 16 is a flow chart showing the source rewriting process of the control device of the second embodiment.

以下,根據圖式詳細說明本發明之控制裝置及控制系統。又,本發明不受本實施形態所限定。 Hereinafter, the control device and the control system of the present invention will be described in detail based on the drawings. Further, the present invention is not limited to the embodiment.

實施形態1 Embodiment 1

第1圖係顯示使用實施形態1的控制裝置之控制系統的構成之圖。控制系統1係包含:控制程式作成裝置2、可程式顯示器(JIS B 3551:2012、programmable display)3、上位控制裝置4、控制裝置5、機械6、及機械7。 Fig. 1 is a view showing the configuration of a control system using the control device of the first embodiment. The control system 1 includes a control program creation device 2, a programmable display (JIS B 3551:2012, programmable display) 3, a higher-level control device 4, a control device 5, a machine 6, and a machine 7.

控制程式作成裝置2、可程式顯示器3、上位控制裝置4、以及控制裝置5係經由網路(network)N而連接。網路N係例示有LAN(Local Area Network,區域網路)、或網際網路(internet)。 The control program creation device 2, the programmable display device 3, the upper control device 4, and the control device 5 are connected via a network N. The network N is exemplified by a LAN (Local Area Network) or an Internet (internet).

控制裝置5係控制機械6及7。控制裝置5係例示有可程式控制器、C語言控制器、運動控制器或反向器。 The control device 5 controls the machines 6 and 7. The control device 5 is exemplified by a programmable controller, a C language controller, a motion controller, or an inverter.

控制程式作成裝置2係作成包含以控制裝置5所執行的控制程式及執行控制程式時所參考的資訊之專案資料。執行控制程式時所參考的資訊係例示有屬於在控制演算所使用之數值的參數、表示規定控制裝置的記憶體 內的作業區域之裝置記憶體或控制裝置和產業機械的連接狀態之連接資訊。 The control program creation device 2 is configured to include project data that is controlled by the control device 5 and information that is referred to when the control program is executed. The information to be referred to when executing the control program is exemplified by a parameter belonging to a numerical value used in the control calculation, and a memory indicating a prescribed control device. Connection information of the connection state of the device memory or control device and the industrial machine in the work area inside.

可程式顯示器3係監視控制裝置5內之資料,並且變更執行控制裝置5內之控制程式時所參考的資訊。 The programmable display 3 monitors the data in the control device 5 and changes the information referred to when the control program in the control device 5 is executed.

上位控制裝置4係統合整體製造線(line)或整體工廠之電腦(computer),且控制控制裝置5。 The upper control device 4 is integrated with a whole manufacturing line or a computer of the entire factory, and controls the control device 5.

第2圖係顯示實施形態1的控制程式作成裝置之硬體的構成之圖。實施形態1的控制程式作成裝置2係電腦。控制程式作成裝置2係包含:CPU(Central Processing Unit,中央處理單元)21、RAM(Random Access Memory,隨機存取記憶體)22、ROM(Read Only Memory,唯讀記憶體)23、記憶部24、輸入部25、顯示部26、以及通信介面(interface)27。 Fig. 2 is a view showing the configuration of the hardware of the control program creation device of the first embodiment. The control program creation device 2 of the first embodiment is a computer. The control program creation device 2 includes a CPU (Central Processing Unit) 21, a RAM (Random Access Memory) 22, a ROM (Read Only Memory) 23, and a storage unit 24. The input unit 25, the display unit 26, and a communication interface (interface) 27.

CPU 21係在將RAM 22作為作業區域而使用的狀態,執行記憶於ROM 23、以及記憶部24的程式。記憶於ROM 23的程式係例示有BIOS(Basic Input/Output System,基本輸出入系統)或UEFI(Unified Extensible Firmware Interface,可延伸韌體介面)。記憶於記憶部24的程式係例示有操作系統(operating system)程式、以及工程工具程式。記憶部24係例示有SSD(Solid State Drive,依中華民國國家教育研究院「雙語詞彙、學術名詞暨辭書資訊網」稱為固體狀態驅動機,亦有稱為固態磁碟之情形)或HDD(Hard Disk Drive;硬碟機)。 The CPU 21 executes a program stored in the ROM 23 and the storage unit 24 in a state where the RAM 22 is used as a work area. The program stored in the ROM 23 is exemplified by a BIOS (Basic Input/Output System) or a UEFI (Unified Extensible Firmware Interface). The program stored in the memory unit 24 is exemplified by an operating system program and an engineering tool program. The memory unit 24 is exemplified by SSD (Solid State Drive, according to the "National Education Institute of the Republic of China", "Bilingual Vocabulary, Academic Nouns and Dictionary Information Network" is called a solid state drive machine, also known as a solid state disk) or HDD ( Hard Disk Drive; hard disk drive).

輸入部25係接受來自作業者的操作輸入。輸 入部25係例示有鍵盤(keyboard)或滑鼠(mouse)。顯示部26係顯示文字及畫像。顯示部26係例示有液晶顯示裝置。通信介面27係經由網路N而和控制裝置5進行通信。 The input unit 25 accepts an operation input from an operator. lose The entry 25 is exemplified by a keyboard or a mouse. The display unit 26 displays characters and images. The display unit 26 is exemplified by a liquid crystal display device. The communication interface 27 communicates with the control device 5 via the network N.

第3圖係顯示實施形態1的控制程式作成裝置之功能區塊圖。CPU 21係執行記憶於記憶部24的工程工具程式。藉此,能實現工程工具部21a,其係包含:來源專案資料編輯部21a1,係根據使用者(user)的操作輸入而作成或編輯來源專案資料24a;以及編譯部21a2,係將來源專案資料24a予以編譯而作成二進位專案資料24b。 Fig. 3 is a functional block diagram showing a control program creation device of the first embodiment. The CPU 21 executes an engineering tool program stored in the storage unit 24. Thereby, the engineering tool part 21a can be realized, which comprises: the source project material editing unit 21a1, which creates or edits the source project material 24a according to the operation input of the user; and the compiling section 21a2 which is the source project material 24a is compiled to create a binary project data 24b.

來源專案資料24a係包含來源控制程式24a1、來源控制參數24a2、來源裝置記憶體24a3、以及同值化必要性清單24a4。 The source project data 24a includes a source control program 24a1, a source control parameter 24a2, a source device memory 24a3, and a homogeneity necessity list 24a4.

又,來源專案資料24a亦可包含其他的資料。其他的資料係例示有表示控制裝置5和機械6的連接、以及控制裝置5和機械7的連接之連接資訊。 Also, the source project data 24a may also contain other materials. Other information is exemplified by connection information indicating the connection of the control device 5 and the machine 6, and the connection of the control device 5 and the machine 7.

第4圖係顯示實施形態1的來源控制程式之例之圖。實施形態1中,來源控制程式24a1係以功能區塊圖(function block diagram)語言(IEC 61131-3、JIS B 3503)而予以記述。 Fig. 4 is a view showing an example of a source control program of the first embodiment. In the first embodiment, the source control program 24a1 is described in a function block diagram language (IEC 61131-3, JIS B 3503).

又,來源控制程式24a1所記述的語言並不限定於功能區塊圖語言。記述來源控制程式24a1之其他的語言係例示有階梯(ladder)語言、順序(sequential)功能表(chart)語言、結構化文字(structured text)語言或指令(instruction)清單語言(IEC 61131-3、IIS B 3503)。 Further, the language described in the source control program 24a1 is not limited to the functional block diagram language. Other languages in which the source control program 24a1 is described are exemplified by a ladder language, a sequential function language, a structured text language, or an instruction list language (IEC 61131-3, IIS B 3503).

來源控制程式24a1係包含功能區塊24a1a、以及24a1b。功能區塊24a1a係預先準備給工程工具程式的比例積分微分(PID)控制區塊,且對輸入X1進行比例(P)、積分(I)、以及微分(D)控制而將輸出Y1予以輸出。 The source control program 24a1 includes functional blocks 24a1a and 24a1b. The function block 24a1a is prepared in advance for the proportional integral derivative (PID) control block of the engineering tool program, and performs proportional (P), integral (I), and differential (D) control on the input X1 to output the output Y1.

功能區塊24a1b係由使用者所作成之控制區塊,對輸入X2及X3進行Y2=A˙X2+B˙X3+C之演算而將輸出Y2予以輸出。 The function block 24a1b is a control block made by the user, and Y2=A ̇X2+B ̇X3+C is calculated for the inputs X2 and X3, and the output Y2 is output.

第5圖係顯示實施形態1的來源控制參數之例之圖。來源控制參數24a2係包含控制參數名稱的項目、以及初始值的項目。 Fig. 5 is a view showing an example of source control parameters of the first embodiment. The source control parameter 24a2 is an item including an item of a control parameter name and an initial value.

來源控制參數24a2之複數列(row)24a2a係在功能區塊24a1a的控制演算時所參考的參數,複數列24a2b係在功能區塊24a1b的控制演算時所參考的參數。 The multi-row row 24a2a of the source control parameter 24a2 is a parameter referred to in the control calculation of the functional block 24a1a, and the complex column 24a2b is a parameter referred to in the control calculation of the functional block 24a1b.

複數列24a2a係於參數名稱「反動作‧正動作」設定有初始值「反動作」,於參數名稱「控制週期」設定有初始值「1.0」,於參數名稱「比例增益」設定有初始值「1.2」,於參數名稱「積分時間」設定有初始值「12.3」,於參數名稱「微分時間」設定有初始值「3.2」,於參數名稱「SV上限值」設定有初始值「100.0」,於參數名稱「SV下限值」設定有初始值「0.0」。 The plural column 24a2a is set with the initial value "reverse action" in the parameter name "reverse action ‧ positive action", the initial value "1.0" is set in the parameter name "control cycle", and the initial value is set in the parameter name "proportional gain". 1.2", the initial value "12.3" is set in the parameter name "integration time", the initial value "3.2" is set in the parameter name "differential time", and the initial value "100.0" is set in the parameter name "SV upper limit value". The initial value "0.0" is set in the parameter name "SV lower limit value".

複數列24a2b係於參數名稱「A」設定有初始值「0.9」,於參數名稱「B」設定有初始值「1.1」,於參數名稱「C」設定有初始值「100」。 The plural column 24a2b has an initial value "0.9" set in the parameter name "A", an initial value "1.1" in the parameter name "B", and an initial value "100" in the parameter name "C".

第6圖係顯示實施形態1的來源裝置記憶體之例之圖。來源裝置記憶體24a3係包含裝置名稱的項目、以及初始值的項目。 Fig. 6 is a view showing an example of the source device memory of the first embodiment. The source device memory 24a3 is an item including a device name and an item of an initial value.

來源裝置記憶體24a3係於裝置名稱「D000」設定有初始值「200」,於裝置名稱「D001」設定有初始值「300」。 The source device memory 24a3 has an initial value "200" set in the device name "D000" and an initial value "300" in the device name "D001".

第7圖係顯示實施形態1的同值化必要性清單之例之圖。同值化必要性清單24a4係包含控制參數名稱或裝置名稱的項目、以及即時旗標(flag)的項目。 Fig. 7 is a view showing an example of the list of necessity for equivalence in the first embodiment. The homomorphization necessity list 24a4 is an item including an item of a control parameter name or a device name, and an instant flag.

同值化必要性清單24a4係記述有在控制裝置5當中,二進位控制參數或二進位裝置記憶體的資料被改寫時,在控制裝置5當中,來源控制參數或來源裝置記憶體亦應改寫之控制參數或裝置。 The homogeneity necessity list 24a4 describes that in the control device 5, when the binary control parameter or the data of the binary device memory is rewritten, in the control device 5, the source control parameter or the source device memory should also be rewritten. Control parameters or devices.

在控制系統1當中,將在控制裝置5當中二進位控制參數或二進位裝置記憶體的資料被改寫時,在控制裝置5當中來源控制參數或來源裝置記憶體亦被改寫之情形稱為「同值化」。 In the control system 1, when the binary control parameter or the data of the binary device memory is rewritten in the control device 5, the source control parameter or the source device memory is also rewritten in the control device 5. Valued."

同值化必要性清單24a4之複數列24a4a係記述有在功能區塊24a1a的控制演算時所參考的參數內進行同值化之參數。 The plural column 24a4a of the equivalence necessity list 24a4 describes parameters that are equalized in the parameters referred to in the control calculation of the functional block 24a1a.

複數列24a4a係記述有參數名稱「比例增益」、參數名稱「積分時間」、以及參數名稱「微分時間」。因此,在控制裝置5當中,二進位控制參數內的參數名稱「比例增益」、參數名稱「積分時間」或參數名稱「微分時間」的 資料被改寫後,在控制裝置5當中,來源控制參數內的參數名稱「比例增益」、參數名稱「積分時間」或參數名稱「微分時間」的資料係被同值化。 The plural column 24a4a describes the parameter name "proportional gain", the parameter name "integration time", and the parameter name "differential time". Therefore, in the control device 5, the parameter name "proportional gain" in the binary control parameter, the parameter name "integration time" or the parameter name "differential time" After the data is rewritten, in the control device 5, the data of the parameter name "proportional gain", the parameter name "integration time", or the parameter name "differential time" in the source control parameter are equalized.

又,功能區塊24a1a的控制演算時所參考的參數內,參數名稱「反動作‧正動作」、參數名稱「控制週期」、參數名稱「SV上限值」、以及參數名稱「SV下限值」並不記述於同值化必要性清單24a4。 Further, in the parameter to be referred to during the control calculation of the functional block 24a1a, the parameter name "reverse action ‧ positive action", parameter name "control cycle", parameter name "SV upper limit value", and parameter name "SV lower limit value" It is not described in the Necessity List 24a4.

因此,在控制裝置5當中,即使二進位控制參數內的參數名稱「反動作‧正動作」、參數名稱「控制週期」、參數名稱「SV上限值」或參數名稱「SV下限值」的資料被改寫,在控制裝置5當中,來源控制參數內的參數名稱「反動作‧正動作」、參數名稱「控制週期」、參數名稱「SV上限值」或參數名稱「SV下限值」的資料亦不被同值化。 Therefore, in the control device 5, even the parameter name "reverse action ‧ positive action", parameter name "control cycle", parameter name "SV upper limit value", or parameter name "SV lower limit value" in the binary control parameter The data is rewritten. In the control device 5, the parameter name "reverse action ‧ positive action", parameter name "control cycle", parameter name "SV upper limit value" or parameter name "SV lower limit value" in the source control parameter The information is not equalized.

控制參數之中,係有如增益般使機械6及7一面動作一面逐步地填入資料,最後才決定資料的控制參數。如此之控制參數的資料係進行同值化並亦改寫來源控制參數的資料為佳。另一方面,控制參數之中,如計數器係為了機械6及7的動作檢驗而暫時的變更資料。如此之控制參數的資料係不進行同值化為佳。 Among the control parameters, the movements of the machines 6 and 7 are gradually filled in with data as in the case of gain, and finally the control parameters of the data are determined. It is preferable that the data of such control parameters are homogenized and the source control parameters are also rewritten. On the other hand, among the control parameters, the counter temporarily changes the data for the operation check of the machines 6 and 7. It is preferable that the data of such control parameters are not homogenized.

控制系統1係具備同值化必要性清單24a4,藉此能僅改寫來源控制參數之中以改寫為佳之控制參數。 The control system 1 is provided with a list of necessity necessity lists 24a4, whereby it is possible to rewrite only the source control parameters to rewrite the control parameters.

同值化必要性清單24a4之即時旗標的項目係記述有表示下述情事之旗標:在控制裝置5當中二進位控 制參數或二進位裝置記憶體的資料被改寫時,在控制裝置5當中來源控制參數或來源裝置記憶體的資料是否立刻被同值化。 The item of the instant flag of the equivalence necessity list 24a4 describes a flag indicating that the control device 5 is a binary control When the parameter or the data of the binary device memory is rewritten, whether the source control parameter or the source device memory data is immediately equalized in the control device 5.

即時旗標為「1」時,在控制裝置5當中二進位控制參數或二進位裝置記憶體的資料被改寫後,在控制裝置5當中來源控制參數或來源裝置記憶體的資料係立刻被同值化。 When the instant flag is "1", after the binary control parameter or the data of the binary device memory is rewritten in the control device 5, the source control parameter or the data of the source device memory in the control device 5 is immediately the same value. Chemical.

即時旗標為「0」時,在控制裝置5當中二進位控制參數或二進位裝置記憶體的資料被改寫後,暫存(buffering)在控制裝置5當中被改寫的資料,當滿足預定的條件時,在控制裝置5當中來源控制參數或來源裝置記憶體的資料則被同值化。 When the instant flag is "0", after the binary control parameter or the data of the binary device memory is rewritten in the control device 5, the data that is rewritten in the control device 5 is temporarily buffered when the predetermined condition is satisfied. At the time, the source control parameter or the source device memory data in the control device 5 is equalized.

複數列24a4a係於參數名稱「比例增益」、參數名稱「積分時間」、以及參數名稱「微分時間」設定有即時旗標「1」。因此,在控制裝置5當中二進位控制參數內的參數名稱「比例增益」、參數名稱「積分時間」、或參數名稱「微分時間」的資料被改寫後,在控制裝置5當中來源控制參數內的參數名稱「比例增益」、參數名稱「積分時間」、或參數名稱「微分時間」的資料係立刻被同值化。 The plural column 24a4a is set with the instant flag "1" in the parameter name "proportional gain", the parameter name "integration time", and the parameter name "differential time". Therefore, after the data of the parameter name "proportional gain", the parameter name "integration time", or the parameter name "differential time" in the binary control parameter in the control device 5 is rewritten, in the source control parameter in the control device 5 The data of the parameter name "Proportional Gain", the parameter name "Integration Time", or the parameter name "Derivative Time" is immediately equalized.

控制參數之中,如增益係具有欲盡量減低喪失改寫的資料之可能性。如此之控制參數係以立刻進行同值化,並立刻改寫來源控制參數的資料為佳。另一方面,控制參數之中,相較於喪失改寫的資料之可能性,更應優先考量謀求控制裝置5的負荷的分散。如此之控制參數的 資料係以斟酌條件而進行同值化為佳。 Among the control parameters, such as the gain system, there is a possibility to minimize the loss of the rewritten data. Such control parameters are preferably performed immediately with the same value, and the data of the source control parameters are immediately rewritten. On the other hand, among the control parameters, the dispersion of the load of the control device 5 should be prioritized in consideration of the possibility of losing the rewritten data. Control parameter The data is preferably homogenized on a discretionary basis.

控制系統1係具備包含即時旗標的項目之同值化必要性清單24a4,藉此能僅立刻改寫來源控制參數之中之欲盡量減低喪失改寫的資料之可能性之控制參數。藉此,控制裝置5係能減低喪失改寫的資料之可能性,並且能謀求負荷的分散。 The control system 1 is provided with a homogeneity necessity list 24a4 of an item including an instant flag, whereby the control parameter of the source control parameter to minimize the possibility of losing the rewritten data can be immediately rewritten. Thereby, the control device 5 can reduce the possibility of losing the rewritten data and can achieve the dispersion of the load.

同值化必要性清單24a4之複數列24a4b係記述有在功能區塊24a1b的控制演算時所參考的參數之內進行同值化之參數。 The complex column 24a4b of the equivalence necessity list 24a4 describes parameters that are equalized within the parameters that are referred to during the control calculation of the functional block 24a1b.

複數列24a4b係記述有參數名稱「A」、以及參數名稱「B」。因此,在控制裝置5當中二進位控制參數內的參數名稱「A」或參數名稱「B」的資料被改寫後,在控制裝置5當中來源控制參數內的參數名稱「A」或參數名稱「B」的資料係被同值化。 The plural column 24a4b describes the parameter name "A" and the parameter name "B". Therefore, after the data of the parameter name "A" or the parameter name "B" in the binary control parameter is rewritten in the control device 5, the parameter name "A" or the parameter name "B" in the source control parameter is controlled in the control device 5. The data is homogenized.

複數列24a4b係於參數名稱「A」、以及參數名稱「B」設定有即時旗標「0」。因此,在控制裝置5當中二進位控制參數內的參數名稱「A」或參數名稱「B」的資料被改寫後,在控制裝置5當中改寫的資料係被暫存,當滿足預定的條件時,在控制裝置5當中來源控制參數內的參數名稱「A」或參數名稱「B」的資料係被同值化。 The plural column 24a4b is set with the instant flag "0" for the parameter name "A" and the parameter name "B". Therefore, after the data of the parameter name "A" or the parameter name "B" in the binary control parameter is rewritten in the control device 5, the data rewritten in the control device 5 is temporarily stored, and when the predetermined condition is satisfied, In the control device 5, the data of the parameter name "A" or the parameter name "B" in the source control parameter is equalized.

又,功能區塊24a1b的控制演算時所參考的參數之中,參數名稱「C」並未記述於同值化必要性清單24a4。因此,即使在控制裝置5當中二進位控制參數之中的參數名稱「C」的資料被改寫,在控制裝置5當中來源 控制參數之中的參數名稱「C」的資料亦不被同值化。 Further, among the parameters referred to in the control calculation of the functional block 24a1b, the parameter name "C" is not described in the equivalence necessity list 24a4. Therefore, even if the data of the parameter name "C" among the binary control parameters in the control device 5 is rewritten, the source is in the control device 5 The data of the parameter name "C" among the control parameters is also not equalized.

列24a4c係記述有裝置名稱「D000」。因此,在控制裝置5當中二進位裝置記憶體內的裝置名稱「D000」的資料被改寫後,在控制裝置5當中來源裝置記憶體內的裝置名稱「D000」的資料係被同值化。 The column name 24a4c describes the device name "D000". Therefore, after the data of the device name "D000" in the memory of the binary device in the control device 5 is rewritten, the data of the device name "D000" in the memory of the source device in the control device 5 is equalized.

列24a4c係於裝置名稱「D000」設定有即時旗標「0」。因此,在控制裝置5當中,二進位裝置記憶體內的裝置名稱「D000」的資料被改寫後,在控制裝置5當中改寫的資料被暫存,當滿足預定的條件時,在控制裝置5當中來源裝置記憶體內的裝置名稱「D000」的資料係被同值化。 Column 24a4c is set with the instant flag "0" in the device name "D000". Therefore, in the control device 5, after the data of the device name "D000" in the memory of the binary device is rewritten, the data rewritten in the control device 5 is temporarily stored, and when the predetermined condition is satisfied, the source is in the control device 5. The data of the device name "D000" in the device memory is equalized.

又,裝置記憶體之中,裝置名稱「D001」並未記述於同值化必要性清單24a4。因此,即使在控制裝置5當中二進位裝置記憶體內的裝置名稱「D001」的資料被改寫,在控制裝置5當中來源裝置記憶體內的裝置名稱「D001」的資料亦不被同值化。 Further, in the device memory, the device name "D001" is not described in the equivalence necessity list 24a4. Therefore, even if the data of the device name "D001" in the memory of the binary device in the control device 5 is rewritten, the data of the device name "D001" in the memory of the source device in the control device 5 is not equalized.

第8圖係顯示實施形態1的參數設定畫面之例之圖。參數設定畫面31係藉由來源專案資料編輯部21a1而顯示於顯示部26上。 Fig. 8 is a view showing an example of a parameter setting screen of the first embodiment. The parameter setting screen 31 is displayed on the display unit 26 by the source project material editing unit 21a1.

輸入欄31a係要輸入參數名稱「反動作‧正動作」的初始值之欄位。輸入欄31b係要輸入參數名稱「控制週期」的初始值之欄位。輸入欄31c係要輸入參數名稱「比例增益」的初始值之欄位。輸入欄31d係要輸入參數名稱「積分時間」的初始值之欄位。 The input field 31a is a field in which the initial value of the parameter name "reverse action ‧ positive action" is to be input. The input field 31b is a field in which the initial value of the parameter name "control period" is to be input. The input field 31c is a field in which the initial value of the parameter name "proportional gain" is to be input. The input field 31d is a field in which the initial value of the parameter name "integration time" is to be input.

輸入欄31e係要輸入參數名稱「微分時間」的初始值之欄位。輸入欄31f係要輸入參數名稱「SV上限值」的初始值之欄位。輸入欄31g係要輸入參數名稱「SV下限值」的初始值之欄位。 The input field 31e is a field in which the initial value of the parameter name "differential time" is to be input. The input field 31f is a field in which the initial value of the parameter name "SV upper limit value" is to be input. The input field 31g is a field in which the initial value of the parameter name "SV lower limit value" is to be input.

輸入欄31h係要輸入參數名稱「反動作‧正動作」的同值化的必要性之欄位。輸入欄31i係要輸入參數名稱「控制週期」的同值化的必要性之欄位。輸入欄31j係要輸入參數名稱「比例增益」的同值化的必要性之欄位。輸入欄31k係要輸入參數名稱「積分時間」的同值化的必要性之欄位。 The input field 31h is a field for inputting the necessity of the parameterization of the parameter name "reverse action ‧ positive action". The input field 31i is a field for inputting the necessity of the parameterization of the parameter name "control cycle". The input field 31j is a field for inputting the necessity of the parameterization of the parameter name "proportional gain". The input field 31k is a field for inputting the necessity of the same value of the parameter name "integration time".

輸入欄31l係要輸入參數名稱「微分時間」的同值化的必要性之欄位。輸入欄31m係要輸入參數名稱「SV上限值」的同值化的必要性之欄位。輸入欄31n係要輸入參數名稱「SV下限值」的同值化的必要性之欄位。 The input field 31l is a field for inputting the necessity of the parameterization of the parameter name "differential time". The input field 31m is a field for inputting the necessity of the same value of the parameter name "SV upper limit value". The input field 31n is a field for inputting the necessity of the same value of the parameter name "SV lower limit value".

來源專案資料編輯部21a1係在輸入欄31h至輸入欄31n為止之中,僅將輸入有檢查的控制參數記述於同值化必要性清單24a4。 In the source project data editing unit 21a1, only the control parameters to which the check is input are described in the equivalence necessity list 24a4 from the input field 31h to the input field 31n.

功能區塊24a1a係預先準備給工程工具程式之控制區塊。並且,參數名稱「比例增益」、參數名稱「積分時間」、以及參數名稱「微分時間」係預先判定同值化的必要性較高之控制參數。因此,來源專案資料編輯部21a1係在輸入欄31j、31k、以及31l之中以預設值(default)而進行檢查。 The function block 24a1a is prepared in advance for the control block of the engineering tool program. Further, the parameter name "proportional gain", the parameter name "integration time", and the parameter name "differential time" are control parameters that are highly necessary for determining the same value in advance. Therefore, the source project material editing unit 21a1 checks the default values (default) among the input fields 31j, 31k, and 31l.

藉此,來源專案資料編輯部21a1即能將同值 化的必要性較高之參數名稱「比例增益」、參數名稱「積分時間」、以及參數名稱「微分時間」予以同值化之情形作成預設值,並提示給使用者。 Thereby, the source project data editing department 21a1 can have the same value The parameter name "proportional gain", the parameter name "integration time", and the parameter name "differential time", which are more necessary for the merging, are set to a preset value and presented to the user.

輸入欄31o係要輸入參數名稱「反動作‧正動作」的即時同值化的必要性之欄位。輸入欄31p係要輸入參數名稱「控制週期」的即時同值化的必要性之欄位。輸入欄31q係要輸入參數名稱「比例增益」的即時同值化的必要性之欄位。 The input field 31o is a field for inputting the necessity of immediate equivalence of the parameter name "reverse action ‧ positive action". The input field 31p is a field for inputting the necessity of immediate equivalence of the parameter name "control period". The input field 31q is a field for inputting the necessity of immediate equivalence of the parameter name "proportional gain".

輸入欄31r係要輸入參數名稱「積分時間」的即時同值化的必要性之欄位。輸入欄31s係要輸入參數名稱「微分時間」的即時同值化的必要性之欄位。輸入欄31t係要輸入參數名稱「SV上限值」的即時同值化的必要性之欄位。輸入欄31u係要輸入參數名稱「SV下限值」的即時同值化的必要性之欄位。 The input field 31r is a field for inputting the necessity of immediate equivalence of the parameter name "integration time". The input field 31s is a field for inputting the necessity of immediate equivalence of the parameter name "differential time". The input field 31t is a field for inputting the necessity of immediate equivalence of the parameter name "SV upper limit value". The input field 31u is a field for inputting the necessity of immediate equivalence of the parameter name "SV lower limit value".

來源專案資料編輯部21a1係在輸入欄31o至輸入欄31u為止之中,僅輸入有檢查的控制參數,將「1」記述於同值化必要性清單24a4之即時旗標的項目。 The source project data editing unit 21a1 inputs only the control parameters of the check from the input field 31o to the input field 31u, and writes "1" to the item of the instant flag of the equalization necessity list 24a4.

功能區塊24a1a係預先準備給工程工具程式之控制區塊。並且,參數名稱「比例增益」、參數名稱「積分時間」、以及參數名稱「微分時間」係預先判定欲盡量減低喪失改寫之值的可能性之控制參數。因此,來源專案資料編輯部21a1係在輸入欄31q、31r、以及31s之中以預設值而進行檢查。 The function block 24a1a is prepared in advance for the control block of the engineering tool program. Further, the parameter name "proportional gain", the parameter name "integration time", and the parameter name "differential time" are control parameters that determine in advance the possibility of losing the value of the rewriting as much as possible. Therefore, the source project material editing unit 21a1 checks the input fields 31q, 31r, and 31s with preset values.

藉此,來源專案資料編輯部21a1係將欲盡量 減低喪失改寫之值的可能性之參數名稱「比例增益」、參數名稱「積分時間」、以及參數名稱「微分時間」予以即時同值化之情形設成預設值,並提示給使用者。 In this way, the source project information editing department 21a1 will try to The parameter name "proportional gain", the parameter name "integration time", and the parameter name "differential time" which reduce the possibility of losing the rewriting value are immediately set to a preset value and are presented to the user.

再參考第3圖,編譯部21a2係將來源控制程式24a1予以編譯而作成二進位控制程式24b1,將來源控制參數24a2予以編譯而作成二進位控制參數24b2,將來源裝置記憶體24a3予以編譯而作成二進位裝置記憶體24b3。 Referring to Fig. 3, the compiling unit 21a2 compiles the source control program 24a1 to create the binary control program 24b1, compiles the source control parameter 24a2 to create the binary control parameter 24b2, and compiles the source device memory 24a3. The binary device memory 24b3.

二進位控制程式24b1、二進位控制參數24b2、以及二進位裝置記憶體24b3係構成二進位專案資料24b。來源專案資料24a、以及二進位專案資料24b係藉由通信介面27而傳送至控制裝置5。 The binary control program 24b1, the binary control parameter 24b2, and the binary device memory 24b3 constitute the binary project data 24b. The source project data 24a and the binary project data 24b are transmitted to the control device 5 via the communication interface 27.

第9圖係顯示實施形態1的控制裝置之硬體構成之圖。控制裝置5係包含主(main)基板5a、副(sub)基板5b及5c。 Fig. 9 is a view showing the hardware configuration of the control device of the first embodiment. The control device 5 includes a main substrate 5a and sub substrates 5b and 5c.

主基板5a係包含CPU 5a1、RAM之記憶體5a2、計數時間之計時器(timer)5a3、外部記憶槽(slot)5a4、通信介面5a5、匯流排(bus)介面5a6、以及內部記憶部5a7。CPU 5a1、記憶體5a2、計時器5a3、外部記憶槽5a4、通信介面5a5、匯流排介面5a6、以及內部記憶部5a7係經由內部匯流排B1而連接。 The main substrate 5a includes a CPU 5a1, a RAM 5a2 for RAM, a timer 5a3 for counting time, an external memory slot 5a4, a communication interface 5a5, a bus interface 5a6, and an internal memory portion 5a7. The CPU 5a1, the memory 5a2, the timer 5a3, the external memory slot 5a4, the communication interface 5a5, the bus bar interface 5a6, and the internal memory portion 5a7 are connected via the internal bus bar B1.

主基板5a係自UPS(Uninterruptible Power Supply,不中斷電力供應)10接受電力供應而動作。UPS 10係儲存自系統電源9供應的電力,且將儲存的電力供應至 主基板5a。 The main substrate 5a operates by receiving power supply from a UPS (Uninterruptible Power Supply) 10. The UPS 10 stores the power supplied from the system power supply 9 and supplies the stored power to Main substrate 5a.

外部記憶槽5a4係插入外部記憶部8。外部記憶部8係例示有SD卡(card)(登錄商標)。 The external memory slot 5a4 is inserted into the external memory unit 8. The external memory unit 8 is exemplified by an SD card (registered trademark).

通信介面5a5係經由網路N而和控制程式作成裝置2、可程式顯示器3、以及上位控制裝置4進行通信。 The communication interface 5a5 communicates with the control program creation device 2, the programmable display 3, and the higher-level control device 4 via the network N.

匯流排介面5a6係連絡內部匯流排B1和擴張匯流排B2的匯流排橋接(bridge)電路。副基板5b及5c係經由擴張匯流排B2而連接於主基板5a。副基板5b係連接於機械6。副基板5c係連接於機械7。 The bus interface 5a6 is a bus bridge circuit that connects the internal bus bar B1 and the expansion bus bar B2. The sub-substrates 5b and 5c are connected to the main substrate 5a via the expansion bus bar B2. The sub-substrate 5b is connected to the machine 6. The sub-substrate 5c is connected to the machine 7.

內部記憶部5a7係例示有SSD或HDD。內部記憶部5a7、以及外部記憶部8係構成記憶部。 The internal memory unit 5a7 is exemplified by an SSD or an HDD. The internal memory unit 5a7 and the external memory unit 8 constitute a memory unit.

第10圖係顯示實施形態1的控制裝置之功能區塊圖。內部記憶部5a7係記憶自控制程式作成裝置2接收之二進位專案資料5a7a。二進位專案資料5a7a係包含二進位控制程式5a7a1、二進位控制參數5a7a2、以及二進位裝置記憶體5a7a3。 Fig. 10 is a functional block diagram showing the control device of the first embodiment. The internal memory unit 5a7 memorizes the binary program material 5a7a received from the control program creation unit 2. The binary project data 5a7a includes a binary control program 5a7a1, a binary control parameter 5a7a2, and a binary device memory 5a7a3.

外部記憶部8係記憶自控制程式作成裝置2接收之來源專案資料8a。來源專案資料8a係包含來源控制程式8a1、來源控制參數8a2、來源裝置記憶體8a3、以及同值化必要性清單8a4。 The external storage unit 8 stores the source project material 8a received from the control program creation device 2. The source project data 8a includes a source control program 8a1, a source control parameter 8a2, a source device memory 8a3, and a homogeneity necessity list 8a4.

又,來源專案資料8a亦可記憶於內部記憶部5a7。由於內部記憶部5a7之讀取速度及寫入速度係較外部記憶部8之讀取(read)速度及寫入(write)速度為更快,故來源專案資料8a係以記憶於內部記憶部5a7為佳。 Further, the source project material 8a can also be memorized in the internal memory portion 5a7. Since the reading speed and the writing speed of the internal memory portion 5a7 are faster than the reading speed and the writing speed of the external memory portion 8, the source project data 8a is stored in the internal memory portion 5a7. It is better.

但,現實方面,基於成本(cost)或安裝面積的抑制之需求,而有內部記憶部5a7的記憶容量為小容量之情形,亦有內部記憶部5a7不具備記憶來源專案資料8a的空出容量之情形。實施形態1係說明有關於外部記憶部8記憶有來源專案資料8a之情形。 However, in reality, depending on the cost or the suppression of the mounting area, the memory capacity of the internal memory unit 5a7 is small, and the internal memory unit 5a7 does not have the vacant capacity of the memory source project data 8a. The situation. The first embodiment describes the case where the external storage unit 8 stores the source project material 8a.

在控制裝置5實施控制動作時,二進位控制程式5a7a1、二進位控制參數5a7a2、以及二進位裝置記憶體5a7a3係被載入於記憶體5a2,且形成二進位控制程式5a2a、二進位控制參數5a2b、以及二進位裝置記憶體5a2c。 When the control device 5 performs the control operation, the binary control program 5a7a1, the binary control parameter 5a7a2, and the binary device memory 5a7a3 are loaded in the memory 5a2, and the binary control program 5a2a and the binary control parameter 5a2b are formed. And the binary device memory 5a2c.

CPU 5a1係執行記憶於內部記憶部5a7的二進位改寫程式、以及來源改寫程式。藉此,即能實現:根據接收的資料而改寫二進位控制參數5a7a2及5a2b、或二進位裝置記憶體5a7a3及5a2c之二進位改寫部5a1a、以及在改寫二進位控制參數5a7a2及5a2b、或二進位裝置記憶體5a7a3及5a2c後,根據接收的資料而改寫來源控制參數8a2或來源裝置記憶體8a3之來源改寫部5a1b。 The CPU 5a1 executes a binary rewriting program and a source rewriting program that are memorized in the internal storage unit 5a7. Thereby, it is possible to rewrite the binary control parameters 5a7a2 and 5a2b, or the binary rewriting unit 5a1a of the binary device memories 5a7a3 and 5a2c, and to rewrite the binary control parameters 5a7a2 and 5a2b, or two according to the received data. After the carry device memories 5a7a3 and 5a2c, the source control parameter 8a2 or the source rewriting portion 5a1b of the source device memory 8a3 is rewritten based on the received data.

又,二進位改寫程式、以及來源改寫程式亦載入記憶體5a2,但,省略其圖示。 Further, the binary rewriting program and the source rewriting program are also loaded into the memory 5a2, but the illustration thereof is omitted.

此外,緩衝器5a2d係設置於記憶體5a2內。緩衝器5a2d係暫存經改寫的資料之區域,其中,上述經改寫之資料為:屬於二進位控制參數5a2b及5a7a2之中的控制參數且即時旗標係設定為「0」的控制參數,或者屬於二進位裝置記憶體5a2c及5a7a3之中的裝置且即時旗標設定為「0」的裝置經改寫時,經改寫之資料。 Further, the buffer 5a2d is provided in the memory 5a2. The buffer 5a2d is an area for temporarily storing the rewritten data, wherein the rewritten data is: a control parameter belonging to the control parameter among the binary control parameters 5a2b and 5a7a2 and the instant flag is set to "0", or The data that has been rewritten when the device belonging to the binary device memory 5a2c and 5a7a3 and the instant flag is set to "0" has been rewritten.

緩衝器5a2d之尺寸(size)係設定為不妨礙其他的程式及資料之範圍內。 The size of the buffer 5a2d is set so as not to interfere with other programs and data.

第11圖係顯示實施形態1的二進位改寫處理之流程圖。二進位改寫部5a1a係自可程式顯示器3接收控制參數或裝置的改寫指示及改寫資料後,執行第11圖所示之處理。 Fig. 11 is a flow chart showing the binary rewriting process of the first embodiment. The binary rewriting unit 5a1a executes the processing shown in Fig. 11 after receiving the control parameter or the rewriting instruction of the device from the programmable display 3 and rewriting the data.

又,雖說明有關於控制裝置5係自可程式顯示器3接收控制參數或裝置的改寫指示及改寫資料之情形,但,並不限定於此。亦可為控制裝置5係自控制程式作成裝置2、上位控制裝置4、或和控制程式作成裝置2不同的控制程式作成裝置接收控制參數或裝置的改寫指示及改寫資料。 Further, although the control device 5 is configured to receive a control parameter or a rewrite instruction of the device from the programmable display 3 and to rewrite the data, the present invention is not limited thereto. The control device 5 can also receive control parameters or rewrite instructions and rewrite data from the control program creation device 2, the upper control device 4, or the control program creation device different from the control program creation device 2.

二進位改寫部5a1a係在步驟(step)S100當中,將自可程式顯示器3接收之控制參數或裝置的資料寫入二進位控制參數5a2b及5a7a2、或二進位裝置記憶體5a2c及5a7a3。 The binary rewriting unit 5a1a writes the control parameters or device data received from the programmable display 3 into the binary control parameters 5a2b and 5a7a2, or the binary device memories 5a2c and 5a7a3 in step S100.

藉此,控制裝置5即能將自可程式顯示器3接收的資料即時反應於控制動作。 Thereby, the control device 5 can immediately react the data received from the programmable display 3 to the control action.

第12圖係顯示實施形態1的控制裝置之來源寫入處理之流程圖。來源改寫部5a1b係在二進位改寫部5a1a執行第11圖所示之處理後,亦即,在改寫二進位控制參數5a2b及5a7a2、或二進位裝置記憶體5a2c及5a7a3後,執行第12圖所示之處理。 Fig. 12 is a flow chart showing the source write processing of the control device of the first embodiment. The source rewriting unit 5a1b executes the processing shown in Fig. 11 after the binary rewriting unit 5a1a, that is, after rewriting the binary control parameters 5a2b and 5a7a2, or the binary device memories 5a2c and 5a7a3, executing the Fig. 12 Processing.

同值化必要性判定部5a1b1係在步驟S110當 中,參考同值化必要性清單8a4,判定自可程式顯示器3接收之控制參數或裝置是否記述於同值化必要性清單8a4,亦即,判定自可程式顯示器3接收之控制參數或裝置是否為要同值化的控制參數或裝置。 The equivalence necessity determining unit 5a1b1 is in step S110. Referring to the equivalence necessity list 8a4, it is determined whether the control parameter or device received from the programmable display 3 is described in the equivalence necessity list 8a4, that is, whether the control parameter or device received from the programmable display 3 is determined. A control parameter or device that is to be homogenized.

同值化必要性判定部5a1b1在步驟S110當中,判定自可程式顯示器3接收之控制參數或裝置為不要同值化的控制參數或裝置後(No,否),則結束處理。 When the parameterization necessity determination unit 5a1b1 determines in step S110 that the control parameter or device received from the programmable display 3 is a control parameter or device that is not to be equalized (No, No), the process ends.

另一方面,同值化必要性判定部5a1b1在步驟S110當中,判定自可程式顯示器3接收之控制參數或裝置為要同值化的控制參數或裝置後(Yes,是),係使處理進入步驟S112。 On the other hand, in step S110, the equivalence necessity determination unit 5a1b1 determines that the control parameter or device received from the programmable display 3 is a control parameter or device to be equalized (Yes, Yes), and causes the process to enter. Step S112.

緩衝寫入部5a1b2在步驟S112當中,係參考同值化必要性清單8a4,判定自可程式顯示器3接收之控制參數或裝置在同值化必要性清單8a4內即時旗標是否被設定為「1」,亦即,判定自可程式顯示器3接收之控制參數或裝置是否為要即時同值化的控制參數或裝置。 In step S112, the buffer writing unit 5a1b2 refers to the homogeneity necessity list 8a4, and determines whether the control parameter received from the programmable display 3 or the device is set to "1" in the homogeneity necessity list 8a4. That is, it is determined whether the control parameter or device received from the programmable display 3 is a control parameter or device to be immediately homogenized.

緩衝寫入部5a1b2係在步驟S112當中,判定自可程式顯示器3接收之控制參數或裝置為要即時同值化的控制參數或裝置後(Yes,是),使處理進入步驟S114。 The buffer writing unit 5a1b2 determines in step S112 that the control parameter or device received from the programmable display 3 is a control parameter or device to be immediately equalized (Yes, YES), and the process proceeds to step S114.

來源寫入部5a1b3係在步驟S114當中,將自可程式顯示器3接收之控制參數或裝置的資料寫入來源控制參數8a2或來源裝置記憶體8a3,且結束處理。 In step S114, the source writing unit 5a1b3 writes the control parameter or device data received from the programmable display 3 into the source control parameter 8a2 or the source device memory 8a3, and ends the processing.

藉此,控制裝置5即能將接收之要即時同值化的控制參數或裝置的資料立即寫入來源控制參數8a2或 來源裝置記憶體8a3。藉此,控制裝置5即能減低喪失改寫的資料之可能性。 Thereby, the control device 5 can immediately write the data of the control parameter or the device to be immediately equalized to the source control parameter 8a2 or Source device memory 8a3. Thereby, the control device 5 can reduce the possibility of losing the rewritten data.

另一方面,緩衝寫入部5a1b2係在步驟S112當中,判定自可程式顯示器3接收之控制參數或裝置為不要即時同值化的控制參數或裝置後(No),使處理進入步驟S116。 On the other hand, in step S112, the buffer writing unit 5a1b2 determines that the control parameter or device received from the programmable display 3 is a control parameter or device that is not immediately equalized (No), and the process proceeds to step S116.

緩衝寫入部5a1b2係在步驟S116當中,判定自可程式顯示器3接收之控制參數或裝置是否已存在於緩衝器5a2d。 The buffer writing unit 5a1b2 determines in step S116 whether or not the control parameter or device received from the programmable display 3 is already present in the buffer 5a2d.

緩衝寫入部5a1b2係在步驟S116當中,判定自可程式顯示器3接收之控制參數或裝置已存在於緩衝器5a2d後(Yes,是),使處理進入步驟S118。 The buffer writing unit 5a1b2 determines in step S116 that the control parameter or device received from the programmable display 3 is already present in the buffer 5a2d (Yes, YES), and the processing proceeds to step S118.

緩衝寫入部5a1b2係在步驟S118當中,將自可程式顯示器3接收之控制參數或裝置的資料覆寫至緩衝器5a2d,且結束處理。 The buffer writing unit 5a1b2 overwrites the data of the control parameter or device received from the programmable display 3 into the buffer 5a2d in step S118, and ends the processing.

藉此,控制裝置5即能減低資料寫入內部記憶部5a7的次數。將資料寫入內部記憶部5a7係需要花費時間,且亦造成CPU 51的負荷。因此,控制裝置5係藉由減低資料寫入內部記憶部5a7的次數而能減低CPU 51的處理負荷。 Thereby, the control device 5 can reduce the number of times the data is written into the internal memory portion 5a7. It takes time to write the data to the internal memory unit 5a7, and also causes the load on the CPU 51. Therefore, the control device 5 can reduce the processing load of the CPU 51 by reducing the number of times the data is written into the internal memory portion 5a7.

此外,內部記憶部5a7為SSD時,資料寫入至SSD的次數係具有上限。亦即,SSD係具有資料寫入次數的壽命。因此,控制裝置5係藉由減低資料寫入內部記憶部5a7的次數,從而能長期間使用內部記憶部5a7。 Further, when the internal memory unit 5a7 is an SSD, the number of times data is written to the SSD has an upper limit. That is, the SSD has a lifetime of data write times. Therefore, the control device 5 can use the internal memory portion 5a7 for a long period of time by reducing the number of times the data is written into the internal memory portion 5a7.

另一方面,緩衝寫入部5a1b2係在步驟S116當中,判定自可程式顯示器3接收之控制參數或裝置為不存在於緩衝器5a2d後(No),使處理進入步驟S120。 On the other hand, in step S116, the buffer write unit 5a1b2 determines that the control parameter or device received from the programmable display 3 does not exist in the buffer 5a2d (No), and the process proceeds to step S120.

緩衝寫入部5a1b2係在步驟S120當中,將自可程式顯示器3接收之控制參數或裝置的資料寫入緩衝器5a2d,且結束處理。 In step S120, the buffer writing unit 5a1b2 writes the control parameter or device data received from the programmable display 3 into the buffer 5a2d, and ends the processing.

藉此,控制裝置5即能暫存下述之控制參數或裝置之資料:被認為相較於喪失被改寫的資料之可能性,應優先謀求控制裝置5的負荷的分散之控制參數或裝置的資料。資料寫入內部記憶部5a7係需要花費時間,並且形成CPU 5a1的負荷。因此,控制裝置5係能謀求負荷的分散。 Thereby, the control device 5 can temporarily store the following control parameters or information of the device: it is considered that the control parameter or device of the control device 5 should be preferentially prioritized compared to the possibility of losing the rewritten data. data. It takes time to write data to the internal memory unit 5a7, and the load of the CPU 5a1 is formed. Therefore, the control device 5 can achieve dispersion of the load.

第13圖係顯示實施形態1之來源變更處理之流程圖。來源寫入部5a1b3係在步驟S140當中,未滿足預定的條件時(No,否)為待機狀態,而滿足預定的條件後(Yes,是),則使處理進入步驟S142。 Fig. 13 is a flow chart showing the source change processing of the first embodiment. When the source writing unit 5a1b3 does not satisfy the predetermined condition (No, No) is in the standby state and the predetermined condition is satisfied (Yes, YES), the source writing unit 5a1b3 advances the processing to step S142.

預定的條件係例示有下述之複數的條件。第1例係CPU 5a1的使用率成為預定的臨界值以下之情形。該情形時,來源寫入部5a1b3係對CPU 5a1具有處理餘力,故執行步驟S142之處理。 The predetermined conditions are exemplified by the following plural conditions. The first example is a case where the usage rate of the CPU 5a1 is equal to or lower than a predetermined critical value. In this case, since the source writing unit 5a1b3 has the processing power for the CPU 5a1, the processing of step S142 is executed.

第2例係緩衝器5a2d的空出容量成為預定的臨界值以下之情形。該情形時,由於會有無法使後續的控制參數或裝置的資料之暫存進行的可能性,故來源寫入部5a1b3係執行步驟S142之處理。 In the second example, the vacant capacity of the buffer 5a2d is equal to or lower than a predetermined critical value. In this case, the source writing unit 5a1b3 performs the processing of step S142 because there is a possibility that the subsequent control parameters or the data of the device cannot be temporarily stored.

第3例係自控制程式作成裝置2、可程式顯示器3或上位控制裝置4接收執行步驟S142之要旨的指示之情形。該情形時,來源寫入部5a1b3係根據控制程式作成裝置2、可程式顯示器3或上位控制裝置4的指示而執行步驟S142之處理。使用者係藉由操作控制程式作成裝置2或可程式顯示器3,能依期望的時序(timing),在來源寫入部5a1b3執行步驟S142之處理。 The third example is a case where the control program creation device 2, the programmable display device 3, or the higher-level control device 4 receive an instruction to execute the gist of the step S142. In this case, the source writing unit 5a1b3 executes the processing of step S142 in accordance with an instruction from the control program creating unit 2, the programmable display unit 3, or the higher-level control unit 4. By operating the control program creation device 2 or the programmable display 3, the user can perform the processing of step S142 in the source writing unit 5a1b3 in accordance with the desired timing.

使上位控制裝置4將執行步驟S142之要旨的指示傳送於控制裝置5之情形係例示有製造線的始業時、每整點時或製造線的終業時。 The case where the higher-level control device 4 transmits an instruction to execute the control of the step S142 to the control device 5 is exemplified by the start of the manufacturing line, the hour of the entire line, or the final time of the manufacturing line.

第4例係計時器5a3為計算預定的時間之情形。該情形時,來源寫入部5a1b3係在作動控制裝置5而經過預定的時間之後,執行步驟S142之處理。此外,計時器5a3係在重覆計算預定的時間時,則來源寫入部5a1b3係在每經過預定的時間,執行步驟S142之處理。 The fourth example is a case where the timer 5a3 is a predetermined time. In this case, the source writing unit 5a1b3 performs the processing of step S142 after a predetermined time elapses after the actuation control device 5 has elapsed. Further, when the timer 5a3 is repeatedly calculated for a predetermined time, the source writing unit 5a1b3 executes the processing of step S142 every predetermined time.

第5例係控制裝置5自UPS 10接收系統電源9的異常通知之情形。系統電源9的異常情形係例示有停電、瞬時停電或電壓變動。該情形時,來源寫入部5a1b3係為了減低喪失緩衝器5a2d內的資料之可能性而執行步驟S142之處理。 The fifth example is a case where the control device 5 receives an abnormality notification of the system power supply 9 from the UPS 10. The abnormal situation of the system power supply 9 is exemplified by a power outage, an instantaneous power outage, or a voltage change. In this case, the source writing unit 5a1b3 performs the processing of step S142 in order to reduce the possibility of losing the data in the buffer 5a2d.

第6例係CPU 5a1藉由本身診斷處理的實施而檢測控制裝置5的異常之情形。該情形時,來源寫入部5a1b3係為了減低喪失緩衝器5a2d內的資料之可能性而執行步驟S142之處理。 The sixth example is a case where the CPU 5a1 detects an abnormality of the control device 5 by the execution of its own diagnosis processing. In this case, the source writing unit 5a1b3 performs the processing of step S142 in order to reduce the possibility of losing the data in the buffer 5a2d.

來源寫入部5a1b3係在步驟S142當中,將緩衝器5a2d的內容寫入來源控制參數8a2或來源裝置記憶體8a3,且結束處理。 The source writing unit 5a1b3 writes the contents of the buffer 5a2d to the source control parameter 8a2 or the source device memory 8a3 in step S142, and ends the processing.

藉此,控制裝置5係能將變更的控制參數或裝置的資料反應於來源控制參數8a2或來源裝置記憶體8a3。藉此,控制裝置5即能抑制喪失二進位控制參數5a2b及5a7a2、或二進位裝置記憶體5a2c或5a7a3內之改寫的資料之情形。 Thereby, the control device 5 can react the changed control parameter or the device data to the source control parameter 8a2 or the source device memory 8a3. Thereby, the control device 5 can suppress the loss of the rewritten data in the binary control parameters 5a2b and 5a7a2, or the binary device memory 5a2c or 5a7a3.

第14圖係顯示實施形態1的控制程式作成裝置之專案資料編輯處理之流程圖。 Fig. 14 is a flow chart showing the process of editing the project material of the control program creation device of the first embodiment.

來源專案資料編輯部21a1係在步驟S150當中,自控制裝置5接收來源專案資料8a,且覆寫至記憶部24的來源專案資料24a。 The source project material editing unit 21a1 receives the source project material 8a from the control device 5 and overwrites the source project material 24a of the memory unit 24 in step S150.

接著,來源專案資料編輯部21a1係在步驟S152當中,接受來自使用者的操作輸入,且將來源專案資料24a予以編輯。 Next, the source project material editing unit 21a1 accepts an operation input from the user in step S152, and edits the source project material 24a.

接著,編譯部21a2係在步驟S154當中,將來源專案資料24a予以編譯,且作成及覆寫至二進位專案資料24b。 Next, the compiling unit 21a2 compiles the source project data 24a in step S154, and creates and overwrites the binary project data 24b.

接著,編譯部21a2係在步驟S156當中,將來源專案資料24a、以及二進位專案資料24b傳送於控制裝置5,且結束處理。 Next, in step S156, the compiling unit 21a2 transmits the source project data 24a and the binary project data 24b to the control device 5, and ends the process.

如以上所說明,控制程式作成裝置2即能在控制裝置5當中,將改寫資料後的來源專案資料24a予以 編輯。藉此,控制裝置5即能抑制在控制裝置5內被改寫的資料喪失之情形。 As described above, the control program creating device 2 can provide the source project data 24a after the data is rewritten in the control device 5. edit. Thereby, the control device 5 can suppress the loss of the material that is rewritten in the control device 5.

此外,即使在控制裝置5當中已根據來自可程式顯示器3的指令而改寫資料時,控制程式作成裝置2亦能將改寫資料後的來源專案資料24a予以編輯。藉此,即使在傳送資料改寫的指令之裝置和將來源專案資料24a予以編輯之裝置不同時,控制裝置5亦能抑制在控制裝置5內所改寫的資料喪失之情形。 Further, even when the control device 5 has rewritten the data in accordance with an instruction from the programmable display 3, the control program creation device 2 can edit the source project material 24a after the data has been rewritten. Thereby, even when the device for transmitting the command for rewriting the data is different from the device for editing the source project data 24a, the control device 5 can suppress the situation in which the data rewritten in the control device 5 is lost.

此外,控制裝置5係僅將記述於同值化必要性清單24a4的控制參數或裝置的資料寫入來源控制參數8a2或來源裝置記憶體8a3。藉此,控制裝置5係能僅改寫來源控制參數8a2或來源裝置記憶體8a3之中以改寫為佳的控制參數或裝置。 Further, the control device 5 writes only the data of the control parameter or device described in the homogeneity necessity list 24a4 to the source control parameter 8a2 or the source device memory 8a3. Thereby, the control device 5 can rewrite only the source control parameter 8a2 or the source device memory 8a3 to rewrite the control parameters or devices.

此外,控制裝置5係能僅立刻改寫來源控制參數8a2或來源裝置記憶體8a3之中,於同值化必要性清單24a4的即時旗標的項目設定有「1」的控制參數或裝置。藉此,控制裝置5係抑制喪失改寫的資料之可能性,並且亦能謀求負荷的分散。 Further, the control device 5 can immediately rewrite the source control parameter 8a2 or the source device memory 8a3, and set the control parameter or device of "1" to the item of the instant flag of the equalization necessity list 24a4. Thereby, the control device 5 suppresses the possibility of losing the rewritten data, and can also achieve the dispersion of the load.

此外,控制裝置5係能暫存來源控制參數8a2或來源裝置記憶體8a3之中,於同值化必要性清單24a4的即時旗標的項目設定有「0」的控制參數或裝置的資料。並且,控制裝置5係在滿足預定的條件後,能將暫存的控制參數或裝置的資料寫入來源控制參數8a2或來源裝置記憶體8a3。藉此,控制裝置5即能減低資料寫入內部記憶部 5a7的次數。將資料寫入內部記憶部5a7係需要花費時間,並且形成CPU 51的負荷。因此,控制裝置5係藉由減低資料寫入內部記憶部5a7的次數,從而能減低CPU 51的處理負荷。 Further, the control device 5 can temporarily store the source control parameter 8a2 or the source device memory 8a3, and the parameter of the instant flag of the homogeneity necessity list 24a4 is set with the control parameter of "0" or the device data. Further, the control device 5 can write the temporarily stored control parameter or device data to the source control parameter 8a2 or the source device memory 8a3 after the predetermined condition is satisfied. Thereby, the control device 5 can reduce the writing of data into the internal memory The number of 5a7. It takes time to write the data into the internal memory portion 5a7, and the load of the CPU 51 is formed. Therefore, the control device 5 can reduce the processing load of the CPU 51 by reducing the number of times the data is written into the internal memory portion 5a7.

實施形態2 Embodiment 2

第15圖係顯示實施形態2的控制裝置之功能區塊圖。如實施形態1所說明,內部記憶部5a7的讀取速度及寫入速度係較外部記憶部8的讀取速度及寫入速度為更快。因此,內部記憶部5a7係在具有記憶來源專案資料8a的空出容量時,則內部記憶部5a7係以記憶來源專案資料8a為佳。 Fig. 15 is a block diagram showing the function of the control device of the second embodiment. As described in the first embodiment, the reading speed and the writing speed of the internal storage unit 5a7 are faster than the reading speed and writing speed of the external storage unit 8. Therefore, when the internal memory unit 5a7 has the vacant capacity of the memory source project material 8a, the internal memory unit 5a7 is preferably the memory source project material 8a.

因此,實施形態2的控制裝置5A中,內部記憶部5a7係記憶來源專案資料8a。 Therefore, in the control device 5A of the second embodiment, the internal storage unit 5a7 memorizes the source project material 8a.

內部記憶部5a7的讀取速度及寫入速度係較外部記憶部8的讀取速度及寫入速度為更快。此外,往內部記憶部5a7的讀取及寫入之CPU 5a1的處理負荷係較往外部記憶部8的讀取及寫入之CPU 5a1的處理負荷為更輕。 The reading speed and writing speed of the internal storage unit 5a7 are faster than the reading speed and writing speed of the external storage unit 8. Further, the processing load of the CPU 5a1 that reads and writes to the internal memory unit 5a7 is lighter than the processing load of the CPU 5a1 that reads and writes to the external memory unit 8.

因此,實施形態2係未暫存同值化所需之控制參數或裝置的資料,而立刻寫入來源控制參數8a2或來源裝置記憶體8a3。 Therefore, in the second embodiment, the data of the control parameter or the device required for the homogenization is not temporarily stored, and the source control parameter 8a2 or the source device memory 8a3 is immediately written.

因此,實施形態2的控制裝置5A係不需要實施形態1的控制裝置5之緩衝寫入部5a1b2、以及緩衝器5a2d。此外,同值化必要性清單8a4係不需要即時旗標的項目。 Therefore, the control device 5A of the second embodiment does not require the buffer writing unit 5a1b2 and the buffer 5a2d of the control device 5 of the first embodiment. In addition, the equivalence necessity list 8a4 is an item that does not require an instant flag.

第16圖係顯示實施形態2的控制裝置之來源改寫處理之流程圖。來源改寫部5a1b係在二進位改寫部5a1a執行第10圖所示之處理之後,亦即,在改寫二進位控制參數5a2b及5a7a2、或二進位裝置記憶體5a2c及5a7a3之後,執行第16圖所示之處理。 Fig. 16 is a flow chart showing the source rewriting process of the control device of the second embodiment. The source rewriting unit 5a1b executes the processing shown in FIG. 10 after the binary rewriting unit 5a1a, that is, after rewriting the binary control parameters 5a2b and 5a7a2, or the binary device memories 5a2c and 5a7a3, executing the Fig. 16 Processing.

同值化必要性判定部5a1b1係在步驟S160當中,參考同值化必要性清單8a4,判定自可程式顯示器3接收之控制參數或裝置是否記述於同值化必要性清單8a4,亦即,判定自可程式顯示器3接收之控制參數或裝置是否為要同值化的控制參數或裝置。 The equivalence necessity determination unit 5a1b1 determines whether or not the control parameter or device received from the programmable display 3 is described in the equivalence necessity list 8a4, that is, the determination, in step S160, with reference to the equivalence necessity list 8a4. Whether the control parameter or device received from the programmable display 3 is a control parameter or device to be homogenized.

同值化必要性判定部5a1b1係在步驟S160當中,判定自可程式顯示器3接收之控制參數或裝置為不要同值化的控制參數或裝置後(No,否),則結束處理。 The equivalence necessity determination unit 5a1b1 terminates the process after determining that the control parameter or device received from the programmable display 3 is a control parameter or device that is not to be equalized (No, No) in step S160.

另一方面,同值化必要性判定部5a1b1係在步驟S160當中,判定自可程式顯示器3接收之控制參數或裝置為要同值化的控制參數或裝置後(Yes,是),使處理進入步驟S162。 On the other hand, the equivalence necessity determination unit 5a1b1 determines in step S160 that the control parameter or device received from the programmable display 3 is a control parameter or device to be equalized (Yes, Yes), and the process proceeds. Step S162.

來源寫入部5a1b3係在步驟S162當中,將自可程式顯示器3接收之控制參數或裝置的資料寫入來源控制參數8a2或來源裝置記憶體8a3,且結束處理。 The source writing unit 5a1b3 writes the control parameter or device data received from the programmable display 3 into the source control parameter 8a2 or the source device memory 8a3 in step S162, and ends the processing.

如以上所說明,控制裝置5A係能將接收之控制參數或裝置的資料立刻寫入來源控制參數8a2或來源裝置記憶體8a3。藉此,控制裝置5A係能抑制在控制裝置5A內所改寫的資料喪失之情形。 As explained above, the control device 5A can immediately write the received control parameters or the data of the device to the source control parameter 8a2 or the source device memory 8a3. Thereby, the control device 5A can suppress the situation in which the data rewritten in the control device 5A is lost.

以上之實施形態所示之構成係表示本發明的內容之一例,亦可和另外的眾知的技術作組合,且在不脫離本發明的要旨之範圍內,省略、或變更構成的一部分。 The configuration shown in the above embodiments is an example of the present invention, and may be combined with another well-known technique, and a part of the configuration may be omitted or changed without departing from the gist of the invention.

5‧‧‧控制裝置 5‧‧‧Control device

5a1‧‧‧CPU 5a1‧‧‧CPU

5a1a‧‧‧二進位改寫部 5a1a‧‧‧Two-digit rewriting department

5a1b‧‧‧來源改寫部 5a1b‧‧‧Source Rewriting Department

5a1b1‧‧‧同值化必要性判定部 5a1b1‧‧‧Assessment necessity judgment department

5a1b2‧‧‧緩衝寫入部 5a1b2‧‧‧Buffer writing section

5a1b3‧‧‧來源寫入部 5a1b3‧‧‧Source Writer

5a2‧‧‧記憶體 5a2‧‧‧ memory

5a2a‧‧‧二進位控制程式 5a2a‧‧‧ binary control program

5a2b‧‧‧二進位控制參數 5a2b‧‧‧ binary control parameters

5a2c‧‧‧二進位裝置記憶體 5a2c‧‧‧ binary device memory

5a2d‧‧‧緩衝器 5a2d‧‧‧buffer

8‧‧‧外部記憶部 8‧‧‧External Memory Department

8a‧‧‧來源專案資料 8a‧‧‧Source project data

8a1‧‧‧來源控制程式 8a1‧‧‧Source Control Program

8a2‧‧‧來源控制參數 8a2‧‧‧ source control parameters

8a3‧‧‧來源裝置記憶體 8a3‧‧‧Source device memory

8a4‧‧‧同值化必要性清單 8a4‧‧‧ List of Necessity Needs

5a7‧‧‧內部記憶部 5a7‧‧‧Internal Memory

5a7a‧‧‧二進位專案資料 5a7a‧‧‧ binary data

5a7a1‧‧‧二進位控制程式 5a7a1‧‧‧ binary control program

5a7a2‧‧‧二進位控制參數 5a7a2‧‧‧ binary control parameters

5a7a3‧‧‧二進位裝置記憶體 5a7a3‧‧‧ binary device memory

Claims (4)

一種控制裝置係具備:記憶部,係記憶包含控制程式及執行控制程式時所參考的資訊之來源專案資料、以及將來源專案資料予以編譯而成之二進位專案資料;記憶體,係在執行前述控制程式時,被載入有前述二進位專案資料;二進位改寫部,係根據接收之資料,將記憶於前述記憶部之前述二進位專案資料、以及被載入於前述記憶體之前述二進位專案資料予以改寫;以及來源改寫部,係根據前述接收之資料,將記憶於前述記憶部之前述來源專案資料予以改寫;前述記憶部更記憶有同值化必要性清單,該同值化必要性清單係記述有下述資訊:屬於在前述來源專案資料之內的執行前述控制程式時所參考的資訊,且為前述二進位專案資料被改寫時應被改寫的執行前述控制程式時所參考的資訊,前述來源改寫部係僅改寫記述於前述同值化必要性清單之執行前述控制程式時所參考的資訊。 A control device is provided with: a memory unit that memorizes the source project data of the information referenced when the control program and the control program are executed, and the binary project data compiled from the source project data; the memory is executed in the foregoing When the program is controlled, the binary data is loaded; the binary rewriting unit stores the binary data stored in the memory unit and the binary input in the memory according to the received data. The project data is rewritten; and the source rewriting department rewrites the source material data stored in the memory unit according to the received data; the memory unit further memorizes the necessity list of homogeneity, and the necessity of the equivalence The list describes the information referred to in the execution of the aforementioned control program within the source material data, and the information referred to when the aforementioned control program is rewritten when the binary data is rewritten. The source rewriting department is only rewritten before the execution of the aforementioned equivalence necessity list. When the control program referenced information. 如申請專利範圍第1項所述之控制裝置,其中前述同值化必要性清單係包含即時旗標的項目,該即時旗標的項目係記述有在前述二進位專案資料被改寫後是否立刻改寫前述來源專案資料,前述來源改寫部係立刻改寫於前述即時旗標的項 目記述有立刻改寫者之於執行前述控制程式時所參考的資訊。 The control device according to claim 1, wherein the foregoing list of equivalence necessity includes an item of an instant flag, and the item of the instant flag indicates whether the source is immediately rewritten after the binary data is rewritten. Project data, the aforementioned source rewriting department immediately rewritten in the aforementioned instant flag The information referred to by the immediate rewriter in the execution of the aforementioned control program is described. 如申請專利範圍第2項所述之控制裝置,其中前述記憶體係包含緩衝器,前述來源改寫部係將於前述即時旗標的項目記述有不立刻改寫者之於執行前述控制程式時所參考的資訊予以寫入前述緩衝器,此後在滿足預定的條件後,將前述緩衝器內的資料寫入前述來源專案資料。 The control device according to claim 2, wherein the memory system includes a buffer, and the source rewriting unit describes the information that is referred to when the item of the instant flag is not immediately rewritten by the control program. The buffer is written into the buffer, and thereafter, after the predetermined condition is satisfied, the data in the buffer is written into the source material. 一種控制系統係具備:記載於申請專利範圍第1項至第3項中任一項之控制裝置;以及控制程式作成裝置,係具備:來源專案資料編輯部,係將自前述控制裝置接收之前述來源專案資料予以編輯;以及編譯部,係將前述來源專案資料予以編譯而作成前述二進位專案資料,且傳送至前述控制裝置。 A control system comprising: a control device according to any one of items 1 to 3 of the patent application scope; and a control program creation device, comprising: a source project data editing unit, which is to receive the aforementioned from the control device The source project data is edited; and the compilation department compiles the source project data to create the binary data and transmits the data to the control device.
TW105104896A 2015-02-23 2016-02-19 Control device and control system TWI612405B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
??PCT/JP2015/055081 2015-02-23
PCT/JP2015/055081 WO2016135835A1 (en) 2015-02-23 2015-02-23 Control device and control system

Publications (2)

Publication Number Publication Date
TW201640240A TW201640240A (en) 2016-11-16
TWI612405B true TWI612405B (en) 2018-01-21

Family

ID=56788117

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105104896A TWI612405B (en) 2015-02-23 2016-02-19 Control device and control system

Country Status (5)

Country Link
JP (1) JP6173615B2 (en)
KR (1) KR101827238B1 (en)
CN (1) CN107407920B (en)
TW (1) TWI612405B (en)
WO (1) WO2016135835A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0383104A (en) * 1989-08-28 1991-04-09 Matsushita Electric Works Ltd Programmable sequencer
US5819097A (en) * 1996-12-09 1998-10-06 Allen Bradley Company, Llc Industrial controller compiler with expandable instruction set
US5881290A (en) * 1996-12-09 1999-03-09 Allen-Bradley Company, Llc Industrial controller decompiler accommodating an expandable instruction set
JP2003015705A (en) * 2001-07-02 2003-01-17 Mitsubishi Electric Corp Network system
US6622300B1 (en) * 1999-04-21 2003-09-16 Hewlett-Packard Development Company, L.P. Dynamic optimization of computer programs using code-rewriting kernal module
JP2008276525A (en) * 2007-04-27 2008-11-13 Omron Corp Control program development support device for plc
US8117660B2 (en) * 2008-06-19 2012-02-14 Microsoft Corporation Secure control flows by monitoring control transfers
CN103680626A (en) * 2012-09-12 2014-03-26 通用汽车环球科技运作有限责任公司 Method to implement binary flag in flash memory

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05282021A (en) * 1992-03-31 1993-10-29 Fanuc Ltd Machining condition generation system for nc machine tool
JPH11242509A (en) * 1998-02-26 1999-09-07 Omron Corp Programmable logic controller
JP2002004887A (en) * 2000-06-20 2002-01-09 Niigata Eng Co Ltd Control device for gas turbine power generating set
JP2003157104A (en) * 2001-11-22 2003-05-30 Fuji Electric Co Ltd Programming device
JP2005092676A (en) * 2003-09-19 2005-04-07 Omron Corp Programmable controller, unit, and method for editing parameter
US7721019B2 (en) * 2005-09-30 2010-05-18 Rockwell Automation Technologies, Inc. Method and apparatus for partitioning industrial control data
JP2008006525A (en) * 2006-06-28 2008-01-17 Sk:Kk Grinding machine of saw chain
JP5012548B2 (en) 2008-02-07 2012-08-29 富士電機株式会社 Programmable controller
CN102713774B (en) * 2010-01-20 2015-05-13 三菱电机株式会社 Programmable controller system and development system
JP5056880B2 (en) * 2010-03-24 2012-10-24 横河電機株式会社 Field equipment maintenance system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0383104A (en) * 1989-08-28 1991-04-09 Matsushita Electric Works Ltd Programmable sequencer
US5819097A (en) * 1996-12-09 1998-10-06 Allen Bradley Company, Llc Industrial controller compiler with expandable instruction set
US5881290A (en) * 1996-12-09 1999-03-09 Allen-Bradley Company, Llc Industrial controller decompiler accommodating an expandable instruction set
US6622300B1 (en) * 1999-04-21 2003-09-16 Hewlett-Packard Development Company, L.P. Dynamic optimization of computer programs using code-rewriting kernal module
JP2003015705A (en) * 2001-07-02 2003-01-17 Mitsubishi Electric Corp Network system
JP2008276525A (en) * 2007-04-27 2008-11-13 Omron Corp Control program development support device for plc
US8117660B2 (en) * 2008-06-19 2012-02-14 Microsoft Corporation Secure control flows by monitoring control transfers
CN103680626A (en) * 2012-09-12 2014-03-26 通用汽车环球科技运作有限责任公司 Method to implement binary flag in flash memory

Also Published As

Publication number Publication date
CN107407920B (en) 2019-05-17
CN107407920A (en) 2017-11-28
WO2016135835A1 (en) 2016-09-01
JPWO2016135835A1 (en) 2017-04-27
KR20170103972A (en) 2017-09-13
TW201640240A (en) 2016-11-16
KR101827238B1 (en) 2018-03-22
JP6173615B2 (en) 2017-08-02

Similar Documents

Publication Publication Date Title
US9864365B2 (en) Control environment change communication
CN107885305B (en) Control device, control method, and recording medium
JP5963597B2 (en) Method for automatically generating application program code for a programmable logic controller for controlling a machine
US11294351B2 (en) Control environment command execution
JP5456208B1 (en) Numerical controller
TWI612405B (en) Control device and control system
JP2001265412A (en) Programmable controller
WO2022024334A1 (en) Update management program, information processing device, and update management method
WO2020202473A1 (en) Drive control device
JP3913414B2 (en) Editor device and recording medium recording editor program
JP2017220142A (en) Programming device
JP6812727B2 (en) Safety control unit, safety control method, safety control program
WO2023157091A1 (en) Image generation program, image generation device, programmable controller system, and image generation method
JP6812726B2 (en) Control unit, data refresh method, data refresh program
JP2005101078A (en) Substrate treatment equipment
WO2022254928A1 (en) Control device, control system, and program managing control program updates
JP3795473B2 (en) Editor device and recording medium recording editor program
JP2009181173A (en) Machine control panel screen display system, and display device having sequential control processing function
JPH09244717A (en) Controller
van der Linden et al. Towards evolvable state machines for automation systems
JPS63311446A (en) Power supply on/off function test system for logical device
JP2020046954A (en) Control system, engineering tool, and controller
JP4637527B2 (en) Elevator control data management system
JP2020061015A (en) Numerical control device