CN106990750B - Ladder diagram online editing method - Google Patents

Ladder diagram online editing method Download PDF

Info

Publication number
CN106990750B
CN106990750B CN201710213975.6A CN201710213975A CN106990750B CN 106990750 B CN106990750 B CN 106990750B CN 201710213975 A CN201710213975 A CN 201710213975A CN 106990750 B CN106990750 B CN 106990750B
Authority
CN
China
Prior art keywords
ladder diagram
module
matrix
editing
online
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
Application number
CN201710213975.6A
Other languages
Chinese (zh)
Other versions
CN106990750A (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 invention provides a ladder diagram online editing system and a method thereof, wherein the ladder diagram online editing system comprises: a code implementation module and an interface operation module; the interface operation module comprises: the ladder diagram matrix editing module inserts a new ladder diagram into a specific position of the existing ladder diagram; the ladder diagram matrix management module is used for obtaining a current ladder diagram matrix through re-editing by loading a CSV file or a ladder diagram matrix editing module, and globally enabling after storage; the file management module loads, saves and refreshes the CSV file; the code implementation module supports the ladder diagram matrix editing module and outputs a result according to input calculation. The ladder diagram online editing system and method of the invention allow users to make some simple self-defined changes on the basis of a certain model mature scheme, and corresponding logics are given through the invention, thereby saving the time and cost of secondary development.

Description

Ladder diagram online editing method
Technical Field
The invention relates to a system for ladder diagram online editing, and also relates to a method for ladder diagram online editing, belonging to the field of industrial control.
Background
When the PLC is used for industrial control, generally speaking, a program needs to be compiled by development software and then recognized by the PLC for running, the development software is independent from a machine touch screen, and a section of ladder diagram program cannot be written on line and associated with existing input and output. If the field machine needs to make some simple hardware or logic changes, the field machine still needs to be modified again through development software, and the program is burnt into the PLC again, and the field operator does not always have the capability, so that the field operator needs to go to the field to modify the program and transmit the program to the PLC, and the process generates high cost.
Disclosure of Invention
The present invention provides a system and a method for ladder diagram online editing to solve the above problems.
The invention adopts the following technical scheme:
an on-line ladder diagram editing system, comprising: a code implementation module and an interface operation module; the interface operation module comprises: the ladder diagram matrix editing module inserts a new ladder diagram into a specific position of the existing ladder diagram; the ladder diagram matrix management module is used for obtaining a current ladder diagram matrix through re-editing by loading a CSV file or a ladder diagram matrix editing module, and globally enabling after storage; the file management module loads, saves and refreshes the CSV file; the code implementation module supports the ladder diagram matrix editing module and outputs a result according to input calculation.
The invention also provides an on-line ladder diagram editing method which is characterized by comprising the following steps:
the method comprises the following steps: inputting parameters to a ladder diagram matrix editing module;
step two: the code implementation module collects interface graphic information;
step three: starting to calculate;
step four: judging whether the network is enabled, if so, entering a fifth step; if not, entering the step fourteen, and finishing the calculation;
step five: judging whether the current input is null or not;
step six: calculate the result of the node before the condition (true/false, consider parallel);
step seven: the result of the calculated node (true/false);
step eight: judging whether the input is the last input in the row; if not, entering the ninth step; if yes, go to step ten.
Step nine: skipping to the next input, and then entering the step five;
step ten: calculating an output result according to the node state before output;
step eleven: judging whether the line is the last line; if yes, go to step thirteen, if no, go to step twelve.
Step twelve: jump to the first input of the next row and then proceed to step five.
Step thirteen: and enabling/disabling the target object associated with the condition according to the settlement result.
Fourteen steps: and the ladder diagram matrix management module loads the ladder diagram matrix editing module to re-edit to obtain the current ladder diagram matrix, and the current ladder diagram matrix is globally enabled after being stored.
Further, the ladder diagram online editing method of the invention can also have the following characteristics: the method also comprises the step of setting the name of the current ladder diagram matrix by using the ladder diagram matrix management module.
Further, the ladder diagram online editing method of the invention can also have the following characteristics: the step of switching and displaying different LD matrixes by using the ladder diagram matrix management module is also included.
Further, the ladder diagram online editing method of the invention can also have the following characteristics: the method also comprises a step of saving/deleting the current LD matrix by using the ladder diagram matrix management module.
Further, the ladder diagram online editing method of the invention can also have the following characteristics: the method also comprises the step of inserting input and output nodes by using a ladder diagram matrix editing module.
Further, the ladder diagram online editing method of the invention can also have the following characteristics: the method also comprises the step of selecting the node type and the condition by using a ladder diagram matrix editing module.
Further, the ladder diagram online editing method of the invention can also have the following characteristics: the method also comprises the step of using the ladder diagram matrix editing module to cancel the operation to the last saved state.
Further, the ladder diagram online editing method of the invention can also have the following characteristics: the method also comprises a step of judging whether the LD matrix is stored before the global enabling, and if the judgment result is 'yes', the global enabling is allowed.
Advantageous effects of the invention
One or more sections of ladder diagram programs are programmed on a machine touch screen through an interface of ladder diagram programming in approximate development software, and the ladder diagram programs can directly run in a PLC without compiling and dynamically relate to the existing input and output of the machine. On the basis of a certain model mature scheme, a user is allowed to carry out some simple self-defined changes, corresponding logics are given through the invention, and the time and the cost of secondary development are saved. Due to the simple and intuitive operation interface of the ladder diagram, the field operator who does not need special training can add the desired function according to the help.
Drawings
FIG. 1 is a schematic diagram of a ladder diagram online editing system;
FIG. 2 is a flow diagram of a code implementation module.
Detailed Description
The following describes embodiments of the present invention with reference to the drawings.
As shown in fig. 1, the ladder online editing system includes: the code realizes module and interface operation module, and interface operation module includes: the system comprises an LD matrix management module, a file management module and an LD matrix editing module. The LD matrix is an abbreviation of the ladder matrix.
As shown in fig. 2, the work flow of the code implementation module is as follows:
step 1: collecting interface graphic information;
step 2: starting to calculate;
and step 3: judging whether the network is enabled, if so, entering a step 4; if not, entering step 13 and finishing the calculation; the network refers to a pseudo-compiled logic network of a code implementation module, and the network is enabled to carry out subsequent programming operation;
and 4, step 4: judging whether the current input is null or not;
and 5: calculate the result of the node before the condition (true/false, consider parallel);
step 6: the result of the calculated node (true/false);
and 7: judging whether the input is the last input in the row; if not, entering step 8; if "yes," go to step 9.
And 8: skipping to the next input, and then entering the step 4;
and step 9: calculating an output result according to the node state before output;
step 10: judging whether the line is the last line; if yes, the process proceeds to step 12, and if no, the process proceeds to step 11.
Step 11: jump to the first input of the next line and then proceed to step 4.
Step 12: and enabling/disabling the target object associated with the condition according to the settlement result.
Step 13: and finishing the calculation.
And after the code implementation module works, finishing the editing work of a new section of ladder diagram to generate a corresponding CSV file.
An LD matrix management module: the method is used for setting the name of the current LD matrix, switching and displaying different LD matrices, saving/deleting the current LD matrix, deleting all LD matrices and enabling/disabling the current LD matrix. When the LD matrix is deleted, a dialog box prompts whether to determine to delete the corresponding LD matrix or not so as to prevent data loss caused by misoperation.
A file management module: the method is used for realizing the functions of loading/saving/refreshing the CSV file, setting the CSV file name and the like. The refreshing function can acquire all CSV files in the directory, and the corresponding files can be conveniently selected to be loaded. The current state is indicated by a dialog box when the CSV file is loaded/saved. The file name is checked during loading/saving, and if the length of the file name exceeds 18 characters or contains illegal characters or the file to be loaded does not exist, the file cannot be saved.
An LD matrix editing module: and editing operations such as insertion and deletion of the LD matrix are realized. Input and output nodes may be inserted, and node types and conditions, etc. may be selected. The abbreviation "LD" refers to ladder diagram.
The LD matrix editing module provides 7 input conditions: straight line (Link), Normally Open (normal Open), Normally Closed (normal Closed), delayed Open (On Delay), delayed close (Off Delay), rising Edge trigger (positive Edge), and falling Edge trigger (Negative Edge). Wherein the rising edge and the falling edge need to be matched with a normally open/normally closed node for use.
The undo function may undo the operation to the last saved state. And in consideration of safety, the LD matrix which is not stored forbids global enabling, and simultaneously forbids editing of the LD matrix after the global enabling, and the corresponding operations all have prompt information.
An extensible input output matrix;
1) the number of scalable networks;
2) the multi-input multi-output function can be realized;
3) each LD matrix can be configured independently or not, and simultaneously, whether all LD groups are enabled or not can be controlled;
4) the input/output can respectively select DI/DO and intermediate variable, and program variable;
5) predefining a certain number of DI/DO channels, wherein the number of the channels can be expanded;
6) predefining a number of intermediate variables that can be used in input/output conditions;
7) the method comprises 4 output conditions: direct output (Direct), Inverted output (Inverted), Set (Set), Reset (Reset); undo and redo operations are supported.
Use examples are:
and the file management module obtains the current LD matrix by loading the CSV file or the LD matrix editing module in the operation interface and re-editing the current LD matrix, and globally enables the current LD matrix after storage. And then the LD matrix editing module performs corresponding operation on the DI in an operation interface and monitors a corresponding DO state. When the DI is operated, the code implementation module runs in the background, and simultaneously monitors the running condition of the whole LD network in the main interface.

Claims (8)

1. A ladder diagram online editing method is characterized in that:
the online ladder diagram editing method is operated on an online ladder diagram editing system, and the online ladder diagram editing system comprises: a code implementation module and an interface operation module; the interface operation module comprises: the ladder diagram matrix editing module inserts a new ladder diagram into a specific position of the existing ladder diagram; the ladder diagram matrix management module is used for obtaining a current ladder diagram matrix through re-editing by loading a CSV file or a ladder diagram matrix editing module, and globally enabling after storage; the file management module loads, saves and refreshes the CSV file; the code implementation module supports the ladder diagram matrix editing module, calculates and outputs a result according to input,
the ladder diagram online editing method comprises the following steps:
the method comprises the following steps: inputting parameters to a ladder diagram matrix editing module;
step two: the code implementation module collects interface graphic information;
step three: starting to calculate;
step four: judging whether the network is enabled, if so, entering a fifth step; if not, entering the step fourteen, and finishing the calculation;
step five: judging whether the current input is null or not;
step six: calculating the result of the node before the condition: true/false, consider parallel;
step seven: the result of the calculated node is true/false;
step eight: judging whether the input is the last input in the row; if not, entering the ninth step; if yes, entering the step ten;
step nine: skipping to the next input, and then entering the step five;
step ten: calculating an output result according to the node state before output;
step eleven: judging whether the line is the last line; if yes, entering a step thirteen, and if not, entering a step twelve;
step twelve: skipping to the first input of the next line, and then entering the step five;
step thirteen: enabling/disabling the target object associated with the output condition according to the settlement result;
fourteen steps: and the ladder diagram matrix management module loads the ladder diagram matrix editing module to re-edit to obtain the current ladder diagram matrix, and the current ladder diagram matrix is globally enabled after being stored.
2. The ladder diagram online editing method according to claim 1, characterized in that:
the method also comprises the step of setting the name of the current ladder diagram matrix by using the ladder diagram matrix management module.
3. The ladder diagram online editing method according to claim 1, characterized in that:
the step of switching and displaying different LD matrixes by using the ladder diagram matrix management module is also included.
4. The ladder diagram online editing method according to claim 1, characterized in that:
the method also comprises a step of saving/deleting the current LD matrix by using the ladder diagram matrix management module.
5. The ladder diagram online editing method according to claim 1, characterized in that:
the method also comprises the step of inserting input and output nodes by using a ladder diagram matrix editing module.
6. The ladder diagram online editing method according to claim 1, characterized in that:
the method also comprises the step of selecting the node type and the condition by using a ladder diagram matrix editing module.
7. The ladder diagram online editing method according to claim 1, characterized in that:
the method also comprises the step of using the ladder diagram matrix editing module to cancel the operation to the last saved state.
8. The ladder diagram online editing method according to claim 1, characterized in that:
the method also comprises a step of judging whether the LD matrix is stored before the global enabling, and if the judgment result is 'yes', the global enabling is allowed.
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 CN106990750A (en) 2017-07-28
CN106990750B true 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)

Families Citing this family (1)

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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566483A (en) * 2010-12-21 2012-07-11 鸿富锦精密工业(深圳)有限公司 Programmable logic control system

Family Cites Families (9)

* 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
CN102308263B (en) * 2009-02-04 2014-05-07 三菱电机株式会社 Ladder program edition device
CN102640112B (en) * 2009-12-28 2015-05-13 三菱电机株式会社 Program creation support device
JP5498446B2 (en) * 2011-07-04 2014-05-21 株式会社日立製作所 Ladder program creation device and ladder program creation method
JP5657124B2 (en) * 2011-09-15 2015-01-21 三菱電機株式会社 Ladder program creation device
CN102508654B (en) * 2011-10-11 2014-07-02 江苏科技大学 Method for designing ladder diagram editing software of embedded PLC (Programmable Logic Controller)
JP5785501B2 (en) * 2012-01-12 2015-09-30 横河電機株式会社 Ladder program creation device
JP5875555B2 (en) * 2013-07-29 2016-03-02 株式会社デジタル Image creation system
JP5762601B1 (en) * 2014-06-17 2015-08-12 三菱電機株式会社 Program editing apparatus, method, and program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566483A (en) * 2010-12-21 2012-07-11 鸿富锦精密工业(深圳)有限公司 Programmable logic control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于EP9315的嵌入式软PLC开发系统的研究与实现;石涛;《中国优秀硕士学位论文全文数据库 信息科技辑》;20081015(第10期);I137-29第40-55、66-69页 *

Also Published As

Publication number Publication date
CN106990750A (en) 2017-07-28

Similar Documents

Publication Publication Date Title
CN110493025B (en) Fault root cause diagnosis method and device based on multilayer digraphs
CN109118353B (en) Data processing method and device of wind control model
CN106293664A (en) Code generating method and device
CN108897676B (en) Flight guidance control software reliability analysis system and method based on formalization rules
CN103646104A (en) Hard real-time fault diagnosis method and system
CN103049163A (en) Method and device for controlling intelligent displaying of user interfaces
CN1965272A (en) System for operating an installation by editing graphic objects
CN104408118B (en) The creation method and device of database
CN102735485A (en) Excavator and method and system for determining equipment fault
CN108521123B (en) Visual multi-contact-point power distribution network fault section association method
US11409928B2 (en) Configurable digital twin
CN110704044A (en) Visual programming system
CN106990750B (en) Ladder diagram online editing method
CN103605814A (en) Information processing method and information processing system in substation transformation process
KR101848993B1 (en) Dispatcher Training Simulator
CN106908812B (en) Usability determining method for navigation monitoring station
CN112699039B (en) Automatic test data generation method and system based on classification tree
CN110427370B (en) Expert knowledge base and design method of platform thereof
CN114594943A (en) Data modeling method, device, equipment and storage medium
CN103499931A (en) Controller design method and device
CN110162880B (en) Optical cable laying method, device, equipment and medium
CN110738384B (en) Event sequence checking method and system
CN106736071A (en) Welding system and welding system control method
CN100421394C (en) Automatic testing device and method for user interface
CN105354144A (en) Method and system for automatically testing consistency of business support system information models

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