CN117434883A - Visual management method and device for PLC program version - Google Patents

Visual management method and device for PLC program version Download PDF

Info

Publication number
CN117434883A
CN117434883A CN202311506242.3A CN202311506242A CN117434883A CN 117434883 A CN117434883 A CN 117434883A CN 202311506242 A CN202311506242 A CN 202311506242A CN 117434883 A CN117434883 A CN 117434883A
Authority
CN
China
Prior art keywords
version
library
image
information
main
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311506242.3A
Other languages
Chinese (zh)
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.)
China Energy Engineering Group Tianjin Electric Power Design Institute Co ltd
China Power Engineering Consultant Group Central Southern China Electric Power Design Institute Corp
China Power Engineering Consulting Group Corp
Original Assignee
China Energy Engineering Group Tianjin Electric Power Design Institute Co ltd
China Power Engineering Consultant Group Central Southern China Electric Power Design Institute Corp
China Power Engineering Consulting Group Corp
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 China Energy Engineering Group Tianjin Electric Power Design Institute Co ltd, China Power Engineering Consultant Group Central Southern China Electric Power Design Institute Corp, China Power Engineering Consulting Group Corp filed Critical China Energy Engineering Group Tianjin Electric Power Design Institute Co ltd
Priority to CN202311506242.3A priority Critical patent/CN117434883A/en
Publication of CN117434883A publication Critical patent/CN117434883A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/054Input/output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/11Plc I-O input output
    • G05B2219/1103Special, intelligent I-O processor, also plc can only access via processor

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a visual management method and a visual management device for a PLC program version, and relates to the technical field of industrial automation control, wherein the method comprises the following steps: acquiring a main version library and a sub version library with version management software; the version management software is obtained by expanding a plurality of image analysis libraries in a distributed version control management system; the version-division library is obtained by cloning the main version library; initializing the main version library and the sub version library by using the version management software to obtain version information of the main version library and version information of the sub version library; updating the main version library based on the version information of the sub version library to obtain a main version library with an update record; wherein the updates include updates to the graphics program and updates to the text file. According to the scheme, visual management control of the PLC program version can be realized.

Description

Visual management method and device for PLC program version
Technical Field
The invention relates to the technical field of industrial automation control, in particular to a visual management method and device for a PLC program version.
Background
In the industrial automation industry, some development languages of a PLC (programmable logic controller) are based on graphical development, a PLC program already encapsulates some program functional blocks, a user only pulls out corresponding functional blocks during development, and then programming can be completed by connecting some input and output and simple logic programming to the functional blocks, so that the difficulty in developing the PLC program is greatly reduced.
In the related art, the conventional version control tool cannot identify program function blocks belonging to a special graphic in a PLC program and cannot detect the accuracy of text files uploaded from a local place.
Based on this, a method and a device for visual management of PLC program version are needed to solve the above technical problems.
Disclosure of Invention
In order to realize visual management control of a PLC program version, the embodiment of the invention provides a visual management method and device of the PLC program version.
In a first aspect, an embodiment of the present invention provides a method for visually managing a PLC program version, including:
acquiring a main version library and a sub version library with version management software; the version management software is obtained by expanding a plurality of image analysis libraries in a distributed version control management system; the version-division library is obtained by cloning the main version library;
initializing the main version library and the sub version library by using the version management software to obtain version information of the main version library and version information of the sub version library;
updating the main version library based on the version information of the sub version library to obtain a main version library with an update record; wherein the updates include updates to the graphics program and updates to the text file.
Preferably, the expanding a plurality of image analysis libraries in the distributed version control management system to obtain the version management software includes:
acquiring dll files of each image analysis library;
and installing the dll file into the distributed version control management system to obtain the version management software.
Preferably, the updating of the graphics program includes:
comparing the current version of the main version library with the updated version of the sub version library by using the version management software to obtain file information of a new pattern program of the sub version library; wherein the file information includes an updated position, operation information and a graphic shape of the graphic program;
restoring the file information by using the version management software to obtain a visual graph with operation information; wherein the operation information comprises new addition, editing and deletion;
uploading the updated version of the versioned library and the visualized graph to the master version library to obtain the updated version with the visualized graph, and generating the version number with the updated version of the visualized graph.
Preferably, the updating the text file includes:
acquiring a first character string used for representing the updated text file of the versioning library and a second character string used for representing the updated text file of the master version library;
performing format conversion on the first character string and the second character string respectively to obtain first image information and second image information;
and detecting the updated text file of the version library and the updated text file of the main version library based on the first image information and the second image information.
Preferably, the first character string and the second character string each include: text type, text size, creation time, modification time;
the first image information and the second image information each include: image shape, image pixels, image resolution, and image saturation;
the image shape is used to characterize the text type, the image pixels are used to characterize the text size, the image resolution is used to characterize the creation time, and the image saturation is used to characterize the modification time.
Preferably, the detecting the updated text file of the versioning library and the updated text file of the master version library based on the first image information and the second image information includes:
respectively converting the first image information and the second image information to obtain a first image and a second image;
and detecting the updated text file of the version library and the updated text file of the main version library based on the first image and the second image.
Preferably, the method detects the updated text file of the versioning library and the updated text file of the master version library based on the first image and the second image
Displaying the first image and the second image by using the version management software, and judging whether the first image and the second image have differences or not;
if not, reserving an update text file of the main version library, and generating a version number corresponding to the update content;
if yes, the version management software is utilized to re-upload the updated text file of the version library, and the first character string and the second character string are further checked.
In a second aspect, an embodiment of the present invention further provides a device for visually managing a PLC program version, including:
the acquisition module is used for acquiring a main version library and a sub version library with version management software; the version management software is obtained by expanding a plurality of image analysis libraries in a distributed version control management system; the version-division library is obtained by cloning the main version library;
the processing module is used for initializing the main version library and the sub version library by using the version management software to obtain version information of the main version library and version information of the sub version library;
the updating module is used for updating the main version library based on the version information of the version library to obtain a main version library with an updating record; wherein the updates include updates to the graphics program and updates to the text file.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the method described in any embodiment of the present specification is implemented.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform a method according to any of the embodiments of the present specification.
The embodiment of the invention provides a visual management method and a visual management device for a PLC program version, which expands a graphic programming class library of a world mainstream manufacturer on the basis of a git version, and after a configuration file of a corresponding graphic programming class library is read by a version-dividing library, the corresponding library is automatically called to analyze the file, and a record of corresponding operation is generated in the main version library; when the main version library detects the update of the text file, the text files in the two version libraries are converted into displayable images, so that whether the synchronized text files in the main version library are tampered or not is visually checked, and a new version with an update operation record is generated in the main version library after the fact that the text files are not tampered is determined. By the method, programs of different versions can be checked in a visual mode, programs of different versions can be quickly switched, the difference between the currently selected version and the program of the previous version can be checked, and visual version control of the version of the PLC program is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for visual management of a PLC program version according to an embodiment of the present invention;
FIG. 2 is a hardware architecture diagram of an electronic device according to an embodiment of the present invention;
FIG. 3 is a block diagram of a visual management device for a PLC program version according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a PLC version recording principle according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of 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, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments, and all other embodiments obtained by those skilled in the art without making any inventive effort based on the embodiments of the present invention are within the scope of protection of the present invention.
As described above, although version management software developed based on the conventional version management method can conveniently realize version management of the text program, but cannot realize good version control of the graphical program, the embodiment of the invention newly increases the version control of the graphical program in the industrial PLC on the basis of the conventional version management, can realize the version management of the text program in a visual manner and also is compatible with the version management of the graphical program, can realize program distinction among different versions of visual management of a user, and is convenient and rapid to distinguish modified contents of different version programs or view modified contents of other people. Thereby improving program development and modification efficiency.
Specific implementations of the above concepts are described below.
Referring to fig. 1, an embodiment of the present invention provides a method for visually managing a PLC program version, including:
step 100, a main version library and a sub version library with version management software are obtained;
102, initializing the main version library and the sub version library by using the version management software to obtain version information of the main version library and version information of the sub version library;
and 104, updating the main version library based on the version information of the version library to obtain a main version library with an update record.
In the embodiment of the invention, the graphic programming class library of the world mainstream manufacturer is expanded on the basis of the versions of the git, and after the configuration files of the corresponding graphic programming class library are read by the version-dividing library, the corresponding library is automatically called to analyze the files, and records of corresponding operations are generated in the main version library; when the main version library detects the update of the text file, the text files in the two version libraries are converted into displayable images, so that whether the synchronized text files in the main version library are tampered or not is visually checked, and a new version with an update operation record is generated in the main version library after the fact that the text files are not tampered is determined. By the method, programs of different versions can be checked in a visual mode, programs of different versions can be quickly switched, the difference between the currently selected version and the program of the previous version can be checked, and visual version control of the version of the PLC program is realized.
The manner in which the individual steps shown in fig. 1 are performed is described below.
First, for step 100, a master version library and a partition version library with version management software are obtained.
In the embodiment of the invention, a git distributed version control management system is often used for realizing the management and control of the program version of the industrial PLC, and the system is provided with a main version library positioned at a central node and a sub version library positioned at each local node and obtained by cloning the main version library; when the operation records are actively uploaded by the version library, the master version library generates a version number for each received record, so that the subsequent historical version tracing and code modification evolution process checking are facilitated.
Further, the existing graphic program often has xml configuration files and analysis library dll files corresponding to the configuration files one by one, and when the xml configuration files of the graphic program are detected, the corresponding analysis library dll is automatically called to analyze the xml files, so that visual display of the graphic program is realized.
Furthermore, the master version library and the sub version library with version management software can be obtained by acquiring the dll files of each parsing library and installing the dll files into the distributed version control management system.
Then, for step 102, the version management software is utilized to initialize the master version library and the sub version library to obtain the version information of the master version library and the version information of the sub version library.
In the embodiment of the invention, after the main version library and the sub version library are acquired, the version management software initializes the main version library and the sub version library, records the version information of the two version libraries by traversing each file of the version library, defines that the main version library and the sub version library are initial versions at the moment, and detects and records the operation of a user in the version information of the sub version library in real time so as to update the main version library according to the version information of the sub version library in the next step.
It should be noted that, because the integrated development environment of the PLC is developed based on the disk file mode, that is, one or more files are created and modified under the corresponding project directory each time a program block or a project is created and modified. Therefore, if the user needs to use the version management software, after the project is newly built by using the PLC to develop the IDE, the version management system needs to be initialized under the project catalog, and the version management system needs to record the state as the initial state of the project. Since development languages such as ladder diagram programming LD, sequential function diagram programming SFC, function block diagram programming FBD and the like developed by each PLC have slight differences, a user can designate a kind of development language at the time of initialization in order to accurately distinguish between versions.
And aiming at step 104, updating the main version library based on the version information of the version library to obtain the main version library with the updated record.
Since the version management of the industrial PLC includes operation management of the graphic program and operation management of the text file, the update of the graphic program and the update of the text file are also classified when the operation record in the versioning library is updated into the master version library.
In the embodiment of the invention, when the graphic program is updated, the method comprises the following operations: comparing the current version of the main version library with the updated version of the sub version library by using version management software to obtain file information of a new pattern program of the sub version library; the file information comprises an updating position, operation information and a graph shape of the graph program; restoring the file information by using version management software to obtain a visual graph with operation information; wherein, the operation information comprises new addition, editing and deletion; uploading the updated version of the partitioned version library and the visualized graph to a main version library to obtain the updated version with the visualized graph, and generating a version number with the updated version of the visualized graph.
Specifically, since the version management software has defined the initial versions of the two version libraries during the initialization process, when detecting that a new operation is performed on the version-divided library (for example, modifying a graphic program or adding a graphic program, etc.), the version-divided library and the master version library at that time are compared, if the operation record is found to be absent in the version of the master version library, the version management software automatically records the file information of the new graphic program, including the update position, operation information, graphic shape, etc., and then when the updated version of the version-divided library is uploaded to the master version library, the version management software generates a new version having the operation at that time, and then repeats the above operations until all the operations of the version-divided library are recorded by the master version library and the new version is generated.
As shown in fig. 4, the principle of the PLC graphic program version record provided by the embodiment of the present invention is that the following is a version change process caused by a specific program change:
a) The user initializes the program version at time 2023-07-2312:00:09 with a program version number of V1.
b) The user inserts ladder diagram A1 at time 2023-07-2312:01:09, and then manually submits the version program with the program version number updated to V2.
c) The user modifies ladder diagram A1 at time 2023-07-2312:03:42, binding variable Vari1 to the input of ladder diagram A1 and variable Vari2 to the output of ladder diagram A2. The user then manually submitted the version program, with the program version number updated to V3.
d) The user finds the variable association error of ladder A1 at time 2023-07-2312:05:12, modifies ladder A1, binds variable Vari3 to the input of ladder A1. The user then manually submitted the version program, with the program version number updated to V4.
e) The user inserts ladder diagram A2 at time 2023-07-2312:07:02, and then manually submits the version program with the program version number updated to V5.
f) The user inserts ladder diagram A3 at time 2023-07-2312:07:23, and then manually submits the version program with the program version number updated to V6.
Further, after the version management software obtains the file information of the new graphics program, the version management software calls the installed analysis file to analyze the file information, so as to obtain a visual graph capable of representing the operation information of the graphics program, wherein the information comprises new addition, editing and deletion. For example, a new graphic program is represented by a green box, an edited graphic program is represented by a purple box, and a deleted graphic program is represented by a red box.
In the embodiment of the invention, when the text file is updated, the method comprises the following operations: acquiring a first character string used for representing the updated text file of the version library and a second character string used for representing the updated text file of the main version library; respectively carrying out format conversion on the first character string and the second character string to obtain first image information and second image information; based on the first image information and the second image information, an update text file of the versioning library and an update text file of the master version library are detected.
It is worth noting that the text file is not detected by the corresponding parsing library like a graphic program, the file defaults to be a correct and safe file when the text file is uploaded, but if the text file is tampered in the process of uploading from the versioning library to the main versioning library, the main versioning library is difficult to detect, so that the text file recorded in the versioning library and the text file synchronized in the main versioning library are required to be compared and detected by using the version management software, so that the security of the newly added text file in the main versioning library and the consistency of the newly added text file with the versioning library are ensured.
Specifically, the first character string and the second character string each include: attribute information of text files such as text type, text size, creation time, modification time; the first image information and the second image information obtained through conversion comprise image shapes, image pixels, image resolution and image saturation; the image shape is used to characterize the text type, the image pixels are used to characterize the text size, the image resolution is used to characterize the creation time, and the image saturation is used to characterize the modification time.
Generally, since the text type is a necessary factor for identifying and opening the text file, the text type of the text file is represented by the most obvious image information, such as when the file type is txt or doc, the converted image shape is triangle, and when the text type is htm, the converted image shape is square, so that once the user finds that the image shapes displayed in the two version libraries are different, it can be known that the text file synchronized by the main version library is different from the text file of the sub version library, i.e. the type of the text file is tampered; further, the size of the text file is represented by the image pixels, for example, the smaller the size of the text file is, the smaller the pixel value of the corresponding converted image is; the creation time of the text file is represented by the image resolution, the modification time of the text file is represented by the image saturation, for example, the earlier the creation time and the modification time of the text file are, the lower the image resolution and the image saturation obtained by corresponding conversion are, and the numerical values of the image pixels, the image resolution and the image saturation are not particularly limited, so long as the change along with the text size and the time can be represented.
In the embodiment of the invention, after corresponding image information is obtained, the first image information and the second image information are respectively converted to obtain a first image and a second image; based on the first image and the second image, an update text file of the versioning library and an update text file of the master version library are detected.
It can be understood that, as described above, in order to make the user more intuitively see the difference between the text file of the main version library and the text file of the sub version library, the embodiment of the present invention converts the image information into the corresponding image and displays the image on the screen, thereby completing the detection work of the text files of the two version libraries.
In the embodiment of the invention, the detection of the update text file of the version library and the update text file of the main version library comprises the following steps: displaying the first image and the second image by using version management software, and judging whether the first image and the second image have differences or not; if not, retaining an update text file of the main version library and generating a version number corresponding to the update content; if yes, uploading the updated text file of the version library again by using the version management software, and further checking the first character string and the second character string.
In the embodiment, a user can intuitively feel whether a difference exists between two text files by comparing the first image with the second image, so as to assist the user in detecting the text files, when the difference does not exist between the first image and the second image after comparison, the updated text files in the main version library are considered to be not tampered, at the moment, version management software can keep the updated text files in the main version library at the time, and a version number corresponding to the operation is generated, so that the follow-up of a history version is facilitated; when the difference between the first image and the second image is found after comparison, the updated text file of the main version library is considered to be tampered, the updated text file is removed from the main version library, the updated text file is uploaded again from the sub-version library, and the operation is repeatedly detected until no difference exists between the text file of the main version library and the text file of the sub-version library.
In summary, the version management software is utilized to analyze the updated graphic program of the version library to generate a visual graphic with operation information, and the visual graphic is combined with the main version library, so that the main version library can directly observe the updated record of the historical version of the graphic program; the text file is processed and converted by the version manager to obtain the corresponding image, so that the security and the correctness of the text file can be effectively detected when the text file is updated by the main version library, the text file with the error recorded by the main version library is avoided, and after the updating operation is finished, if a user wants to check version change, the version management software is only needed to be clicked, and the software can automatically restore the recorded version information into a graph for displaying.
As shown in fig. 2 and 3, the embodiment of the invention provides a visual management device for a PLC program version. The apparatus embodiments may be implemented by software, or may be implemented by hardware or a combination of hardware and software. In terms of hardware, as shown in fig. 2, a hardware architecture diagram of an electronic device where a PLC program version of the present invention is located is shown in fig. 2, where the electronic device where the embodiment is located may include other hardware, such as a forwarding chip responsible for processing a message, in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 2. Taking a software implementation as an example, as shown in fig. 3, the device in a logic sense is formed by reading a corresponding computer program in a nonvolatile memory into a memory by a CPU of an electronic device where the device is located and running the computer program. The visual management device of a PLC program version provided in this embodiment includes:
an acquisition module 300 for acquiring a master version library and a sub version library having version management software; the version management software is obtained by expanding a plurality of image analysis libraries in a distributed version control management system; the version library is obtained by cloning a main version library;
the processing module 302 is configured to perform initialization processing on the master version library and the sub version library by using version management software, so as to obtain version information of the master version library and version information of the sub version library;
the updating module 304 is configured to update the master version library based on version information of the version library to obtain a master version library with an update record; wherein the updates include updates to the graphics program and updates to the text file.
In the embodiment of the present invention, the obtaining module 300 may be used to perform the step 100 in the above method embodiment, the processing module 302 may be used to perform the step 102 in the above method embodiment, and the updating module 304 may be used to perform the step 104 in the above method embodiment.
In the embodiment of the invention, a plurality of image analysis libraries are expanded in a distributed version control management system to obtain the version management software, which comprises the following steps:
acquiring dll files of each image analysis library; and installing the dll file into a distributed version control management system to obtain version management software.
In the embodiment of the present invention, when updating the graphics program, the updating module 304 is further configured to perform the following operations:
comparing the current version of the main version library with the updated version of the sub version library by using version management software to obtain file information of a new pattern program of the sub version library; the file information comprises an updating position, operation information and a graph shape of the graph program;
restoring the file information by using version management software to obtain a visual graph with operation information; wherein, the operation information comprises new addition, editing and deletion;
uploading the updated version of the partitioned version library and the visualized graph to a main version library to obtain the updated version with the visualized graph, and generating a version number with the updated version of the visualized graph.
In the embodiment of the present invention, when updating the text file, the update module 304 is further configured to perform the following operations:
acquiring a first character string used for representing the updated text file of the version library and a second character string used for representing the updated text file of the main version library;
respectively carrying out format conversion on the first character string and the second character string to obtain first image information and second image information;
based on the first image information and the second image information, an update text file of the versioning library and an update text file of the master version library are detected.
In the embodiment of the present invention, the first character string and the second character string each include: text type, text size, creation time, modification time;
the first image information and the second image information each include: image shape, image pixels, image resolution, and image saturation;
the image shape is used to characterize the text type, the image pixels are used to characterize the text size, the image resolution is used to characterize the creation time, and the image saturation is used to characterize the modification time.
In the embodiment of the present invention, when the update module 304 detects the update text file of the versioning library and the update text file of the master version library based on the first image information and the second image information, the update module is further configured to perform the following operations:
respectively converting the first image information and the second image information to obtain a first image and a second image;
based on the first image and the second image, an update text file of the versioning library and an update text file of the master version library are detected.
In the embodiment of the present invention, when executing the update text file of the version library and the update text file of the master version library based on the first image and the second image, the update module 304 is further configured to execute the following operations:
displaying the first image and the second image by using version management software, and judging whether the first image and the second image have differences or not;
if not, retaining an update text file of the main version library and generating a version number corresponding to the update content;
if yes, uploading the updated text file of the version library again by using the version management software, and further checking the first character string and the second character string.
It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation of a visual management device for a PLC program version. In other embodiments of the present invention, a visual management device for a version of a PLC program may include more or less components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components may be provided. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The content of information interaction and execution process between the modules in the device is based on the same conception as the embodiment of the method of the present invention, and specific content can be referred to the description in the embodiment of the method of the present invention, which is not repeated here.
The embodiment of the invention also provides electronic equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the visual management method of the PLC program version in any embodiment of the invention when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a computer program which, when being executed by a processor, causes the processor to execute the visual management method of the PLC program version in any embodiment of the invention.
Specifically, a system or apparatus provided with a storage medium on which a software program code realizing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or apparatus may be caused to read out and execute the program code stored in the storage medium.
In this case, the program code itself read from the storage medium may realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code form part of the present invention.
Examples of the storage medium for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer by a communication network.
Further, it should be apparent that the functions of any of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform part or all of the actual operations based on the instructions of the program code.
Further, it is understood that the program code read out by the storage medium is written into a memory provided in an expansion board inserted into a computer or into a memory provided in an expansion module connected to the computer, and then a CPU or the like mounted on the expansion board or the expansion module is caused to perform part and all of actual operations based on instructions of the program code, thereby realizing the functions of any of the above embodiments.
It is noted that relational terms such as first and second, and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of additional identical elements in a process, method, article or apparatus that comprises the element.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: various media in which program code may be stored, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A visual management method of a PLC program version is characterized by comprising the following steps:
acquiring a main version library and a sub version library with version management software; the version management software is obtained by expanding a plurality of image analysis libraries in a distributed version control management system; the version-division library is obtained by cloning the main version library;
initializing the main version library and the sub version library by using the version management software to obtain version information of the main version library and version information of the sub version library;
updating the main version library based on the version information of the sub version library to obtain a main version library with an update record; wherein the updates include updates to the graphics program and updates to the text file.
2. The method of claim 1, wherein expanding a plurality of image resolution libraries in a distributed version control management system to obtain the version management software comprises:
acquiring dll files of each image analysis library;
and installing the dll file into the distributed version control management system to obtain the version management software.
3. The method of claim 1, wherein the updating of the graphics program comprises:
comparing the current version of the main version library with the updated version of the sub version library by using the version management software to obtain file information of a new pattern program of the sub version library; wherein the file information includes an updated position, operation information and a graphic shape of the graphic program;
restoring the file information by using the version management software to obtain a visual graph with operation information; wherein the operation information comprises new addition, editing and deletion;
uploading the updated version of the versioned library and the visualized graph to the master version library to obtain the updated version with the visualized graph, and generating the version number with the updated version of the visualized graph.
4. A method according to any one of claims 1-3, wherein the updating of the text file comprises:
acquiring a first character string used for representing the updated text file of the versioning library and a second character string used for representing the updated text file of the master version library;
performing format conversion on the first character string and the second character string respectively to obtain first image information and second image information;
and detecting the updated text file of the version library and the updated text file of the main version library based on the first image information and the second image information.
5. The method of claim 4, wherein the first string and the second string each comprise: text type, text size, creation time, modification time;
the first image information and the second image information each include: image shape, image pixels, image resolution, and image saturation;
the image shape is used to characterize the text type, the image pixels are used to characterize the text size, the image resolution is used to characterize the creation time, and the image saturation is used to characterize the modification time.
6. The method of claim 4, wherein detecting the updated text file of the versioned library and the updated text file of the master version library based on the first image information and the second image information comprises:
respectively converting the first image information and the second image information to obtain a first image and a second image;
and detecting the updated text file of the version library and the updated text file of the main version library based on the first image and the second image.
7. The method of claim 6, wherein detecting the updated text file of the versioned library and the updated text file of the master version library based on the first image and the second image comprises:
displaying the first image and the second image by using the version management software, and judging whether the first image and the second image have differences or not;
if not, reserving an update text file of the main version library, and generating a version number corresponding to the update content;
if yes, the version management software is utilized to re-upload the updated text file of the version library, and the first character string and the second character string are further checked.
8. A visual management device of a PLC program version is characterized by comprising:
the acquisition module is used for acquiring a main version library and a sub version library with version management software; the version management software is obtained by expanding a plurality of image analysis libraries in a distributed version control management system; the version-division library is obtained by cloning the main version library;
the processing module is used for initializing the main version library and the sub version library by using the version management software to obtain version information of the main version library and version information of the sub version library;
the updating module is used for updating the main version library based on the version information of the version library to obtain a main version library with an updating record; wherein the updates include updates to the graphics program and updates to the text file.
9. An electronic device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the method of any of claims 1-7 when the computer program is executed.
10. A computer readable storage medium, having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method of any of claims 1-7.
CN202311506242.3A 2023-11-13 2023-11-13 Visual management method and device for PLC program version Pending CN117434883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311506242.3A CN117434883A (en) 2023-11-13 2023-11-13 Visual management method and device for PLC program version

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311506242.3A CN117434883A (en) 2023-11-13 2023-11-13 Visual management method and device for PLC program version

Publications (1)

Publication Number Publication Date
CN117434883A true CN117434883A (en) 2024-01-23

Family

ID=89547905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311506242.3A Pending CN117434883A (en) 2023-11-13 2023-11-13 Visual management method and device for PLC program version

Country Status (1)

Country Link
CN (1) CN117434883A (en)

Similar Documents

Publication Publication Date Title
US20070214173A1 (en) Program, method, and apparatus for supporting creation of business process model diagram
US7805451B2 (en) Ontology-integration-position specifying apparatus, ontology-integration supporting method, and computer program product
JP4924976B2 (en) Software development support system
CN109783388B (en) UI (user interface) automatic testing method and device and electronic equipment
AU4098700A (en) Circuit arrangement for measuring the resistances of a pressure-sensitive resistance mat
JP4904878B2 (en) System development support program, system development support device, and system development support method
JPH08241191A (en) Gui automatic evaluation device
CN114003269A (en) Component processing method and device, electronic equipment and storage medium
US10884711B2 (en) Code management system and code management method using a visual programming tool
CN117434883A (en) Visual management method and device for PLC program version
JP2006209179A (en) Model difference detection tool
WO2022180704A1 (en) Display control device, display control method, and display control program
CN111930387B (en) Integration method and device of integration package, electronic equipment and storage medium
US20070162259A1 (en) Method for converting a log of user manipulations of a computer program into task documentation
CN114816470A (en) Metadata database management method and device, electronic equipment and medium
JP2007179446A (en) Information processor, control method and program
JP4961943B2 (en) Development support program, development support method, and development support apparatus
JP2006221538A (en) Measurement device and change history acquisition method using the same
JP4728073B2 (en) Database change point searching method and apparatus
AU760395B2 (en) Program reproducing method and device, and medium on which program for program reproduction recording
JP2006268764A (en) Model edit system, model edit apparatus, model edit method and model edit program
JPH10232769A (en) Class addition supporting method
KR100836218B1 (en) The method and apparatus for automation to manage features of product line system
JP2007094453A (en) Program development support system, program development support method and program
JP2007034807A (en) Information processor and program

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