CN1743982A - Program editing system and method for programmeable logic controller - Google Patents
Program editing system and method for programmeable logic controller Download PDFInfo
- Publication number
- CN1743982A CN1743982A CNA2004100684002A CN200410068400A CN1743982A CN 1743982 A CN1743982 A CN 1743982A CN A2004100684002 A CNA2004100684002 A CN A2004100684002A CN 200410068400 A CN200410068400 A CN 200410068400A CN 1743982 A CN1743982 A CN 1743982A
- Authority
- CN
- China
- Prior art keywords
- instruction
- menu
- plc
- logic controller
- programmable logic
- 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.)
- Pending
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Programmable Controllers (AREA)
Abstract
This invention provides a program compiling system and method for programmable logic controller (PLC), which contains the user compiling program by selecting menu mode in menu operation interface, avoiding logic program error by the mutually exclusive setting of menu selection to obtain easy learning, right and reliable compiling.
Description
Technical field
The present invention is a kind of program editing system and method for the programmable logic controller (PLC) relevant for program editing system and method, particularly a kind of menu operation interface.
Background technology
Arriving along with the industrial automation epoch, programmable logic controller (PLC) is played the part of the role of central authorities' control, the user by editor command to the memory module of programmable logic controller (PLC), allow programmable logic controller (PLC) produce corresponding steering logic (control logic), with control output device (example, relay or pilot lamp or the like).
In general, in order to plan certain some special applications order (example, high-speed counting or the like), need to set the initial value of some relevant outputs, input switch and the systematic parameter of arranging in pairs or groups mutually, even interrupt setting or the like, unless the user is familiar with the program dependent instruction very much, otherwise need to rely on user manuals, contrast programmed instruction one by one and its respective action is come coding, if and general beginner, mistake on instruction omission or the logical program takes place easily, and the problem of output device malfunction takes place.
Therefore, program editing operation that how can simple and easy study programmable logic controller (PLC) and reduce the program editing error rate to promote the correctness and the fiduciary level of program editing, becomes one of researchist's problem to be solved.
Summary of the invention
Because shortcoming and insurmountable problem that prior art exists, the present invention proposes a kind of program editing system and method for programmable logic controller (PLC), by menu instruction manipulation interface, set the correlation parameter content, and utilize the setting of menu programmed instruction mutual exclusion, avoid the problem of program editing generation logical program mistake, with the correctness of lifting program editing and the purpose of fiduciary level.
Institute thinks and reaches above-mentioned purpose, in the program editing system of programmable logic controller (PLC) proposed by the invention, includes following modules:
The menu interface display module, in order to producing the interface of a plurality of menus instruction, and each menu instruction is arranged demonstration in proper order according to the predetermined instruction editor, chooses the menu instruction in regular turn so that the user to be provided.
The program instruction data storehouse is connected with the menu interface display module, and stores a plurality of programmed instruction, according to the menu instruction that the user chooses, reads corresponding programmed instruction.
Logic judgment module when choosing the group of specific programmed instruction, produces a mutual exclusion (XOR) logic determines, to limit the menu instruction after the user chooses the mutual exclusion logic determines.
Module is removed in menu instruction, chooses the setting content of instruction in order to removing, resets the content of menu instruction so that the user to be provided.
Ladder figure (ladder diagram) generation module according to the programmed instruction of having edited, produces the ladder figure of corresponding programmed instruction.
In addition, the program editing method of programmable logic controller (PLC) proposed by the invention includes the following step:
Choose menu instruction; Instruct to program data base according to menu and to read corresponding programmed instruction; The logical relation of determining program instruction; According to logical relation, show a time selectable menu instruction.
Wherein, also comprise and judge whether to remove the menu command content and judge whether to finish editing steps, after the user has edited program, also comprise and show ladder figure and the step of listing programmed instruction, the user only needs the programmed instruction of listing is sent to programmable logic controller (PLC), can control operation to output device.
Program editing system and method by this programmable logic controller (PLC), allow the user carry out the program editing operation by easy menu operation interface, and utilize the setting of menu instruction mutual exclusion, avoid on program editing, occurring the situation of logical program mistake, reach simple and easy study and promote the correctness of program editing and the purpose of fiduciary level.
More than about the explanation of description of contents of the present invention and following embodiment in order to demonstration with explain principle of the present invention, and provide claim of the present invention further to explain.
Description of drawings
Fig. 1 is a system block diagrams proposed by the invention;
Fig. 2 is the corresponding programmed instruction of listing proposed by the invention;
Fig. 3 is an operation interface synoptic diagram proposed by the invention;
Fig. 4 is an operation interface synoptic diagram proposed by the invention;
Fig. 5 is an operation interface synoptic diagram proposed by the invention;
Fig. 6 is an instruction editing operation interface synoptic diagram proposed by the invention; And
Fig. 7 is for demonstration ladder figure proposed by the invention and list programmed instruction.
Wherein, description of reference numerals is as follows:
10 menu interface display modules
20 program instruction data storehouses
30 logic judgment module
Module is removed in the instruction of 40 menus
50 ladder figure generation modules
60 programmable logic controller (PLC)s
The logical relation of step 202 determining program instruction;
Whether step 204 removes the content of menu instruction;
Whether step 205 finishes editor;
Embodiment
Relevant characteristics and implementation of the present invention, existing conjunction with figs. is described in detail as follows most preferred embodiment.
Please refer to Fig. 1, be system block diagrams of the present invention, include menu interface display module 10, program instruction data storehouse 20, logic judgment module 30, menu instruction removing module 40 and ladder figure generation module 50.
Menu interface display module 10, in order to the operation interface that shows that a plurality of menus instruct, and the menu instruction is chosen the menu instruction according to the demonstration of predetermined instruction editor series arrangement in regular turn so that the user to be provided, and after the user has edited the menu instruction, show the ladder figure and list programmed instruction.
Program instruction data storehouse 20, be connected with menu interface display module 10, and store a plurality of programmed instruction, the menu of choosing according to the user instructs, read corresponding programmed instruction, and the menu instruction is an one with programmed instruction, wherein programmed instruction roughly can be divided into elementary instruction and application instruction, elementary instruction includes: general instruction, output order, timer, counter and master control instruction or the like, and application instruction includes: circuit controls instruction, high number processing instruction, four fundamental rules logic instruction and transmission comparison order or the like.
Menu instructs removes module 40, is connected with menu interface display module 10, in order to the setting content of removing menu instruction, and reverts to the not preceding state of editor, resets the content of menu instruction so that the user to be provided.
Ladder figure (ladder diagram) generation module 50, be connected with menu interface display module 10, program instruction data storehouse 20, after the user has edited the menu instruction, according to programmed instruction, produce corresponding ladder figure, and by 10 demonstrations of menu interface display module, to provide the user to carry out program editing debug operation, common electromechanical assembly includes in the switchboard: button, relay, switch, counter and timer or the like and the basic symbol of ladder figure is according to controlling automatically.
The user is sent to execution in the programmable logic controller (PLC) 60 with the programmed instruction of listing after the intact program of menu editing system inediting, can control output device.
Please refer to Fig. 2, be flow chart of steps of the present invention, at first, the user chooses menu instruction (step 200); Editing system instructs to program data base according to menu and reads corresponding programmed instruction (step 201), and the menu instruction is man-to-man corresponding relation with programmed instruction; Next, the logical relation (step 202) of determining program instruction, via the logical relation of editing system determining program instruction, if when the logical relation of programmed instruction is mutual exclusion, it is the menu instruction of mutual exclusion that the user can't choose with its logical relation again; According to logical relation, show a time selectable menu instruction (step 203), to avoid the problem of logical program mistake on the program editing.
Judge whether to remove the setting content (step 204) of menu instruction, when desiring to update the menu instruction, can remove module 40 by the menu instruction and remove the setting content that menu instructs, and get back to step 200 as if the user.
Judge whether to finish program editing operation (step 205), after if the correlation parameter of menu instruction is set and has all been shown, that judges whether the user choose menu operation interface finishes the editting function key, if the user still need carry out the program editing operation, promptly get back to step 200, continue the correlation parameter of menu instruction and set.
After confirming to finish editor, editing system can show the ladder figure and list programmed instruction (step 206), the user is by the ladder figure of demonstration and the contrast relationship of programmed instruction, whether fast browsing device action order meets the requirements, after having confirmed that the device action order is errorless, next, the user only needs the programmed instruction of listing is sent to execution in the programmable logic controller (PLC) 60, can carry out the control operation of output device.
Please refer to Fig. 3, be operation interface synoptic diagram of the present invention, at first, the user chooses and will build the instruction type (high-speed counter or PID control) of putting, choose high-speed counter and click " next step " function key, to carry out parameter setting, please refer to Fig. 4, the parameter setting content includes the counting pattern, the counter numbering, the counter input, counter setting value and counting direction, and every menu instruction shows according to predetermined instruction editor series arrangement, be that its parameter setting content is arranged demonstration according to logical order, to avoid taking place the situation of missing parameter setting or programmed instruction logical program mistake.
Wherein, the parameter setting of counting pattern partly is single point selection function, be that the user only can choose a kind of counting pattern (1 1 input, 1,2 inputs or 2 input mutually mutually mutually), next set counter numbering, conditional, counter input, counter setting value in regular turn.
Please refer to Fig. 5, counting direction is a point selection function, click " upwards counting " or " counting downwards " the user after, just can enter down one deck menu instruction line parameter of going forward side by side sets, if before not clicking " counting makes progress " or " counting downwards " menu instruction, instruction of one deck menu can't be carried out parameter setting under it, i.e. the part that dotted line is represented among Fig. 4, editor's setting means can be avoided the logical program error situations between programmed instruction so in regular turn.
In addition, when the user desires to reset the menu instruction, can click " removing setting value " function key, the menu instruction promptly reverts to the not preceding state of editor, next, click " next step " function key and continue the program editing operation, please refer to Fig. 6, be menu instruction editing operation of the present invention interface synoptic diagram, the parameter setting content that shows each menu instruction respectively, after the user chooses " DHSCS " this instruction project, can enter down one deck menu " counter reaches action and sets " and carry out the parameter setting of device contact and the parameter setting of " fiducial value ", the required setup parameter value of this instruction can be listed one by one by menu operation interface, therefore, the problem that missing parameter was set when the user can not edit this instruction, thus the correctness and the fiduciary level of edit routine promoted.
Please refer to Fig. 7, be demonstration ladder figure of the present invention and the synoptic diagram of listing programmed instruction, after the user has edited program, and click " finishing " function key, editing system shows staircase chart immediately or lists corresponding programmed instruction, whether node and parameter value that the user can be once more sets by the inspection of ladder figure be correct, if after confirming correctly, next, the user only needs the programmed instruction of listing is sent to execution in the programmable logic controller (PLC) 60, can carry out the control operation of output device.
The System and method for of the program editing by this programmable logic controller (PLC), allow the user pass through easy menu operation interface, can carry out the program editing operation, and the problem of occurrence logic program error can avoid editor command the time, reach simple and easy study and promote the correctness of program editing and the purpose of fiduciary level.
Though the present invention with aforementioned preferred embodiment openly as above; right its is not in order to limit the present invention; any those skilled in the art; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, therefore scope of patent protection of the present invention must be looked the protection domain that this instructions appending claims defined and is as the criterion.
Claims (11)
1. the program editing system of a programmable logic controller (PLC) includes:
One menu interface display module, in order to the operation interface that shows that a plurality of menus instruct, and this menu instruction is chosen this menu instruction according to predetermined instruction editor series arrangement demonstration in regular turn so that the user to be provided;
One program instruction data storehouse is connected with this menu interface display module, and stores a plurality of programmed instruction, according to this menu instruction that the user chooses, reads this corresponding programmed instruction; And
One logic judgment module when choosing the group of this specific programmed instruction, produces a mutual exclusion logic determines, to limit this menu instruction after the user chooses this mutual exclusion logic determines.
2. the program editing system of programmable logic controller (PLC) as claimed in claim 1 wherein also comprises menu instruction and removes module, in order to remove the setting content of this menu instruction, resets this menu instruction so that the user to be provided.
3. the program editing system of programmable logic controller (PLC) as claimed in claim 1 wherein also comprises a ladder figure generation module, produces corresponding ladder figure according to this programmed instruction of having edited.
4. the program editing system of programmable logic controller (PLC) as claimed in claim 3, wherein this menu interface display module after the user has edited this menu instruction, shows this ladder figure.
5. the program editing system of programmable logic controller (PLC) as claimed in claim 4, this menu interface display module wherein after the user has edited this menu instruction, is listed this programmed instruction that should the menu instruction.
6. the program editing method of a programmable logic controller (PLC) comprises the following step:
Choose menu instruction;
Read corresponding programmed instruction according to this menu instruction;
Judge the logical relation of this programmed instruction; And
According to this logical relation, show time selectable this menu instruction.
7. the program editing method of programmable logic controller (PLC) as claimed in claim 6, wherein this menu instruction is to show according to a predetermined instruction editor series arrangement.
8. the program editing method of programmable logic controller (PLC) as claimed in claim 6 wherein also comprises the step of the setting content that judges whether to remove this menu instruction, chooses this menu instruction again so that the user to be provided.
9. the program editing method of programmable logic controller (PLC) as claimed in claim 6 wherein also comprises and judges whether to finish editing steps.
10. the program editing method of programmable logic controller (PLC) as claimed in claim 9 wherein after confirming to finish editor, shows the step of the ladder figure of this menu instruction.
11. the method for the program editing of programmable logic controller (PLC) as claimed in claim 9 wherein also is contained in after editor finishes, and lists the step of this programmed instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2004100684002A CN1743982A (en) | 2004-09-02 | 2004-09-02 | Program editing system and method for programmeable logic controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2004100684002A CN1743982A (en) | 2004-09-02 | 2004-09-02 | Program editing system and method for programmeable logic controller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1743982A true CN1743982A (en) | 2006-03-08 |
Family
ID=36139390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2004100684002A Pending CN1743982A (en) | 2004-09-02 | 2004-09-02 | Program editing system and method for programmeable logic controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1743982A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063068A (en) * | 2010-10-29 | 2011-05-18 | 深圳市奥宇控制系统有限公司 | Programming method, system and computer of DDC (Direct Digital Control) logic |
CN102331763A (en) * | 2011-08-02 | 2012-01-25 | 成都海视特科技有限公司 | Method for generating and executing command for process control system |
CN102874164A (en) * | 2012-09-21 | 2013-01-16 | 中国人民解放军防化学院 | Nuclear biochemical decontamination trailer system |
CN103995491A (en) * | 2013-02-20 | 2014-08-20 | 西门子公司 | Graph output system of programmable logic controller, and programmable logic controller |
CN104570903A (en) * | 2013-10-11 | 2015-04-29 | 洛克威尔自动控制技术股份有限公司 | PLD editor and method for editing PLD code |
CN108459552A (en) * | 2018-01-31 | 2018-08-28 | 南京拓控信息科技股份有限公司 | A kind of programmable automation control method of intelligence object-oriented |
-
2004
- 2004-09-02 CN CNA2004100684002A patent/CN1743982A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063068A (en) * | 2010-10-29 | 2011-05-18 | 深圳市奥宇控制系统有限公司 | Programming method, system and computer of DDC (Direct Digital Control) logic |
CN102063068B (en) * | 2010-10-29 | 2013-01-02 | 深圳市奥宇控制系统有限公司 | Programming method, system and computer of DDC (Direct Digital Control) logic |
CN102331763A (en) * | 2011-08-02 | 2012-01-25 | 成都海视特科技有限公司 | Method for generating and executing command for process control system |
CN102874164A (en) * | 2012-09-21 | 2013-01-16 | 中国人民解放军防化学院 | Nuclear biochemical decontamination trailer system |
CN102874164B (en) * | 2012-09-21 | 2015-03-18 | 中国人民解放军防化学院 | Nuclear biochemical decontamination trailer system |
CN103995491A (en) * | 2013-02-20 | 2014-08-20 | 西门子公司 | Graph output system of programmable logic controller, and programmable logic controller |
CN103995491B (en) * | 2013-02-20 | 2016-06-15 | 西门子公司 | The graphical output system of programmable logic controller (PLC) and programmable logic controller (PLC) |
CN104570903A (en) * | 2013-10-11 | 2015-04-29 | 洛克威尔自动控制技术股份有限公司 | PLD editor and method for editing PLD code |
CN104570903B (en) * | 2013-10-11 | 2017-05-31 | 洛克威尔自动控制技术股份有限公司 | PLD editing machine and edit methods |
CN108459552A (en) * | 2018-01-31 | 2018-08-28 | 南京拓控信息科技股份有限公司 | A kind of programmable automation control method of intelligence object-oriented |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1162762C (en) | Architecture for hybrid real-time control system and method of operation thereof | |
CN101464691B (en) | Control apparatus and control system for assembly line equipment | |
CN1677290A (en) | Development aid device | |
Ehlers et al. | Resilience to intermittent assumption violations in reactive synthesis | |
CN2869988Y (en) | Chip programming apparatus | |
CN1762154A (en) | Upgrading digital media servers | |
CN1242536A (en) | Method for and device of initialization of single direction communication | |
CN1743982A (en) | Program editing system and method for programmeable logic controller | |
CN109254763B (en) | Nuclear power plant control software design method based on finite-state machine | |
CN1272720C (en) | Method and device used in interrupted dynamic priority ordering | |
CN102708051A (en) | Continuous integration method and continuous integration system for program | |
CN107295810B (en) | Engineering tools | |
CN100337404C (en) | Crystal oscillation duplicaltion and its duplicating circuit | |
CN1591253A (en) | Programmable controller | |
CN1308828C (en) | Method and apparatus for processing events | |
CN101750992B (en) | General sequence control algorithm used in programmable logic controller | |
CN1667618A (en) | Method for improving PCB design efficiency based on PCB design operation | |
CN1207680C (en) | Circuit simulation device and circuit simulation method | |
CN1407451A (en) | Command backtracking method for embedded gateway command line interface | |
CN1287287C (en) | Method for realizing on-line renewing data based on control system | |
CN1567232A (en) | Testing device and method for flush-bonding system | |
US20090216343A1 (en) | Method for Determining the Processing Order of Modules In a Function Plan and Electronic Data Processing System for Carrying Out the Method | |
CN113671924A (en) | DCS real-time value setting method and system, equipment and storage medium | |
CN1601416A (en) | Opening structural computer digital control system able to re-configurate | |
CN100495328C (en) | Device for developing computer system and its method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |