CN105144003B - Program development servicing unit and its method - Google Patents
Program development servicing unit and its method Download PDFInfo
- Publication number
- CN105144003B CN105144003B CN201380074134.1A CN201380074134A CN105144003B CN 105144003 B CN105144003 B CN 105144003B CN 201380074134 A CN201380074134 A CN 201380074134A CN 105144003 B CN105144003 B CN 105144003B
- Authority
- CN
- China
- Prior art keywords
- program
- variable
- continuing
- componentization
- continued
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
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
- G05B19/056—Programming the PLC
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/13—Plc programming
- G05B2219/13099—Function block, OOP, various functions grouped, called by name as servo
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/13—Plc programming
- G05B2219/13155—Inserting instructions in program
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Stored Programmes (AREA)
- Programmable Controllers (AREA)
Abstract
Program development servicing unit has:Identifier generating unit (14), which generates identifier in the following manner, i.e., the source variable of continuing to use used to the componentization object program for carrying out componentization continued to use in source program adds the identifier, to be unique in continuing to use in target program entirety for the insertion target as the componentization object program;New variables signal generating unit (15), its to it is described continue to use target program add be combined with the title and the identifier that source variable is continued to use described in will be present in the componentization object program obtained from title new variables, and generate the associated variable association information of source variable and the new variables described in the componentization object program, will be continued to use;Program Generating unit (16) is continued to use, which is based on the variable association information, source variable will be continued to use described in used in the componentization object program and is replaced into the new variables, program is continued to use in generation;And program insertion unit (17), the program of continuing to use is inserted into described continuing to use in target program by which.
Description
Technical field
The present invention relates to program development servicing unit and its method.
Background technology
As the control device in FA (Factory Automation) field, using Programmable Logic Controller (hereinafter referred to as
PLC).The programming cost of the PLC has accounted for the major part of the development cost in FA systems.
In this condition, standard IEC 61131-3 (JISB3503) related to the programming of PLC has been formulated.
IEC61131-3 is not only the standard of simple programming language, and the definition of structural element, variable also to program is marked
Standardization.Thereby, it is possible to carry out the exploitation of software, and manufacturer or machine are not relied on.
With the popularization of IEC61131-3, in the exploitation of program, in order to improve the quality and development efficiency of program, journey
Standardization, componentization or the constructionization constantly development of sequence.As a standardized trend, there is the functional module of program
(Function Block;Hereinafter referred to as FB) change.
In the structural element of PLC program, have:Program;Project, which is the set of multiple programs;And FB, which is by journey
Multiple orders in sequence collect for 1 module.FB is according to when the performing every time code and internal storage carried out by action
State is controlled process.In the species of the variable used in FB, exist input variable, output variable, built-in variable and
External variable.
Input variable plays a part of the |input paramete of FB, is for the variable from the outer reception values of FB.Output variable is played
The effect of the output parameter of FB, is the variable for the value of the operation result of FB is sent to outside FB.Input variable and output become
Amount is shown respectively as input pin and output pin on programme diagram.
The variable used in the program that built-in variable is only capable of in FB or FB is located, it is impossible to from external program value
Reference or change.
External variable is the variable for reference is carried out to global variable from FB.Here, so-called global variable, refers to
No matter the variable of reference, rather than the variable used in FB can be carried out from which program of project.Under external variable is
State variable, i.e. reference is carried out for the global variable to identical variable name, should used in the program for stating external variable
Value.
Here, in the case where FBization being carried out to program, need the definition to FB types and the variable being present in FB
Classification set, formality is numerous and diverse.Therefore, it is proposed to the program development servicing unit of following PLC, which eliminates the formality
Numerous and diverse degree (for example, referring to patent document 1).According to the method for the patent document 1, when FBization is carried out to program, with automatic
Mode the classification of FB types and the variable being present in FB is set automatically.
Patent document 1:Japanese Unexamined Patent Publication 2008-33913 publications
The content of the invention
But, in the technology that patent document 1 is recorded, the variable in FB is only allocated to as input variable, output variable
And a certain kind in built-in variable.That is, there are following problems, i.e. even if having what is will used as external variable in FB
Variable, can not be automatically set to external variable.Therefore, wishing in FB using as the outer of the variable for continuing to use source program
In the case of portion's variable, it is necessary to generate for the program of data exchange is carried out with the built-in variable of FB.
The present invention is exactly to propose in view of the foregoing, its object is to provide a kind of program development servicing unit and its
Method, the program development servicing unit and its method can together with external variable in the interior componentization for simply entering line program, and
Numerous and diverse formality or program can not added.
To achieve these goals, program development servicing unit involved in the present invention is characterised by having:Identifier
Signal generating unit, which generates identifier in the following manner, i.e. to the componentization object program for carrying out componentization continued to use in source program
The source variable of continuing to use for being used adds the identifier, to continue to use target in the insertion target as the componentization object program
It is unique in program entirety;New variables signal generating unit, which is added with will be present in the portion to the target program of continuing to use
The title and the identifier for continuing to use source variable in part object program be combined obtained from title new variables,
And generate the variable association information associated by source variable and the new variables are continued to use described in the componentization object program;
Program Generating unit is continued to use, which is based on the variable association information, by the edge used in the componentization object program
The new variables is replaced into source variable, program is continued to use in generation;And program insertion unit, the program of continuing to use is inserted into by which
It is described to continue to use in target program.
The effect of invention
According to the present invention, due to being replaced into and continuing to use target program continuing to use the source variable of continuing to use used in source program
In unique variable name, be appended to as variable and continue to use in target program, continue to use therefore, it is possible to one side and existing continue to use source journey
Process in the presence of sequence, for each continue to use target program maintain variable state, can obtain with by FBization
The program of realization continues to use equal action.Further, since the new variables for adding is carried out as the variable for continuing to use target program
Add, therefore, it is possible to directly use continuing to use other positions in target program.Therefore, with following effects, i.e. need not count
According to the programming for exchanging.
Description of the drawings
Fig. 1 is an example of the structure for schematically showing the program development servicing unit involved by embodiment 1
Block diagram.
Fig. 2 is the flow process of an example of the process step for representing the program development householder method involved by embodiment 1
Figure.
Fig. 3 is an example of the process step for schematically showing the program development householder method involved by embodiment 1
The figure of son.
Fig. 4 is the figure for schematically showing situation when carrying out FBization in the past to program.
Fig. 5 is an example of the structure for schematically showing the program development servicing unit involved by embodiment 2
Block diagram.
Fig. 6 is the flow process of an example of the process step for representing the program development householder method involved by embodiment 2
Figure.
Fig. 7 is the figure of the behaviour in service for representing the variable in the program of continuing to use.
Fig. 8 is the figure of an example for representing that the module of the program of continuing to use shows.
Fig. 9 is the flow process of an example of the process step for representing the program development householder method involved by embodiment 3
Figure.
Figure 10 is the figure of an example for representing that the module of the program of continuing to use shows.
Figure 11 is an example of the structure for schematically showing the program development servicing unit involved by embodiment 4
Block diagram.
Figure 12 is the figure of an example for representing editing pictures.
Figure 13 is the figure of the situation for schematically showing the exception processes for continuing to use program involved by embodiment 4.
Figure 14 is the figure of the situation for schematically showing the exception processes for continuing to use program involved by embodiment 4.
Figure 15 is an example of the structure for schematically showing the program development servicing unit involved by embodiment 5
Block diagram.
Figure 16 is to represent that the process that program transformation is FB of continuing to use after componentization that will carry out involved by embodiment 5 is walked
The flow chart of a rapid example.
Figure 17 be represent FB being transformed to involved by embodiment 5 carried out componentization after program process step
The flow chart of one example.
Specific embodiment
Below, referring to the drawings, to program development servicing unit involved in the present invention and its preferred embodiment party of method
Formula is described in detail.Additionally, the present invention is not limited to these embodiments.
Embodiment 1
In embodiment 1, program development servicing unit and its method are illustrated, the program development servicing unit and
Its method is configured to, and in the program for having generated, carries out componentization to the part that estimation will be continued to use in a large number, and can carry out again
Utilize.
Fig. 1 is an example of the structure for schematically showing the program development servicing unit involved by embodiment 1
Block diagram.Program development servicing unit 10 has:Input unit 11;Display part 12;Program element information acquiring section 13;Identifier is given birth to
Into portion 14;New variables generating unit 15;Continue to use Program Generating portion 16;Program insertion section 17;And control unit 18, its to it is above-mentioned everywhere
Reason portion is controlled.
Input unit 11 is the input interface between user such as keyboard or pointer device.Display part 12 is liquid crystal indicator
Etc. the device of the information that displays to the user that.
Program element information acquiring section 13 obtains the program element information required when componentization is carried out to program.Make
For program element information, the edge of the componentization object program for example continued to use comprising the hope specified by user can be enumerated
With source program, continue to use componentization object program in source program and mesh is continued to use as what componentization object program inserted target
The insertion position of beacon course sequence.Program element information acquiring section 13 continue to use from for example storing source program Programmable Logic Controller,
Or database is obtained and continues to use source program.In addition, by by user via input unit 11 from continuing to use source program to being desired with
The position of componentization is selected, so as to obtaining widget object program.By 11 pair target being continued to use via input unit by user
Insertion position in program is selected, and continues to use target program insertion position so as to obtain.
Identifier generating unit 14 utilizes selected componentization object program, generates as the program entirety for continuing to use target
In unique identifier.
The variable that new variables generating unit 15 pairs is present in selected componentization object program is parsed, for according to
The rule of regulation and the variable that selects, combine the identifier that generated by identifier generating unit 14 in the title of variable and generate new
Variable.In addition, the new variables of generation is appended to by new variables generating unit 15 continuing to use in target program, generate componentization object journey
The variable association information that the variable and added new variables that sequence has been included originally is associated.Additionally, in present embodiment 1,
New variables generating unit 15 is by the variable for becoming the independent variable of LD orders or LDI orders and the 2nd independent variable for becoming MOV orders
Variable is extracted as displacement object variable.
Program Generating portion 16 is continued to use based on the variable association information generated by new variables generating unit 15, by componentization object journey
Substitution of variable in sequence is new variables, carries out generating the process of the program of continuing to use.
Program insertion section 17 by by continue to use that Program Generating portion 16 generates continue to use program be inserted into continue to use target program by
The selected region of user.
Below, the program development householder method in the program development servicing unit 10 of said structure is illustrated.Fig. 2 is
The flow chart of one example of the process step of the program development householder method involved by expression embodiment 1.In addition, Fig. 3 is
Schematically show the figure of an example of the process step of program development householder method involved by embodiment 1.Additionally,
Here, it is set to continue to use source program and continues to use state of the target program after being read by program development servicing unit 10.
First, enter line range formula via 11 pairs of positions for being desired with componentization continued to use in source program of input unit by user
Select (step S11).Fig. 3 (a) is represented to be have selected by user and continue to use and continue to use what is described with diagram in ladder form
Position be state after componentization object program P1.Additionally, here, carry out continuing to use being desired with componentization in source program
Position scope formula select, but can also for example by the position for being desired with componentization for continuing to use source program is temporarily deposited
Storage in memory, is selected so as to enter line range formula.
Then, sending execution carries out componentization and is inserted into continuing to use target journey to selected componentization object program P1
Position (the step of insertion part object program P1 in target program is continued to use in the instruction (step S12) of the process in sequence, acquisition
S13)。
If obtaining or have selected the insertion position in target program is continued to use of componentization object program P1, identifier
Generating unit 14 generates to the variable used in componentization object program P1 the identifier (step S14) for adding.Then, new variables
Generating unit 15 generates following new variables, the new variables be continue to use the variable in source program (below, sometimes referred to as continue to use source change
Amount) on, (step S15) obtained from the identifier generated in being attached to step S14.Here, for example, new variables can be set to
The form of " identifier $ "+" variable ".Additionally, this is an example, or other forms.The new variables of the generation is chased after
Add to and continue to use in target program.
In addition, the behaviour in service of the reading of 15 pairs of variables used in the program continued to use of new variables generating unit, write etc.
Parsed, the source variable of continuing to use to new variables is replaced in componentization object program P1 is extracted (step S16).Figure
3 (b) represents that the program to Fig. 3 (a) carries out program P2 obtained from list display.About whether the benchmark for being set to replace object such as
It is lower described.The variable of the variable for becoming the independent variable of LD orders or LDI orders and the 2nd independent variable for becoming MOV orders is to put
Change object variable.Its reason is, due to the execution MOV orders only in the case where the execution condition of LD orders is set up, therefore and
It is non-always to perform MOV orders.In the case of without exporting, output mesh target value is only maintained.As a result, in Fig. 3 (b)
The parsing of the behaviour in service of variable and the judgement of displacement object are carried out in the following manner.In command statement 301, it is judged as becoming
The variable FLAG1 of the independent variable of LD orders is displacement object.In command statement 302, be judged as becoming the 2nd of MOV orders from
Variable V AR1 of variable is displacement object.In command statement 303, it is judged as that variable FLAG1 is displacement object.In command statement
In 304, it is judged as that variable V AR2 is displacement object.
Then, new variables generating unit 15 generates following variable association information, and the variable association information is by componentization object
The new variables that source variable generated with addition of identifier of continuing to use in program P1 is associated (step S17).Fig. 3 (c) is represented and is become
One example of amount related information.As described above, in variable association information, what is used in componentization object program P1 continues to use source
In the variable source variable of continuing to use is replaced into by new variables is associated with new variables.
Afterwards, Program Generating portion 16 is continued to use based on variable association information, the source of continuing to use in componentization object program P1 is become
Amount is replaced into new variables, and program (step S18) is continued to use in generation.Fig. 3 (d) represents that what is obtained into after line replacement continues to use program P3.
Then, program P3 of continuing to use generated in step S18 is inserted into what is specified in step s 12 by program insertion section 17
Continue to use the insertion position (step S19) of target program.Then, target is continued to use insert program P3 of continuing to use in program insertion section 17
In program, the insertion position of program P3 of continuing to use it is tight before locate, adding becomes the program of input interface to input variable, is inserting
Enter the tight rear program (step S20) located, add the output interface from output variable of position.Fig. 3 (e) is represented and has been added input
Output interface program continues to use program.Here, program P3 of continuing to use it is tight before place add and become program P4 of input interface,
The tight rear place for continuing to use program P3 adds program P5 for becoming output interface.By the way, the componentization process of program terminates.
Fig. 4 is the figure for schematically showing situation when carrying out FBization in the past to program, (a) represents the journey for carrying out FBization
Sequence, (b) represents the program obtained after carrying out FBization.In the FBization involved by patent document 1, in the feelings that FBization is carried out to program
Under condition, the classification of definition and the variable being present in FB to FB types automatically sets, but the variable in FB can not be certainly
It is set as external variable dynamicly.Therefore, in the case where wishing in FB using the variable as the program in the source of continuing to use, for example, exist
In the example of program P101 for becoming FB logics of Fig. 4 (a), it is desirable to by " IN1 " for variable in the case of, such as Fig. 4 (b) institutes
Show, it is necessary to generate for program P103 of data exchange is carried out with the built-in variable of FB P102.
On the other hand, in embodiment 1, the source variable of continuing to use used in source program is continued to use is replaced into and is continuing to use target
In program, unique variable name, is appended to as variable and continues to use in target program.Therefore, additional variable is continuing to use target program
Other interior positions also directly can use.As described above, in the method involved by embodiment 1, with following effects,
I.e., it is not necessary to required program P103 exchanged for digitization when FBization is carried out to program in the past.Further, since being set to
Comprising the title for continuing to use source variable in a part for new variables, therefore also there are following effects, i.e. be able to maintain that continuing to use for generation
The readability of the process in program, and do not lose the intention of the incidental variable of title.
Also, if carrying out FBization to program, then need to carry out the classification of the definition of FB types and the variable being present in FB
Setting, but in the case where only componentization is carried out as shown in Embodiment 1, with following effects, i.e. FB need not be carried out
The definition of type, the setting of the classification of the variable being present in FB.
Embodiment 2
In embodiment 2, following program development servicing units and its method are illustrated, which can be implemented to utilizing
Program after the carrying out that mode 1 is obtained componentization carries out modularization and shows.
Fig. 5 is an example of the structure for schematically showing the program development servicing unit involved by embodiment 2
Block diagram.The program development servicing unit 10 also has variable resolution on the basis of the program development servicing unit of embodiment 1
Portion 19 and continue to use program module display part 20.
The behaviour in service of the reading of the 19 pairs of variables used in program is continued to use in variable resolution portion, write etc. is parsed,
Divide into the variable for the variable of the reading being worth being needed when processing and starting and being write a value at the end of process.
Program module display part 20 is continued to use according to the result parsed using variable resolution portion 19, it would be desirable to be read out
The variable of side using the variable of write side as output pin, is continued to use Program Generating portion 16 to utilization and is given birth to as input pin
Into program of continuing to use carry out module and show.Specifically, in program by trapezoid figure program, in the case that i.e. sequencer is constituted,
Shown to continuing to use program with rectangle in a program, the left side configuration input pin in the program module of rectangle, on right side
Configuration output pin.Further, since other structures key element is identical with embodiment 1, therefore the description thereof will be omitted.
Below, the program development householder method in the program development servicing unit 10 of said structure is illustrated.Fig. 6 is
The flow chart of one example of the process step of the program development householder method involved by expression embodiment 2.Here, explanation
The program of continuing to use generated by Program Generating portion 16 will be continued to use carries out modularization the process for showing.
First, the behaviour in service of the reading of the 19 pairs of variables used in the program continued to use in variable resolution portion, write etc. is entered
Row parsing (step S31).For example, order independent variable in, in advance for each order to become reading independent variable and into
Independent variable for write is defined, and based on this definition, acquisition becomes making for the variable of the independent variable of the order in the program of continuing to use
Use situation.
For specific analyzing step, illustrated using program P2 of Fig. 3 (b).In command statement 301, it is judged as
The variable FLAG1 for becoming the independent variable of LD orders is to read.In command statement 302, be judged as becoming the 1st of MOV orders from
The variable IN1 of variable and reading, are judged as that variable V AR1 for becoming the 2nd independent variable is write.In command statement 303, judge
It is to read for variable FLAG1.In command statement 304, it is judged as that variable V AR1 for becoming the 1st independent variable is to read, is judged as
Variable V AR2 for becoming the 2nd independent variable is write.
Fig. 7 is the figure of the behaviour in service for representing the variable in the program of continuing to use.As shown in this figure, due to variable FLAG1 conducts
Read and use, therefore be judged as, the occupation mode of the input variable of FB is rendered as in program is continued to use.Due to variable IN1 conducts
Read and use, substitution of variable is not carried out in target program is continued to use, therefore is judged as, be rendered as the user of the external variable of FB
Formula.As variable V AR1 is used as reading and writing both, therefore it is judged as, the inside that FB is rendered as in program is continued to use becomes
The occupation mode of amount.As variable V AR2 is used as write, therefore it is judged as, the output that FB is rendered as in program is continued to use becomes
The occupation mode of amount.Additionally, in the figure 7, due to by the list of componentization object program P2 before being transformed to continue to use program P3
Enumerate as an example, therefore each variable attaches identifier, but in fact, be accompanied with identifier, be " PB1 in this example
$ ".
Then, result of the program module display part 20 according to the parsing of step S31 is continued to use, the variable to becoming input pin
Extracted with the variable for becoming output pin, shown to continuing to use program and carrying out module, to continuing to use what is extracted in program from this
Input pin and output pin are shown (step S32).The variable for becoming input pin is the change for only using as reading
Amount, i.e. input variable, the variable for becoming output pin is variable, the i.e. output variable for only using as write.Now, it is input into
Pin and output pin are shown in the module respectively as the name variable that addition of identifier.
For example, in the example of fig. 7, variable FLAG1 is the input variable only used in reading, is shown in input and draws
Pin, and it is not shown in output pin.As variable IN1 is used as built-in variable, therefore input pin and output it are not shown in
Pin.As variable V AR1 is used in reading and writing both, therefore input pin and output pin it are not shown in.Variable
VAR2 is the output variable only used in write, is shown in output pin, and is not shown in input pin.
Fig. 8 is the figure of an example for representing that the module of the program of continuing to use shows, (a) represents and continues to use program, (b) represents right
A the program of continuing to use of () carries out the example that module shows.According to Fig. 8 (a) and Fig. 7, in program P3 is continued to use, due to label 321
The variable PB1$FLAG1 for illustrating is rendered as the occupation mode of input variable, therefore becomes input pin, due to being shown with label 322
The variable PB1$VAR2 for going out is rendered as the occupation mode of output variable, therefore becomes output pin.Also, as shown in Fig. 8 (b),
Show to continuing to use program P3 and carrying out module, the left side of the module 401 as input pin configuration variables PB1$FLAG1,
Right side configuration variables PB1$VAR2 as output pin.Thus, the modularized processing for continuing to use program terminates.
In embodiment 2, according to having carried out continuing to use program after componentization, input variable and output variable are carried
Take, in the same manner as FB carry out modularization and show to continuing to use program, shown input variable as input pin wherein,
Shown output variable as output pin.Thus, with following effects, i.e. can be carried out with the operation being equal to FB
Continue to use, raising uses easness.
Embodiment 3
In embodiment 2, when to continuing to use program and carrying out module and show, using the variable name that addition of identifier, will
Input pin and output pin are configured in the module.In embodiment 3, illustrate using the method being different to continuing to use program
Carry out the situation that module shows.
The structure of the program development servicing unit 10 involved by embodiment 3 is identical with the structure of embodiment 2.But,
Program module display part 20 is continued to use when module display is carried out, the title of input pin and the variable of output pin is divided into into mark
Symbol and continue to use source variable name in addition to identifier.Then, shown identifier as module name in module, will be read
The source variable name of continuing to use for taking side is shown in input pin, and the source variable name of continuing to use of write side is shown in output pin.Due to which
His structural element is identical with embodiment 1,2, therefore the description thereof will be omitted.
Below, the program development householder method in the program development servicing unit 10 of said structure is illustrated.Fig. 9 is
The flow chart of one example of the process step of the program development householder method involved by expression embodiment 3.Here, explanation
The program of continuing to use generated by Program Generating portion 16 will be continued to use carries out modularization the process for showing.
First, variable resolution portion 19 is in the same manner as embodiment 2, the reading of the variable used by the program to continuing to use, writes
The behaviour in service for entering etc. is parsed (step S51).
Then, result of the program module display part 20 according to the parsing of step S51 is continued to use, the variable to becoming input pin
(step S52) is extracted with the variable for becoming output pin, the variable of the variable of input pin and output pin is shown in
Name is divided into identifier and the part (step S53) in addition to identifier.
Afterwards, continue to use program module display part 20 pairs and continue to use program and carry out module and show, in the module as title also
(step S54) is shown to identifier.In addition, continue to use program module display part 20 source of continuing to use in addition to identifier is become
Amount name used as continuing to use the input pin that extracts in program and output pin is shown (step S55) from this.Specifically, will
The source variable of continuing to use of the new variables for extracting used in reading is shown in input pin, by extracting used in write
The source variable of continuing to use of new variables be shown in output pin.Thus, process terminates.
Figure 10 is the figure of an example for representing that the module of the program of continuing to use shows, (a) represents and continues to use program, (b) represents right
A the program of continuing to use of () carries out the example that module shows.Compared with Fig. 8 (b), in Figure 10 (b), show on the top of module 401
Identifier 411, input pin and output pin are shown as the variable name after identifier is removed.
In embodiment 3, after to having carried out componentization when continuing to use program and carrying out modularization, using identifier as mould
The title of block, will eliminate from new variables and source variable is continued to use obtained from identifier as the aobvious of input pin and output pin
Show name.Thus, in the use for continuing to use program, as identifier is shown as FB Instance Names, and the title of pin
Shown with continuing to use source variable, therefore there are following effects, i.e. used and equally facilitate with FB, the feelings with embodiment 2
Condition is compared, and can further be improved and be used easness.
Embodiment 4
In embodiment 4, illustrate to enter the title of the variable used in program is continued to use, classification, data type
The program development servicing unit and its method of row change.
Figure 11 is an example of the structure for schematically showing the program development servicing unit involved by embodiment 4
Block diagram.The program development servicing unit 10 is gone back on the basis of the program development servicing unit 10 of embodiment 2 or embodiment 3
With continuing to use program editing portion 21.
Program editing portion 21 is continued to use with following function, i.e. the editing pictures to continuing to use program on display part 12 are carried out
Show, and user is reflected in the program of continuing to use via the content that input unit 11 is set in editing pictures.Specifically, edge
Obtained with 21 pairs, the program editing portion title for continuing to use the identifier in program and the variable name used in program is continued to use
Take, shown in editing pictures.Figure 12 is the figure of an example for representing editing pictures.As shown in this figure, editing pictures
500 include:The title 510 of identifier;And variable list 520, which carries out list display to continuing to use the variable in program.Variable
List 520 has:The variable name 521 for getting;The data type 522 of the variable name;And variable classes 523, which is to be directed to
The variable name, is judged based on the behaviour in service by accessed by variable resolution portion 19.Variable name 521 and variable classes
523 are pre-entered by program editing portion 21 is continued to use, but with regard to data type 522, can be set to blank, it is also possible to for becoming
Amount name 521 is pre-defined in the case of having data type, and the value is obtained and is input into.
The title 510 and variable list 520 of the identifier of editing pictures 500 is the structure that can enter edlin.Therefore,
User can be changed via input unit 11.Also, if user is determined to the content of editing pictures 500, then continue to use
In the module that its content is reflected in the program of continuing to use and continues to use program based on this and generate by program editing portion 21.Further, since its
His structural element is identical with embodiment 1~3, therefore the description thereof will be omitted.
Figure 13 and Figure 14 are the situations for schematically showing the exception processes for continuing to use program involved by embodiment 4
Figure.As shown in Figure 13 (a), illustrate that the title 510 of identifier is the construction (b) for continuing to use program in the case of " PB1 ", Yi Jigen
The module (c) generated according to program is continued to use.Here, as shown in Figure 14 (a), by editing pictures 500 by identifier
Title 510 is changed to " PB2 ", and so as to such as, shown in (b), the identifier for continuing to use program is changed to " PB2 ".In addition, showing in module
In, the title of module is also changed to " PB2 ".As described above, the content of edit of editing pictures 500 can be reflected in edge easily
With in program and module.
In embodiment 4, its result is reflected in by the change of the content for carrying out continuing to use program in editing pictures 500
Continue to use program and the module that generates according to program is continued to use in.Thus, with following effects, i.e. need not in the past in FBization
The required change that in a program definition is carried out.In addition, having following effects, i.e. the program in the source of continuing to use will not be become
More, it is easy to which the program to continuing to use is recycled.
Embodiment 5
In embodiment 5, illustrate to have carried out the situation that program transformation is FB of continuing to use after componentization or FB is become
It is changed to the situation for continuing to use program after having carried out componentization.
Figure 15 is an example of the structure for schematically showing the program development servicing unit involved by embodiment 5
Block diagram.The program development servicing unit 10 also has on the basis of the program development servicing unit 10 of embodiment 4 continues to use journey
Sequence-FB transformation components 22.
Program-FB transformation components 22 are continued to use with following function, i.e. by the user selected journey carried out after componentization
Sequence is transformed to FB, or inversely, user selected FB is transformed to carry out the program after componentization.Additionally, by program
A part be transformed to the technology of FB and be known by the technology that FB is transformed to program, therefore the description thereof will be omitted.In addition,
As other structures key element is identical with embodiment 1~4, therefore the description thereof will be omitted.
Figure 16 is that the process that program transformation is FB of continuing to use after having represented the carrying out involved by embodiment 5 componentization is walked
The flow chart of a rapid example.First, select to have carried out the program (step S71) after componentization by user.Then, continue to use journey
Sequence-FB transformation components 22 are by the program after the componentization in the carrying out selected in step S71 according to existing by program
Divide the method for being transformed to FB, be transformed to FB (step S72).Thus, process terminates.
Figure 17 is to represent to be transformed to carry out the process step of the program after componentization by the FB involved by embodiment 5
The flow chart of one example.First, the FB (step S91) for wishing to be transformed to carry out the program after componentization is selected by user.
Then, program-FB transformation components 22 are continued to use FB is transformed to into the one of program according to existing for the FB selected in step S91
Partial method, the program (step S92) after being transformed to carry out componentization.Thus, process terminates.
In embodiment 5, due to entering line translation to existing FB in the way of it can obtain the effect that this continues to use program,
Therefore there are following effects, i.e. software asset can be efficiently used.
Additionally, in the above description, as the object for carrying out componentization, trapezoid figure program i.e. sequencing journey has been included
Sequence, but it is not limited to this.For example, additionally it is possible to suitable for ST (Structured Text) and FBD (Function Block
Diagram) language etc. meets the program language of IEC61131-3.
Industrial applicibility
As described above, the usage frequency of program development servicing unit involved in the present invention suitable for certain program is higher
The recycling of program.
The explanation of label
10 program development servicing units, 11 input units, 12 display parts, 13 program element information acquiring sections, 14 identifiers
Generating unit, 15 new variables generating units, 16 continue to use Program Generating portion, 17 program insertion sections, 18 control units, 19 variable resolution portions, and 20
Program module display part is continued to use, 21 continue to use program editing portion, and 22 continue to use program-FB transformation components.
Claims (6)
1. a kind of program development servicing unit, it is characterised in that have:
Identifier generating unit, which generates identifier in the following manner, i.e. so as to the componentization that carries out continued to use in source program
What componentization object program was used continue to use source variable adds new variables obtained from the identifier as the componentization pair
As the continuing to use in target program entirety for insertion target of program is unique;
New variables signal generating unit, which is added with will be present in the componentization object program to the target program of continuing to use
The title for continuing to use source variable and the identifier be combined obtained from title the new variables, and generate institute
State the described of componentization object program and continue to use the associated variable association information of source variable and the new variables;
Program Generating unit is continued to use, which is based on the variable association information, by the institute used in the componentization object program
State and continue to use source variable and be replaced into the new variables, program is continued to use in generation;And
Program inserts unit, and the program of continuing to use is inserted into described continuing to use in target program by which.
2. program development servicing unit according to claim 1, it is characterised in that also have:
Variable resolution unit, its reading or the use of write to the new variables used in the componentization object program
Situation is parsed, and divide into needs the new variables of the reading being worth and at the end of process when processing and starting
The new variables for writing a value into;And
Continue to use program module display unit, its on the display unit to it is described continue to use program and carry out module show, and will read
The new variables of side is shown in the input pin in the module, and the aforementioned new variables of write side is shown in the module
Output pin.
3. program development servicing unit according to claim 2, it is characterised in that
It is described to continue to use the new variables that program module display unit is shown in the input pin and the output pin
Title is divided into identifier and continues to use source variable, is shown the identifier as module name in the module, also,
At the input pin, show to continuing to use source variable described in the title of the new variables of the reading side, described defeated
Go out at pin, show to source variable being continued to use described in the title of the new variables of said write side.
4. program development servicing unit according to claim 1, it is characterised in that
Also having and continuing to use program editing unit, this is continued to use program editing unit and program is continued to use for described, will be to the identifier
Title or the volume changed in the title of the new variables continued to use used in program, classification or data type
Volume picture shown on the display unit, make content edit using the editing pictures be reflected in described in continue to use program
In.
5. program development servicing unit according to claim 1, it is characterised in that
Also have and continue to use program-functional module converter unit, this is continued to use program-functional module converter unit and carries out described continuing to use
Conversion between program and functional module.
6. a kind of program development householder method, it is characterised in that comprising following operations:
Identifier is generated in the following manner, i.e. so as to the componentization object program institute for carrying out componentization continued to use in source program
The source variable of continuing to use for using adds new variables obtained from the identifier in the insertion target as the componentization object program
Continue to use target program entirety in be unique;
Add with continuing to use source variable described in will be present in the componentization object program to the target program of continuing to use
Title and the identifier be combined obtained from title the new variables;
Generate the variable association information associated by source variable and the new variables are continued to use described in the componentization object program;
Based on the variable association information, be replaced into institute by source variable being continued to use described in used in the componentization object program
New variables is stated, program is continued to use in generation;And
The program of continuing to use is inserted into into described continuing to use in target program.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2013/055853 WO2014136185A1 (en) | 2013-03-04 | 2013-03-04 | Program development support device and method therefor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105144003A CN105144003A (en) | 2015-12-09 |
CN105144003B true CN105144003B (en) | 2017-04-05 |
Family
ID=51490753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201380074134.1A Active CN105144003B (en) | 2013-03-04 | 2013-03-04 | Program development servicing unit and its method |
Country Status (3)
Country | Link |
---|---|
JP (1) | JP5777837B2 (en) |
CN (1) | CN105144003B (en) |
WO (1) | WO2014136185A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105159679A (en) * | 2015-09-15 | 2015-12-16 | 北京国科世纪激光技术有限公司 | Message responding and processing method and system of window software |
JP6458754B2 (en) | 2016-03-14 | 2019-01-30 | オムロン株式会社 | Program development support apparatus, program development support program, and program development support method |
JP6477553B2 (en) * | 2016-03-14 | 2019-03-06 | オムロン株式会社 | Program development support apparatus, program development support program, and program development support method |
JP6426666B2 (en) | 2016-07-27 | 2018-11-21 | ファナック株式会社 | Programmable controller |
JP7322604B2 (en) * | 2019-09-04 | 2023-08-08 | オムロン株式会社 | Program development device, project creation method, and program for realizing program development device |
CN111414585B (en) * | 2020-03-26 | 2023-05-05 | 深圳前海微众银行股份有限公司 | Variable management method, device, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3847585B2 (en) * | 2001-07-31 | 2006-11-22 | 株式会社デジタル | Editor registration device, registration program, and recording medium recording the same |
CN1971518A (en) * | 2005-11-22 | 2007-05-30 | 松下电器产业株式会社 | Compiling system, debugging system and program development system |
CN102317877A (en) * | 2009-02-18 | 2012-01-11 | 三菱电机株式会社 | Program analysis support device |
CN102467450A (en) * | 2010-11-08 | 2012-05-23 | 三菱电机株式会社 | Program testing apparatus and program testing method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4513806B2 (en) * | 2004-04-15 | 2010-07-28 | 三菱電機株式会社 | Peripheral device of programmable logic controller and method for creating program |
JP4735854B2 (en) * | 2006-06-26 | 2011-07-27 | オムロン株式会社 | PLC program development support device |
WO2008102426A1 (en) * | 2007-02-19 | 2008-08-28 | Mitsubishi Electric Corporation | Peripheral device for programmable controller, replacement method, and program |
-
2013
- 2013-03-04 CN CN201380074134.1A patent/CN105144003B/en active Active
- 2013-03-04 WO PCT/JP2013/055853 patent/WO2014136185A1/en active Application Filing
- 2013-03-04 JP JP2015504027A patent/JP5777837B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3847585B2 (en) * | 2001-07-31 | 2006-11-22 | 株式会社デジタル | Editor registration device, registration program, and recording medium recording the same |
CN1971518A (en) * | 2005-11-22 | 2007-05-30 | 松下电器产业株式会社 | Compiling system, debugging system and program development system |
CN102317877A (en) * | 2009-02-18 | 2012-01-11 | 三菱电机株式会社 | Program analysis support device |
CN102467450A (en) * | 2010-11-08 | 2012-05-23 | 三菱电机株式会社 | Program testing apparatus and program testing method |
Also Published As
Publication number | Publication date |
---|---|
WO2014136185A1 (en) | 2014-09-12 |
CN105144003A (en) | 2015-12-09 |
JPWO2014136185A1 (en) | 2017-02-09 |
JP5777837B2 (en) | 2015-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105144003B (en) | Program development servicing unit and its method | |
TWI464558B (en) | Program generation support device | |
CN101198957B (en) | Method and device for generation of a parametric model associated with a 3d geometry | |
EP2417498B1 (en) | Method for automatically partitioning a part program into fundamental operations | |
CN104793567B (en) | Nc program conversion method and device | |
US10234846B2 (en) | Method and apparatus for determining an optimum manufacturing alternative for manufacturing a product | |
Müller | Using S-BPM for PLC code generation and extension of subject-oriented methodology to all layers of modern control systems | |
Wilking et al. | SysML 4 digital twins–utilization of system models for the design and operation of digital twins | |
US20120158371A1 (en) | Method of Assisting Planning of a Technical System | |
US20150347972A1 (en) | Engineering tool and engineering system | |
EP3951519A1 (en) | Development support device, method for controlling development support device, information processing program, and recording medium | |
KR101447846B1 (en) | Motion sfc program component creation device | |
JP2011248852A (en) | System cooperation apparatus | |
EP4343468A1 (en) | Development assistance device, control method for development assistance device, information processing program, and recording medium | |
KR101622402B1 (en) | Hmi apparatus capable of providing gui-based hmi screen and method for providing gui-based hmi screen | |
US20200057832A1 (en) | Method for Computer Assisted Planning of a Technical System | |
KR101085114B1 (en) | System for providing programable logic controller software development environment | |
Helu et al. | Recommendations for collecting, curating, and re-using manufacturing data | |
Brandenbourger et al. | Generating metamodel-based descriptions of automation components in AutomationML | |
CN105629903A (en) | Method and equipment for automatically generating interface in industrial system | |
US20220398355A1 (en) | Design support device and storage medium | |
US20230400843A1 (en) | Line Designing Device and Line Designing Method | |
EP3995909A1 (en) | Configuring modular industrial plants | |
Fischer | Quality Assessment Procedure for IEC 61131-3-based Control Software for Machine and Plant Manufacturers | |
Sim et al. | Benefits of an interdisciplinary modular concept in automation of machine and plant manufacturing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |