CN106990750A - A kind of ladder diagram online editing system and method - Google Patents

A kind of ladder diagram online editing system and method Download PDF

Info

Publication number
CN106990750A
CN106990750A CN201710213975.6A CN201710213975A CN106990750A CN 106990750 A CN106990750 A CN 106990750A CN 201710213975 A CN201710213975 A CN 201710213975A CN 106990750 A CN106990750 A CN 106990750A
Authority
CN
China
Prior art keywords
ladder diagram
module
online editing
matrix
ladder
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710213975.6A
Other languages
Chinese (zh)
Other versions
CN106990750B (en
Inventor
邱志远
刘柏严
董俊清
张晖
穆珊珊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijialai Industrial Automation (china) Co Ltd
Original Assignee
Beijialai Industrial Automation (china) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijialai Industrial Automation (china) Co Ltd filed Critical Beijialai Industrial Automation (china) Co Ltd
Priority to CN201710213975.6A priority Critical patent/CN106990750B/en
Publication of CN106990750A publication Critical patent/CN106990750A/en
Application granted granted Critical
Publication of CN106990750B publication Critical patent/CN106990750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/056Programming the PLC
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13004Programming the plc

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The present invention provides a kind of ladder diagram online editing system and method, and ladder diagram online editing system includes:Code realizes module and interface operation module;Interface operation module includes:Ladder diagram matrix editor module, new ladder diagram is inserted in the ad-hoc location of existing ladder diagram;Ladder diagram matrix management module, updates by being loaded into csv file or ladder diagram matrix editor module and obtains current ladder diagram matrix, global after preservation to enable;Document management module, is loaded into, preserves and refreshes csv file;Code realizes block supports ladder diagram matrix editor module, and output result is calculated according to input.The ladder diagram online editing system and method for the present invention is on the basis of for the ripe scheme of certain type, it is allowed to which user carries out some simple customized changes, and assigns corresponding logic by the present invention, saves time and the cost of secondary development.

Description

A kind of ladder diagram online editing system and method
Technical field
The present invention relates to a kind of system of ladder diagram online editing, the invention further relates to a kind of side of ladder diagram online editing Method, belongs to industrial control field.
Background technology
Using PLC carry out Industry Control when, as a rule, program need by exploitation software translating after again by PLC identification operations, exploitation software with machine touch-screen independently, it is impossible to accomplish to write online one section of trapezoid figure program and by it It is associated with existing input and output.If situ machine needs to make some simple hardware or logic changes, it is still desirable to Again through exploitation software modification, and by program burned PLC again, site operation personnel often do not possess this ability, it is necessary to Developer is to live modification program and sends PLC to, and this process generates higher expense.
The content of the invention
It is an object of the invention to provide a kind of system and method for ladder diagram online editing, to solve the above problems.
Present invention employs following technical scheme:
A kind of ladder diagram online editing system, it is characterised in that including:Code realizes module and interface operation module;Boundary Face operation module includes:Ladder diagram matrix editor module, new ladder diagram is inserted in the ad-hoc location of existing ladder diagram;It is trapezoidal Figure matrix management module, updates by being loaded into csv file or ladder diagram matrix editor module and obtains current ladder diagram matrix, It is global after preservation to enable;Document management module, is loaded into, preserves and refreshes csv file;Code realizes block supports ladder diagram square Battle array editor module, output result is calculated according to input.
The present invention also provides a kind of ladder diagram online editing method, it is characterised in that comprise the following steps:
Step one:To ladder diagram matrix editor module input parameter;
Step 2:Code realizes module collection interface graphical information;
Step 3:Start to calculate;
Step 4:Judge whether present networks enable, if "Yes", into step 5;If "No", into step 14, Terminate to calculate;
Step 5:Judge whether current input is " sky ";
Step 6:The result (true/false, it is considered in parallel) of design conditions front nodal point;
Step 7:Calculate the result (true/false) of postjunction;
Step 8:Determine whether that last in row is inputted;If "No", into step 9;If "Yes", enter step Rapid ten.
Step 9:Next input is redirected, subsequently into step 5;
Step 10:According to result after output front nodal point state computation output;
Step 11:Determine whether last column;Enter step 13 if "Yes", if "No", into step 10 Two.
Step 12:First input of next line is redirected, subsequently into step 5.
Step 13:The destination object of output condition association is enabled/disabled according to checkout result.
Step 14:Ladder diagram matrix management module loading ladder diagram matrix editor module, which is updated, obtains current trapezoidal Figure matrix, it is global after preservation to enable.
Further, ladder diagram online editing method of the invention, can also have the feature that:Also including the use of described The step of ladder diagram matrix management module sets current ladder diagram matrix title.
Further, ladder diagram online editing method of the invention, can also have the feature that:Also including the use of described The step of switching of ladder diagram matrix management module shows different LD matrixes.
Further, ladder diagram online editing method of the invention, can also have the feature that:Also including the use of described The step of ladder diagram matrix management module preservation/deletion current LD matrixes.
Further, ladder diagram online editing method of the invention, can also have the feature that:Also including the use of trapezoidal The step of figure matrix editor module insertion input and output node.
Further, ladder diagram online editing method of the invention, can also have the feature that:Also including the use of trapezoidal The step of figure matrix editor module selects node type and condition.
Further, ladder diagram online editing method of the invention, can also have the feature that:Also including the use of trapezoidal The step of state that figure matrix editor module destruction operation to last time preserves.
Further, ladder diagram online editing method of the invention, can also have the feature that:Being additionally included in the overall situation makes Can before judge LD matrixes whether saved step, if judged result be "Yes", allow the overall situation enable.
The beneficial effect of invention
In machine touch-screen by approximately developing the interface of trapezoidal pattern programming in software, one section or several sections of ladder diagrams are write Program, requiring no compiling just can run directly in inside PLC, dynamically associate the existing input and output of machine.For certain On the basis of type maturation scheme, it is allowed to which user carries out some simple customized changes, and corresponding by present invention imparting Logic, saves time and the cost of secondary development.Due to the operation interface of ladder diagram simple, intuitive, it is not necessary to specially trained The site operation personnel of instruction can also add desired function according to help.
Brief description of the drawings
Fig. 1 is the structural representation of ladder diagram online editing system;
Fig. 2 is the flow chart that code realizes module.
Embodiment
Illustrate the embodiment of the present invention below in conjunction with accompanying drawing.
As shown in figure 1, ladder diagram online editing system includes:Code realizes module and interface operation module, interface operation Module includes:LD matrix management module, document management module and LD matrix editor modules.LD matrixes are the contracting of ladder diagram matrix Write.
As shown in Fig. 2 code realizes that the workflow of module is as follows:
Step 1:Collect interface graphical information;
Step 2:Start to calculate;
Step 3:Judge whether present networks enable, if "Yes", into step 4;If "No", into step 13, terminate Calculate;Here present networks refer to that code realizes the logical network of the pseudo- compiling of module, it is necessary to which enabling this network could be carried out Programming operation below;
Step 4:Judge whether current input is " sky ";
Step 5:The result (true/false, it is considered in parallel) of design conditions front nodal point;
Step 6:Calculate the result (true/false) of postjunction;
Step 7:Determine whether that last in row is inputted;If "No", into step 8;If "Yes", into step 9。
Step 8:Next input is redirected, subsequently into step 4;
Step 9:According to result after output front nodal point state computation output;
Step 10:Determine whether last column;Enter step 12 if "Yes", if "No", into step 11.
Step 11:First input of next line is redirected, subsequently into step 4.
Step 12:The destination object of output condition association is enabled/disabled according to checkout result.
Step 13:Terminate to calculate.
After code realizes the work of module, the editing of one section of new ladder diagram is completed, corresponding CSV texts are generated Part.
LD matrix management modules:For setting current LD matrixes title, the different LD matrixes of switching display, preservation/deletion to work as Preceding LD matrixes, all LD matrixes of deletion, the current LD matrixes of enable/disability, concrete function are as shown in Figure 2.Delete equal during LD matrixes Have whether dialog box prompting determines to delete corresponding LD matrixes, loss of data is caused with anti-misoperation.
Document management module:For realizing loading/preservation/refreshing csv file, setting the functions such as csv file name.Refresh work( All csv files under catalogue can be obtained, convenient selection corresponding document is loaded into.By dialogue during loading/preservation csv file Frame indicates current state.Filename is checked during loading/preservation, if filename length is more than 18 characters or bag Containing forbidden character, or the file to be loaded into is not present, then prompting can not be preserved.
LD matrix editor modules:Realize to edit operations such as insertion, the deletions of LD matrixes.It may be inserted into input and output section Point, and node type and condition etc. can be selected.Abbreviation " LD " refers to ladder diagram.
LD matrixes editor module provides 7 kinds of input conditions:Straight line (Link), normally opened (Normally Open), normally closed (Normally Closed), delay open (On Delay), delay and close (Off Delay), rising edge triggering (Positive Edge), trailing edge triggering (Negative Edge).Wherein rising edge need to coordinate normally opened/normally closed node to make with trailing edge triggering With.
The state that revocation function can be preserved with destruction operation to last time.For security consideration, unsaved LD matrixes are forbidden The overall situation is enabled, while after global enable, forbidding editing LD matrixes, corresponding operating has prompt message.
Expansible input and output matrix;
1) expansible the number networks;
2) MIMO function can be realized;
3) whether each LD matrixes can be separately configured enables, while can also control whether whole LD groups enable;
4) input/output can select DI/DO and intermediate variable, program variable respectively;
5) a number of DI/DO passages are predefined, number of channels can extend;
6) a number of intermediate variable is predefined, can be used in input/output condition;
7) comprising 4 kinds of output conditions:(Direct) is directly exported, output (Inverted), set (Set) is negated, resets (Reset);Support revocation and recovery operation.
Use case:
Document management module is updated and worked as by being loaded into csv file or LD matrix editor modules in operation interface Preceding LD matrixes, it is global after preservation to enable.LD matrixes editor module carries out corresponding operating to DI in operation interface afterwards, and Monitor corresponding DO states.When being operated to DI, code realizes module in running background, while monitoring whole LD in main interface The running situation of network.

Claims (9)

1. a kind of ladder diagram online editing system, it is characterised in that including:
Code realizes module and interface operation module;
Interface operation module includes:
Ladder diagram matrix editor module, new ladder diagram is inserted in the ad-hoc location of existing ladder diagram;
Ladder diagram matrix management module, updates by being loaded into csv file or ladder diagram matrix editor module and obtains working as front ladder Shape figure matrix, it is global after preservation to enable;
Document management module, is loaded into, preserves and refreshes csv file;
Code realizes block supports ladder diagram matrix editor module, and output result is calculated according to input.
2. a kind of ladder diagram online editing method, it is characterised in that comprise the following steps:
Step one:To ladder diagram matrix editor module input parameter;
Step 2:Code realizes module collection interface graphical information;
Step 3:Start to calculate;
Step 4:Judge whether present networks enable, if "Yes", into step 5;If "No", into step 14, terminate Calculate;
Step 5:Judge whether current input is " sky ";
Step 6:The result (true/false, it is considered in parallel) of design conditions front nodal point;
Step 7:Calculate the result (true/false) of postjunction;
Step 8:Determine whether that last in row is inputted;If "No", into step 9;If "Yes", into step Ten.
Step 9:Next input is redirected, subsequently into step 5;
Step 10:According to result after output front nodal point state computation output;
Step 11:Determine whether last column;Enter step 13 if "Yes", if "No", into step 12.
Step 12:First input of next line is redirected, subsequently into step 5.
Step 13:The destination object of output condition association is enabled/disabled according to checkout result.
Step 14:Ladder diagram matrix management module loading ladder diagram matrix editor module, which is updated, obtains current ladder diagram square Battle array, it is global after preservation to enable.
3. ladder diagram online editing method as claimed in claim 2, it is characterised in that:
The step of current ladder diagram matrix title also is set including the use of the ladder diagram matrix management module.
4. ladder diagram online editing method as claimed in claim 2, it is characterised in that:
The step of also showing different LD matrixes including the use of ladder diagram matrix management module switching.
5. ladder diagram online editing method as claimed in claim 2, it is characterised in that:
Also LD matrixes current including the use of the ladder diagram matrix management module preservation/deletion the step of.
6. ladder diagram online editing method as claimed in claim 2, it is characterised in that:
Also the step of input and output node is inserted including the use of ladder diagram matrix editor module.
7. ladder diagram online editing method as claimed in claim 2, it is characterised in that:
The step of also selecting node type and condition including the use of ladder diagram matrix editor module.
8. ladder diagram online editing method as claimed in claim 2, it is characterised in that:
The step of state also preserved including the use of ladder diagram matrix editor module destruction operation to last time.
9. ladder diagram online editing method as claimed in claim 2, it is characterised in that:
Be additionally included in before global enable judge LD matrixes whether saved step, if judged result is "Yes", permission is entirely Office enables.
CN201710213975.6A 2017-04-01 2017-04-01 Ladder diagram online editing method Active CN106990750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710213975.6A CN106990750B (en) 2017-04-01 2017-04-01 Ladder diagram online editing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710213975.6A CN106990750B (en) 2017-04-01 2017-04-01 Ladder diagram online editing method

Publications (2)

Publication Number Publication Date
CN106990750A true CN106990750A (en) 2017-07-28
CN106990750B CN106990750B (en) 2019-12-24

Family

ID=59416032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710213975.6A Active CN106990750B (en) 2017-04-01 2017-04-01 Ladder diagram online editing method

Country Status (1)

Country Link
CN (1) CN106990750B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112327744A (en) * 2020-11-20 2021-02-05 深圳市海浦蒙特科技有限公司 Method for interconverting ladder diagram and instruction list for programmable logic controller

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009259082A (en) * 2008-04-18 2009-11-05 Koyo Electronics Ind Co Ltd Ladder diagram editing system
CN102308263A (en) * 2009-02-04 2012-01-04 三菱电机株式会社 Ladder program edition device
CN102508654A (en) * 2011-10-11 2012-06-20 江苏科技大学 Method for designing ladder diagram editing software of embedded PLC (Programmable Logic Controller)
CN102566483A (en) * 2010-12-21 2012-07-11 鸿富锦精密工业(深圳)有限公司 Programmable logic control system
CN102640112A (en) * 2009-12-28 2012-08-15 三菱电机株式会社 Program creation support device
JP2013016021A (en) * 2011-07-04 2013-01-24 Hitachi Ltd Ladder program creation device and ladder program creation method
CN103218218A (en) * 2012-01-12 2013-07-24 横河电机株式会社 Ladder program creation apparatus
CN103797454A (en) * 2011-09-15 2014-05-14 三菱电机株式会社 Ladder program creation device
CN104156206A (en) * 2013-07-29 2014-11-19 迪吉多电子股份有限公司 Image making system
JP2016004414A (en) * 2014-06-17 2016-01-12 三菱電機株式会社 Device, method, and program for editing program

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009259082A (en) * 2008-04-18 2009-11-05 Koyo Electronics Ind Co Ltd Ladder diagram editing system
CN102308263A (en) * 2009-02-04 2012-01-04 三菱电机株式会社 Ladder program edition device
CN102640112A (en) * 2009-12-28 2012-08-15 三菱电机株式会社 Program creation support device
CN102566483A (en) * 2010-12-21 2012-07-11 鸿富锦精密工业(深圳)有限公司 Programmable logic control system
JP2013016021A (en) * 2011-07-04 2013-01-24 Hitachi Ltd Ladder program creation device and ladder program creation method
CN103797454A (en) * 2011-09-15 2014-05-14 三菱电机株式会社 Ladder program creation device
CN102508654A (en) * 2011-10-11 2012-06-20 江苏科技大学 Method for designing ladder diagram editing software of embedded PLC (Programmable Logic Controller)
CN103218218A (en) * 2012-01-12 2013-07-24 横河电机株式会社 Ladder program creation apparatus
CN104156206A (en) * 2013-07-29 2014-11-19 迪吉多电子股份有限公司 Image making system
JP2016004414A (en) * 2014-06-17 2016-01-12 三菱電機株式会社 Device, method, and program for editing program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
石涛: "基于EP9315的嵌入式软PLC开发系统的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112327744A (en) * 2020-11-20 2021-02-05 深圳市海浦蒙特科技有限公司 Method for interconverting ladder diagram and instruction list for programmable logic controller

Also Published As

Publication number Publication date
CN106990750B (en) 2019-12-24

Similar Documents

Publication Publication Date Title
CN102693317B (en) Method and device for data mining process generating
JP4973867B2 (en) PLC control program development device and program
CN106293664A (en) Code generating method and device
CN108804630A (en) A kind of big data intellectual analysis service system of Industry-oriented application
CN105302533A (en) Code synchronizing method and apparatus
CN103903086A (en) Method and system for developing management information system based on service model driving
CN106779162A (en) A kind of business events flow path flexible configuration and automatic optimization method and system
CN111801731B (en) Voice control method, voice control device, and computer-executable nonvolatile storage medium
KR20100071361A (en) Project management device and method for architecture modeling tool of application software on autosar and computer readable recording medium therefor
US10387005B2 (en) Monitoring apparatus in electric power system
WO2005043356A3 (en) Methods and systems for automated data processing
JPWO2020008991A1 (en) Verification automation equipment, verification automation methods, and programs
CN106990750A (en) A kind of ladder diagram online editing system and method
CN108932407B (en) Program safety protection method and device
CN102929853A (en) DCS (Data Communication System) project data generating system and method based on Excel sheet association
CN111475602B (en) Multi-version knowledge graph storage method and device, storage medium and electronic equipment
CN104484156B (en) The edit methods of multilingual formula, editing system and multilingual formula editors
CN111753040A (en) Method, device and system for processing geospatial data
CN112055018A (en) Message analysis method and device
CN113001538B (en) Command analysis method and system
CN105022896A (en) Method and device for APDL modelling based on dynamic numbering
CN110457064B (en) Method and device for generating network cutover script
CN104461780A (en) Data block release method and device
CN105354144A (en) Method and system for automatically testing consistency of business support system information models
KR20210048045A (en) Automatic drawing up system for flight log

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