CN107407920A - Control device and control system - Google Patents

Control device and control system Download PDF

Info

Publication number
CN107407920A
CN107407920A CN201580076754.8A CN201580076754A CN107407920A CN 107407920 A CN107407920 A CN 107407920A CN 201580076754 A CN201580076754 A CN 201580076754A CN 107407920 A CN107407920 A CN 107407920A
Authority
CN
China
Prior art keywords
source
control
data
project data
parameter
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.)
Granted
Application number
CN201580076754.8A
Other languages
Chinese (zh)
Other versions
CN107407920B (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
    • 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/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4155Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by programme execution, i.e. part programme or machine function execution, e.g. selection of a programme

Abstract

Have:Storage part, it is stored comprising control program and the binary system project data in the source project data including performing the information of control program when institute reference and after being compiled to source project data;Memory, it is loaded into binary system project data when performing control program;Instrumentation portion, it is rewritten based on the data received to the binary system project data stored in storage part and the binary system project data for being loaded into memory;And source rewriting portion, it is rewritten based on the data received to the source project data stored in storage part.

Description

Control device and control system
Technical field
The present invention relates to a kind of control device being controlled to industrial machinery and control system.
Background technology
In order to be controlled to industrial machinery, control device is used.On control device, programmable controller is exemplified (JIS B 3502:2011, programmable controllers (PLC)), C language controller, motion controller or inversion Device.
Data comprising the control program performed by control device and including the information of control program when institute reference is performed It is referred to as project data.On performing the information of control program when institute reference, the numerical value used in computing is controlled is exemplified I.e. parameter, the working region in the memory of control device is carried out as defined in device memory or represent control device and work The link information of the connection status of industry machinery.
For project data, source code is created by performing design tool program on a personal computer, is compiled into Binary code, it is forwarded to control device.
As the technology of correlation, following technologies are recorded in patent document 1, i.e. created on programmer and apply journey The source code of sequence, link information table is generated by being compiled to it, be downloaded to inverter (specification digest).
On performing the information of control program when institute reference, can not be determined when being created using design tool program sometimes It is fixed.For example, when PID (PID) controls ratio (P) gain, integration (I) time or differential (D) used in computing Between be make industrial machinery action while determining.On parameter as described above, when the source code of project data creates, What is described is tentative initial value.
As described above, on performing the information of control program when institute reference, some are while making industrial machinery act one What side determined, therefore cause the initial value that is 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 being rewritten in control device Select definite value loss.
PLC servicing units 20 are recorded in patent document 2, the PLC servicing units 20 have:Tuned cell 205, it is held The tuner operation that row is finely adjusted to PLC 1 parameter (from 0026 section to 0030 section);And backup units 206, it is to buffering Backed up (from 0033 section to 0037 section) in the data amount of storage space 203.
Patent document 1:International Publication No. 2006/112324
Patent document 2:Japanese Unexamined Patent Publication 2004-178157 publications
The content of the invention
In the technology described in patent document 2, describe paired domination number and backed up according to amount, but it is not on the books to ginseng Number is backed up.In addition, in the technology described in patent document, in the situation that operation PLC 1 is tuned to parameter In the case of being tuned down and to PLC 1 parameter by other devices beyond PLC servicing units 20, the ginseng in PLC 1 Parameter in number and PLC servicing units 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 suppressed.
The present invention has storage part, and storage part storage is comprising control program and is performing the letter of control program when institute reference Source project data including breath and the binary system project data after being compiled to source project data.The present invention has:Storage Device, it is loaded into binary system project data when performing control program;Instrumentation portion, its based on the data received, to The binary system project data that is stored in storage part and it is loaded into the binary system project data of memory and is rewritten;And source is rewritten Portion, it is rewritten based on the data received to the source project data stored in storage part.
The effect of invention
Control device involved in the present invention has following effects, i.e. can be to this case that revised loss of data Suppressed.
Brief description of the drawings
Fig. 1 is the figure for the structure for representing control system, and the control system has used the control involved by embodiment 1 to fill Put.
Fig. 2 is the figure for the hardware configuration for representing the control program creating device involved by embodiment 1.
Fig. 3 is the functional block diagram of the control program creating device involved by embodiment 1.
Fig. 4 is the figure for the example for representing the source control program involved by embodiment 1.
Fig. 5 is the figure for the example for representing the source control parameter involved by embodiment 1.
Fig. 6 is the figure for the example for representing the source device memory involved by embodiment 1.
Fig. 7 be represent involved by embodiment 1 wait value whether the figure of the example of list.
Fig. 8 is the figure for the example for representing the parameter setting picture involved by embodiment 1.
Fig. 9 is the figure for the hardware configuration for representing the control device involved by embodiment 1.
Figure 10 is the functional block diagram of the control device involved by embodiment 1.
Figure 11 is the flow chart for representing the Instrumentation processing involved by embodiment 1.
Figure 12 is the flow chart for the source write-in processing for representing the control device involved by embodiment 1.
Figure 13 is to represent that the flow chart of processing is rewritten in the source involved by embodiment 1.
Figure 14 is the flow for the project data editing and processing for representing the control program creating device involved by embodiment 1 Figure.
Figure 15 is the functional block diagram of the control device involved by embodiment 2.
Figure 16 is that the flow chart of processing is rewritten in the source for representing the control device involved by embodiment 2.
Embodiment
Below, the control device involved by embodiments of the present invention and control system are said in detail based on accompanying drawing It is bright.In addition, the present invention is not limited to present embodiment.
Embodiment 1.
Fig. 1 is the figure for the structure for representing control system, and the control system has used the control involved by embodiment 1 to fill Put.Control system 1 includes:Control program creating device 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 creating device 2, programable display 3, higher level's control device 4 and control device 5 connect via network N Connect.On network N, LAN (Local Area Network) or internet are exemplified.
Control device 5 is controlled to machinery 6 and 7.On control device 5, programmable controller, C language control are exemplified Device, motion controller or inverter processed.
Control program creating device 2 is to comprising the control program performed by control device 5 and in execution control program when institute Project data including the information of reference is created.On performing the information of control program when institute reference, exemplify and controlling The numerical value used in computing processed i.e. parameter, in the memory of control device working region carry out as defined in device memory, Or represent the link information of the connection status of control device and industrial machinery.
Programable display 3 monitors to the data in control device 5, and to performing the control in control device 5 The information of processing procedure sequence when institute reference is changed.
Higher level's control device 4 is the computer that house steward is integrally carried out to production line entirety or factory, and control device 5 is carried out Control.
Fig. 2 is the figure for the hardware configuration for representing the control program creating device involved by embodiment 1.The institute of embodiment 1 The control program creating device 2 being related to is computer.Control program creating device 2 includes:CPU(Central Processing Unit) 21, RAM (Random Access Memory) 22, ROM (Read Only Memory) 23, storage part 24, input unit 25th, display part 26 and communication interface 27.
The one side of CPU 21 uses using RAM 22 as working region, while performing what is stored in ROM 23 and storage part 24 Program.On the program stored in ROM 23, BIOS (Basic Input/Output System) or UEFI is exemplified (Unified Extensible Firmware Interface).On the program stored in storage part 24, operation is exemplified System program and design tool program.On storage part 24, SSD (Solid State Drive) or HDD (Hard is exemplified Disk Drive)。
Input unit 25 receives the operation input from operator.On input unit 25, keyboard or mouse are exemplified.Display part 26 pairs of words and image are shown.On display part 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 the control program creating device involved by embodiment 1.CPU21 is performed in storage part 24 The design tool program of middle storage.Hereby it is achieved that design tool portion 21a, design tool portion 21a is included:Source project data is compiled Portion 21a1 is collected, its input of operation based on user, source project data 24a is created or edited;And compiling portion 21a2, its Source project data 24a is compiled and creates binary system project data 24b.
Source project data 24a is included:Source control program 24a1, source control parameter 24a2, source device memory 24a3 and wait Value whether list 24a4.
In addition, source project data 24a can also include other data.On other data, exemplify and represent 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 the example for representing the source control program involved by embodiment 1.In embodiment 1, source control journey Sequence 24a1 is described with functional block diagram language (IEC 61131-3, JIS B 3503).
In addition, functional block diagram language is not limited to the source control program 24a1 language described.On being controlled to source Other language that processing procedure sequence 24a1 is described, exemplify trapezoid figure language, sequential function graph-based language, structured text language or Instruction list language (IEC 61131-3, JIS B 3503).
Source control program 24a1 includes functional block 24a1a and 24a1b.Functional block 24a1a is pre- in design tool program First prepare PID (PID) control block, to input X1 progress ratios (P), integration (I) and differential (D) control Will output Y1 outputs.
Functional block 24a1b is the control block being created that by user, and input X2 and X3 is carried out
Y2=AX2+BX3+C
Such computing and will output Y2 output.
Fig. 5 is the figure for the example for representing the source control parameter involved by embodiment 1.Source control parameter 24a2 includes control The project of parameter name and the project of initial value.
Source control parameter 24a2 multiple row 24a2a are the parameters in functional block 24a1a control computing when institute reference, more Individual row 24a2b is the parameter in functional block 24a1b control computing when institute reference.
In multiple row 24a2a, initial value " reverse action " is set with parameter name " inversely acting positive action ", Initial value " 1.0 " is set with parameter name " controlling cycle ", initial value " 1.2 " is set with parameter name " proportional gain ", Initial value " 12.3 " is set with parameter name " time of integration ", initial value " 3.2 " is set with parameter name " derivative time ", Initial value " 100.0 " is set with parameter name " SV higher limits ", initial value is set with parameter name " SV lower limits " “0.0”。
In multiple row 24a2b, initial value " 0.9 " is set with parameter name " A ", is set with parameter name " B " just Initial value " 1.1 ", initial value " 100 " is set with parameter name " C ".
Fig. 6 is the figure for the example for representing the source device memory involved by embodiment 1.Source device memory 24a3 is included The project of implementor name and the project of initial value.
In source device memory 24a3, initial value " 200 " is set with implementor name " D000 ", at implementor name " D001 " In be set with initial value " 300 ".
Fig. 7 be represent involved by embodiment 1 wait value whether the figure of the example of list.Deng value whether list 24a4 The project of project and coincident indicator comprising control parameter name or implementor name.
Deng value, whether list 24a4 describes to following control parameters or equipment, i.e. enters in control device 5 to two , 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 source device memory are rewritten.
In control system 1, the data of binary system control parameter or binary device memory are entered in control device 5 Go in the case of rewriting, this case that also rewritten in control device 5 to source control parameter or source device memory quilt Referred to as " wait value ".
Deng value, whether list 24a4 multiple row 24a4a are described control computing when institute reference in functional block 24a1a Parameter in carry out wait value parameter.
Being described in multiple row 24a4a has parameter name " proportional gain ", parameter name " time of integration " and parameter name " during differential Between ".Therefore, if in control device 5 to the parameter name " proportional gain " in binary system control parameter, parameter name " during integration 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 data of " proportional gain ", parameter name " time of integration " or parameter name " derivative time " such as carry out at the value.
In addition, in the parameter of functional block 24a1a control computing when institute reference, " reverse action is positive dynamic for parameter name Make ", parameter name " controlling cycle ", parameter name " SV higher limits " and parameter name " SV lower limits " value such as be not described in and whether arrange Table 24a4.
Therefore, in control device 5 by the parameter name " inversely acting positive action " in binary system control parameter, The data rewriting of parameter name " controlling cycle ", parameter name " SV higher limits " or parameter name " SV lower limits ", the source in control device 5 Parameter name " inversely acting positive action ", parameter name " controlling cycle ", parameter name " SV higher limits " or ginseng in control parameter The values such as the data of several " SV lower limits " will not also be carried out.
In control parameter, exist as gain, make the action of machinery 6 and 7 while data are little by little carried out into essence Trueization and the parameter for finally determining data.The data of control parameter as described above preferably carry out waiting value and controlling source and join Several data are also rewritten.On the other hand, in control parameter, exist as counter, in order to carry out machinery 6 and 7 The parameter that action is verified and temporarily changes data.The data of control parameter as described above are preferably without waiting value.
Control system 1 have wait value whether list 24a4, thus, it is possible to only will preferably be rewritten in the control parameter of source Control parameter rewrite.
Deng value, whether the project description of list 24a4 coincident indicator has following marks, and the mark is represented in control device In the case of being rewritten in 5 to the data of binary system control parameter or binary device memory, if in control device 5 In immediately to source control parameter or the synchronizing of data of source device memory.
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 the data of source control parameter or source device memory are entered immediately in control device 5 Row synchronizes.
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 enter row buffering in control device 5, and meet predetermined condition When, the value such as carry out to source control parameter or the data of source device memory 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 to the parameter name " proportional gain " in binary system control parameter, The data of parameter name " time of integration " or parameter name " derivative time " are rewritten, then source are controlled immediately 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, there is a possibility that such as gain it thus would be desirable to which revised loss of data is reduced as far as possible Parameter.Control parameter as described above is preferably carried out waiting value immediately, and the data of source control parameter are rewritten immediately.Separately On the one hand, in control parameter, there is a possibility that to think compared with revised loss of data, it should preferential to realize control dress Put the scattered parameter of 5 load.The data of control parameter as described above carry out equivalence preferably after being considered to condition Change.
Control system 1 have the project comprising coincident indicator wait value whether list 24a4, thus, it is possible to only to source control In parameter processed, hope is rewritten the control parameter that the possibility of revised loss of data reduces as far as possible immediately.By This, control device 5 can reduce the possibility of revised loss of data, further, it is possible to realize the scattered of load.
Deng value, whether list 24a4 multiple row 24a4b are described control computing when institute reference in functional block 24a1b Parameter in carry out wait value parameter.
Being described 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 source are controlled in control device 5 The data of parameter name " A " or parameter name " B " in parameter such as carry out at the value.
In multiple row 24a4b, coincident indicator " 0 " is set with to parameter name " A " and parameter name " B ".Therefore, if controlled Parameter name " A " in binary system control parameter or the data of parameter name " B " are rewritten in device 5 processed, then will controlled Revised data enter row buffering in device 5, when meeting predetermined condition, in the control parameter of source in control device 5 The data of parameter name " A " or parameter name " B " such as carry out at the value.
In addition, in the parameter of functional block 24a1b control computing when institute reference, parameter name " C " is not described in equivalence Whether change list 24a4.Therefore, even if being carried out in control device 5 to the data of the parameter name " C " in binary system control parameter Rewrite, also will not be to the value such as the data of the parameter name " C " in the control parameter of source are carried out in control device 5.
The 24a4c that is expert at, which is described, 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 " are carried out.
It is expert in 24a4c, coincident indicator " 0 " is set with to implementor name " D000 ".Therefore, it is if 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 row buffering is entered, when meeting predetermined condition, to the number of the implementor name " D000 " in source device memory in control device 5 According to carry out wait value.
In addition, in device memory, the values such as implementor name " D001 " is not described in whether list 24a4.Therefore, exist Even if the data of the implementor name " D001 " in binary device memory are rewritten in control device 5, in control device 5 Also will not be to the value such as the data of the implementor name " D001 " in source device memory are carried out.
Fig. 8 is the figure for the example for representing the parameter setting picture involved by embodiment 1.Parameter setting picture 31 passes through source Project data editorial office 21a1 and shown on display part 26.
Input field 31a is the column for being inputted the initial value of parameter name " inversely acting positive action ".Input field 31b It is the column for being inputted the initial value of parameter name " controlling cycle ".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 being inputted the initial value of parameter name " time of integration ".
Input field 31e is the column for being inputted the initial value of parameter name " derivative time ".Input field 31f is by parameter name The column that the initial value of " SV higher limits " is inputted.Input field 31g is to be inputted the initial value of parameter name " SV lower limits " Column.
Input field 31h is by the column that value inputted such as whether parameter name " inversely acting positive action " needs.It is defeated Lairage 31i is by the column that value inputted such as whether parameter name " controlling cycle " needs.Input field 31j is by parameter name " ratio Whether example gain " needs the column for waiting value to be inputted.Input field 31k is by the value such as whether parameter name " time of integration " needs The column inputted.
Input field 31l is by the column that value inputted such as whether parameter name " derivative time " needs.Input field 31m be by The column that the values such as whether parameter name " SV higher limits " needs are inputted.Input field 31n be by parameter name " SV lower limits " whether Need the column for waiting value to be inputted.
Source project data editorial office 21a1 only will make the control ginseng chosen among input field 31h to input field 31n Number scale be set forth in etc. value whether list 24a4.
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 " such as are judged to carry out in advance at the high control parameter of necessity of value.Cause This, source project data editorial office 21a1 is defaulted as being chosen in input field 31j, 31k and 31l.
Thus, source project data editorial office 21a1 can give tacit consent to the high parameter name of necessity of reciprocity value " ratio increases Benefit ", parameter name " time of integration " and parameter name " derivative time " such as carry out at the value, and user is prompted.
Whether input field 31o needs parameter name " inversely acting positive action " to wait value to be inputted immediately Column.Input field 31p is that whether parameter name " controlling cycle " is needed into the instant column for waiting value to be inputted.Input field 31q be by Whether parameter name " proportional gain " needs the column for waiting value to be inputted immediately.
Input field 31r is that whether parameter name " time of integration " is needed into the instant column for waiting value to be inputted.Input field 31s It is whether parameter name " derivative time " is needed into the instant column for waiting value to be inputted.Input field 31t is by parameter name " the SV upper limits Whether value " needs the column for waiting value to be inputted immediately.Input field 31u be by parameter name " SV lower limits " whether need 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, waiting whether value describes " 1 " in the project of list 24a4 coincident indicator.
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 the possibility of revised value loss as far as possible in advance The control parameter of reduction.Therefore, source project data editorial office 21a1 is defaulted as being hooked in input field 31q, 31r and 31s Choosing.
Thus, source project data editorial office 21a1, which can give tacit consent to pair, wishes the possibility of revised value loss as far as possible The parameter name " proportional gain " of reduction, parameter name " time of integration " and parameter name " derivative time " such as carry out at the value immediately, to Prompted at family.
Referring again to Fig. 3, compiling portion 21a2 to source control program 24a1 by being compiled, so as to create binary system control Program 24b1, by being compiled to source control parameter 24a2, so as to create binary system control parameter 24b2, by source device Memory 24a3 is compiled, so as to create binary device memory 24b3.
Binary system control program 24b1, binary system control parameter 24b2 and binary device memory 24b3 form binary system Project data 24b.Project data 24a and binary system project data 24b are sent to control device by communication interface 27 in source 5。
Fig. 9 is the figure for the hardware configuration for representing the control device involved by embodiment 1.Control device 5 includes main substrate 5a and submounts 5b and 5c.
Main substrate 5a is included:It is CPU 5a1, the memory 5a2 as RAM, the timer 5a3 that timing is carried out to the time, outer Portion storage slot 5a4, communication interface 5a5, EBI 5a6, inside portion 5a7.CPU 5a1, memory 5a2, timer 5a3, external storage slot 5a4, communication interface 5a5, EBI 5a6 and inside portion 5a7 are via internal bus B1 connections.
Main substrate 5a receives power supply from UPS (Uninterruptible Power Supply) 10 and 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.
To external storage slot 5a4 insertion external storages portion 8.On external storage portion 8, SD card (registrar is exemplified Mark).
Communication interface 5a5 is via network N, with control program creating device 2, programable display 3 and higher level's control device 4 Communicated.
EBI 5a6 is by the bus bridge circuit of internal bus B1 and expansion bus B2 contacts.Submounts 5b and 5c are passed through It is connected by expansion bus B2 with main substrate 5a.Submounts 5b is connected with machinery 6.Submounts 5c is connected with mechnisiam.
On inside portion 5a7, SSD or HDD is exemplified.Inside portion 5a7 and external storage portion 8 form storage Portion.
Figure 10 is the functional block diagram of the control device involved by embodiment 1.Inside portion 5a7 from control program to creating The binary system project data 5a7a that device 2 receives is built to be stored.Binary system project data 5a7a is included:Binary system controls journey Sequence 5a7a1, binary system control parameter 5a7a2 and binary device memory 5a7a3.
External storage portion 8 stores to the source project data 8a received from control program creating device 2.Source engineering number Included according to 8a:Source control program 8a1, source control parameter 8a2, source device memory 8a3 and wait value whether list 8a4.
In addition, source project data 8a is stored in inside portion 5a7.Inside portion 5a7 reading speed 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 deposited Storage portion 5a7.
But in reality, for the requirement for suppressing cost or erection space, inside portion 5a7 storage sometimes is held Measure as low capacity, inside portion 5a7 does not have the idle capacity stored to source project data 8a sometimes.In embodiment In 1, the situation by the storage source project data 8a of external storage portion 8 is illustrated.
In the case where control device 5 performs control action, binary system control program 5a7a1, binary system control parameter 5a7a2 and binary device memory 5a7a3 are loaded on memory 5a2, turn into binary system control program 5a2a, binary system control Parameter 5a2b and binary device memory 5a2c processed.
CPU 5a1 perform the Instrumentation program stored in storage part 5a7 internally and program is rewritten in source.Thus, it is real 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 arranged in memory 5a2.Buffer 5a2d be in binary system control parameter 5a2b and Coincident indicator in 5a7a2 is set in the control parameter of " 0 ", or binary device memory 5a2c and 5a7a3 When mark be set to " 0 " equipment rewritten in the case of, revised data are entered with the region of row buffering.
Buffer 5a2d size is set in other programs and data are not counteracted in the range of.
Figure 11 is the flow chart for representing the Instrumentation processing involved by embodiment 1.Instrumentation portion 5a1a is such as Fruit receives control parameter or the rewriting instruction of equipment and rewrite data from programable display 3, then performs the place shown in Figure 11 Reason.
Although in addition, be to control device 5 from programable display 3 receive control parameter or equipment rewriting instruction and The situation of rewrite data illustrates, but is not limited to this.Control device 5 can also be from control program creating device 2, higher level Control device 4 or other control program creating devices in addition to control program creating device 2 receive control parameter or equipment Rewriting instruction and rewrite data.
Instrumentation portion 5a1a in the step s 100, the control parameter or equipment that will be received from programable display 3 Data write to binary system control parameter 5a2b and 5a7a2 or binary device memory 5a2c and 5a7a3.
Thus, control device 5 can make to be immediately reflected in control action from the data that programable display 3 receives.
Figure 12 is the flow chart for the source write-in processing for representing the control device involved by embodiment 1.If binary system changes The portion 5a1a of writing performs the processing shown in Figure 11, i.e. to binary system control parameter 5a2b and 5a7a2 or binary device memory 5a2c and 5a7a3 are rewritten, then source rewriting portion 5a1b performs the processing shown in Figure 12.
Deng value whether determination unit 5a1b1 in step s 110, with reference to etc. value whether list 8a4, judge from programmable The control parameter or equipment that display 3 receives whether be described in etc. value whether list 8a4, i.e. connect from programable display 3 Whether the control parameter or equipment received is the control parameter or equipment for needing to carry out etc. value.
Deng value, whether if determination unit 5a1b1 is determined as the control that is received from programable display 3 in step s 110 Parameter or equipment processed such as are not required to carry out at the control parameter or equipment (No) of value, then terminate to handle.
On the other hand, if waiting value, whether determination unit 5a1b1 is judged to connecing from programable display 3 in step s 110 The control parameter or equipment received is the control parameter or equipment (Yes) for needing to carry out etc. value, then processing is entered to step S112。
Buffer write section 5a1b2 in step S112, with reference to etc. value whether list 8a4, judge from programable display 3 Waiting value, whether coincident indicator is set to " 1 " control parameter or equipment received in list 8a4, i.e. from can compile Whether the control parameter or equipment that journey display 3 receives are the control parameter or equipment for needing to carry out etc. value immediately.
If buffering write section 5a1b2 is determined as the control parameter received from programable display 3 in step S112 Or equipment is the control parameter or equipment (Yes) for needing to carry out etc. value immediately, then processing is entered to step S114.
Source write section 5a1b3 is in step S114, the control parameter or the number of equipment that will be received from programable display 3 According to write-in to source control parameter 8a2 or source device memory 8a3, end processing.
Thus, control device 5 can carry out the needs received immediately to wait the control parameter of value or the data of equipment Write immediately to source control parameter 8a2 or source device memory 8a3.Thus, control device 5 can reduce revised data and lose The possibility of mistake.
On the other hand, if buffering write section 5a1b2 is determined as what is received from programable display 3 in step S112 Control parameter or equipment such as are not required to carry out immediately at the control parameter or equipment (No) of value, then processing is entered to step S116。
Write section 5a1b2 is buffered in step S116, judges the control parameter or equipment received from programable display 3 Whether buffer 5a2d is already present on.
If buffering write section 5a1b2 is determined as the control parameter received from programable display 3 in step S116 Or equipment is already present on buffer 5a2d (Yes), then processing is entered to step S118.
Write section 5a1b2 is buffered in step S118, by the control parameter received from programable display 3 or equipment Data cover to buffer 5a2d, end is handled.
Thus, control device 5 can reduce the number of internally storage part 5a7 data write-in.Internally storage part 5a7 Data write-in spend the time, and as CPU 51 load.Therefore, control device 5 is by reducing internally storage part 5a7 Data write-in number, so as to reduce CPU 51 processing load.
In addition, in the case that internally storage part 5a7 is SSD, the upper limit be present to SSD data write-in number.That is, just count For write-in number, SSD has the life-span.Therefore, control device 5 is write by reducing internally storage part 5a7 data Number, so as to make inside portion 5a7 long-term use of.
On the other hand, if buffering write section 5a1b2 is determined as what is received from programable display 3 in step S116 Control parameter or equipment are not present in buffer 5a2d (No), then processing is entered 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 write to buffer 5a2d, end processing.
Thus, control device 5 can be directed to that be considered as with the possibility of revised loss of data compared with should preferential reality Its data is entered row buffering by the control parameter or equipment of the load of existing control device 5.Internally storage part 5a7 data Write-in spends the time, and as CPU 5a1 load.Therefore, control device 5 can realize the scattered of load.
Figure 13 is the flow chart for representing the source exception processes involved by embodiment 1.Source write section 5a1b3 is in step S140 In, if being unsatisfactory for predetermined condition (No), wait, after predetermined condition is met (Yes), processing is entered to step S142。
On predetermined condition, following multiple conditions are exemplified.1st be CPU 5a1 utilization rate be less than or equal to it is pre- The situation of fixed threshold value.In this case, CPU 5a1 have processing surplus energy, therefore source write section 5a1b3 performs step S142's Processing.
2nd is that buffer 5a2d idle capacity is less than or equal to the situation of predetermined threshold value.In this case, hereafter Control parameter or the buffering of data of equipment be possible to carry out, therefore source write section 5a1b3 performs step S142 place Reason.
3rd is to receive expression from control program creating device 2, programable display 3 or higher level's control device 4 to perform The situation of step S142 instruction.In this case, write section 5a1b3 in source is according to control program creating device 2, programmable display The instruction of device 3 or higher level's control device 4, perform step S142 processing.User is by that to control program creating device 2 or can compile Journey display 3 is operated, so as in desired timing, make source write section 5a1b3 perform step S142 processing.
It will represent that the instruction for performing step S142 is sent to the situation of control device 5 on higher level's control device 4, exemplify Occur when production line starts operation, when each integral point moment or production line terminate operation.
4th is situations of the timer 5a3 to predetermined time progress timing.In this case, if from control device 5 Operate and have passed through the predetermined time, then write section 5a1b3 in source performs step S142 processing.In addition, in timer 5a3 repeatedly In the case of carrying out timing to the predetermined time, source write section 5a1b3 often passes through the predetermined time, performs step S142 place Reason.
5th is situation about notifying extremely that control device 5 receives system power supply 9 from UPS 10.On 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 The possibility of loss of data in 5a2d, perform step S142 processing.
6th be CPU 5a1 by implementing self diagnosis processing, detect the abnormal situation of control device 5.In the situation Under, source write section 5a1b3 performs step S142 processing to reduce the possibility of the loss of data in buffer 5a2d.
Buffer 5a2d content is write to source control parameter 8a2 or source and set in step S142 by source write section 5a1b3 Standby memory 8a3, end processing.
Thus, control device 5 control parameter after change or the data of equipment can be reflected in source control parameter 8a2 or In source device memory 8a3.Thus, control device 5 can be deposited to binary system control parameter 5a2b and 5a7a2 or binary device This case that the revised loss of data in reservoir 5a2c or 5a7a3 suppressed.
Figure 14 is the flow for the project data editing and processing for representing the control program creating device involved by 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 in step S152, receives the operation input from user, to source work Number of passes enters edlin according to 24a.
Next, compiling portion 21a2 in step S154, is compiled to 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 is sent by compiling portion 21a2 To control device 5, end processing.
As described above, control program creating device 2 can in control device 5 by the source work after data rewriting Number of passes enters edlin according to 24a.Thus, control device 5 can be to entering in this case that revised loss of data in control device 5 Row suppresses.
In addition, the feelings that data are rewritten based on the instruction from programable display 3 in control device 5 Under condition, the source project data 24a after control program creating device 2 can be also written over to data enters edlin.Thus, control dress 5 are put even in the device for the instruction for the sending out data rewriting situation different with the device that enters edlin to source project data 24a Under, also can be to this case that revised loss of data suppressing in control device 5.
In addition, control device 5 will only wait the data of control parameter that whether value is described in list 24a4 or equipment to write Enter to source control parameter 8a2 or source device memory 8a3.Thus, control device 5 only can set source control parameter 8a2 or source The preferred control parameter rewritten or equipment in standby memory 8a3 are rewritten.
In addition, control device 5 can only to it is in source control parameter 8a2 or source device memory 8a3, whether waiting value The control parameter or equipment that " 1 " is set with the project of list 24a4 coincident indicator are rewritten immediately.Thus, control device 5 can reduce the possibility of revised loss of data, and can realize the scattered of load.
In addition, control device 5 can to it is in source control parameter 8a2 or source device memory 8a3, waiting whether value arranges The data of control parameter or equipment that " 0 " is set with the project of table 24a4 coincident indicator enter row buffering.If moreover, meet Predetermined condition, then control device 5 data of the control parameter buffered or equipment can be write to source control parameter 8a2 Or source device memory 8a3.Thus, control device 5 can reduce the number of internally storage part 5a7 data write-in.Inwardly Portion storage part 5a7 data write-in spends the time, and as CPU 51 load.Therefore, control device 5 is inside by reducing The number of portion storage part 5a7 data write-in, so as to reduce CPU 51 processing load.
Embodiment 2.
Figure 15 is the functional block diagram of the control device involved by embodiment 2.It is internal as described in explanation in embodiment 1 Storage part 5a7 reading speed and writing speed is faster than the reading speed and writing speed in external storage portion 8.Therefore, internally In the case that storage part 5a7 has storage source project data 8a idle capacity, preferably inside portion 5a7 is to source project data 8a is stored.
Therefore, in the control device 5A involved by embodiment 2, inside portion 5a7 is carried out to source project data 8a Storage.
Inside portion 5a7 reading speed and writing speed 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 part 5a7 is read out and write are carried out to outside storage part 8 Read 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 do not enter row buffering, but Write immediately to source control parameter 8a2 or source device memory 8a3.
Therefore, the control device 5A involved by embodiment 2 does not need the slow of the control device 5 involved by embodiment 1 Rush write section 5a1b2 and buffer 5a2d.In addition, wait value whether list 8a4 do not need coincident indicator project.
Figure 16 is the flow chart for the source write-in processing for representing the control device involved by embodiment 2.If binary system changes The portion 5a1a of writing performs the processing shown in Figure 10, i.e. to binary system control parameter 5a2b and 5a7a2 or binary device memory 5a2c and 5a7a3 are rewritten, then source rewriting portion 5a1b performs the processing shown in Figure 16.
Deng value, whether determination unit 5a1b1 is in step S160, with reference to etc. value whether list 8a4, judge from programmable The control parameter or equipment that display 3 receives whether be described in etc. value whether list 8a4, i.e. connect from programable display 3 Whether the control parameter or equipment received is the control parameter or equipment for needing to carry out etc. value.
If Deng value, whether determination unit 5a1b1 is determined as the control that is received from programable display 3 in step S160 Parameter or equipment processed such as are not required to carry out at the control parameter or equipment (No) of value, then terminate to handle.
On the other hand, if waiting value, whether determination unit 5a1b1 is judged to connecing from programable display 3 in step S160 The control parameter or equipment received is the control parameter or equipment (Yes) for needing to carry out etc. value, then processing is entered to step S162。
Source write section 5a1b3 is in step S162, the control parameter or the number of equipment that will be received 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 write immediately to Source control parameter 8a2 or source device memory 8a3.Thus, control device 5A can be to the revised number in control device 5A Suppressed according to this case is lost.
Structure shown in embodiment above is illustrated that an example of present disclosure, also can be public with other The technology known is combined, and in the scope for the purport for not departing from the present invention, can also be omitted a part for structure, change.
The explanation of label
1 control system, 2 control program creating devices, 3 programable displays, 4 higher level's control devices, 5,5A control devices, The values such as 5a1 CPU, 5a1a Instrumentations portion, 5a1b sources rewriting portion, 5a1b1 whether determination unit, 5a1b2 buffering write section, 5a1b3 sources write section, 5a2 memories, 5a2a, 5a7a1,24b1 binary system control program, 5a2b, 5a7a2,24b2 binary system control Parameter processed, 5a2c, 5a7a3,24b3 binary device memory, 5a2d buffers, 5a7 inside portions, 5a7a, 24b bis- enter Project data processed, 8 external storage portions, 8a, 24a source project data, 8a1,24a1 source control program, 8a2,24a2 source control ginseng Number, 8a3,24a3 source device memory, the value such as 8a4,24a4 whether list.

Claims (5)

1. a kind of control device, it is characterised in that have:
Storage part, its store source project data comprising control program and including the information of control program when institute reference is performed, With source project data is compiled after binary system project data;
Memory, it is loaded into the binary system project data when performing the control program;
Instrumentation portion, it is based on the data received, to the binary system project data stored in the storage part And it is loaded into the binary system project data of the memory and is rewritten;And
Source rewriting portion, it is carried out based on the data received to the source project data stored in the storage part Rewrite.
2. control device according to claim 1, it is characterised in that
Whether list is stored the also reciprocity value of the storage part, and whether the source engineering number is described in list in such value According to it is interior in the information for performing the reference of control program when institute in the case where the binary system project data is written over What should be rewritten is performing the information of control program when institute reference,
The source rewriting portion described only to waiting what whether value was described in list performing the reference of control program when institute Information is rewritten.
3. control device according to claim 2, it is characterised in that
It is described to wait value whether list include the project of coincident indicator, if the project description of the coincident indicator has the binary system Project data is written over, if the source project data rewritten immediately,
The source rewriting portion in the project of the coincident indicator describe have it is rewriting immediately, when performing the control program The information of institute's reference is rewritten immediately.
4. control device according to claim 3, it is characterised in that
The memory includes buffer,
The source rewriting portion will be described in the project of the coincident indicator have it is not rewritten immediately, performing the control The information of institute's reference is write to the buffer, then if meeting predetermined condition, then by the buffer during program Data are write to the source project data.
5. a kind of control system, it is characterised in that have:
Control device any one of Claims 1-4;And
Control program creating device, it has source project data editorial office and compiling portion, and the source project data editorial office is to from institute State the source project data that control device receives and enter edlin, the compiling portion is compiled and created to the source project data 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 true CN107407920A (en) 2017-11-28
CN107407920B 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 (6)

* 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
US20070076264A1 (en) * 2005-09-30 2007-04-05 Pierce Scott A Method and apparatus for partitioning industrial control data
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 (12)

* 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
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 (6)

* 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
US20070076264A1 (en) * 2005-09-30 2007-04-05 Pierce Scott A Method and apparatus for partitioning industrial control data
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
CN107407920B (en) 2019-05-17
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
US11644803B2 (en) Control system database systems and methods
CN103069386B (en) Control program creating device, control program generator and control program creating method
CN101859245A (en) Method and device for generating user interface
CN104204976B (en) Information processor, analogy method and program
JP6289751B2 (en) Program generating apparatus, program generating method, and program generating program
CN114911492A (en) Inference service deployment method, device, equipment and storage medium
JP2000214238A (en) Device and method for calculating battery drive expected time
CN107407920A (en) Control device and control system
EP3979014A1 (en) Control system, support device, and support program
US6021359A (en) Method and apparatus for determining an inspection schedule for a production line
US10665262B2 (en) Amplifier selection device, amplifier selection method, and computer-readable storage medium having power source capacity display function
WO2014092178A1 (en) Information processing device and program
EP3291112A1 (en) Master and slave architecture for co-simulation of control systems
JP2007201309A (en) Parameter renewal system of simulation
US20230070378A1 (en) Method and system for facilitating a concurrent simulation of multiple robotic tasks
US20180182047A1 (en) Operation support apparatus, operation support system, and information processing apparatus
US20180018002A1 (en) Thermal simulation for management controller development projects
WO2023157091A1 (en) Image generation program, image generation device, programmable controller system, and image generation method
CN116485958B (en) Method and device for repairing action file and electronic equipment
US20230350392A1 (en) Method and system for seamless transition of runtime system from controller device to digitalization platform
JP7151161B2 (en) Control system, support equipment, support program
CN102782657B (en) Operation verification device and operation verification method
JP2008234379A (en) Software generation device and software generation method
Yahiaoui et al. Using systems engineering practices for distributed control and building performance simulation
Giral-Ramírez et al. Temperature Control Using The Simulink PLC Coder and The IEC 61131 Standard: Temperature Control Using The Simulink PLC Coder and The IEC 61131 Standard

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