CN107407920B - Control device and control system - Google Patents

Control device and control system Download PDF

Info

Publication number
CN107407920B
CN107407920B CN201580076754.8A CN201580076754A CN107407920B CN 107407920 B CN107407920 B CN 107407920B CN 201580076754 A CN201580076754 A CN 201580076754A CN 107407920 B CN107407920 B CN 107407920B
Authority
CN
China
Prior art keywords
source
control
data
parameter
control device
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201580076754.8A
Other languages
Chinese (zh)
Other versions
CN107407920A (en
Inventor
加纳敏之
臼井善夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of CN107407920A publication Critical patent/CN107407920A/en
Application granted granted Critical
Publication of CN107407920B publication Critical patent/CN107407920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Include storage unit, binary system project data of the storage comprising control program and in the source project data including the information for executing control program when institute reference and after being compiled to source project data;Memory is loaded into binary system project data when executing and controlling program;The binary system project data stored in storage unit and the binary system project data for being loaded into memory are rewritten based on the data received in Instrumentation portion;And the source project data stored in storage unit is rewritten based on the data received by source rewriting portion.

Description

Control device and control system
Technical field
The control device and control system controlled the present invention relates to a kind of pair of industrial machinery.
Background technique
In order to control industrial machinery, control device is used.About control device, programmable controller is exemplified (JIS B 3502:2011, programmable controllers (PLC)), C language controller, motion controller or inversion Device.
Control program comprising being executed by control device and the data including the information for executing control program when institute reference Referred to as project data.Numerical value used in operation is being controlled about exemplifying in the information for executing control program when institute reference I.e. parameter, to the working region in the memory of control device carry out as defined in device memory or indicate control device and work The link information of the connection status of industry machinery.
For project data, source code is created and executing design tool program on a personal computer, is compiled into Binary code is forwarded to control device.
As relevant technology, following technologies are recorded in patent document 1, that is, journey is applied in creation on programmer The source code of sequence generates link information table and being compiled to it, is downloaded to inverter (abstract of description).
About the information in execution control program when institute reference, sometimes when creating source code using design tool program It can not determine.For example, ratio (P) gain used in proportional integral differential (PID) control operation, integral (I) time or micro- (D) time is divided to determine while acting industrial machinery.About parameter as described above, in the source code of project data When creation, description is tentative initial value.
As described above, some are that industrial machinery is made to act one on one side about in the information for executing control program when institute reference What side determined, therefore lead to the initial value described in the source code of the project data in personal computer and in control device It is revised to select definite value difference.Thus, when then carrying out the editor of source code of project data using design tool program, by What is described in the source code of the project data in personal computer is initial value, therefore is caused after rewriting in control device Select definite value loss.
PLC auxiliary device 20 is recorded in patent document 2, which includes tuned cell 205, holds Tuner operation that row is finely adjusted the parameter of PLC 1 (from 0026 section to 0030 section);And backup units 206, to buffering It is backed up in the data amount of storage space 203 (from 0033 section to 0037 section).
Patent document 1: International Publication No. 2006/112324
Patent document 2: Japanese Unexamined Patent Publication 2004-178157 bulletin
Summary of the invention
In patent document 2, it describes and data amount is backed up, but not on the books parameter is backed up. It is auxiliary in the case where operating PLC 1 and tuned to parameter and by PLC in addition, in the technology described in patent document 2 Parameter and PLC auxiliary in the case that other devices helped other than device 20 tune the parameter of PLC 1, in PLC 1 Parameter in device 20 becomes different.That is, revised parameter is lost in PLC 1.
The present invention is exactly to propose in view of the foregoing, and its object is to obtain one kind to lose revised data Lose the control device that this case is inhibited.
Control device of the invention has storage unit, and storage unit storage is comprising control program and when execution controls program Source project data including the information of institute's reference and the binary system project data after being compiled to source project data.The present invention Control device also include memory, execute control program when be loaded into binary system project data;Instrumentation portion, Based on the data received, to the binary system project data stored in storage unit and the binary system engineering number for being loaded into memory According to being rewritten;And source rewriting portion changes the source project data stored in storage unit based on the data received It writes.
The effect of invention
Control device according to the present invention has following effects, that is, this case that can be to revised loss of data Inhibited.
Detailed description of the invention
Fig. 1 is the figure for indicating the structure of control system, which has used control dress involved in embodiment 1 It sets.
Fig. 2 is the figure for indicating the hardware configuration of control program creation apparatus involved in embodiment 1.
Fig. 3 is the functional block diagram of control program creation apparatus involved in embodiment 1.
Fig. 4 is the figure for indicating the example of the control of source involved in embodiment 1 program.
Fig. 5 is the figure for indicating the example of source control parameter involved in embodiment 1.
Fig. 6 is the figure for indicating the example of source device memory involved in embodiment 1.
Fig. 7 is the figure of the example of list whether indicating equal values involved in embodiment 1.
Fig. 8 is the figure for indicating the example of parameter setting picture involved in embodiment 1.
Fig. 9 is the figure for indicating the hardware configuration of control device involved in embodiment 1.
Figure 10 is the functional block diagram of control device involved in embodiment 1.
Figure 11 is the flow chart for indicating the processing of Instrumentation involved in embodiment 1.
Figure 12 is the flow chart for indicating the source write-in processing of control device involved in embodiment 1.
Figure 13 is the flow chart that processing is rewritten in the source involved in embodiment 1 that indicates.
Figure 14 is the process for indicating the project data editing and processing of control program creation apparatus involved in embodiment 1 Figure.
Figure 15 is the functional block diagram of control device involved in embodiment 2.
Figure 16 is to indicate that the flow chart of processing is rewritten in the source of control device involved in embodiment 2.
Specific embodiment
In the following, being said in detail based on attached drawing to control device involved in embodiments of the present invention and control system It is bright.In addition, the present invention is not limited to present embodiments.
Embodiment 1.
Fig. 1 is the figure for indicating the structure of control system, which has used control dress involved in embodiment 1 It sets.Control system 1 includes: control program creation apparatus 2, programable display (JIS B 3551:2012, programmable Display) 3, higher level's control device 4, control device 5, machinery 6 and 7.
Control program creation apparatus 2, programable display 3, higher level's control device 4 and control device 5 connect via network N It connects.About network N, LAN (Local Area Network) or internet are exemplified.
5 pairs of machinery of control device 6 and 7 control.About control device 5, programmable controller, C language control are exemplified Device, motion controller or inverter processed.
Program creation apparatus 2 is controlled to the control program comprising being executed by control device 5 and controls program when institute executing Project data including the information of reference is created.About in the information for executing control program when institute reference, exemplifies and controlling Numerical value, that is, parameter used in operation processed, in the memory of control device working region carry out as defined in device memory, Or indicate the link information of the connection status of control device and industrial machinery.
Programable display 3 monitors the data in control device 5, and to executing the control in control device 5 The information of processing procedure sequence when institute reference changes.
Higher level's control device 4 is the computer that general pipeline is integrally carried out to production line entirety or factory, is carried out to control device 5 Control.
Fig. 2 is the figure for indicating the hardware configuration of control program creation apparatus involved in embodiment 1.1 institute of embodiment The control program creation apparatus 2 being related to is computer.Control program creation apparatus 2 includes: CPU (Central Processing Unit) 21, RAM (Random Access Memory) 22,23, storage unit 24, input unit ROM (Read Only Memory) 25, display unit 26 and communication interface 27.
CPU 21 on one side RAM 22 used as working region, while execute and stored in ROM 23 and storage unit 24 Program.About the program stored in ROM 23, BIOS (Basic Input/Output System) or UEFI is exemplified (Unified Extensible Firmware Interface).About the program stored in storage unit 24, operation is exemplified System program and design tool program.About storage unit 24, SSD (Solid State Drive) or HDD (Hard is exemplified Disk Drive)。
Input unit 25 receives the operation input from operator.About input unit 25, keyboard or mouse are exemplified.Display unit 26 pairs of texts and image are shown.About display unit 26, liquid crystal display device is exemplified.Communication interface 27 via network N, with Control device 5 is communicated.
Fig. 3 is the functional block diagram of control program creation apparatus involved in embodiment 1.CPU21 is executed in storage unit 24 The design tool program of middle storage.Hereby it is achieved that design tool portion 21a, design tool portion 21a includes: source project data is compiled Portion 21a1 is collected, the operation input based on user is created or edited to source project data 24a;And compiling portion 21a2, Source project data 24a is compiled and creates binary system project data 24b.
Source project data 24a includes: source controls program 24a1, source control parameter 24a2, source device memory 24a3 and waits List 24a4 whether value.
In addition, source project data 24a also may include other data.About other data, exemplifying indicates control device 5 The link information of the connection of connection and control device 5 and mechnisiam with machinery 6.
Fig. 4 is the figure for indicating the example of the control of source involved in embodiment 1 program.In the embodiment 1, source controls journey Sequence 24a1 is described with functional block diagram language (IEC 61131-3, JIS B 3503).
In addition, being not limited to functional block diagram language to the source control program 24a1 language described.It is controlled about to source Other language that processing procedure sequence 24a1 is described, exemplify trapezoid figure language, timing function graph-based language, structured text language or Instruction list language (IEC 61131-3, JIS B 3503).
It includes functional block 24a1a and 24a1b that source, which controls program 24a1,.Functional block 24a1a is pre- in design tool program First prepare proportional integral differential (PID) control block out, to input X1 progress ratio (P), integral (I) and differential (D) control It will output Y1 output.
Functional block 24a1b is the control block being created that by user, is carried out to input X2 and X3
Y2=AX2+BX3+C
Such operation and will output Y2 output.
Fig. 5 is the figure for indicating the example of source control parameter involved in embodiment 1.Source control parameter 24a2 includes control The project of parameter name and the project of initial value.
Multiple row 24a2a of source control parameter 24a2 are the parameters in the control operation when institute reference of functional block 24a1a, more A row 24a2b is the parameter in the control operation when institute reference of functional block 24a1b.
In multiple row 24a2a, initial value " reverse movement " is set in parameter name " inversely acting positive action ", Initial value " 1.0 " are set in parameter name " control period ", initial value " 1.2 " are set in parameter name " proportional gain ", It is set with initial value " 12.3 " in parameter name " time of integration ", initial value " 3.2 " are set in parameter name " derivative time ", Initial value " 100.0 " are set in parameter name " SV upper limit value ", are set with initial value in parameter name " SV lower limit value " “0.0”。
In multiple row 24a2b, it is set with initial value " 0.9 " in parameter name " A ", is set in parameter name " B " just Initial value " 1.1 " is set with initial value " 100 " in parameter name " C ".
Fig. 6 is the figure for indicating the example of source device memory involved in embodiment 1.Source device memory 24a3 includes The project of implementor name and the project of initial value.
In source device memory 24a3, initial value " 200 " are set in implementor name " D000 ", at implementor name " D001 " In be set with initial value " 300 ".
Fig. 7 is the figure of the example of list whether indicating equal values involved in embodiment 1.List 24a4 whether equal values The project of project and coincident indicator comprising control parameter name or implementor name.
List 24a4 describes following control parameters or equipment whether equal values, that is, in control device 5 to two into It, should also be to source in control device 5 in the case that control parameter processed or the data of binary device memory are rewritten The control parameter or equipment that control parameter or the data of source device memory are rewritten.
In control system 1, in control device 5 to the data of binary system control parameter or binary device memory into It has gone in the case where rewriting, also the data of source control parameter or source device memory has been carried out rewriting this in control device 5 Situation is referred to as " waiting values ".
Multiple row 24a4a of list 24a4 describe the control operation when institute reference having in functional block 24a1a whether equal values Parameter in the parameter that carry out equal values.
Describing in multiple row 24a4a has parameter name " proportional gain ", parameter name " time of integration " and parameter name " when differential Between ".Therefore, if in control device 5 in binary system control parameter parameter name " proportional gain ", parameter name is " when integral Between " or the data of parameter name " derivative time " rewritten, then to the parameter name in the control parameter of source in control device 5 The values such as the data of " proportional gain ", parameter name " time of integration " or parameter name " derivative time " carry out.
In addition, " reverse movement is positive dynamic for parameter name in the parameter of the control operation when institute reference of functional block 24a1a Work ", parameter name " control period ", parameter name " SV upper limit value " and parameter name " SV lower limit value " arrange whether not being described in equal values Table 24a4.
Therefore, though in control device 5 by binary system control parameter parameter name " inversely acting positive action ", The data rewriting of parameter name " control period ", parameter name " SV upper limit value " or parameter name " SV lower limit value ", the source in control device 5 Parameter name " inversely acting positive action ", parameter name " control period ", parameter name " SV upper limit value " or ginseng in control parameter The values such as the data of several " SV lower limit values " will not carry out.
In control parameter, exist such as gain in this way, data are gradually carried out essence while acting machinery 6 and 7 Trueization and the parameter for finally determining data.The data of control parameter as described above preferably carry out equal values and source are controlled ginseng Several data are also rewritten.On the other hand, in control parameter, exist such as counter in this way, in order to carry out machinery 6 and 7 Movement is verified and temporarily by the parameter of data change.The data of control parameter as described above are preferably without waiting values.
List 24a4 whether the values such as control system 1 has, thus, it is possible to only will preferably rewrite in the control parameter of source Control parameter rewrite.
The project description of the coincident indicator of list 24a4 has following marks whether equal values, which indicates to fill in control It sets in the case where being rewritten in 5 to the data of binary system control parameter or binary device memory, if filled in control It sets in 5 immediately to the values such as the data of source control parameter or source device memory carry out.
In the case where coincident indicator is " 1 ", if to binary system control parameter or binary device in control device 5 The data of memory are rewritten, then in control device 5 immediately to the data of source control parameter or source device memory into The values such as row.
In the case where coincident indicator is " 0 ", if to binary system control parameter or binary device in control device 5 The data of memory are rewritten, then revised data will buffer in control device 5, and meet scheduled condition When, to the values such as the data of source control parameter or source device memory carry out in control device 5.
In multiple row 24a4a, to parameter name " proportional gain ", parameter name " time of integration " and parameter name " derivative time " It is set with coincident indicator " 1 ".Therefore, if in control device 5 in binary system control parameter parameter name " proportional gain ", The data of parameter name " time of integration " or parameter name " derivative time " are rewritten, then are controlled immediately to source in control device 5 The data of parameter name " proportional gain ", parameter name " time of integration " or parameter name " derivative time " in parameter processed carry out equivalent Change.
In control parameter, exist such as gain it thus would be desirable to by reducing as far as possible a possibility that revised loss of data Parameter.The values such as control parameter as described above preferably carries out immediately, rewrite the data of source control parameter immediately.Separately On the one hand, in control parameter, exist and think compared with a possibility that reducing revised loss of data, it should is preferential to realize control The parameter of the dispersion of the load of device 5 processed.The data of control parameter as described above are preferably poured to condition appropriate Equivalenceization is carried out after meal with wine.
List 24a4 whether control system 1 has the equal values of the project comprising coincident indicator, thus, it is possible to only to source control In parameter processed, hope rewrites the control parameter that a possibility that revised loss of data reduces as far as possible immediately.By This, control device 5 can reduce a possibility that revised loss of data, further, it is possible to realize the dispersion of load.
Multiple row 24a4b of list 24a4 describe the control operation when institute reference having in functional block 24a1b whether equal values Parameter in the parameter that carry out equal values.
Describing in multiple row 24a4b has parameter name " A " and parameter name " B ".Therefore, if to two in control device 5 The data of parameter name " A " or parameter name " B " in system control parameter are rewritten, then are controlled in control device 5 source The values such as the data of parameter name " A " or parameter name " B " in parameter carry out.
In multiple row 24a4b, coincident indicator " 0 " is set with to parameter name " A " and parameter name " B ".Therefore, if controlling The data of parameter name " A " or parameter name " B " in binary system control parameter are rewritten in device 5 processed, then will controlled Revised data are buffered in device 5, when meeting scheduled condition, in the control parameter of source in control device 5 The values such as the data of parameter name " A " or parameter name " B " carry out.
In addition, parameter name " C " is not described in equivalence in the parameter of the control operation when institute reference of functional block 24a1b List 24a4 whether change.Therefore, even if being carried out in control device 5 to the data of the parameter name " C " in binary system control parameter It rewrites, it will not be to the values such as the data of the parameter name " C " in the control parameter of source carry out in control device 5.
The 24a4c that is expert at description has implementor name " D000 ".Therefore, if to binary device memory in control device 5 The data of interior implementor name " D000 " are rewritten, then to the implementor name in source device memory in control device 5 The values such as the data of " D000 " carry out.
It is expert in 24a4c, coincident indicator " 0 " is set with to implementor name " D000 ".Therefore, if it is right in control device 5 The data of implementor name " D000 " in binary device memory are rewritten, then will in control device 5 revised number According to being buffered, when meeting scheduled condition, to the number of the implementor name " D000 " in source device memory in control device 5 According to carrying out equal values.
In addition, in device memory, list 24a4 whether implementor name " D001 " is not described in equal values.Therefore, exist Even if being rewritten in control device 5 to the data of the implementor name " D001 " in binary device memory, in control device 5 It will not be to the values such as the data of the implementor name " D001 " in source device memory carry out.
Fig. 8 is the figure for indicating the example of parameter setting picture involved in embodiment 1.Parameter setting picture 31 passes through source Project data editorial office 21a1 and shown on display unit 26.
Input field 31a is the column for inputting the initial value of parameter name " inversely acting positive action ".Input field 31b It is the column for inputting the initial value of parameter name " control period ".Input field 31c is by the initial of parameter name " proportional gain " The column that value is inputted.Input field 31d is the column for inputting the initial value of parameter name " time of integration ".
Input field 31e is the column for inputting the initial value of parameter name " derivative time ".Input field 31f is by parameter name The column that the initial value of " SV upper limit value " is inputted.Input field 31g is to input the initial value of parameter name " SV lower limit value " Column.
Input field 31h is by the column that values input such as whether parameter name " inversely acting positive action " needs.It is defeated Lairage 31i is the column for whether needing parameter name " control period " that values to be waited to input.Input field 31j is by parameter name " ratio The column that the values such as whether example gain " needs are inputted.Input field 31k is by the values such as whether parameter name " time of integration " needs The column inputted.
Input field 31l is by the column that values input such as whether parameter name " derivative time " needs.Input field 31m be by The column that the values such as whether parameter name " SV upper limit value " needs are inputted.Input field 31n be by parameter name " SV lower limit value " whether The column for needing equal values to be inputted.
Source project data editorial office 21a1 will only make the control chosen among input field 31h to input field 31n to join List 24a4 whether the values such as number scale is set forth in.
Functional block 24a1a is the pre-prepd control block in design tool program.Moreover, parameter name " proportional gain ", Parameter name " time of integration " and parameter name " derivative time " are judged to the high control parameter of necessity of values such as carrying out in advance.Cause This, source project data editorial office 21a1 is defaulted as being chosen in input field 31j, 31k and 31l.
Source project data editorial office 21a1 can default the high parameter name of necessity of reciprocity value " ratio increases as a result, The values such as benefit ", parameter name " time of integration " and parameter name " derivative time " carry out, prompt user.
Input field 31o is whether to need parameter name " inversely acting positive action " to wait values to input immediately Column.Input field 31p is the column for whether needing parameter name " control period " to wait values to input immediately.Input field 31q be by The column whether parameter name " proportional gain " needs to wait values to be inputted immediately.
Input field 31r is the column for whether needing parameter name " time of integration " to wait values to input immediately.Input field 31s It is the column for whether needing parameter name " derivative time " to wait values to input immediately.Input field 31t is by parameter name " the SV upper limit The column whether value " needs to wait values to be inputted immediately.Input field 31u be whether parameter name " SV lower limit value " is needed immediately etc. The column that value is inputted.
Source project data editorial office 21a1 among input field 31o to input field 31u only for having made the control chosen Parameter describes " 1 " in the project of the coincident indicator of list 24a4 whether equal values.
Functional block 24a1a is the pre-prepd control block in design tool program.Moreover, parameter name " proportional gain ", Parameter name " time of integration " and parameter name " derivative time " are judged to wish a possibility that losing revised value as far as possible in advance Reduced control parameter.Therefore, source project data editorial office 21a1 is defaulted as being hooked in input field 31q, 31r and 31s Choosing.
Source project data editorial office 21a1 can default a possibility that losing revised value to hope as far as possible as a result, Reduced parameter name " proportional gain ", parameter name " time of integration " and parameter name " derivative time " carry out equal values immediately, to Family is prompted.
Referring again to Fig. 3, compiling portion 21a2 is compiled by controlling program 24a1 to source, to create binary system control Program 24b1, by being compiled to source control parameter 24a2, so that binary system control parameter 24b2 is created, by source device Memory 24a3 is compiled, to create binary device memory 24b3.
Binary system controls program 24b1, binary system control parameter 24b2 and binary device memory 24b3 and constitutes binary system Project data 24b.Source project data 24a and binary system project data 24b are sent to control device by communication interface 27 5。
Fig. 9 is the figure for indicating the hardware configuration of control device involved in embodiment 1.Control device 5 includes main substrate 5a and submount 5b and 5c.
Main substrate 5a includes: CPU 5a1, the memory 5a2 as RAM, timer 5a3, outer that timing is carried out to the time Portion stores slot 5a4, communication interface 5a5, bus interface 5a6, inside portion 5a7.CPU 5a1, memory 5a2, timer 5a3, external storage slot 5a4, communication interface 5a5, bus interface 5a6 and inside portion 5a7 are via internal bus B1 connection.
Main substrate 5a receives power supply from UPS (Uninterruptible Power Supply) 10 and is acted. UPS 10 carries out electric power storage to the electric power supplied from system power supply 9, by the power supply after electric power storage to main substrate 5a.
External storage portion 8 is inserted into external storage slot 5a4.About external storage portion 8, SD card (registrar is exemplified Mark).
Communication interface 5a5 is via network N, with control program creation apparatus 2, programable display 3 and higher level's control device 4 It is communicated.
Bus interface 5a6 is the bus bridge circuit for contacting internal bus B1 and expansion bus B2.Submount 5b and 5c warp It is connect by expansion bus B2 with main substrate 5a.Submount 5b is connect with machinery 6.Submount 5c is connect with mechnisiam.
About inside portion 5a7, SSD or HDD is exemplified.Inside portion 5a7 and external storage portion 8 constitute storage Portion.
Figure 10 is the functional block diagram of control device involved in embodiment 1.Inside portion 5a7 is created to from control program The binary system project data 5a7a that device 2 receives is built to be stored.Binary system project data 5a7a includes: binary system controls journey Sequence 5a7a1, binary system control parameter 5a7a2 and binary device memory 5a7a3.
External storage portion 8 stores the source project data 8a received from control program creation apparatus 2.Source engineering number Include according to 8a: list 8a4 whether source controls program 8a1, source control parameter 8a2, source device memory 8a3 and waits values.
In addition, source project data 8a is stored in inside portion 5a7.The reading speed of inside portion 5a7 and Writing speed is faster than the reading speed and writing speed in external storage portion 8, therefore source project data 8a is preferably stored in inside and deposits Storage portion 5a7.
But in reality, for the requirement for inhibiting cost or mounting area, the storage of inside portion 5a7 is held sometimes Amount is low capacity, and inside portion 5a7 does not have the sufficient idle capacity stored to source project data 8a sometimes.In reality It applies in mode 1, is illustrated to by the case where 8 storage source project data 8a of external storage portion.
In the case where control device 5 executes control action, binary system controls program 5a7a1, binary system control parameter 5a7a2 and binary device memory 5a7a3 are loaded on memory 5a2, become binary system control program 5a2a, binary system control Parameter 5a2b and binary device memory 5a2c processed.
CPU 5a1 executes the Instrumentation program stored in inside portion 5a7 and program is rewritten in source.It is real as a result, Existing Instrumentation portion 5a1a and source rewriting portion 5a1b, the Instrumentation portion 5a1a is based on the data received, to binary system Control parameter 5a7a2 and 5a2b or binary device memory 5a7a3 and 5a2c are rewritten, if binary system control parameter 5a7a2 and 5a2b or binary device memory 5a7a3 and 5a2c are written over, then source rewriting portion 5a1b is based on the number received According to being rewritten to source control parameter 8a2 or source device memory 8a3.
It is also loaded into addition, program is rewritten in Instrumentation program and source to memory 5a2, but diagram is omitted.
In addition, buffer 5a2d is set in memory 5a2.Buffer 5a2d be in binary system control parameter 5a2b and Coincident indicator in 5a7a2 is set to the data or binary device memory 5a2c and 5a7a3 of the control parameter of " 0 " In the coincident indicator equipment that is set to " 0 " data rewritten in the case where, revised data are buffered Region.
The size of buffer 5a2d is set in other programs and data are not counteracted in the range of.
Figure 11 is the flow chart for indicating the processing of Instrumentation involved in embodiment 1.Instrumentation portion 5a1a is such as Fruit receives the rewriting instruction and rewriting data of the data of control parameter or equipment from programable display 3, then executes Figure 11 institute The processing shown.
Although in addition, being the rewriting for receiving the data of control parameter or equipment from programable display 3 to control device 5 The case where instruction and rewriting data, is illustrated, and but not limited to this.Control device 5 can also be from control program creation apparatus 2, higher level's control device 4 or other control program creation apparatus other than controlling program creation apparatus 2 receive control parameter Or the rewriting instruction and rewriting data of the data of equipment.
Instrumentation portion 5a1a in the step s 100, the control parameter or equipment that will be received from programable display 3 Data be written to binary system control parameter 5a2b and 5a7a2 or binary device memory 5a2c and 5a7a3.
Control device 5 can be such that the data received from programable display 3 are immediately reflected in control action as a result,.
Figure 12 is the flow chart for indicating the source write-in processing of control device involved in embodiment 1.If binary system changes The portion 5a1a of writing performs processing shown in Figure 11, that is, to binary system control parameter 5a2b and 5a7a2 or binary device memory 5a2c and 5a7a3 are rewritten, then source rewriting portion 5a1b executes processing shown in Figure 12.
Whether equal values determination unit 5a1b1 in step s 110, referring to etc. values whether list 8a4, determine from programmable List 8a4 whether the values the such as whether control parameter or equipment that display 3 receives are described in, that is, connect from programable display 3 Whether the control parameter or equipment received is the control parameter or equipment for carrying out equal values.
The control that if determination unit 5a1b1 is judged to receiving from programable display 3 in step s 110 whether equal values Parameter or equipment processed are not required to the control parameter or equipment (No) of values such as carrying out, then end processing.
On the other hand, if determination unit 5a1b1 is judged to connecing from programable display 3 in step s 110 whether waiting values The control parameter or equipment received is to carry out the control parameter or equipment (Yes) of equal values, then processing is made to enter to step S112。
Write section 5a1b2 is buffered in step S112, referring to etc. values whether list 8a4, determine from programable display 3 Whether coincident indicator is set to " 1 " to the control parameter or equipment received in list 8a4 whether equal values, that is, from can compile Whether the control parameter or equipment that journey display 3 receives are the control parameter or equipment for needing values such as carrying out immediately.
If the control parameter that buffering write section 5a1b2 is judged to receiving from programable display 3 in step S112 Or equipment is to need the control parameter or equipment (Yes) of values such as carrying out immediately, then processing is made to enter to step S114.
Source write section 5a1b3 is in step S114, by the number of the control parameter or equipment that receive from programable display 3 According to write-in to source control parameter 8a2 or source device memory 8a3, end processing.
Control device 5 can carry out immediately the needs received to wait the control parameter of values or the data of equipment as a result, It is written immediately to source control parameter 8a2 or source device memory 8a3.Control device 5 can reduce revised data and lose as a result, A possibility that mistake.
On the other hand, if buffering what write section 5a1b2 was judged to receiving from programable display 3 in step S112 Control parameter or equipment are not required to the control parameter or equipment (No) of values such as carrying out immediately, then processing is made to enter to step S116。
Write section 5a1b2 is buffered in step S116, determines the control parameter or equipment received from programable display 3 Whether buffer 5a2d is already present on.
If the control parameter that buffering write section 5a1b2 is judged to receiving from programable display 3 in step S116 Or equipment is already present on buffer 5a2d (Yes), then processing is made to enter to step S118.
Write section 5a1b2 is buffered in step S118, by the control parameter received from programable display 3 or equipment Data cover is ended processing to buffer 5a2d.
Control device 5 can reduce the number of the data write-in of internally storage unit 5a7 as a result,.Internally storage unit 5a7 Data write-in take a considerable amount of time, and become CPU5a1 load.Therefore, control device 5 is by reducing internally The number of the data write-in of storage unit 5a7, so as to reduce the processing load of CPU 5a1.
In addition, to the data of SSD write-in number, there are the upper limits in the case where inside portion 5a7 is SSD.That is, just counting For write-in number, SSD has the service life.Therefore, control device 5 is written by reducing the data of internally storage unit 5a7 Number, so as to which inside portion 5a7 be used for a long time can.
On the other hand, if buffering what write section 5a1b2 was judged to receiving from programable display 3 in step S116 Control parameter or equipment are not present in buffer 5a2d (No), then processing is made to enter to step S120.
Write section 5a1b2 is buffered in the step s 120, by the control parameter received from programable display 3 or equipment Data are written to buffer 5a2d, end processing.
Control device 5 can be for be considered should be excellent compared with a possibility that reducing revised loss of data as a result, The control parameter or equipment for first realizing the load of control device 5, buffer its data.Internally storage unit 5a7 Data write-in takes a considerable amount of time, and becomes the load of CPU 5a1.Therefore, control device 5 can be realized point of load It dissipates.
Figure 13 is the flow chart for indicating source exception processes involved in embodiment 1.Source write section 5a1b3 is in step S140 In, if being unsatisfactory for scheduled condition (No), wait, after meeting scheduled condition (Yes), processing is made to enter to step S142。
About scheduled condition, following multiple conditions are exemplified.1st is the utilization rate of CPU 5a1 less than or equal to pre- The case where fixed threshold value.In this case, CPU 5a1 has processing surplus energy, therefore source write section 5a1b3 executes step S142's Processing.
2nd is the case where idle capacity of buffer 5a2d is less than or equal to scheduled threshold value.In this case, hereafter Control parameter or the buffering of data of equipment be possible to not carry out, therefore source write section 5a1b3 executes the place of step S142 Reason.
3rd is that control device 5 is received from control program creation apparatus 2, programable display 3 or higher level's control device 4 To the case where the instruction for indicating execution step S142.In this case, source write section 5a1b3 according to control program creation apparatus 2, The instruction of programable display 3 or higher level's control device 4 executes the processing of step S142.User passes through to control program creation Device 2 or programable display 3 are operated, so as to make source write section 5a1b3 execute step S142 in desired timing Processing.
Higher level's control device 4 will indicate the case where instruction for executing step S142 is sent to control device 5, exemplify Occur when production line starts operation, when each integral point moment or production line terminate operation.
4th is the case where timer 5a3 carries out timing to the scheduled time.In this case, if from control device 5 It has operated and have passed through the scheduled time, then write section 5a1b3 in source executes the processing of step S142.In addition, timer 5a3 repeatedly In the case where carrying out timing to the scheduled time, source write section 5a1b3 is every to pass through the scheduled time, executes the place of step S142 Reason.
5th is the case where control device 5 is notified from the exception that UPS 10 receives system power supply 9.About system power supply 9 Exception, exemplify power failure, instantaneous power failure or variation in voltage.In this case, write section 5a1b3 in source is in order to reduce buffer A possibility that loss of data in 5a2d, executes the processing of step S142.
6th is CPU 5a1 by implementing self diagnosis processing, detects the abnormal situation of control device 5.In the situation Under, a possibility that source write section 5a1b3 is in order to reduce the loss of data in buffer 5a2d, executes the processing of step S142.
The content of buffer 5a2d is written to source control parameter 8a2 or source and is set in step S142 by source write section 5a1b3 Standby memory 8a3, ends processing.
As a result, control device 5 data of control parameter or equipment after change can be reflected in source control parameter 8a2 or In source device memory 8a3.Control device 5 can deposit binary system control parameter 5a2b and 5a7a2 or binary device as a result, This case that the revised loss of data in reservoir 5a2c or 5a7a3 inhibited.
Figure 14 is the process for indicating the project data editing and processing of control program creation apparatus involved in embodiment 1 Figure.
Source project data editorial office 21a1 receives source project data 8a in step S150, from control device 5, and covering is to depositing The source project data 24a in storage portion 24.
Next, source project data editorial office 21a1 receives operation input from the user in step S152, to source work Number of passes is edited according to 24a.
Next, compiling portion 21a2 in step S154, is compiled source project data 24a, binary system engineering is created Data 24b is simultaneously covered.
Next, in step S156, source project data 24a and binary system project data 24b are sent by compiling portion 21a2 To control device 5, end processing.
As described above, control program creation apparatus 2 can in control device 5 by the source work after data rewriting Number of passes is edited according to 24a.As a result, control device 5 can in control device 5 this case that revised loss of data into Row inhibits.
In addition, even if the feelings rewritten based on the instruction from programable display 3 to data in control device 5 Under condition, the source project data 24a after control program creation apparatus 2 can also be written over data is edited.Control dress as a result, Even if setting 5 situations different with the device edited to source project data 24a in the device for the instruction for sending out data rewriting Under, this case that revised loss of data it can also inhibit in control device 5.
In addition, control device 5 only writes the data of the control parameter or equipment that describe in list 24a4 whether equal values Enter to source control parameter 8a2 or source device memory 8a3.Control device 5 can only set source control parameter 8a2 or source as a result, The data rewriting of the preferred control parameter rewritten or equipment in standby memory 8a3.
In addition, control device 5 can only to it is in source control parameter 8a2 or source device memory 8a3, etc. values whether The data of control parameter or equipment that " 1 " is set in the project of the coincident indicator of list 24a4 are rewritten immediately.It controls as a result, Device 5 processed can be by reduction a possibility that revised loss of data, and can be realized the dispersion of load.
In addition, control device 5 can to it is in source control parameter 8a2 or source device memory 8a3, etc. values whether arrange The data of control parameter or equipment that " 0 " is set in the project of the coincident indicator of table 24a4 are buffered.Moreover, if meeting Scheduled condition, then control device 5 data of the control parameter buffered or equipment can be written to source control parameter 8a2 Or source device memory 8a3.Control device 5 can reduce the number of the data write-in of internally storage unit 5a7 as a result,.Inwardly The data write-in of portion storage unit 5a7 takes a considerable amount of time, and becomes the load of CPU 5a1.Therefore, control device 5 is logical The number for reducing the data write-in of internally storage unit 5a7 is crossed, so as to reduce the processing load of CPU 5a1.
Embodiment 2.
Figure 15 is the functional block diagram of control device involved in embodiment 2.It is internal as described in explanation in embodiment 1 The reading speed and writing speed of storage unit 5a7 is faster than the reading speed and writing speed in external storage portion 8.Therefore, in inside In the case where sufficient idle capacity of the storage unit 5a7 with storage source project data 8a, preferably inside portion 5a7 is to source work Number of passes is stored according to 8a.
Therefore, in the control device 5A involved in embodiment 2, inside portion 5a7 carries out source project data 8a Storage.
The reading speed and writing speed of inside portion 5a7 is faster than the reading speed and writing speed in external storage portion 8. In addition, the CPU 5a1 processing duty ratio CPU 5a1 that internally storage unit 5a7 is read out and is written is carried out to external storage unit 8 It reads and the processing load of write-in is small.
Therefore, in embodiment 2, the data of the control parameter to values such as needing or equipment are not buffered, but It is written immediately to source control parameter 8a2 or source device memory 8a3.
Therefore, control device 5A involved in embodiment 2 does not need the slow of control device 5 involved in embodiment 1 Rush write section 5a1b2 and buffer 5a2d.In addition, list 8a4 does not need the project of coincident indicator whether waiting values.
Figure 16 is the flow chart for indicating the source write-in processing of control device involved in embodiment 2.If binary system changes The portion 5a1a of writing performs processing shown in Figure 11, that is, to binary system control parameter 5a2b and 5a7a2 or binary device memory 5a2c and 5a7a3 are rewritten, then source rewriting portion 5a1b executes processing shown in Figure 16.
Determination unit 5a1b1 is in step S160 whether equal values, referring to etc. values whether list 8a4, determine from programmable List 8a4 whether the values the such as whether control parameter or equipment that display 3 receives are described in, that is, connect from programable display 3 Whether the control parameter or equipment received is the control parameter or equipment for carrying out equal values.
If the control that determination unit 5a1b1 is judged to receiving from programable display 3 in step S160 whether equal values Parameter or equipment processed are not required to the control parameter or equipment (No) of values such as carrying out, then end processing.
On the other hand, if determination unit 5a1b1 is judged to connecing from programable display 3 in step S160 whether waiting values The control parameter or equipment received is to carry out the control parameter or equipment (Yes) of equal values, then processing is made to enter to step S162。
Source write section 5a1b3 is in step S162, by the number of the control parameter or equipment that receive from programable display 3 According to write-in to source control parameter 8a2 or source device memory 8a3, end processing.
As described above, control device 5A the data of the control parameter received or equipment can be written immediately to Source control parameter 8a2 or source device memory 8a3.Control device 5A can be to number revised in control device 5A as a result, Inhibited according to this case is lost.
Structure shown in above embodiment shows an example of the contents of the present invention, also can be with other public affairs The technology known is combined, and in the range for not departing from purport of the invention, can also be omitted a part of structure, change.
The explanation of label
1 control system, 2 control program creation apparatus, 3 programable displays, 4 higher level's control devices, 5,5A control device, 5a1 CPU, 5a1a Instrumentation portion, the source 5a1b rewriting portion, the determination unit whether values such as 5a1b1,5a1b2 buffer write section, The source 5a1b3 write section, 5a2 memory, 5a2a, 5a7a1,24b1 binary system control program, 5a2b, 5a7a2,24b2 binary system control Parameter processed, 5a2c, 5a7a3,24b3 binary device memory, 5a2d buffer, 5a7 inside portion, 5a7a, 24b bis- into Project data processed, 8 external storage portions, the source 8a, 24a project data, the source 8a1,24a1 control program, the source 8a2,24a2 control ginseng Number, 8a3,24a3 source device memory, the list whether values such as 8a4,24a4.

Claims (4)

1. a kind of control device comprising:
Storage unit, source project data of the storage comprising control program and including the information for executing control program when institute reference; And
The source project data stored in the storage unit is rewritten based on the data received by source rewriting portion,
The storage unit also reciprocity value whether list stored, grade values or not include only to describe the source in list The information of the control program when institute reference is being executed and what should be rewritten executing the control journey in project data The project of the information of institute's reference when sequence,
Source rewriting portion is only executing the control to should being rewritten of describing in list whether the equal values The information of institute's reference is rewritten when program.
2. control device according to claim 1, which is characterized in that
The storage unit also stores the binary system project data after being compiled the source project data,
Also there is Instrumentation portion, which is deposited based on the data received in the storage unit The binary system project data of storage is rewritten,
List includes the project of coincident indicator whether the equal values, if the project description of the coincident indicator has the binary system Project data is written over, if the source project data rewritten immediately,
Source rewriting portion in the project of the coincident indicator describe have it is rewriting immediately, when executing the control program The information of institute's reference is rewritten immediately.
3. control device according to claim 2, which is characterized in that
Also there is buffer,
Source rewriting portion will be described in the project of the coincident indicator have it is not rewriting immediately, executing the control Be written will be in the buffer then if meeting scheduled condition to the buffer for the information of institute's reference when program Data are written to the source project data.
4. a kind of control system comprising:
Control device described in claim 2 or 3;And
Program creation apparatus is controlled, with source project data editorial office and compiling portion, the source project data editorial office is to from institute It states the source project data that control device receives to be edited, which is compiled the source project data and creates The binary system project data is built, the binary system project data is sent to the control device.
CN201580076754.8A 2015-02-23 2015-02-23 Control device and control system Active CN107407920B (en)

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN107407920A CN107407920A (en) 2017-11-28
CN107407920B true CN107407920B (en) 2019-05-17

Family

ID=56788117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580076754.8A Active CN107407920B (en) 2015-02-23 2015-02-23 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 (5)

* 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
JPH11242509A (en) * 1998-02-26 1999-09-07 Omron Corp Programmable logic controller
JP2008006525A (en) * 2006-06-28 2008-01-17 Sk:Kk Grinding machine of saw chain
JP2008276525A (en) * 2007-04-27 2008-11-13 Omron Corp Control program development support device for plc
CN102713774A (en) * 2010-01-20 2012-10-03 三菱电机株式会社 Programmable controller system and development system

Family Cites Families (13)

* 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
US5881290A (en) * 1996-12-09 1999-03-09 Allen-Bradley Company, Llc Industrial controller decompiler accommodating an expandable instruction set
US5819097A (en) * 1996-12-09 1998-10-06 Allen Bradley Company, Llc Industrial controller compiler with 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
JP2002004887A (en) * 2000-06-20 2002-01-09 Niigata Eng Co Ltd Control device for gas turbine power generating set
JP3894421B2 (en) * 2001-07-02 2007-03-22 三菱電機株式会社 Network system
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
JP5012548B2 (en) 2008-02-07 2012-08-29 富士電機株式会社 Programmable controller
US8117660B2 (en) * 2008-06-19 2012-02-14 Microsoft Corporation Secure control flows by monitoring control transfers
JP5056880B2 (en) * 2010-03-24 2012-10-24 横河電機株式会社 Field equipment maintenance system
US20140075094A1 (en) * 2012-09-12 2014-03-13 GM Global Technology Operations LLC Method to implement a binary flag in flash memory

Patent Citations (5)

* 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
JPH11242509A (en) * 1998-02-26 1999-09-07 Omron Corp Programmable logic controller
JP2008006525A (en) * 2006-06-28 2008-01-17 Sk:Kk Grinding machine of saw chain
JP2008276525A (en) * 2007-04-27 2008-11-13 Omron Corp Control program development support device for plc
CN102713774A (en) * 2010-01-20 2012-10-03 三菱电机株式会社 Programmable controller system and development system

Also Published As

Publication number Publication date
TWI612405B (en) 2018-01-21
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
US9389606B2 (en) Agile control model system and method
EP2592506B1 (en) Chainable plug-ins
EP2592512A2 (en) Control environment change communication
US20120102492A1 (en) Power supply and control method thereof
CN107885305B (en) Control device, control method, and recording medium
US8010960B2 (en) System and method for providing a software installation or removal status display
EP2592511A2 (en) Control environment change communication
CN104204976A (en) Information processing apparatus, simulation method, and program
JP6986203B2 (en) Control devices, control systems, control methods and control programs
US11294351B2 (en) Control environment command execution
US20140136570A1 (en) Controller and program
CN114911492A (en) Inference service deployment method, device, equipment and storage medium
CN107407920B (en) Control device and control system
JP2006031525A (en) Information processor, information processing method and program
US20070113051A1 (en) Apparatus and method for live loading of control applications in a process control environment
US6889101B1 (en) Apparatus for computer-aided design of a product or process
WO2023157091A1 (en) Image generation program, image generation device, programmable controller system, and image generation method
US20180095434A1 (en) Information processing apparatus, information processing method and program
JP7151161B2 (en) Control system, support equipment, support program
US20230070378A1 (en) Method and system for facilitating a concurrent simulation of multiple robotic tasks
CN113728286A (en) Screen data generation system, screen data generation method, and program
van der Linden et al. Towards evolvable state machines for automation systems
Yahiaoui et al. Using systems engineering practices for distributed control and building performance simulation
Mrosko et al. OPC Communication in Real Time
JP2021114019A (en) Data processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant