CN107533322A - Diagnosis of program device, diagnosis of program method and diagnosis of program program - Google Patents
Diagnosis of program device, diagnosis of program method and diagnosis of program program Download PDFInfo
- Publication number
- CN107533322A CN107533322A CN201580078870.3A CN201580078870A CN107533322A CN 107533322 A CN107533322 A CN 107533322A CN 201580078870 A CN201580078870 A CN 201580078870A CN 107533322 A CN107533322 A CN 107533322A
- Authority
- CN
- China
- Prior art keywords
- retrieval
- order
- action
- program
- condition
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
Abstract
Have:Storage part, it is stored to control program, order specification data and retrieval result data, the control program includes action command and condition commands, the order specification data includes command name, the classification of order and the process content of order of order, the result for the retrieval that retrieval result data accumulation performs for control program;Specification of variables portion, it sets to target variable;Action retrieval portion, the action command that its value to target variable is possible to change are retrieved, and the command name of target variable name and the action command retrieved, the classification of order and process content are write to retrieval result data;Conditional information retrieval portion, it retrieves the condition commands judged the condition for performing action command, the command name of the variable name of the independent variable of the condition commands retrieved and condition commands, the classification of order and process content are write to retrieval result data, the independent variable of condition commands is set as to new target variable;Determination unit is retrieved, it makes action retrieval portion and conditional information retrieval portion perform retrieval again;And guide look display part, its content to retrieval result data carry out guide look and shown.
Description
Technical field
The present invention relates to the diagnosis of program device diagnosed to control program, diagnosis of program method and diagnosis of program journey
Sequence.
Background technology
For the control system being controlled in FA (Factory Automation) fields to machinery, control program passes through
Program language is described.As program language, ladder diagram (Ladder, LD) language or structured text are exemplified
(Structured Text, ST) language (IEC 61131-3, JIS B 3503:2012).
Control program includes order and variable.The value of some variable in the control program feelings different from contemplated value
Under condition, in order to investigate its reason, following operation has manually been carried out.
1st operation be operations described below, i.e. backtracking control program, pair there is a possibility that the position of the value changes of target variable and
Condition is investigated.
2nd operation is operations described below, i.e. is controlled emulating for program, is reproduced in what is investigated out by the 1st operation
Position meets the situation of condition.
3rd operation is operations described below, i.e. control program is further recalled, to meeting the condition by the 2nd operation reproducing
Position and condition investigated.
Hereafter, the 2nd operation and the 3rd operation are repeated, detects out basic reason.
But manually recall control program and constantly investigate this way and spend time and workload, it is thus determined that becoming
The value of amount is difficult with the reason for contemplated value difference.
As correlation technique, following trapezoid figure program diagnostic methods are recorded in following patent documents 1, i.e. examining
In the case of output signal is measured as abnormal contact, the program step of trapezoid figure program forwardly is returned from the output signal,
Carry out while being confirmed, the contacts status of 11 while the covering diagnosis the (the 0053rd being determined to fault contact
Section).
In addition, the reason for exception in the program of ladder diagram sequential manner is recorded in following patent documents 2 position
Method is found out, it has following processes:1st process, using the exception of output instruction part as search key, from trapezoid figure program
Found in interior whole program blocks comprising the program block including the output instruction part that can be operated to the value;2nd process, enters
The logical operation in the condition commands portion of program block that row is found during the 1st, the logical operation knot pair with the condition commands portion
The state of the output instruction part of the corresponding program block of fruit is judged, whether carries out the program block to above-mentioned abnormal output
The state of instruction part, which implements operation, makes the state be genuine validity decision;3rd process, program block is legal during the 2nd
In the case of, the whole relays that can be operated to the state of the output instruction part are searched from the condition commands portion of the program block
Device;4th process, the mistake of the 1st, the 2nd and the 3rd is repeated using the relay found during the 3rd as next search key
Journey;And the 5th process, in the case of not finding corresponding program block during the 1st, the result of the purport is exported, and
And in the case of during the 3rd not finding corresponding relay, export using the relay in the condition commands portion as different
The result (page 4 to page 5) of normal reason.
In addition, having recorded following timing diagram monitors in following patent documents 3, it is obtained dynamic by timing diagram obtaining section
Make the timing diagram of state, the desired symbol in action timing diagram is selected by selector, is thus connected line retrieval portion
Search for by following the clues the connecting line of pair upstream related to the symbol retrieve, the output of operating state can be readily derived
Whether there is, and even if operating state changes, the retrieval of faulty component (explanation digest can be also carried out successively by reading in the data
Will).
Patent document 1:Japanese Unexamined Patent Publication 2001-67122 publications
Patent document 2:Japanese Unexamined Patent Publication 3-108005 publications
Patent document 3:Japanese Unexamined Patent Publication 9-305207 publications
The content of the invention
But in the technology described in patent document 1 to 3, user understand that as contact the reason for problem, but
It can not know from as the order between contact the reason for problem to the contact that problem occurs.Therefore, user is difficult to grasp and asked
The overall overview of topic.
The present invention is exactly to propose in view of the foregoing, user can be made to be easy to grasp its object is to obtaining one kind and asked
The diagnosis of program device of the overall overview of topic.
In order to solve above-mentioned problem and achieve the goal, the present invention has storage part, and the storage part is to control program, order
Specification data and retrieval result data are stored, and the control program includes the action command for the value changes for making independent variable and to holding
The condition commands that the condition of row action command is judged, the order specification data include the life that can be described in a control program
The command name of order, the process content and the classification of action command or condition commands of order, retrieval result data accumulation are directed to
The result for the retrieval that control program performs.The present invention has:Specification of variables portion, it sets to target variable;Action retrieval
Portion, its action command for being possible to change to the value of target variable from control program are retrieved, the action retrieved are ordered
Order and order specification data are compareed, by the command name of the variable name of target variable and the action command retrieved, order
Classification and process content write to retrieval result data;Conditional information retrieval portion, it is retrieved from control program to performing by acting
The condition commands that the condition for the action command that search part retrieves is judged, by the condition commands retrieved and order specification number
According to being compareed, by the command name of the variable name of the independent variable of the condition commands retrieved and the condition commands retrieved, life
The classification and process content of order are write to retrieval result data, and the independent variable of the condition commands retrieved is set as to new target
Variable;Determination unit is retrieved, it makes action retrieval portion and conditional information retrieval portion perform retrieval again;And guide look display part, it is to inspection
The content of rope result data carries out guide look and shown.
The effect of invention
Diagnosis of program device involved in the present invention has following effects, i.e. user can be made to be easy to the whole of grasp problem
Body overview.
Brief description of the drawings
Fig. 1 is the figure for the structure for representing the control system involved by embodiment 1.
Fig. 2 is the figure for the hardware configuration for representing the control device involved by embodiment 1.
Fig. 3 is the figure for the hardware configuration for representing the engineering tools involved by embodiment 1.
Fig. 4 is the figure for the functional block for representing the engineering tools involved by embodiment 1.
Fig. 5 is the figure for the order specification data for representing the engineering tools involved by embodiment 1.
Fig. 6 is the figure for the retrieval number data for representing the engineering tools involved by embodiment 1.
Fig. 7 is the figure for the range of search data for representing the engineering tools involved by embodiment 1.
Fig. 8 is the figure for the retrieval result data for representing the engineering tools involved by embodiment 1.
Fig. 9 is that the project data for representing the engineering tools involved by embodiment 1 creates the figure of picture.
Figure 10 is the flow chart for the processing for representing the engineering tools involved by embodiment 1.
Figure 11 is the flow chart for the processing for representing the engineering tools involved by embodiment 1.
Figure 12 is the flow chart for the processing for representing the engineering tools involved by embodiment 1.
Figure 13 is the figure for the diagnosis of program picture for representing the engineering tools involved by embodiment 1.
Figure 14 is the figure illustrated to the retrieval process of the engineering tools involved by embodiment 1.
Figure 15 is the figure illustrated to the retrieval process of the engineering tools involved by embodiment 1.
Figure 16 is the figure illustrated to the retrieval process of the engineering tools involved by embodiment 1.
Figure 17 is the figure for the diagnosis of program picture for representing the engineering tools involved by embodiment 1.
Figure 18 is the flow chart for the processing for representing the engineering tools involved by embodiment 1.
Figure 19 is the flow chart for the processing for representing the engineering tools involved by embodiment 1.
Embodiment
Below, based on accompanying drawing, to the diagnosis of program device involved by embodiments of the present invention, diagnosis of program method and journey
Sequence diagnostic program is described in detail.In addition, the present invention is not limited to present embodiment.
Embodiment 1.
Fig. 1 is the figure for the structure for representing the control system involved by embodiments of the present invention 1.Control system 1 includes:Work
Journey design tool 2, control device 3, machinery 4 and 5.
Engineering tools 2 are created comprising the project data including the control program performed by control device 3, are sent to control
Device 3 processed.The control program that control device 3 is included by performance of work data, so as to be controlled to machinery 4 and 5.As
Control device 3, exemplify programmable controller (JIS B 3502:2011、programmable controllers(PLC)).
Fig. 2 is the figure for the hardware configuration for representing the control device involved by embodiment 1.Control device 3 includes:Main substrate
3a, submounts 3b and 3c.
Main substrate 3a is included:CPU(Central Processing Unit)3a1、RAM(Random Access
Memory) it is memory 3a2, communication interface 3a3, EBI 3a4, storage part 3a5.CPU 3a1, memory 3a2, communication connect
Mouth 3a3, EBI 3a4 and storage part 3a5 are via internal bus B1 connections.
Communication interface 3a3 is communicated with engineering tools 2.
EBI 3a4 is the bus bridge circuit for connecting internal bus B1 and expansion bus B2.Submounts 3b and
3c is connected via expansion bus B2 with main substrate 3a.Submounts 3b is connected with machinery 4.Submounts 3c is connected with machinery 5.
Storage part 3a5 stores to the project data 24a received from engineering tools 2.As storage part 3a5,
Exemplify SSD (Solid State Drive) or HDD (Hard Disk Drive).
Project data 24a is included:Control program 24a1, it includes the action command for the value changes for making independent variable and to performing
The condition commands that the condition of action command is judged;Control parameter 24a2, it is referenced when performing control program 24a1;If
Standby memory 24a3, it is provided to the working region in memory 3a2;And link information 24a4, it is to submounts 3b
Provided with the annexation and submounts 3c of machinery 4 and the annexation of machinery 5.
Control program 24a1 is included:MAIN (master) program 24a1a and SUB (son) program 24a1b.In embodiment 1, control
Processing procedure sequence 24a1 is the program described by trapezoid figure language, but is not limited to this.Remember as to control program 24a1
Other language stated, exemplify structured text language.
In memory 3a2, it is ensured that pass through multiple equipment as defined in device memory 24a3 progress.In embodiment 1,
Multiple equipment in memory 3a2 is each corresponding with control program 24a1 variable.
Fig. 3 is the figure for the hardware configuration for representing the engineering tools involved by embodiment 1.Involved by embodiment 1
Engineering tools 2 can be realized using computer.Computer includes:CPU 21、RAM 22、ROM(Read Only
Memory) 23, storage part 24, input unit 25, display part 26, communication interface 27.CPU 21, RAM 22, ROM 23, storage part
24th, input unit 25, display part 26 and communication interface 27 connect via bus B.
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.As the program stored in ROM 23, BIOS (Basic Input/Output System) or UEFI is exemplified
(Unified Extensible Firmware Interface).As the program stored in storage part 24, operation is exemplified
System program and engineering tools program.As storage part 24, SSD or HDD is exemplified.
Input unit 25 receives the operation input from user.As input unit 25, keyboard or mouse are exemplified.Display part 26
Word and image are shown.As display part 26, liquid crystal display device is exemplified.Communication interface 27 is entered with control device 3
Row communication.
Fig. 4 is the figure for the functional block for representing the engineering tools involved by embodiment 1.Storage part 24 is to project data
24a is stored.
Project data 24a is included:Control program 24a1, it includes the action command for the value changes for making independent variable and to performing
The condition commands that the condition of action command is judged;Control parameter 24a2, it is referenced when performing control program 24a1;If
Working region in standby memory 24a3, its memory 3a2 to control device 3 provides;And link information 24a4, its
Submounts 3b and the annexation of machinery 4 and the annexation of the submounts 3c of control device 3 and machinery 5 to control device 3
Provided.
Storage part 24 is stored to order specification data 24b, and order specification data 24b is included:In control program
The command name for the complete order that can be described in 24a1;The classification of action command or condition commands;And the process content of order.
In embodiment 1, control program 24a1 is described by trapezoid figure language.Therefore, order specification number
Included according to 24b:The command name of the complete order of trapezoid figure language;The classification of action command or condition commands;And the place of order
Manage content.
Fig. 5 is the figure for the order specification data for representing the engineering tools involved by embodiment 1.Order specification data
24b is included:The project 24b1 of command name, the project 24b2 of order classification, the project 24b3 of comment and the project of remarks
24b4。
Order specification data 24b row 51 includes the information related to " LD " (loading) order.Be expert at 51 command name
Being described in project has command name " LD ".Be expert at 51 order classification project in, because LD orders are condition commands, thus describe
There is order classification " condition ".
Be expert at 51 comment project in, describe have " LD " order action explanation." LD " order be to the 1st from
Whether variable is order that ON (unlatching) is judged, thus be expert at 51 comment project in, description is described word
" #1 ON ".
Be expert at 51 remarks project in, describe have " LD " order the 1st independent variable data type.The of " LD " order
1 independent variable is bit-type, thus be expert at 51 remarks project in, description have remarks " bit variable ".
Order specification data 24b row 52 includes the information related to " OUT " (output) order.Be expert at 52 command name
In project, description has command name " OUT ".Be expert at 52 order classification project in, because OUT orders are action command, therefore
Description has order classification " action ".
Be expert at 52 comment project in, describe have " OUT " order action explanation." OUT " order is by the 1st
Independent variable is set to the order of ON (unlatching), thus be expert at 52 comment project in, description is described word and " is set to #1
ON”。
Be expert at 52 remarks project in, describe have " OUT " order the 1st independent variable data type." OUT " order
1st independent variable is bit-type, thus be expert at 52 remarks project in, description have remarks " bit variable ".
Order specification data 24b row 53 includes the information related to "=" (being equal to) order.Be expert at 53 command name
In project, description has command name "=".Be expert at 53 order classification project in, due to "=" order be condition commands, therefore
Description has order classification " condition ".
Be expert at 53 comment project in, describe have "=" order action explanation."=" order be to the 1st from
Variable and the whether equal order judged of the 2nd independent variable, thus be expert at 53 comment project in, description is described
Word " #1 is equal with #2 ".
Be expert at 53 remarks project in, describe have "=" order the 1st independent variable and the 2nd independent variable data type.
"=" order the 1st independent variable and the 2nd independent variable be font, therefore be expert at 53 remarks project in, description have remarks " word change
Amount ".
Order specification data 24b row 54 includes the information related to " MOV " (movement) order.Be expert at 54 command name
In project, description has command name " MOV ".Be expert at 54 order classification project in, due to " MOV " order be condition commands, because
This description has order classification " action ".
Be expert at 54 comment project in, describe have " MOV " order action explanation." MOV " order is by the 1st
The value of independent variable is forwarded to the order of the 2nd independent variable, thus be expert at 54 comment project in, description be described word
" #1 is forwarded to #2 ".
Be expert at 54 remarks project in, describe have " MOV " order the 1st independent variable and the 2nd independent variable data type.
" MOV " order the 1st independent variable and the 2nd independent variable be font, therefore be expert at 54 remarks project in, describe have remarks " word
Variable ".
In fig. 5, it is shown that 4 rows 51,52,53 and 54 related to 4 orders.But in fact, order specification data
24b includes the multiple rows related to the complete order described by trapezoid figure language.
Referring again to Fig. 4, storage part 24 stores to retrieval termination condition data 24c, the retrieval termination condition data
24c describes the termination condition having for the control program 24a1 retrievals performed.Retrieval termination condition data 24c is included:Retrieval time
Number data 24c1 and range of search data 24c2.
Fig. 6 is the figure for the retrieval number data for representing the engineering tools involved by embodiment 1.In retrieval number number
According in 24c1, description has " 10 ".Thus, the retrieval performed for control program 24a, at most perform and terminate untill 10 times.
Fig. 7 is the figure for the range of search data for representing the engineering tools involved by embodiment 1.Range of search data
24c2 is included:The project of scope starting step numbering and the project of scope end step numbering.In the project that scope originates step numbering,
Description has " 1 ".In the project of scope end step numbering, description has " 100 ".Thus, the inspection performed for control program 24a1
Rope is limited to the scope untill step numbering 100 from step numbering 1, then terminates if the deviation from the scope.
Referring again to Fig. 4, storage part 24 stores to retrieval result data 24d, retrieval result data 24d accumulation pins
To the result of the control program 24a1 retrievals performed.
Fig. 8 is the figure for the retrieval result data for representing the engineering tools involved by embodiment 1.Retrieval result data
24d is included:The project 24d1 of variable name, the project 24d2 of command name, the project 24d3 of order classification, the project of comment
24d4, the project 24d5 of program name and step numbering project 24d6.
On retrieval result data 24d row 61,62,63 and 64, carried out in the explanation of the action of engineering tools 2
Explanation.
Referring again to Fig. 4, storage part 24 is stored to performing data 24e, and execution data 24e is accumulated in control program
Value under the predetermined timing (timing) of the whole variables used in 24a1.That is, data 24e is performed under multiple different timings
The value of whole variables is accumulated.
On retrieval result data 24d, illustrated in the explanation of the action of engineering tools 2.
CPU 21 performs the engineering tools program stored in storage part 24.Hereby it is achieved that created comprising project data
Build portion 21a1 and diagnosis of program portion 21a2 engineering tools portion 21a.
Project data establishment portion 21a1 creates to project data 24a, sends to control device 3.
Fig. 9 is that the project data for representing the engineering tools involved by embodiment 1 creates the figure of picture.Project data
Establishment portion 21a1 makes project data establishment picture 30 be shown in display part 26.
Project data creates picture 30, and there is control program to create column 30a.In fig.9, column 30a is created in control program
It is interior, it is created that MAIN programs 24a1a.
MAIN programs 24a1a is included:Row 41,42,43,44,45 and 46.
Row 41 includes:Condition commands 41a and action command 41b.Condition commands 41a is " LD M0 "." M0 " therein is to become
Amount.In embodiment 1, the combination of English alphabet " M " and numerical value represents the variable of bit-type.
Action command 41b is " INC D0 "." D0 " therein is variable.In embodiment 1, English alphabet " D " sum
The combination of value represents the variable of font." INC " (incremental) order is to make the order of the 1st independent variable increase by 1.That is, action command 41b
It is the order for making variable " D0 " increase by 1.
Row 42 includes:Condition commands 42a and action command 42b.Condition commands 42a is " LD M100 "." M100 " therein
It is variable.
Action command 42b is " MOV D0D10 "." D10 " therein is variable." MOV " order is by the value of the 1st independent variable
It is forwarded to the order of the 2nd independent variable.That is, action command 42b is the order that the value of variable " D0 " is forwarded to variable " D10 ".
Row 43 includes:Condition commands 43a and action command 43b.Condition commands 43a is " LD M200 "." M200 " therein
It is variable.
Action command 43b is " OUT Y0 "." Y0 " therein is variable.In embodiment 1, English alphabet " Y " sum
The combination of value represents the variable of bit-type.That is, action command 43b is the order that variable " Y0 " is set to ON.
Row 44 includes:Condition commands 44a and action command 44b.Condition commands 44a is "=D10K10000 ".It is therein
" K10000 " is constant " 10000 ".That is, condition commands 44a be it is whether equal to the value of variable " D10 " and constant " 10000 " enter
The order that row judges.
Action command 44b is " MOV K15D20 "." K15 " therein is constant " 15 ", and " D20 " is variable.That is, action life
It is the order that constant " 15 " is forwarded to variable " D20 " to make 44b.
Row 45 includes:Condition commands 45a and action command 45b.Condition commands 45a is " LD M10 ", " LD M11 ", " LD
M12 " OR (logic or)." M10 " therein, " M11 " and " M12 " are variables.That is, condition commands 45a is to variable " M10 "
Value, the value of variable " M11 ", the logic of the value of variable " M12 " or the order judged.
Action command 45b is " MOV D20 D30 "." D30 " therein is variable.That is, action command 45b is by variable
The value of " D20 " is forwarded to variable " D30 " order.
Row 46 is to terminate order.
Referring again to Fig. 4, diagnosis of program portion 21a2 includes the specification of variables portion 21a2a set to target variable.Become
Amount configuration part 21a2a can receive to be inputted to the variable of input unit 25 by user, is set as target variable.In addition, specification of variables
Portion 21a2a can receive the variable there occurs problem from control device 3, be set as target variable.
Diagnosis of program portion 21a2 includes action retrieval portion 21a2b, and the action retrieval portion 21a2b is right from control program 24a1
The action command that the value of target variable is possible to change is retrieved, by the action command retrieved and order specification data 24b
Compareed, by the command name of target variable name and the action command retrieved, order classification and process content write to
Retrieval result data 24d.
Diagnosis of program portion 21a2 includes conditional information retrieval portion 21a2c, and the conditional information retrieval portion 21a2c examines from control program 24a1
The condition commands that rope is judged by the condition of the action retrieval portion 21a2b action commands retrieved execution, by what is retrieved
Condition commands and order specification data 24b are compareed, by the variable name of the independent variable of the condition commands retrieved and retrieval
The command name of the condition commands gone out, the classification of order and process content are write to retrieval result data 24d, the condition that will be retrieved
The independent variable of order is set as new target variable.
Diagnosis of program portion 21a2, which includes retrieval determination unit 21a2d, retrieval determination unit 21a2d, makes action retrieval portion 21a2b
And conditional information retrieval portion 21a2c performs retrieval again.
Diagnosis of program portion 21a2 includes guide look display part 21a2e, and the guide look display part 21a2e is to retrieval result data 24d
Content carry out guide look and show.
Diagnosis of program portion 21a2 includes scanner section 21a2f, and scanner section 21a2f is by making a reservation for timing, to control device 3
Memory 3a2 be scanned, so as to obtain the value of the whole variables used in control program 24a1, write-in is to performing data
24e。
For predetermined timing, illustrated below.
1st is every to pass through the regular hour.As the regular hour, exemplify 1 second.Thus, data 24e is being performed
In, the value of every whole variables by the regular hour is accumulated.
2nd be from control device 3 receive the notice there occurs problem this purport when.Thus, data 24e is being performed
In, in control device 3, there occurs the value of whole variables during problem to accumulate.
3rd to be user will perform the instruction that scans this purport when inputting to input unit 25.Thus, data are being performed
In 24e, the value of whole variables under the desired timing of user is accumulated.
Figure 10 is the flow chart for the processing for representing the engineering tools involved by embodiment 1.
Scanner section 21a2f is in predetermined timing, the processing shown in execution Figure 10.
Scanner section 21a2f in step slo, by being scanned to the memory 3a2 of control device 3, so as to obtain
The value of the whole variables used in control program 24a1.
In step s 12, the value of whole variables acquired in step slo is write to execution number by scanner section 21a2f
According to 24e, end processing.
Referring again to Fig. 4, diagnosis of program portion 21a2 includes simulation part 21a2g, and simulation part 21a2g is by emulating control
Processing procedure sequence 24a1, so as to which the value of whole variables to being used in control program 24a1 calculates, write-in to execution data
24e。
Thus, in data 24e is performed, even if acting control device 3, also to being used in control program 24a1
The value of whole variables is accumulated.Therefore, also can be to controlling journey even if diagnosis of program portion 21a2 acts control device 3
The problem of sequence 24a1, is diagnosed.
Figure 11 is the flow chart for the processing for representing the engineering tools involved by embodiment 1.
If user inputs the instruction for emulate this purport to input unit 25, simulation part 21a2g execution
Processing shown in Figure 11.
Simulation part 21a2g is in step S20, by emulating control program 24a1, so as to in control program 24a1
The value of the middle whole variables used is calculated.
Simulation part 21a2g writes the value of the whole variables calculated in step S20 to execution number in step S22
According to 24e, end processing.
Figure 12 is the flow chart for the processing for representing the engineering tools involved by embodiment 1.
Specification of variables portion 21a2a in the step s 100, is set to target variable.
Figure 13 is the figure for the diagnosis of program picture for representing the engineering tools involved by embodiment 1.Specification of variables portion
21a2a makes diagnosis of program picture 70 be shown in display part 26.
Diagnosis of program picture 70 has specification of variables column 71.In fig. 13, in specification of variables column 71, variable " D20 " quilt
It is set as target variable 72.
Specification of variables portion 21a2a can receive user and input to the variable of input unit 25, be set as target variable 72.Separately
Outside, specification of variables portion 21a2a can receive the variable there occurs problem from control device 3, be set as target variable 72.
Referring again to Figure 12, action retrieval portion 21a2b in step s 102, in independent variable from control program 24a1
The action command that describing has target variable 72 is retrieved.
Action retrieval portion 21a2b by the way that the order in control program 24a1 and order specification data 24b are compareed, from
And the order classification of the order is obtained, thus, it is possible to be retrieved from control program 24a1 to action command.
Can also be many places by the obtained retrieval results of action retrieval portion 21a2b.
Figure 14 is the figure illustrated to the retrieval process of the engineering tools involved by embodiment 1.
In fig. 14, the value described in the lower floor of each variable is the value of each variable under some timing, is that accumulation is being held
Value in row data 24e.
Diagnosis of program portion 21a2 is if set to by when receiving the notice there occurs problem this purport from control device 3
The value of the whole variables scanned is used to retrieve, then can be based on there occurs the whole under the timing of problem in control device 3
The value of variable, it is controlled program 24a1 diagnosis.Thus, diagnosis of program portion 21a2 can in control device 3 there occurs
The problem of control program 24a1 under the timing of problem, is diagnosed.
Diagnosis of program portion 21a2 if set to by when the notice there occurs problem this purport is received from control device 3 it
The value of preceding whole variables is used to retrieve, then can be based on there occurs complete under the timing before during problem in control device 3
The value of portion's variable, it is controlled program 24a1 diagnosis.Thus, diagnosis of program portion 21a2 can be to occurring in control device 3
The problem of control program 24a1 under timing before during problem, is diagnosed.
The variable " D20 " for being set to target variable 72 is described in action command 44b the 2nd independent variable 44b1.
Action retrieval portion 21a2b in step s 102, find out be set to target variable 72 variable " D20 " be described in it is dynamic
Make order 44b the 2nd independent variable 44b1.Then, action retrieval portion 21a2b by by action command 44b command name " MOV " and
Order specification data 24b is compareed, so as to obtain the order classification " action " of command name " MOV ".Therefore, action retrieval portion
21a2b can retrieve from control program 24a1 to action command 44b.
In addition it is also possible to substitute the mode for being compareed command name and order specification data 24b, by action retrieval portion
21a2b graphically parses to control program 24a1, so as to obtain action command.
Specifically, action retrieval portion 21a2b can also be the row 41,42,43 in control program 24a1 as shown in Figure 9
And in the case of 44 so, in 1 row describing and there are 2 orders, obtain the downstream that the right side in 2 orders is control program 24a1
Order and be used as action command.
In addition, action retrieval portion 21a2b can also be control program 24a1 as shown in Figure 9 row 45 so, in 1 row
In the case that description has more than two order, first, the point 45a1 that multiple orders are connected with by OR wiring is found out.Then, action inspection
Rope portion 21a2b obtains point 45a1 right side, i.e. the order 45b in control program 24a1 downstream and be used as action command.
Thus, action retrieval portion 21a2b is without command name and order specification data 24b are compareed, it becomes possible to from control
Action command is retrieved in processing procedure sequence 24a1.
Referring again to Figure 12, action retrieval portion 21a2b is in step S104, in the action life retrieved by step S102
In order, the action command for being possible to change to the value of target variable is retrieved.
The variable " D20 " for being set to target variable 72 is described in action command 44b the 2nd independent variable 44b1.Action life
The command name " MOV " for making 44b is the order that the value of the 1st independent variable is forwarded to the 2nd independent variable.
Therefore, action retrieval portion 21a2b can become in step S104 from control program 24a1 to being set to target
The action command 44b that the value of the variable " D20 " of amount 72 is possible to change is retrieved.
Action retrieval portion 21a2b in step s 106, by the action command retrieved in step S104 and order specification
Data 24b is compareed, and the information based on the retrieval result in step S104 is write to retrieval result data 24d.
In step s 106, row 61 is created referring again to Fig. 8, action retrieval portion 21a2b.Then, action retrieval
Portion 21a2b by variable name " D20 ", command name " MOV " and order classification " action " write to row 61 project 24d1,24d2 and
24d3。
In addition, action retrieval portion 21a2b is by the action command 44b retrieved in step S104 and order specification data
The project 24b3 of 24b comment is compareed.Action command 44b the 1st independent variable is constant " K15 ", and the 2nd independent variable is
Variable " D20 ".Therefore, K15 " is forwarded to D20 " to create, write to row 61 by action retrieval portion 21a2b to comment
Project 24d4.
In addition, action retrieval portion 21a2b will include action command 44b program name " MAIN " write-in to the project of row 61
24d5。
In addition, action command 44b is MAIN programs 24a1a the 11st step.Therefore, action command portion 21a2b numbers step
" 11 " are write to the project 24d6 of row 61.
Referring again to Figure 12, conditional information retrieval portion 21a2c in step S108, from control program 24a1 retrieval to perform by
The condition commands that the condition for the action command that action retrieval portion 21a2b is retrieved is judged.
Conditional information retrieval portion 21a2c by the way that the order in control program 24a1 and order specification data 24b are compareed, from
And the order classification of the order is obtained, thus, it is possible to be retrieved from control program 24a1 to condition commands.
Can also be many places by the obtained retrieval results of conditional information retrieval portion 21a2c.
In addition it is also possible to substitute the mode for being compareed command name and order specification data 24b, by conditional information retrieval portion
21a2c graphically parses to control program 24a1, so as to obtain action command.
Specifically, conditional information retrieval portion 21a2c can also be the row 41,42,43 in control program 24a1 as shown in Figure 9
And in the case of 44 so, in 1 row describing and there are 2 orders, obtain the upstream side that the left side in 2 orders is control program 24a1
Order and be used as action command.
In addition, action retrieval portion 21a2b can also be control program 24a1 as shown in Figure 9 row 45 so, in 1 row
In the case that description has more than two order, first, the point 45a1 that multiple orders are connected with by OR wiring is found out.Then, action inspection
The left side that rope portion 21a2b obtains point 45a1 is the order 45a of control program 24a1 upstream side and is used as action command.
Thus, conditional information retrieval portion 21a2c is without command name and order specification data 24b are compareed, it becomes possible to from control
Condition commands are retrieved in processing procedure sequence 24a1.
Referring again to Figure 14, left side, i.e. MAIN programs 24a1a upstream side in action command 44b figure, description has bar
Part order 44a.
Therefore, conditional information retrieval portion 21a2c can be retrieved to act execution from control program 24a1 and ordered in step S108
Make the condition commands 44a that 44b condition is judged.
In step s 110, the condition retrieved in step S108 is ordered referring again to Figure 12, conditional information retrieval portion 21a2c
Order and order specification data 24b are compareed, and the information based on the retrieval result in step S108 is write to retrieval result number
According to 24d.
In step s 110, row 62 is created referring again to Fig. 8, conditional information retrieval portion 21a2c.Then, conditional information retrieval
Portion 21a2c by variable name " D10 ", command name "=" and order classification " condition " write to row 62 project 24d1,24d2 and
24d3。
In addition, conditional information retrieval portion 21a2c is by the condition commands 44a retrieved in step S108 and order specification data
The project 24b3 of 24b comment is compareed.Condition commands 44a the 1st independent variable is variable " D10 ", and the 2nd independent variable is
Constant " K10000 ".Therefore, conditional information retrieval portion 21a2c creates to comment " D10 is equal with K10000 ", writes to row
62 project 24d4.
In addition, conditional information retrieval portion 21a2c will include condition commands 44a program name " MAIN " write-in to the project of row 62
24d5。
In addition, condition commands 44a is MAIN programs 24a1a the 8th step.Therefore, condition commands portion 21a2c numbers step
" 8 " are write to the project 24d6 of row 62.
Referring again to Figure 12, conditional information retrieval portion 21a2c orders the condition retrieved in step s 110 in step S112
The independent variable of order is set as new target variable 72.
Can also be multiple by the conditional information retrieval portion 21a2c new target variables 72 set.In addition, conditional information retrieval portion
21a2c does not set new target variable 72 in the case where can not further recall control program 24a1.
Figure 15 is the figure illustrated to the retrieval process of the engineering tools involved by embodiment 1.
As shown in figure 15, condition commands 44a is included:1st independent variable 44a1 " D10 " and the 2nd independent variable " K10000 ".But
It is that the 2nd independent variable " K10000 " is constant, is not variable.Therefore, conditional information retrieval portion 21a2c is in step S112, by the 1st certainly
Variable 44a1 " D10 " is set as new target variable 72.
Referring again to Figure 12, determination unit 21a2d is in step S114 for retrieval, to whether meeting that retrieving termination condition sentences
It is fixed.For retrieving termination condition, illustrated below.
1st is the situation for not set in step S112 new target variable 72.That is, control can not further be recalled
Program 24a1 situation.
2nd is from step S102 to step S112 by action retrieval portion 21a2b and conditional information retrieval portion 21a2c execution
Untill the number of repetition of retrieval reach the situation of the number described in number data 24c1 is retrieved.
Thus, diagnosis of program portion 21a2 has following effects, i.e. can suppress retrieval and not terminate this case and ensure to examine
Rope stops, that is, ensures the stopping of retrieval.In addition, sweeping situations of the diagnosis of program portion 21a2 even in control program 24a1
Under, range of search can be also defined, therefore there are following effects, i.e. the problem of can suppressing to control program 24a1
The reason for man-hour for being determined.
3rd is the new target variable 72 set out by conditional information retrieval portion 21a2c in step S112, in retrieving
Situation outside the scope of the step numbering described in range data 24c2.
Thus, diagnosis of program portion 21a2 has effect as the stopping for ensuring retrieval.In addition, diagnosis of program portion 21a2
Even in control program 24a1 it is sweeping in the case of, range of search can be also defined, therefore there are following effects,
That is, the man-hour being determined the reason for the problem of to control program 24a1 can be suppressed.
Retrieval determination unit 21a2d can be judged the OR of multiple retrieval termination conditions (logic or).
Determination unit 21a2d is retrieved in step S114, if it is decided that not meet search condition (No), then enter processing
Enter to step S102.
Figure 16 is the figure illustrated to the retrieval process of the engineering tools involved by embodiment 1.
As shown in figure 16, action command 42b is included:1st independent variable " D0 " and the 2nd independent variable 42b1 " D10 ".
Action retrieval portion 21a2b finds out the variable for being set to target variable 72 in step S102 and step S104
" D10 " is described in action command 42b the 2nd independent variable 42b1.Then, action retrieval portion 21a2b passes through action command 42b's
Command name " MOV " and order specification data 24b are compareed, so as to obtain the order classification of command name " MOV " " action ".Cause
This, action retrieval portion 21a2b can retrieve from control program 24a1 to action command 42b.
In step s 106, row 63 is created referring again to Fig. 8, action retrieval portion 21a2b.Then, action retrieval
Portion 21a2b by variable name " D0 ", command name " MOV " and order classification " action " write to row 63 project 24d1,24d2 and
24d3。
In addition, action retrieval portion 21a2b is by the action command 42b retrieved in step S104 and order specification data
The project 24b3 of 24b comment is compareed.Action command 42b the 1st independent variable is variable " D0 ", and the 2nd independent variable is
Variable " D10 ".Therefore, D0 " is forwarded to D10 " to create, write to row 63 by action retrieval portion 21a2b to comment
Project 24d4.
In addition, action retrieval portion 21a2b will include action command 42b program name " MAIN " write-in to the project of row 63
24d5。
In addition, action command 42b is MAIN programs 24a1a the 4th step.Therefore, action command portion 21a2b numbers step
" 4 " are write to the project 24d6 of row 63.
Left side is MAIN programs 24a1a upstream side in action command 42b figure, describes the order 42a that has ready conditions.
Therefore, conditional information retrieval portion 21a2c can be retrieved to act execution from control program 24a1 and ordered in step S108
Make the condition commands 42a that 42b condition is judged.
Conditional information retrieval portion 21a2c in step s 110, by the condition commands retrieved in step S108 and order specification
Data 24b is compareed, and the information based on the retrieval result in step S108 is write to retrieval result data 24d.
In step s 110, row 64 is created referring again to Fig. 8, conditional information retrieval portion 21a2c.Then, conditional information retrieval
Portion 21a2c by variable name " M100 ", command name " LD " and order classification " condition " write to row 64 project 24d1,24d2 and
24d3。
In addition, conditional information retrieval portion 21a2c is by the condition commands 42a retrieved in step S108 and order specification data
The project 24b3 of 24b comment is compareed.Condition commands 42a the 1st independent variable is variable " M100 ".Therefore, condition
To comment, " M100 ON " are created search part 21a2c, are write to the project 24d4 of row 64.
In addition, conditional information retrieval portion 21a2c will include condition commands 42a program name " MAIN " write-in to the project of row 64
24d5。
In addition, condition commands 42a is MAIN programs 24a1a the 3rd step.Therefore, condition commands portion 21a2c numbers step
" 3 " are write to the project 24d6 of row 64.
Condition commands 42a includes the 1st independent variable " M100 ".Therefore, conditional information retrieval portion 21a2c is in step S112, by the 1st
Independent variable " M100 " is set as new target variable 72.
Referring again to Figure 12, determination unit 21a2d is in step S114 for retrieval, if it is decided that to meet search condition (Yes),
Processing is then set to enter to step S116.
Referring again to Figure 16, the action command comprising target variable 72 " M100 " is not present in control program 24a1.
Therefore, retrieval determination unit 21a2d is judged to meeting search condition (Yes) in step S114, enters to processing
Step S116.
Referring again to Figure 12, display part 21a2e is in step S116 for guide look, by retrieval result data 24d content aobvious
Show that portion 26 carries out guide look and shown.
Figure 17 is the figure for the diagnosis of program picture for representing the engineering tools involved by embodiment 1.Have a guide look of display part
Retrieval result data 24d content is carried out guide look in the guide look display field 80 of diagnosis of program picture 70 and shown by 21a2e.
Guide look display field 80 has:The project 81 of program name, the project 82 of step numbering, the project of variable name 83, command name
Project 84, the project 86 of the project 85 of order classification and comment.
Guide look display part 21a2e be expert in 91,92,93 and 94, respectively the row 61,62,63 to retrieval result data 24d and
64 content is shown.
As described above, diagnosis of program portion 21a2 can be not only by the order as questions and prospect that is shown in 94 of being expert at
Content and being expert at show in 91 there occurs the content of the order of problem, also by between be expert at shown in 93 and row 92 into
Order for questions and prospect and carry out guide look in the lump there occurs the content of the order between the order of problem and show.
Thus, diagnosis of program portion 21a2 has following effects, i.e. makes user be easy to grasp order the reason for turning into problem
And there occurs the overall overview between the order of problem.
Figure 18 is the flow chart for the processing for representing the engineering tools involved by embodiment 1.
In step s 200, if selected row 91,92,93 or 94,21a2e pairs of guide look display part is with selecting
Corresponding order 44b, 44a, 42b or 42a of step numbering in the project 82a of the row gone out is shown.
Thus, diagnosis of program portion 21a2 has following effects, i.e. user can carry out true to desired order immediately
Recognize.
In addition, guide look display field 80 has:Filter condition input field 81a for the filter condition that inputs program name, use
In input step numbering filter condition filter condition input field 82a, for input variable name filter condition filter condition
Input field 83a, the filter condition input field 84a of filter condition for inputting command name, the filtering for inputting order classification
The filter condition input field 85a of condition, the filter condition for inputting comment filter condition input field 86a.
Figure 19 is the flow chart for the processing for representing the engineering tools involved by embodiment 1.
In step S202, if command name is input to filter condition input field 84a, 21a2e pairs of display part is had a guide look of
The row being coincide in retrieval result data 24d row 91,92,93 and 94 with the filter condition inputted carries out guide look and shown.Example
Such as, if by " MOV " input to filter condition input field 84a, guide look display part 21a2e is only shown to row 91 and 93.
Thus, diagnosis of program portion 21a2 has following effects, i.e. user is sieved by a pair order relevant with problem
Choosing, so as to suppress the man-hour being determined to the reason for problem.
In addition, action retrieval portion 21a2b is by the way that command name and order specification data 24b are compareed, so as to take
Obtain the order classification " action " of command name.
Thus, action retrieval portion 21a2b can retrieve from control program 24a1 to action command.
In addition, conditional information retrieval portion 21a2c is by the way that command name and order specification data 24b are compareed, so as to take
Obtain the order classification " condition " of command name.
Thus, conditional information retrieval portion 21a2c can retrieve from control program 24a1 to condition commands.
In addition, storage part 24 stores to retrieval termination condition data 24c, retrieval termination condition data 24c is described
There is the termination condition for the control program 24a1 retrievals performed.Moreover, if it is determined that the 21a2d retrievals of retrieval determination unit meet
Termination condition, then terminate the retrieval by action retrieval portion 21a2b and conditional information retrieval portion 21a2c execution.
Thus, diagnosis of program portion 21a2 has effect as the stopping for ensuring retrieval.In addition, retrieval determination unit
21a2d even in control program 24a1 it is sweeping in the case of, range of search can be also defined.Therefore, program is examined
Disconnected portion 21a2 has the effect in the man-hour that can suppress to be determined the reason for the problem of to control program 24a1.
In addition, storage part 24 stores to performing data 24e, the execution data 24e in control program 24a1 to making
Value under the predetermined timing of whole variables is accumulated.
Scanner section 21a2f is being controlled by being scanned in predetermined timing to the memory 3a2 of control device 3 so as to obtain
The value of the whole variables used in processing procedure sequence 24a1, write-in to execution data 24e.
Thus, diagnosis of program portion 21a2 is if set to by there occurs problem this purport being received from control device 3
The value of the whole variables scanned during notice is used to retrieve, then can be based on there occurs under the timing of problem in control device 3
Whole variables value, be controlled program 24a1 diagnosis.Thus, diagnosis of program portion 21a2 can be in control device 3
There occurs the problem of control program 24a1 under the timing of problem to be diagnosed.
In addition, diagnosis of program portion 21a2 is if set to from control device 3 will be received leading to there occurs this purport of problem
The value of whole variables before when knowing is used to retrieve, then can be based on there occurs the timing before during problem in control device 3
Under whole variables value, be controlled program 24a1 diagnosis.Thus, diagnosis of program portion 21a2 can be in control device 3
In there occurs the problem of control program 24a1 under the timing before during problem to be diagnosed.
In addition, simulation part 21a2g is by emulating control program 24a1, so as to being used in control program 24a1
The value of whole variables is calculated, write-in to execution data 24e.
Thus, even if diagnosis of program portion 21a2 acts control device 3, the problem of control program 24a1, can also be entered
Row diagnosis.
Structure shown in embodiment above is illustrated that an example of present disclosure, also can be public with other
Know that technology is combined, in the scope for the purport for not departing from the present invention, a part for structure can also be omitted, change.
The explanation of label
1 control system, 2 engineering tools, 3 control devices, 4,5 machineries, 21 CPU, 21a1 project data wound
Build portion, 21a2 diagnosis of program portion, 21a2a specifications of variables portion, 21a2b action retrievals portion, 21a2c conditional information retrievals portion, 21a2d
Retrieval determination unit, 21a2e guide look display parts, 21a2f scanner sections, 21a2g simulation parts, 24 storage parts, 24a project data,
24a1 control programs, 24b order specification datas, 24c retrieval termination condition data, 24d retrieval result data, 24e are performed
Data.
Claims (10)
1. a kind of diagnosis of program device, it is characterised in that have:
Storage part, it is stored to control program, order specification data and retrieval result data, and the control program, which includes, to be made certainly
The condition commands that the action command of the value changes of variable and the condition to performing the action command are judged, the order specification
Packet contains the command name for the order that can be described in the control program, the process content of order and the action life
Order or the classification of the condition commands, the result for the retrieval that retrieval result data accumulation performs for the control program;
Specification of variables portion, it sets to target variable;
Action retrieval portion, its described action command for being possible to change to the value of the target variable from the control program enter
Row retrieval, the action command retrieved and the order specification data is compareed, by the variable of the target variable
The command name of name and the action command retrieved, the classification of order and process content are write to the retrieval result number
According to;
Conditional information retrieval portion, it is retrieved from the control program orders performing the action retrieved by the action retrieval portion
The condition commands that the condition of order is judged, the condition commands retrieved and the order specification data are carried out pair
According to by the command name of the variable name of the independent variable of the condition commands retrieved and the condition commands retrieved, life
The classification and process content of order are write to the retrieval result data, and the independent variable of the condition commands retrieved is set as
New target variable;
Determination unit is retrieved, it makes the action retrieval portion and the conditional information retrieval portion perform retrieval again;And
Display part is had a guide look of, its content to the retrieval result data carries out guide look and shown.
2. diagnosis of program device according to claim 1, it is characterised in that
The action retrieval portion is by the way that the order in the control program and the order specification data are compareed, so as to take
The order classification of the order is obtained, thus the action command is retrieved from the control program.
3. diagnosis of program device according to claim 1, it is characterised in that
The conditional information retrieval portion is by the way that the order in the control program and the order specification data are compareed, so as to take
The order classification of the order is obtained, thus the condition commands are retrieved from the control program.
4. diagnosis of program device according to claim 1, it is characterised in that
The storage part is also stored to retrieval termination condition data, and the retrieval termination condition data, which describe, to be had for the control
The termination condition for the retrieval that processing procedure sequence performs,
If it is determined that the retrieval determination unit meets institute for the retrieval performed by the action retrieval portion and the conditional information retrieval portion
Termination condition is stated, then makes to terminate by the retrieval that the action retrieval portion and the conditional information retrieval portion perform, if it is decided that serve as reasons
The retrieval that the action retrieval portion and the conditional information retrieval portion perform does not meet the termination condition, then makes the action retrieval
Portion and the conditional information retrieval portion perform retrieval again.
5. diagnosis of program device according to claim 4, it is characterised in that
The retrieval termination condition data are the retrieval numbers performed by the action retrieval portion and the conditional information retrieval portion
The data of the range of search of data or the control program.
6. diagnosis of program device according to claim 1, it is characterised in that
If have input variable name or the filtering of the command name of the condition commands that retrieve, the classification of order or process content
Condition, then the guide look display part is to the content progress for the data being coincide in the retrieval result data with the filter condition
Guide look display.
7. diagnosis of program device according to claim 1, it is characterised in that
The storage part also stores to performing data, and the execution data are to whole variables for being used in the control program
Predetermined timing under value accumulated,
The diagnosis of program device also has scanner section, and the scanner section is in the predetermined timing, the control to performing the control program
The memory of device processed is scanned, and is thus obtained the value of the whole variables used in the control program, is write to described
Perform data.
8. diagnosis of program device according to claim 7, it is characterised in that
Also there is simulation part, the simulation part is by emulating the control program, so as to being used in the control program
The values of whole variables calculated, write to the execution data.
9. a kind of diagnosis of program method, it is the method performed by diagnosis of program device, and the diagnosis of program device has storage part,
The storage part stores to control program, order specification data and retrieval result data, and the control program, which includes, makes independent variable
Value changes action command and the condition commands that are judged of the condition to performing the action command, the order specification data
Command name comprising the order that can be described in the control program, order process content and the action command or
The classification of the condition commands, the result for the retrieval that the retrieval result data record performs for the control program,
The diagnosis of program method is characterised by thering is following processes:
Specification of variables process, sets to target variable;
Action retrieval process, the action command for being possible to change to the value of the target variable from the control program enter
Row retrieval, the action command retrieved and the order specification data is compareed, by the variable of the target variable
The command name of name and the action command retrieved, the classification of order and process content are write to the retrieval result number
According to;
Conditional information retrieval process, the action that retrieval is retrieved to execution by the action retrieval process from the control program
The condition commands that the condition of order is judged, the condition commands retrieved and the order specification data are carried out
Control, by the command name of the variable name of the independent variable of the condition commands retrieved and the condition commands retrieved,
The classification and process content of order are write to the retrieval result data, and the independent variable of the condition commands retrieved is set
For new target variable;
Retrieval judges process, the action retrieval process and the conditional information retrieval process is performed retrieval again;And
Guide look shows process, and carrying out guide look to the contents of the retrieval result data shows.
10. a kind of diagnosis of program program, it is the program performed by diagnosis of program device, and the diagnosis of program device has storage
Portion, the storage part are stored to control program, order specification data and retrieval result data, and the control program, which includes, to be made to become certainly
The condition commands that the action command of the value changes of amount and the condition to performing the action command are judged, the order specification number
According to the command name comprising the order that can be described in the control program, the process content of order and the action command
Or the classification of the condition commands, the result for the retrieval that the retrieval result data record performs for the control program,
The diagnosis of program program is characterised by thering is following processes:
Specification of variables process, sets to target variable;
Action retrieval process, the action command for being possible to change to the value of the target variable from the control program enter
Row retrieval, the action command retrieved and the order specification data is compareed, by the variable of the target variable
The command name of name and the action command retrieved, the classification of order and process content are write to the retrieval result number
According to;
Conditional information retrieval process, the action that retrieval is retrieved to execution by the action retrieval process from the control program
The condition commands that the condition of order is judged, the condition commands retrieved and the order specification data are carried out
Control, by the command name of the variable name of the independent variable of the condition commands retrieved and the condition commands retrieved,
The classification and process content of order are write to the retrieval result data, and the independent variable of the condition commands retrieved is set
For new target variable;
Retrieval judges process, the action retrieval process and the conditional information retrieval process is performed retrieval again;And
Guide look shows process, and carrying out guide look to the contents of the retrieval result data shows.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2015/061757 WO2016166876A1 (en) | 2015-04-16 | 2015-04-16 | Program diagnosis device, program diagnosis method and program diagnosis program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107533322A true CN107533322A (en) | 2018-01-02 |
CN107533322B CN107533322B (en) | 2019-04-19 |
Family
ID=57126471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201580078870.3A Active CN107533322B (en) | 2015-04-16 | 2015-04-16 | Diagnosis of program device and diagnosis of program method |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP6076565B1 (en) |
KR (1) | KR101846140B1 (en) |
CN (1) | CN107533322B (en) |
WO (1) | WO2016166876A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113424115A (en) * | 2019-02-14 | 2021-09-21 | 三菱电机株式会社 | Control system, programmable logic controller, method, and program |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019003313A1 (en) * | 2017-06-27 | 2019-01-03 | 三菱電機株式会社 | Debugging device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1677290A (en) * | 2004-03-31 | 2005-10-05 | 欧姆龙株式会社 | Development aid device |
JP2011028552A (en) * | 2009-07-27 | 2011-02-10 | Keyence Corp | Program creation support device, program creation support method and computer program |
CN102640112A (en) * | 2009-12-28 | 2012-08-15 | 三菱电机株式会社 | Program creation support device |
CN104204975A (en) * | 2012-03-26 | 2014-12-10 | 三菱电机株式会社 | Sequence-program debugging assistance apparatus |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2923997B2 (en) * | 1989-09-21 | 1999-07-26 | ソニー株式会社 | Finding the cause of an error in a ladder sequence program |
JP4242361B2 (en) * | 2004-03-31 | 2009-03-25 | オムロン株式会社 | Development support equipment |
-
2015
- 2015-04-16 KR KR1020177031427A patent/KR101846140B1/en active IP Right Grant
- 2015-04-16 JP JP2016555855A patent/JP6076565B1/en active Active
- 2015-04-16 CN CN201580078870.3A patent/CN107533322B/en active Active
- 2015-04-16 WO PCT/JP2015/061757 patent/WO2016166876A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1677290A (en) * | 2004-03-31 | 2005-10-05 | 欧姆龙株式会社 | Development aid device |
JP2011028552A (en) * | 2009-07-27 | 2011-02-10 | Keyence Corp | Program creation support device, program creation support method and computer program |
CN102640112A (en) * | 2009-12-28 | 2012-08-15 | 三菱电机株式会社 | Program creation support device |
CN104204975A (en) * | 2012-03-26 | 2014-12-10 | 三菱电机株式会社 | Sequence-program debugging assistance apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113424115A (en) * | 2019-02-14 | 2021-09-21 | 三菱电机株式会社 | Control system, programmable logic controller, method, and program |
Also Published As
Publication number | Publication date |
---|---|
WO2016166876A1 (en) | 2016-10-20 |
JPWO2016166876A1 (en) | 2017-04-27 |
JP6076565B1 (en) | 2017-02-08 |
CN107533322B (en) | 2019-04-19 |
KR101846140B1 (en) | 2018-04-05 |
KR20170127569A (en) | 2017-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Papadopoulos et al. | Model-based synthesis of fault trees from matlab-simulink models | |
JP5139070B2 (en) | Method and apparatus for secure parameterization according to IEC 61508 SIL1 to 3 or EN954-1 categories 1 to 4 | |
JP6066081B2 (en) | Apparatus and method for generating fault tree | |
US8689069B2 (en) | Multi-targeting boolean satisfiability-based test pattern generation | |
CN101206570B (en) | Method and system for generating user interface | |
JP2011113564A (en) | Methods and apparatus to dynamically display data associated with process control system | |
Oh et al. | Software safety analysis of function block diagrams using fault trees | |
US20070220330A1 (en) | Computer-Supported Diagnostic System, Based on Heuristics and System Topologies | |
WO2018073868A1 (en) | Debugging assistance device and debugging assistance method | |
US8656358B2 (en) | Plant control system and interlock factor specifying method | |
CN107533322B (en) | Diagnosis of program device and diagnosis of program method | |
US7328200B2 (en) | Apparatus, method, and computer program product for converting decision flowcharts into decision probabilistic graphs | |
JP6442131B2 (en) | Control system and control device | |
JP4379687B2 (en) | Simulation support tool and ladder program verification system and program product | |
Guo et al. | Towards practical and synthetical modelling of repairable systems | |
JP4257364B2 (en) | COMMUNICATION ERROR INFORMATION OUTPUT PROGRAM, COMMUNICATION ERROR INFORMATION OUTPUT METHOD, AND COMMUNICATION ERROR INFORMATION OUTPUT DEVICE | |
Roth | Identification and Fault Diagnosis of Industrial Closed-loop Discrete Event Systems: Identifikation und Fehlerdiagnose Industrieller Ereignisdiskreter Closed-Loop-Systeme | |
CN116635843A (en) | Apparatus, computing platform and method for analyzing log files of industrial plants | |
GB2397905A (en) | Method for automatically generating and ordering test scripts | |
JP2006024015A (en) | Plant control system and method for specifying interlock factor | |
JP2001175327A (en) | Fault diagnostic device | |
Lucas et al. | The practice of industrial logic design | |
JP2003223204A (en) | Programming method of programmable controller, system thereof and recording medium thereof | |
JP2012083934A (en) | Scan time estimation device, scan time estimation program and record medium | |
CN107203460A (en) | For basic input output system except wrong message output intent |
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 |