CN111782199A - Development method of PLC graphical editor based on XML technology - Google Patents

Development method of PLC graphical editor based on XML technology Download PDF

Info

Publication number
CN111782199A
CN111782199A CN201911372611.8A CN201911372611A CN111782199A CN 111782199 A CN111782199 A CN 111782199A CN 201911372611 A CN201911372611 A CN 201911372611A CN 111782199 A CN111782199 A CN 111782199A
Authority
CN
China
Prior art keywords
plc
editor
connection
graphical
module
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
CN201911372611.8A
Other languages
Chinese (zh)
Other versions
CN111782199B (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.)
Jiangsu Enda General Equipment Co ltd
Original Assignee
Jiangsu Enda General Equipment 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 Jiangsu Enda General Equipment Co ltd filed Critical Jiangsu Enda General Equipment Co ltd
Priority to CN201911372611.8A priority Critical patent/CN111782199B/en
Publication of CN111782199A publication Critical patent/CN111782199A/en
Application granted granted Critical
Publication of CN111782199B publication Critical patent/CN111782199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Abstract

The invention discloses a development method of a PLC graphical editor based on XML technology, belonging to the technical field of computer software, which can realize PLC graphical editing based on XML technology, configure the related attributes of functional blocks and functional module connection diagrams by using the extensible characteristics of XML files, configure the corresponding attribute configuration according to different types of the functional blocks, generate the functional module connection diagrams by reading the XML file contents, realize the automatic connection function of the functional blocks, facilitate the operation of users, modify the functional module connection diagrams only by modifying the XML file contents, have simple logical relationship of the functional blocks, greatly reduce the difficulty of the PLC graphical editing, finally send the information of each PLC block which can be analyzed and used to a lower computer for processing, has the mode of direct sending and transfer sending, can adapt to different lower computers, and can realize the cloud backup and real-time downloading and use of the analyzed data, great convenience is provided for PLC graphical editing of technicians.

Description

Development method of PLC graphical editor based on XML technology
Technical Field
The invention relates to the technical field of computer software, in particular to a method for developing a PLC graphical editor based on an XML technology.
Background
The programmable controller is well known and widely used by a great number of engineering technicians, in order to adapt to the use requirements and habits of the great number of engineering technicians, the programmable controller does not adopt a programming language of a microcomputer, but adopts a process-oriented and more intuitive programming language, and in the PLC, a graphical programming language ladder diagram is easy to master, popular and easy to understand and is consistent with an electrical control principle diagram, so the programmable controller becomes the main programming language of the PLC. However, the ladder diagram cannot be recognized by the programmable controller and cannot be directly operated. Therefore, how to improve the development efficiency and directly convert the ladder diagram into the PLC instruction becomes a research hotspot of the embedded PLC.
Extensible markup language, a subset of standard generalized markup language, XML for short. Is a markup language for marking electronic documents to be structured. In electronic computers, a label refers to a symbol of information that can be understood by a computer, and by this label, various information such as articles and the like can be handled between computers. It can be used to mark data, define data types, and is a source language that allows a user to define his or her own markup language. It is well suited for world wide web transport, providing a unified approach to describing and exchanging structured data that is independent of the application or vendor. Is a cross-platform, content-dependent technology in the Internet environment and is also an effective tool today for processing distributed structural information. As early as 1998, the XML1.0 specification was published by W3C, which was used to simplify the transmission of Internet documents.
The extensible markup language is different from databases such as Access, Oracle and SQL Server, etc., and the databases provide more powerful data storage and analysis capabilities, such as: data indexing, sorting, finding, relevance, etc., extensible markup language is simply storing data. In fact, it differs most from other forms of data representation: extensible markup language is extremely simple, an advantage that looks somewhat trivial, but it is this that makes it unusual. The simplicity of XML in reading/writing data in any application makes XML quickly the only common language for data exchange, and while different applications will support other data exchange formats as well, they will support XML soon after, meaning that programs can more easily integrate with information generated under Windows, Mac OS, Linux, and other platforms, and then can easily load XML data into the program and parse it and output the results in XML format.
The current graphical programming method of the PLC basically adopts a ladder diagram, but the programming method needs to know the relevant PLC instruction list, and has the defects of inflexibility and easy error when the ladder diagram is edited. The graphic program constructed by the extensibility of the XML technology is simpler, more convenient and more flexible, and only the logical relation of the program blocks similar to the gate circuit needs to be known.
Disclosure of Invention
1. Technical problem to be solved
Aiming at the problems in the prior art, the invention aims to provide a development method of a PLC graphical editor based on an XML technology, which can realize PLC graphical editing based on the XML technology, configure the relevant attributes of functional blocks and functional module connection diagrams by using the extensible characteristics of an XML file, perform corresponding attribute configuration according to different program block types, generate the functional module connection diagrams by reading the XML file content, realize the automatic connection function of the program blocks, facilitate the operation of a user, modify the functional module connection diagrams only by modifying the XML file content, is simple and flexible, has simple program block logical relationship, greatly reduces the difficulty of the PLC graphical editing, and finally can analyze and send the information of each used PLC program block to a lower computer for processing, has a direct sending and transfer sending mode, can adapt to different lower computers, and the cloud backup and real-time downloading of the analyzed data can be realized, and great convenience is provided for the graphical editing of the PLC of technicians.
2. Technical scheme
In order to solve the above problems, the present invention adopts the following technical solutions.
A PLC graphical editor development method based on XML technology comprises the following steps:
step 1: creating a program block in the drawing board control;
step 2: the functions of dragging, zooming, parameter configuration and automatic line drawing of the program block are realized in the drawing control;
and step 3: building a PLC graphical editor page by using a drawing, a drawing board user control and a tool menu bar;
and 4, step 4: reading and writing the input type attribute, the output type attribute, the connected program block attribute and the connecting line attribute of the functional module diagram by using an XML technology to load and store the functional module diagram of the PLC editing page;
and 5: deleting and zooming functions of the functional block diagram;
step 6: and the analysis data of the PLC functional module diagram is stored through an XML technology and then is sent to a lower computer.
Further, the step 1 comprises the following steps:
step 1.1: defining the attribute of the basic composition element, and packaging and inheriting the attribute definition of the implementation program block in an object-oriented manner;
step 1.2: defining a graphical implementation method of basic composition elements, and packaging and inheriting the graphical design of an implementation program block in an object-oriented manner;
step 1.3: the program block and the input/output port attribute are read by using XML technology to generate the program block.
Further, the parsing data in step S6 includes the following steps:
step 6.1: analyzing the circuit information of the whole function module connection diagram;
step 6.2: analyzing the information of each PLC program block used in the graph;
step 6.3: analyzing the information of connecting lines among the PLC program blocks in the graph;
step 6.4: and sequentially storing the analytic data into the byte array and transmitting the byte array to a lower computer for processing.
Further, the circuit information in step 6.1 includes:
PLCNum: the number of PLC modules in the whole PLC connection diagram;
ValBlk: the length of the occupied numerical value area is processed by the PLC of the whole PLC connection diagram, and the length of the occupied numerical value area of each module is fixed;
in: inputting the number of connections, namely the number of entries with connection information part types of Input and CONST types;
out: the number of Output connections, namely the number of entries with connection information part Type as Output Type;
link: the total number of connections, i.e. the total number of connection information part entries.
Further, the information of the PLC program block in step 6.2 includes:
type: a component type number;
ValBlk: the element occupies the first address number of the value region. (numbering of the value fields starts with 0);
InvFlag: a 4-bit 16-ary value, typically used for inverting the input/output bit signal. In: inputting the number of signals;
out: the number of output connections is generally 1, and when the same signal is connected to a plurality of other modules, the number of the connection information items to be used is larger than 1, and the number of the connection information items to be used indicates that the connection information items are used for data transmission when the operation of the modules is finished;
OutIndex: when the processing is finished, copying the output value to the first connection information serial number (the serial number of the connection area information starts from 0) in a plurality of connection information needing to be called in other numerical areas; if the out value is greater than 1, the associated connection information entries are stored contiguously.
Further, the information of the connection line in step 6.3 includes:
type: the connection types are classified into Input (Input connection), Const (constant Input), Output (Output connection), and Inner (internal connection);
SrcIndex: a source information sequence number;
SrcPos: a source information bit number;
DesIndex: a destination information serial number;
DesPos: the destination information bit number.
Further, the editor includes female editor body and son transfer USB body, female editor body is including installing in inboard treater and inlaying the liquid crystal operation screen in the outside, the lateral wall edge division has and son transfer USB body assorted accomodates the groove in female editor body back, be connected with bluetooth module between female editor body and the son transfer USB body, all install electric putter in the lateral wall about accomodating the groove, it has a pair ofly and electric putter assorted locking groove to excavate on the son transfer USB body lateral wall, and female editor body and son transfer USB body mutually support, and the mode that utilizes wireless bluetooth sends analytic data to the next machine, has improved the convenience that the editor used, can directly even send analytic data with the next machine even through bluetooth module is direct, has multiple selectivity.
Furthermore, the processor is connected with a network module, the network module is connected with the internet, online PLC graphical editing can be achieved by means of the whole network resources, the editing difficulty is reduced, and the network resources can be consulted in real time.
Further, be connected with first wireless transmission module on the mother editor body, first wireless transmission module is connected with the cloud ware, be connected with the second wireless transmission module who is connected with the cloud ware equally on the son transfer USB body, the cloud ware plays analytic data's storage and backup effect on the one hand as high in the clouds platform, avoids piling up in a large number and accidentally losing in the mother editor body, and on the other hand conveniently looks over in real time and downloads the use under the network condition.
Furthermore, a program block creating and defining module, a PLC graphical building module and an XML reading and writing module are integrated on the main editor body, the program block creating and defining module is used for achieving the functions of creating, dragging and zooming the program block, configuring parameters and automatically drawing lines, the PLC graphical building module is used for building a page of the PLC graphical editor and visually displaying the page to a user, and the XML reading and writing module can read and write the input type attribute, the output type attribute, the connected program block attribute and the connecting line attribute of the function module diagram to load and store the function module diagram of the PLC editing page.
3. Advantageous effects
Compared with the prior art, the invention has the advantages that:
the scheme can realize PLC graphical editing based on XML technology, configure the relevant attributes of the functional blocks and the functional module connection diagram by using the extensible characteristics of the XML file, corresponding attribute configuration is carried out according to different program block types, and a function module connection diagram can be generated by reading XML file contents, so that the automatic connection function of the program blocks is realized, the operation of a user is convenient, the function module connection diagram can be modified only by modifying the XML file contents, the method is simple and flexible, the logical relation of the program blocks is simple, the difficulty of PLC graphical editing is greatly reduced, and finally the information of each PLC program block which can be analyzed and used is sent to a lower computer for processing, the sending mode has the modes of direct sending and transfer sending, and can adapt to different lower computers, and the cloud backup and real-time downloading of the analyzed data can be realized, and great convenience is provided for the graphical editing of the PLC of technicians.
Drawings
FIG. 1 is a schematic flow diagram of the present invention;
FIG. 2 is a diagram of a form interface of the PLC graphical editor of the present invention;
FIG. 3 is a system diagram of a PLC graphical editor in accordance with the present invention;
FIG. 4 is a schematic diagram of a PLC graphical editor in accordance with the present invention;
FIG. 5 is a rear view of a PLC graphical editor in accordance with the present invention;
fig. 6 is a block schematic diagram of a PLC graphical editor in accordance with the present invention.
The reference numbers in the figures illustrate:
the intelligent terminal comprises a 1 mother editor body, a 2 son transfer USB body, a 3 Bluetooth module, a 4 network module, a 5 cloud server, a 6 storage groove, a 7 electric push rod, a 8 first wireless transmission module, a 9 second wireless transmission module, a 10 liquid crystal operation screen, a 11 processor, a 12 program block creating and defining module, a 13PLC graphical building module and a 14XML reading and writing module.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention; it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and all other embodiments obtained by those skilled in the art without any inventive work are within the scope of the present invention.
In the description of the present invention, it should be noted that the terms "upper", "lower", "inner", "outer", "top/bottom", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise specifically stated or limited, the terms "mounted," "disposed," "sleeved/connected," "connected," and the like are used in a broad sense, and for example, "connected" may be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a direct connection, an indirect connection through an intermediate medium, and a communication between two elements.
Example 1:
referring to fig. 1-2, a method for developing a PLC graphic editor based on XML technology includes the following steps:
step 1: creating a program block in the drawing board control, and specifically realizing the following steps:
step 1.1: defining the attribute of the basic composition element, and packaging and inheriting the attribute definition of the implementation program block in an object-oriented manner;
step 1.2: defining a graphical implementation method of basic composition elements, and packaging and inheriting the graphical design of an implementation program block in an object-oriented manner;
step 1.3: reading the program block and the input/output port attribute by using an XML technology to generate a program block;
step 2: the functions of dragging, zooming, parameter configuration and automatic line drawing of the program block are realized in the drawing control;
and step 3: building a PLC graphical editor page by using a drawing, a drawing board user control and a tool menu bar;
and 4, step 4: reading and writing the input type attribute, the output type attribute, the connected program block attribute and the connecting line attribute of the functional module diagram by using an XML technology to load and store the functional module diagram of the PLC editing page;
and 5: deleting and zooming functions of the functional block diagram;
step 6: the analytical data of the PLC functional module diagram is stored through an XML technology and then is sent to a lower computer, and the analytical data is realized through the following steps: .
Step 6.1: analyzing the circuit information of the whole functional module connection diagram:
PLCNum: the number of PLC modules in the whole PLC connection diagram;
ValBlk: the length of the occupied numerical value area is processed by the PLC of the whole PLC connection diagram, and the length of the occupied numerical value area of each module is fixed;
in: inputting the number of connections, namely the number of entries with connection information part types of Input and CONST types;
out: the number of Output connections, namely the number of entries with connection information part Type as Output Type;
link: the total number of connections, i.e. the total number of connection information part entries;
step 6.2: information of each PLC block used in the analysis chart:
type: a component type number;
ValBlk: the element occupies the first address number of the value region. (numbering of the value fields starts with 0);
InvFlag: a 4-bit 16-ary value, typically used for inverting the input/output bit signal. In: inputting the number of signals;
out: the number of output connections is generally 1, and when the same signal is connected to a plurality of other modules, the number of the connection information items to be used is larger than 1, and the number of the connection information items to be used indicates that the connection information items are used for data transmission when the operation of the modules is finished;
OutIndex: when the processing is finished, copying the output value to the first connection information serial number (the serial number of the connection area information starts from 0) in a plurality of connection information needing to be called in other numerical areas; if the out value is greater than 1, the associated connection information entry is stored consecutively
Step 6.3: analyzing information of connecting lines among PLC program blocks in the graph:
type: the connection types are classified into Input (Input connection), Const (constant Input), Output (Output connection), and Inner (internal connection);
SrcIndex: a source information sequence number;
SrcPos: a source information bit number;
DesIndex: a destination information serial number;
DesPos: a destination information bit number;
step 6.4: and sequentially storing the analytic data into the byte array and transmitting the byte array to a lower computer for processing.
Referring to fig. 3-6, the editor includes a main editor body 1 and a subsidiary relay USB body 2, the main editor body 1 includes a processor 11 installed inside and a liquid crystal operation screen 10 embedded outside, a receiving slot 6 matching with the subsidiary relay USB body 2 is cut at the edge of the rear side wall of the main editor body 1, a bluetooth module 3 is connected between the main editor body 1 and the subsidiary relay USB body 2, electric push rods 7 are installed in the upper and lower side walls of the receiving slot 6, a pair of locking slots matching with the electric push rods 7 are cut on the side wall of the subsidiary relay USB body 2, so as to improve the safety of the subsidiary relay USB body 2, the main editor body 1 and the subsidiary relay USB body 2 are matched with each other, and transmit analytic data to a lower computer by using a wireless bluetooth mode, so as to improve the convenience of using the editor, even transmit analytic data directly through the bluetooth module 3 and directly connected to the lower computer, has various selectivity, the processor is connected with a network module 4, the network module 4 is connected with the internet, can rely on the whole network resource to realize at online PLC graphical editing, reduce the editing degree of difficulty, can look up network resource in real time, be connected with first wireless transmission module 8 on the mother editor body 1, first wireless transmission module 8 is connected with cloud server 5, be connected with the same second wireless transmission module 9 of being connected with cloud server 5 on the son transfer USB body 2, cloud server 5 only can log on from mother editor body 1 and son transfer USB body 2, guarantee that the security of analytic data avoids being stolen, cloud server 5 plays analytic data's storage and backup effect on the one hand as the high in the clouds platform, avoid losing a large amount of piles and accident in mother editor body 1, on the other hand conveniently looks over in real time and downloads the use under the network condition.
Referring to fig. 6, a program block creating and defining module 12, a PLC graphical building module 13, and an XML reading and writing module 14 are integrated on the parent editor body 1, the program block creating and defining module 12 is used to implement the functions of creating, dragging, zooming, configuring parameters, and automatically drawing lines, the PLC graphical building module 13 is used to build a PLC graphical editor page, and visually display the PLC graphical editor page to a user, and the XML reading and writing module 14 can read and write the input type attribute, the output type attribute, the connected program block attribute, and the connection line attribute of the function module diagram to load and store the function module diagram of the PLC editing page, and is adapted to the development method.
When the editor is used, firstly, the PLC graphical editing is carried out according to the steps, after analytical data of a PLC functional module diagram is stored based on an XML technology, according to the type of a lower computer, if the lower computer has a Bluetooth function, the Bluetooth module 3 on the main editor body 1 is directly used for interconnection to complete data transmission, if the lower computer does not have the Bluetooth function, the sub-relay USB body 2 is taken down through the unlocking electric push rod 7, the sub-relay USB body 2 is inserted into a USB interface on the lower computer, the analytical data is firstly sent to the sub-relay USB body 2 from the main editor body 1 through the Bluetooth module 3, then is transmitted to the lower computer through the USB interface, and the analytical data is automatically uploaded to the cloud server 5 for backup after transmission, can be directly downloaded to the main editor body 1 for use when used next time, or is directly inserted into the lower computer through the sub-relay USB body 2, go up connection cloud server 5 through son transfer USB body 2 and carry out the download of analytic data, can be on other lower computers that possess development function even, can abandon mother's editor body 1 and download the analytic data of current date through son transfer USB body 2 and call, develop terminal equipment's change promptly, the data can be synchronized through son transfer USB body 2 all the time, son transfer USB body 2 has given the very big convenience of technical staff, can break away from other terminal equipment of mother's editor body 1 cooperation and work alone.
The invention can realize PLC graphical editing based on XML technology, configure the relevant attributes of the functional blocks and the functional module connection diagram by using the extensible characteristics of the XML file, corresponding attribute configuration is carried out according to different program block types, and a function module connection diagram can be generated by reading XML file contents, so that the automatic connection function of the program blocks is realized, the operation of a user is convenient, the function module connection diagram can be modified only by modifying the XML file contents, the method is simple and flexible, the logical relation of the program blocks is simple, the difficulty of PLC graphical editing is greatly reduced, and finally the information of each PLC program block which can be analyzed and used is sent to a lower computer for processing, the sending mode has the modes of direct sending and transfer sending, and can adapt to different lower computers, and the cloud backup and real-time downloading of the analyzed data can be realized, and great convenience is provided for the graphical editing of the PLC of technicians.
The foregoing is only a preferred embodiment of the present invention; the scope of the invention is not limited thereto. Any person skilled in the art should be able to cover the technical scope of the present invention by equivalent or modified solutions and modifications within the technical scope of the present invention.

Claims (10)

1. A PLC graphical editor development method based on XML technology is characterized in that: the method comprises the following steps:
step 1: creating a program block in the drawing board control;
step 2: the functions of dragging, zooming, parameter configuration and automatic line drawing of the program block are realized in the drawing control;
and step 3: building a PLC graphical editor page by using a drawing, a drawing board user control and a tool menu bar;
and 4, step 4: reading and writing the input type attribute, the output type attribute, the connected program block attribute and the connecting line attribute of the functional module diagram by using an XML technology to load and store the functional module diagram of the PLC editing page;
and 5: deleting and zooming functions of the functional block diagram;
step 6: and the analysis data of the PLC functional module diagram is stored through an XML technology and then is sent to a lower computer.
2. The method for developing the PLC graphical editor based on the XML technology as claimed in claim 1, wherein: the step 1 comprises the following steps:
step 1.1: defining the attribute of the basic composition element, and packaging and inheriting the attribute definition of the implementation program block in an object-oriented manner;
step 1.2: defining a graphical implementation method of basic composition elements, and packaging and inheriting the graphical design of an implementation program block in an object-oriented manner;
step 1.3: the program block and the input/output port attribute are read by using XML technology to generate the program block.
3. The method for developing the PLC graphical editor based on the XML technology as claimed in claim 1, wherein: the parsing of the data in the step S6 includes the following steps:
step 6.1: analyzing the circuit information of the whole function module connection diagram;
step 6.2: analyzing the information of each PLC program block used in the graph;
step 6.3: analyzing the information of connecting lines among the PLC program blocks in the graph;
step 6.4: and sequentially storing the analytic data into the byte array and transmitting the byte array to a lower computer for processing.
4. The method for developing the PLC graphical editor based on the XML technology as claimed in claim 3, wherein: the circuit information in step 6.1 includes:
PLCNum: the number of PLC modules in the whole PLC connection diagram;
ValBlk: the length of the occupied numerical value area is processed by the PLC of the whole PLC connection diagram, and the length of the occupied numerical value area of each module is fixed;
in: inputting the number of connections, namely the number of entries with connection information part types of Input and CONST types;
out: the number of Output connections, namely the number of entries with connection information part Type as Output Type;
link: the total number of connections, i.e. the total number of connection information part entries.
5. The method for developing the PLC graphical editor based on the XML technology as claimed in claim 3, wherein: the information of the PLC program block in step 6.2 includes:
type: a component type number;
ValBlk: the element occupies the first address number of the value region. (numbering of the value fields starts with 0);
InvFlag: a 4-bit 16-ary value, typically used for inverting the input/output bit signal. In: inputting the number of signals;
out: the number of output connections is generally 1, and when the same signal is connected to a plurality of other modules, the number of the connection information items to be used is larger than 1, and the number of the connection information items to be used indicates that the connection information items are used for data transmission when the operation of the modules is finished;
OutIndex: when the processing is finished, copying the output value to the first connection information serial number (the serial number of the connection area information starts from 0) in a plurality of connection information needing to be called in other numerical areas; if the out value is greater than 1, the associated connection information entries are stored contiguously.
6. The method for developing the PLC graphical editor based on the XML technology as claimed in claim 3, wherein: the information of the connection line in the step 6.3 comprises:
type: the connection types are classified into Input (Input connection), Const (constant Input), Output (Output connection), and Inner (internal connection);
SrcIndex: a source information sequence number;
SrcPos: a source information bit number;
DesIndex: a destination information serial number;
DesPos: the destination information bit number.
7. The method for developing the PLC graphical editor based on the XML technology as claimed in claim 1, wherein: the editor includes female editor body (1) and son transfer USB body (2), female editor body (1) is including installing in inboard treater (11) and inlaying liquid crystal operation screen (10) in the outside, the side wall edge is opened and chiseled to have and is accomodate groove (6) with son transfer USB body (2) assorted in female editor body (1), be connected with bluetooth module (3) between female editor body (1) and son transfer USB body (2), all install electric putter (7) in accomodating groove (6) upper and lower lateral wall, it has a pair of locking groove with electric putter (7) assorted to open on son transfer USB body (2) lateral wall.
8. The method for developing a PLC graphic editor based on XML technology according to claim 7, wherein: the processor is connected with a network module (4), and the network module (4) is connected with the Internet.
9. The method for developing a PLC graphic editor based on XML technology according to claim 7, wherein: the primary editor is characterized in that a first wireless transmission module (8) is connected to the primary editor body (1), the first wireless transmission module (8) is connected with the cloud server (5), and a second wireless transmission module (9) which is also connected with the cloud server (5) is connected to the secondary transfer USB body (2).
10. The method for developing a PLC graphic editor based on XML technology according to claim 7, wherein: the main editor body (1) is integrated with a program block establishing and defining module (12), a PLC graphical establishing module (13) and an XML read-write module (14).
CN201911372611.8A 2019-12-27 2019-12-27 Development method of PLC graphical editor based on XML technology Active CN111782199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911372611.8A CN111782199B (en) 2019-12-27 2019-12-27 Development method of PLC graphical editor based on XML technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911372611.8A CN111782199B (en) 2019-12-27 2019-12-27 Development method of PLC graphical editor based on XML technology

Publications (2)

Publication Number Publication Date
CN111782199A true CN111782199A (en) 2020-10-16
CN111782199B CN111782199B (en) 2024-04-16

Family

ID=72755043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911372611.8A Active CN111782199B (en) 2019-12-27 2019-12-27 Development method of PLC graphical editor based on XML technology

Country Status (1)

Country Link
CN (1) CN111782199B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112255962A (en) * 2020-10-30 2021-01-22 浙江佳乐科仪股份有限公司 PLC programming system based on artificial intelligence
CN113343612A (en) * 2021-05-26 2021-09-03 广州市迪士普音响科技有限公司 Configuration method and configuration device of audio processor
CN113703428A (en) * 2021-09-02 2021-11-26 成都运达科技股份有限公司 Train functional fault diagnosis method and device based on logic ladder diagram
CN114741073A (en) * 2022-04-27 2022-07-12 傲拓科技股份有限公司 PLC configuration system and sequential control graph generation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020133516A1 (en) * 2000-12-22 2002-09-19 International Business Machines Corporation Method and apparatus for end-to-end content publishing system using XML with an object dependency graph
CN103677763A (en) * 2012-08-30 2014-03-26 中国科学院软件研究所 Graphical programming source file storage and analytic method
CN108681444A (en) * 2018-04-12 2018-10-19 华中科技大学 A kind of Soft- PLC configuration development approach based on XML technology
CN110376959A (en) * 2019-07-25 2019-10-25 大连理工大学 A kind of Soft- PLC configuration software generation system based on FPGA platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020133516A1 (en) * 2000-12-22 2002-09-19 International Business Machines Corporation Method and apparatus for end-to-end content publishing system using XML with an object dependency graph
CN103677763A (en) * 2012-08-30 2014-03-26 中国科学院软件研究所 Graphical programming source file storage and analytic method
CN108681444A (en) * 2018-04-12 2018-10-19 华中科技大学 A kind of Soft- PLC configuration development approach based on XML technology
CN110376959A (en) * 2019-07-25 2019-10-25 大连理工大学 A kind of Soft- PLC configuration software generation system based on FPGA platform

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
何军红: "基于XML 的软PLC 开发系统研究", 《工业仪表与自动化装置》 *
刘毅: "基于X M L 的嵌入式 软PLC 通用梯形图开发方案", 《中国科技信息》 *
周作伟: "基于XML 语言的软PLC 控制平台研究", 《信息技术》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112255962A (en) * 2020-10-30 2021-01-22 浙江佳乐科仪股份有限公司 PLC programming system based on artificial intelligence
CN113343612A (en) * 2021-05-26 2021-09-03 广州市迪士普音响科技有限公司 Configuration method and configuration device of audio processor
CN113703428A (en) * 2021-09-02 2021-11-26 成都运达科技股份有限公司 Train functional fault diagnosis method and device based on logic ladder diagram
CN113703428B (en) * 2021-09-02 2022-12-27 成都运达科技股份有限公司 Train functional fault diagnosis method and device based on logic ladder diagram
CN114741073A (en) * 2022-04-27 2022-07-12 傲拓科技股份有限公司 PLC configuration system and sequential control graph generation method
CN114741073B (en) * 2022-04-27 2023-10-17 傲拓科技股份有限公司 PLC configuration system and sequential control graph generation method

Also Published As

Publication number Publication date
CN111782199B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN111782199A (en) Development method of PLC graphical editor based on XML technology
US20220043637A1 (en) Providing communication between a client system and a process-based software application
US9823907B2 (en) Extensible device object model
US20040031015A1 (en) System and method for manipulation of software
US20210034336A1 (en) Executing a process-based software application in a first computing environment and a second computing environment
CN111930635B (en) Swagger-based rapid automatic testing method and system
CN112688865B (en) Design method of OPC UA gateway for graphical online modeling
CN110324169B (en) Interface management method and device
US8006224B2 (en) System and method for unified visualization of two-tiered applications
US20040160464A1 (en) System and method for providing a graphical user interface and alternate mappings of management information base objects
US20030204640A1 (en) Method and device for management of tree data exchange
JP2000148461A (en) Software model and existing source code synchronizing method and device
US20160004512A1 (en) Method of projecting a workspace and system using the same
WO2002008898A2 (en) Architecture for building web applications
EP2161639A2 (en) Device management apparatus, device management method and device management program
CN107704256A (en) The method that Python relies on system library automation installation is realized on a kind of Ubuntu
US6832365B1 (en) System and method for interacting with computer programming languages at semantic level
US20110224954A1 (en) Modelling of systems
EP2874071A1 (en) Method of implementing structured and non-structured data in xml document
CN114513410A (en) Method and system for equipment to rapidly access Internet of things platform
CA2543898C (en) System and method for unified visualization of two-tiered applications
JPH11353307A (en) Information converter
CN112130817A (en) Multi-version interface implementation method, system, device and readable storage medium
JPH1188592A (en) Image transmitter-receiver and storage medium recording processing edit program for image data
CN114518906B (en) Device configuration parameter management system and method based on XML description file

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