Online login method and related equipment

The online login method addresses inefficiencies in PLC programming by synchronizing compilation information files, ensuring efficient and secure login processes even when data is missing or inconsistent, thereby enhancing debugging efficiency.

CN119166156APending Publication Date: 2024-12-20SHENZHEN LEAD CNC SYST +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411332105.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In traditional PLC programming, users face inefficiencies and risks due to the need to recompile and download entire programs when compilation information files are missing or inconsistent, leading to potential data loss and unpredictable risks.

Method used

An online login method that compares locally stored compilation information files with those on the PLC, determines differences, and modifies engineering data accordingly to facilitate efficient and synchronized login without affecting ongoing operations.

Benefits of technology

Enables efficient login by synchronizing data in the background, reducing user data loss and operational disruptions, and improving debugging efficiency by allowing direct login even when compilation information files are missing or inconsistent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166156A_ABST
    Figure CN119166156A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an online login method and related equipment, which are used for solving the login problem when a project file is missing or the project file is inconsistent with a program file currently running in a PLC (Programmable Logic Controller). The method provided by the embodiment of the invention comprises the following steps: after a login instruction of a user on a programmable logic controller (PLC) is received, performing communication connection with the PLC according to the login instruction, and obtaining a compiled information file of the PLC; wherein the compiling information file is used for representing an interpretation file of an execution file of the PLC; according to the received engineering comparison instruction, comparing whether the locally stored compilation information file is the same as the compilation information file of the PLC; if the difference exists, obtaining the target data segment with the difference; determining a difference degree according to the target data segment, and modifying the engineering data according to the difference degree to obtain modified engineering data; wherein the engineering data at least comprises a locally stored compiling information file; and completing user login according to the modified engineering data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of compilation data synchronization, and in particular to an online login method and related equipment. Background Art

[0002] When programming with the programming software for programmable logic controller (PLC), the user needs to log in to the PLC to debug the program. However, in the traditional login method, if the user opens the PLC program file for the first time, or logs in to the PLC for the first time, there is no compilation information file locally. If the user has not changed the PLC program, he still needs to recompile the PLC program and download all data completely before logging in. Therefore, users often encounter situations where there is only the PLC program file but no compilation information file locally, or the compilation information file has been modified and cannot be logged in.

[0003] In this case, even if the user has not updated the PLC program, it is necessary to recompile and download the program in full before logging in, and the PLC needs to be stopped during the download, which greatly limits the user's debugging efficiency. In addition, when a full download is required every time, the user does not know whether the program data in the PLC is the same as the currently opened PLC program (even if it is the same), which will cause user data loss or data confusion. In severe cases, some unpredictable risks may occur due to downloading the wrong program code. Summary of the invention

[0004] The embodiments of the present application provide an online login method and related equipment for solving the login problem when the project files are missing or inconsistent.

[0005] A first aspect of an embodiment of the present application provides an online login method, which is applied to a programming platform, and the method includes:

[0006] After receiving a login instruction from a user on a programmable logic controller (PLC), a communication connection is established with the PLC according to the login instruction to obtain a compilation information file of the PLC; wherein the compilation information file is an interpretation file used to represent an execution file of the PLC;

[0007] According to the received engineering comparison instruction, comparing the locally stored compilation information file with the compilation information file of the PLC to see whether they are the same;

[0008] If there is a difference between the locally stored compilation information file and the PLC compilation information file, obtaining the target data segment with the difference;

[0009] Determining the degree of difference according to the target data segment, so as to modify the engineering data according to the degree of difference to obtain modified engineering data; wherein the engineering data at least includes the locally stored compilation information file;

[0010] The user login is completed according to the modified engineering data.

[0011] Optionally, before comparing the locally stored compilation information file with the compilation information file of the PLC to see whether they are the same according to the received engineering comparison instruction, the method further includes:

[0012] If the local storage space of the programming program platform does not store the compilation information file, the compilation information file of the PLC is saved in the local storage space to use the compilation information file of the PLC as the locally stored compilation information file, and the step of comparing the locally stored compilation information file with the compilation information file of the PLC to see whether they are the same according to the received engineering comparison instruction;

[0013] Or, if the local storage space of the programming program platform stores a compilation information file, the step of comparing the locally stored compilation information file with the compilation information file of the PLC to see whether they are the same according to the received engineering comparison instruction is executed.

[0014] Optionally, the obtaining the compilation information file of the PLC includes:

[0015] After establishing a communication connection between the programming program platform and the PLC, obtaining a compilation information file corresponding to a current execution file of the PLC from the PLC through a file transfer service;

[0016] Verify the compilation information file of the PLC, and upload the compilation information file to a local storage space.

[0017] Optionally, determining the degree of difference according to the target data segment includes:

[0018] If the target data segment is at least one of a text segment or a program segment, determining the degree of difference as a first difference result; wherein the first difference result is used to indicate that there is first difference data in the text segment or the program segment;

[0019] The step of modifying the engineering data according to the degree of difference to obtain modified engineering data includes:

[0020] Sending incremental prompt information corresponding to the first difference result to the user; wherein the incremental prompt information includes the first difference data in the text segment or the program segment of the engineering data where the first difference result exists;

[0021] The first difference data is incrementally downloaded according to the compilation information file of the PLC to obtain incremental data, and the engineering data is incrementally synchronously updated according to the incremental data to obtain the modified engineering data.

[0022] Optionally, determining the degree of difference according to the target data segment includes:

[0023] If the target data segment is a data segment describing a program object in the engineering data, determining the difference degree as a second difference result;

[0024] The step of modifying the engineering data according to the degree of difference to obtain modified engineering data includes:

[0025] Determining the object description data corresponding to the program object missing in the engineering data according to the compilation information file of the PLC;

[0026] The object description data is downloaded to incrementally and synchronously update the engineering data according to the object description data to obtain the modified engineering data.

[0027] Optionally, determining the degree of difference according to the target data segment includes:

[0028] If the target data segment is a configuration segment, determining the degree of difference as a third difference result;

[0029] The step of modifying the engineering data according to the degree of difference to obtain modified engineering data includes:

[0030] Sending a full amount of prompt information corresponding to the third difference result to the user;

[0031] The execution file of the PLC is downloaded according to the full prompt information, so as to perform a full synchronization update on the engineering data according to the execution file of the PLC to obtain the modified engineering data.

[0032] Optionally, after determining the degree of difference according to the target data segment, the method further includes:

[0033] According to the degree of difference, the logic application installed in the PLC is updated to the programming application in the programming platform, so as to achieve application synchronization between the PLC and the programming platform when debugging the PLC according to the programming application; or,

[0034] According to the degree of difference, the programming application is updated to the logic application, and the logic application is used as the programming application to achieve application synchronization between the PLC and the programming program platform when debugging the PLC according to the logic application.

[0035] Optionally, the method further comprises:

[0036] Complete user login according to the modified engineering data, and determine the engineering file corresponding to the PLC in the engineering data; wherein the engineering file includes the execution file and the compilation information file;

[0037] The project file is downloaded to the PLC, so that the user can perform the next login operation of the PLC according to the compilation information file.

[0038] A second aspect of the present application provides a login system, which is applied to a programming platform. The system includes:

[0039] The acquisition unit is used to, after receiving a login instruction from a user on a programmable logic controller (PLC), establish a communication connection with the PLC according to the login instruction, and acquire a compilation information file of the PLC; wherein the compilation information file is used to represent an interpretation file of an execution file of the PLC;

[0040] A comparison unit, used to compare the locally stored compilation information file with the compilation information file of the PLC to see whether they are the same according to the received engineering comparison instruction;

[0041] The acquisition unit is further configured to acquire the target data segment having the difference when there is a difference between the locally stored compilation information file and the PLC compilation information file;

[0042] A determination unit, configured to determine a difference degree according to the target data segment, so as to modify the engineering data according to the difference degree to obtain modified engineering data; wherein the engineering data at least includes the locally stored compilation information file;

[0043] The login unit is used to complete user login according to the modified engineering data.

[0044] The login system provided in the second aspect of the embodiment of the present application is used to execute the online login method described in the first aspect.

[0045] A third aspect of an embodiment of the present application provides a login device, including:

[0046] CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply;

[0047] The memory is a short-term storage memory or a persistent storage memory;

[0048] The central processing unit is configured to communicate with the memory and execute instruction operations in the memory to perform the online login method described in the first aspect.

[0049] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes instructions. When the instructions are executed on a computer, the computer executes the online login method described in the first aspect.

[0050] A fifth aspect of an embodiment of the present application provides a computer program product, which includes instructions. When the instructions are executed on a computer, the computer executes the online login method described in the first aspect.

[0051] It can be seen from the above technical scheme that the embodiment of the present application has the following advantages: through an online login method disclosed in the embodiment of the present application, after receiving the login instruction of the user in the programmable logic controller PLC, first communicate with the PLC according to the login instruction to obtain the compilation information file of the PLC; wherein the compilation information file is used to characterize the interpretation file of the execution file of the PLC; then, according to the received engineering comparison instruction, compare whether the locally stored compilation information file is the same as the compilation information file of the PLC; if there is a difference between the locally stored compilation information file and the compilation information file of the PLC, obtain the target data segment with the difference; then, according to the target data segment, determine the degree of difference, and modify the engineering data according to the degree of difference to obtain the modified engineering data; wherein the engineering data at least includes the locally stored compilation information file; finally, complete the user login according to the modified engineering data. Thus, during the user login process, the login can be completed by reading the compilation information file downloaded and saved last time before the login operation. At the same time, when there is a difference between the compilation information file and the data saved in the PLC, the compilation information file in the PLC can be read in the background, thereby completing data synchronization, so as to finally realize the user login, without affecting other operations of the current program, and improving the debugging efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0053] Figure 1 A communication connection diagram between Leadsys software and a PLC device disclosed in an embodiment of the present application;

[0054] Figure 2 A flowchart of an online login method disclosed in an embodiment of the present application;

[0055] Figure 3 A flowchart of another online login method disclosed in an embodiment of the present application;

[0056] Figure 4 A flowchart of another online login method disclosed in an embodiment of the present application;

[0057] Figure 5 A flowchart of another online login method disclosed in an embodiment of the present application;

[0058] Figure 6 A flowchart of another online login method disclosed in an embodiment of the present application;

[0059] Figure 7 A text segment difference comparison diagram disclosed in an embodiment of the present application;

[0060] Figure 8 This is a comparison diagram of the differences between the POU program segments disclosed in the embodiments of this application;

[0061] Fig. 9 A comparison diagram of differences between program objects disclosed in the embodiments of this application;

[0062] Fig.10 A schematic diagram of the structure of a login system disclosed in an embodiment of the present application;

[0063] Fig.11 A schematic diagram of the structure of a login device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0065] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0066] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0067] See also Figure 1 , Figure 1 This is a communication connection diagram between Leadsys software and PLC equipment disclosed in the embodiment of this application. Figure 1 It can be seen that the communication connection diagram includes Leadsys software 101, gateway 102 and PLC device 103. Leadsys software 101, gateway 102 and PLC device 103 are connected in communication in sequence. In the technical solution of the present application, Leadsys software 101 is a programming software for writing and debugging PLC programs, and PLC device 103 is a digital electronic device with a microprocessor, a digital logic controller for automatic control, which can load control instructions into memory at any time for storage and execution. The programmable controller is modularly composed of internal CPU, instruction and data memory, input and output unit, power module, digital simulation and other units. Gateway 102 is a device for realizing network interconnection. In the technical solution of the present application, the gateway 102 can also be a server, such as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud database, cloud service, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and big data and artificial intelligence platform.

[0068] In the technical solution of the present application, Leadsys software 101 mainly realizes communication connection with PLC program through gateway 102. In other words, a local engineering file service is set in Leadsys software 101, which specifically refers to a means of realizing file reading, writing, checking or saving. For the convenience of description, it will not be described in detail later. In addition, when the compilation information file corresponding to PLC device 103 is not saved on the local device, Figure 1 As shown, a communication connection is established with the PLC device 103.

[0069] Figure 2 This is a flow chart of an online login method disclosed in an embodiment of the present application, including steps 201 to 205.

[0070] 201. After receiving a login instruction from a user to a programmable logic controller (PLC), establish a communication connection with the PLC according to the login instruction to obtain a compilation information file of the PLC.

[0071] When a user logs in on a programmable logic controller (PLC), the programming platform will send a login instruction to the PLC. As a result, the programming platform can communicate with the PLC according to the login instruction, thereby synchronously acquiring the compilation information file of the PLC. It should be noted that the compilation information file is an interpretation file used to characterize the execution file of the PLC. It should be understood that the execution file of the PLC is the file required by the PLC when running a certain project or a certain program instruction, which is generally a binary code. Therefore, the compilation information file can be understood as an information file that describes the binary code, or explains the execution logic of the binary code (such as running, stopping, switching, etc.).

[0072] In one specific embodiment, the programming program platform can be understood as the programming program platform where the Leadsys software described above is located (for the convenience of description, the program platform is described as Leadsys software). In this embodiment, when the user opens a project file on the Leadsys software (a file opened and saved and modified by the Leadsys software), the user can send a related login command to the PLC, so that the PLC generates a related login instruction according to the login command, thereby starting the project login service. It should be noted that in this embodiment, the login command is a process of commanding the user status of the PLC to adjust from an offline state to an online state, wherein the Ledasys software can monitor the current operating status and data of the PLC in real time.

[0073] Furthermore, after the PLC and Leadsys software are connected in communication, the programming information file will be obtained from the PLC in real time. In other words, if the local storage space of the programming program platform stores the compilation information file corresponding to the PLC, preferably, the newly obtained compilation information file is used to update the local compilation information file, that is, the compilation information file also needs to be obtained. If the compilation information file of the PLC is not stored locally, it is directly obtained synchronously, and the specific process or method of synchronous acquisition is not limited here.

[0074] 202. According to the received engineering comparison instruction, compare the locally stored compilation information file with the PLC compilation information file to see whether they are the same.

[0075] After obtaining the compilation information file of the PLC, an engineering comparison instruction can be received. Therefore, the locally stored compilation information file is compared with the compilation information file of the PLC according to the engineering comparison instruction to see if they are the same, and corresponding actions are performed according to the comparison result.

[0076] In one specific embodiment, based on what is described in step 201, the local storage space will save the PLC compilation information file obtained from the PLC. At the same time, in this embodiment, the local storage space will also save the compilation information file saved in the last PLC login service. Thus, it is possible to compare whether the locally stored compilation information file is the same as the PLC compilation information file.

[0077] Furthermore, if the local storage space does not store the compilation information file, the PLC compilation information file obtained in step 201 is directly used as the locally stored compilation information file, and is compared with the PLC compilation information file. It is not difficult to find that if the two are the same, the subsequent steps can be omitted.

[0078] In other feasible technical solutions, if the local storage space stores a compilation information file, the local compilation information file can be read through the engineering comparison instruction, and then the local compilation information file can be converted into compilation context memory data through the local engineering file service. It should be noted that the compilation context is the process of converting high-level language into machine language, and the compilation information file is the context, which is understood as the link between high-level language and machine language. Specifically, in the field of computer programming, the compilation context is a key concept, which plays a vital role in the program execution process. The context covers the environment and status information of the program execution, and provides the necessary support for the correct execution of the code. The memory data is stored in the program platform programmed by the user, which is a data structure. Specifically, the memory data refers to the place where data is stored in the terminal device, which can quickly read, write and access data. It can be seen that the compilation context memory data is a data file including a compilation information file and an execution file (binary code). Further, at this time, the local engineering file service can also convert the compilation information file obtained from the PLC, and also obtain the corresponding data file, which will not be described in detail here. In addition, the corresponding data can also be downloaded directly from the PLC, that is, the data file containing the binary code file and its interpretation file (which can be considered as downloaded data).

[0079] 203. If there is a difference between the locally stored compilation information file and the PLC compilation information file, obtain the target data segment with the difference.

[0080] Based on the comparison result of step 202, when there is a difference between the locally stored compilation information file and the PLC compilation information file, the target data segment with the difference is obtained.

[0081] In one specific embodiment, the data segments with differences between the locally stored compilation information file and the PLC compilation information file can be compared one by one, so that the data segments with differences are confirmed as target data segments. Specifically, in the compilation information file, the file is composed of multiple data segments, such as text segments, program segments, configuration segments, or data segments describing objects, etc., which are not specifically limited here. Therefore, by comparing one or more of the text segments, program segments, configuration segments, or data segments describing objects, the target data segments are obtained.

[0082] Furthermore, if it is detected that there is no difference between the two and the completion is the same, the login can be completed directly. Correspondingly, if there is a difference between the two, after determining the target data segment, step 204 can be executed.

[0083] 204. Determine the degree of difference according to the target data segment, and modify the engineering data according to the degree of difference to obtain modified engineering data.

[0084] Based on step 203, after determining the target data segment, the degree of difference can be determined according to the target data segment, so as to modify the engineering data according to the degree of difference, thereby obtaining the modified engineering data. It should be noted that the engineering data at least includes the compilation information file stored locally. Specifically, the engineering data is the data file generated after the compilation information file is used as the engineering file service.

[0085] In one of the specific embodiments, different data segments have different importance to the compilation information file. For example, for text segments and program segments, if the text segments and program segments are the target data segments in the above-mentioned determination process, the content in which the differences appear is generally the addition or deletion of variables or related objects or logical inconsistency, etc., which can be adjusted by modifying the relevant content. However, for configuration segments or data segments describing objects, since the above-mentioned parts are generally the differences in basic functional modules, or the differences in inheritance class modules, it is necessary to re-download or re-edit to achieve adjustment. It will be described in detail in the subsequent embodiments.

[0086] 205. Complete user login according to the modified project data.

[0087] In this way, user login can be completed according to the modified project data.

[0088] In one of the specific embodiments, after the modified engineering data is realized to be the same as the corresponding downloaded data in the PLC, the login operation of the PLC can be realized.

[0089] Furthermore, after successful login, the modified engineering data can also be synchronized to the PLC or other control devices. For details, please refer to the following embodiments.

[0090] Through the online login method disclosed in this embodiment, during the user login process, the login can be completed by reading the compiled information file downloaded and saved last time before the login operation. At the same time, when there is a difference between the compiled information file and the data saved in the PLC, the compiled information file in the PLC can be read in the background to complete data synchronization, so as to finally realize the user login without affecting other operations of the current program, thereby improving the debugging efficiency.

[0091] Furthermore, in this embodiment, after completing a login, the information data of the project is synchronously saved in the corresponding PLC, so that when you need to log in and debug this PLC next time, even if there is only a project file but no other compiled information files, you can still complete the direct login by reading the data saved in the PLC. Compared with the previous solution, this embodiment provides an option for completing the login directly, and in the process of synchronizing the project information data after completing the login, this task is completed in the background and does not affect other operations of the current program.

[0092] In an achievable technical solution, there are multiple judgment conditions, see Figure 3 , Figure 3 This is a flow chart of another online login method disclosed in an embodiment of the present application, including steps 301 to 306.

[0093] 301. If the local storage space of the programming program platform does not store the compilation information file, save the compilation information file of the PLC to the local storage space to use the compilation information file of the PLC as the locally stored compilation information file.

[0094] Corresponds to Figure 2 In step 201, when the local storage space of the programming program platform does not store the compilation information file, the compilation information file of the PLC is saved to the local storage space, so that the compilation information file of the PLC is used as the locally stored compilation information file.

[0095] In one specific embodiment, when a user opens Leadsys software for the first time, or logs in to other PLC devices, there may be no compilation information file stored in the local storage space. Therefore, if there is no compilation information file saved locally, a communication connection must first be established with the PLC, that is, Figure 1 As shown, the engineering information last synchronized to the PLC device is obtained from the PLC device through the online file transfer service. The engineering information is the corresponding binary file, and can also be parameters such as the software or version number that describe the PLC device. Therefore, after obtaining the engineering information in the local storage space, the engineering information obtained from the PLC device can be converted into a local compilation information file through the local engineering file service. It should be noted that conversion refers to the direct conversion between the synchronization file and the PLC memory, by reading the engineering information inside the PLC, and then converting it into the compilation context of the current engineering information of the PLC. Then execute step 303.

[0096] Furthermore, for a PLC that is used for the first time or has an empty content, since there is no compilation information file, all files need to be downloaded, and a compilation information file will be generated in the PLC after the synchronization command is completed.

[0097] 302. If the local storage space of the programming program platform stores a compilation information file.

[0098] Corresponding to step 201, when the local storage space of the programming program platform stores the compilation information file, the locally stored compilation information file is directly converted into the compilation context memory through the local engineering file service. Specifically, the compilation context is the context in the process of converting the high-level language into the machine language, and is understood as the link between the high-level language and the machine language. The memory data is stored in the program platform programmed by the user and is a data structure. It can be seen that the compilation context memory data is a data file including the compilation information file and the execution file (binary code). Then execute step 303.

[0099] 303. According to the received engineering comparison instruction, compare whether the locally stored compilation information file is identical with the compilation information file of the PLC.

[0100] In this embodiment, step 303 is the same as the aforementioned Figure 2 However, it should be noted that, in this embodiment, step 304 or step 305 can be performed respectively according to the comparison result between the locally stored compilation information file and the PLC compilation information file.

[0101] 304. If there is a difference between the locally stored compilation information file and the PLC compilation information file, obtain the target data segment with the difference.

[0102] In this embodiment, step 304 is similar to the above Figure 2 The step 203 is similar and will not be described in detail here.

[0103] 305. If there is no difference between the locally stored compilation information file and the PLC compilation information file, complete the user login according to the compilation information file.

[0104] Corresponding to step 303, when there is no difference between the locally stored compilation information file and the PLC compilation information file, the user login can be completed according to the project data, and the project file corresponding to the PLC in the project data can be determined. It should be noted that the project file includes the PLC execution file and the PLC compilation information file.

[0105] In one specific embodiment, if it is detected that there is no difference between the two and they are exactly the same, the login can be completed directly. Then, after the login is completed, the latest engineering data needs to be determined. The engineering data includes the latest compilation information file and the execution file of the PLC corresponding to the compilation information file.

[0106] 306. If there is a difference between the locally stored compilation information file and the PLC compilation information file, obtain the target data segment with the difference.

[0107] 307. Determine the degree of difference according to the target data segment, and modify the engineering data according to the degree of difference to obtain modified engineering data.

[0108] In this embodiment, steps 306 to 307 are the same as those described above. Figure 2 Step 203 to step 204 are similar and will not be described in detail here.

[0109] 308. Complete user login according to the modified engineering data, and determine the engineering file corresponding to the PLC in the engineering data.

[0110] Based on the above step 304, please refer to Figure 5 Thus, after obtaining the modified engineering data, the user login can be completed according to the modified engineering data, and at the same time, the engineering file corresponding to the PLC in the engineering data is determined. It should be noted that the engineering file includes the PLC execution file and the PLC compilation information file.

[0111] 309. Download the project file to the PLC so that the user can perform the next PLC login operation according to the compilation information file.

[0112] Therefore, based on step 307, the project file can be downloaded to the PLC again, so that the user can perform the next PLC login operation according to the compilation information file.

[0113] Through the online login method disclosed in this embodiment, regardless of whether there is a compilation information file stored in the local storage space, a new compilation information file can be synchronously obtained from the PLC, thereby further solving the login problem when the project is inconsistent. At the same time, since the new PLC compilation information file can be obtained, the work efficiency can be improved as much as possible, and the feasibility of the solution is improved. At the same time, since an option for logging in directly is provided, and in the process of synchronizing the project information data after logging in, this task is completed in the background and does not affect other operations of the current program, which further improves the feasibility of the solution.

[0114] To further illustrate the embodiments of the present application Figure 2 Step 201, see Figure 4 , Figure 4 This is a flow chart of another online login method disclosed in an embodiment of the present application, including steps 401 and 402.

[0115] 401. After establishing a communication connection between the programming program platform and the PLC, obtain a compilation information file corresponding to a current execution file of the PLC from the PLC through a file transfer service.

[0116] It should be noted that the step of obtaining the compilation information file of the PLC in step 201 is described in detail in this embodiment. Specifically, after establishing a communication connection between the programming program platform and the PLC, the PLC execution file of the current PLC can be obtained from the PLC through the file transfer service. It should be noted that at this time, through the file transfer service, the compilation information file corresponding to the PLC execution file of the currently running PLC (the aforementioned PLC may not be running) can also be obtained. In other words, in this embodiment, online login is possible without stopping the PLC.

[0117] In one specific embodiment, after the Leadsys software establishes a communication connection with the PLC, the program logic file that was last synchronized to the PLC device can be obtained from the PLC through the online file transfer service, that is, the compilation information file corresponding to the PLC execution file. Among them, the PLC execution file is specifically a binary programming logic file, for example, it can be a logic code that controls the operation of the PLC device. It should also be noted that the PLC execution file also includes various parameters such as the software version or version number that describes the PLC device, which are not specifically limited here.

[0118] 402. Verify the compilation information file of the PLC, and upload the compilation information file of the PLC to the local storage space.

[0119] After obtaining the execution file of the PLC, the compilation information file of the PLC can be verified, and after the verification is completed, the compilation information file can be uploaded to the local storage space. Furthermore, the execution file of the PLC can also be verified, and then the execution file can be converted into the compilation information file of the PLC, and then the compilation information file can be stored in the local storage space.

[0120] In one of the specific embodiments, the execution file obtained from the PLC device can be initially converted into a compilation information file through a local engineering file. Specifically, by reading the execution logic of the execution file, the execution file is translated into an explanation text of the execution logic. For example, a certain section of the execution file is a binary code that assigns a value to function 1 and clears function 2. Then, the compilation information file of this section of the execution file is a detailed annotation (or explanation) of "assigning a value to function 1 and clearing function 2" mentioned above. Thus, after completing the conversion of all the execution files, the compilation information file corresponding to the execution file of the PLC can be obtained.

[0121] Through an online login method disclosed in this embodiment, a PLC execution file can be converted into a PLC compilation information file, thereby facilitating comparison with subsequent local compilation information files and improving the feasibility of the solution.

[0122] Furthermore, since the differences in the data segments in the compilation information file are handled differently, for easier understanding of the processing methods of each data segment, please refer to Figure 5 , Figure 5 This is a flow chart of another online login method disclosed in the embodiment of the present application. It includes steps 501 to 510. It should be noted that in this embodiment, steps 501 to 510 can be understood as Figure 2 Detailed description of step 204 in FIG.

[0123] 501. Obtain target data segments with differences.

[0124] In this embodiment, step 501 is the same as the aforementioned Figure 2 Then, according to the specific content of the target data segment, steps 502 to 504, or steps 505 to 507, or steps 508 to 510 are respectively executed.

[0125] It should be noted that, combined with the above Figure 2 As shown in step 203, the target data segment includes at least a text segment, a program segment, a configuration segment or a data segment describing an object, etc. For different data segments, the following steps 502 to 510 can be executed respectively.

[0126] 502. If the target data segment is at least one of a text segment or a program segment, determine the degree of difference as a first difference result.

[0127] Based on step 501, when the target data segment with differences is at least one of a text segment or a program segment, the degree of difference is determined as a first difference result. It should be noted that the first difference result is used to characterize the existence of first difference data in the text segment or the program segment. Correspondingly, the first difference data is used to describe one or more differences among the newly added data, the undeleted data, or the logical data.

[0128] In one specific embodiment, in the process of detecting whether the text segments in the compilation information file are the same, detecting whether the program segments are the same, and detecting whether the objects in the program are the same, if any of the above data segments are detected to be different, the degree of difference is determined to be a first difference result, and the degree of difference is a small difference. In other words, there is an addition, deletion, or logical inconsistency of the data segment content (or data). For further information, please refer to Figure 7 and Figure 8 , Figure 7A text segment difference comparison diagram disclosed in an embodiment of the present application; Figure 8 This is a comparison diagram of the differences between the POU program segments disclosed in the embodiments of this application. Figure 7 It can be seen that there are differences in the text segments of the local compilation information file and the PLC compilation information file (for example, var2, one is INT and the other is UINT). Figure 8 It can be seen that there are differences in the program segments between the local compilation information file and the PLC compilation information file (for example, var1 and var2, the other has a / / comment symbol). The corresponding different data content is the first difference data described above.

[0129] 503. Send incremental prompt information corresponding to the first difference result to the user.

[0130] Thus, based on step 502, when it is determined that there is a first difference result, incremental prompt information corresponding to the first difference result can be sent to the user. It should be noted that the incremental prompt information includes the first difference data in the text segment or program segment of the engineering data where the first difference result exists.

[0131] In one specific embodiment, when the declared variable difference is small, a modification notification (ie, incremental prompt information) may be sent to the user to remind the user to make the modification. The modification notification may include the data content of the difference in the data segment.

[0132] 504. Incrementally download the first difference data according to the compilation information file of the PLC to obtain incremental data, and incrementally and synchronously update the engineering data according to the incremental data to obtain modified engineering data.

[0133] Therefore, based on step 503, after sending the incremental prompt information, the user can incrementally download the first difference data according to the PLC compilation information file on the programming program platform to obtain incremental data, and then incrementally synchronize the engineering data according to the incremental data to obtain modified engineering data.

[0134] In one specific embodiment, the difference between the PLC compilation information file and the local compilation information file is incrementally downloaded to obtain incremental data. It should be noted that the incremental data is the data content that is different in the target data segment. For example, Figure 7 , which is the content corresponding to var2. Figure 8 , which is a comment symbol, etc. Then, the engineering data can be incrementally updated synchronously according to the incremental data. Specifically, the data segments in the engineering data where the local compilation information files are different are incrementally updated synchronously, thereby obtaining the engineering data after incremental synchronization update.

[0135] Furthermore, some data segment contents can also be modified by online modification to complete the modification of the compilation information file. Specifically, the user can be notified that the modification can be completed online and the login can be completed, for example, in the case of minor differences such as some variable declaration differences.

[0136] 505. If the target data segment is a data segment describing a program object in the engineering data, determining the degree of difference is a second difference result.

[0137] Based on step 501, when the target data segment with differences is a data segment describing a program object, the degree of difference is determined as a second difference result. It should be noted that the second difference result is used to describe that there are differences between the represented program objects. Further, if there are differences between the program objects, the current difference can be considered to be a small difference.

[0138] 506. Determine the missing object description data corresponding to the program object in the engineering data according to the compilation information file of the PLC.

[0139] When the difference degree is determined to be the second difference result, the object description data corresponding to the program object missing in the engineering data can be determined according to the compilation information file of the PLC.

[0140] In one of the specific embodiments, when the current difference degree is the second difference result, it is necessary to traverse the compilation information file of the PLC to determine the object description data describing the program object that is missing in the local compilation information file in the engineering data. Specifically, it can be understood that the object description data for the program object in the compilation information file of the PLC includes description data of object 1, object 2, and object 3, but the local compilation information file only has object description data for the program object (object 1 and object 3). At this time, the object description data that needs to be downloaded is the object description data for object 2 of the program object.

[0141] 507. Download the object description data to incrementally and synchronously update the engineering data according to the object description data to obtain the modified engineering data.

[0142] Based on step 506, the object description data can be downloaded from the PLC, so that the engineering data can be incrementally and synchronously updated according to the object description data to obtain the modified engineering data.

[0143] In one specific embodiment, the subsequent execution steps of step 507 in this embodiment are similar to step 504. Furthermore, after downloading the object description data, the object description data can be used to perform incremental synchronization update on the local compilation information file, thereby obtaining the incrementally synchronized updated compilation information file, that is, the modified project data.

[0144] 508. If the target data segment is a configuration segment, determine the degree of difference as a third difference result.

[0145] Based on step 501, when the target data segment with a difference is a configuration segment, the degree of difference is determined as a third difference result. It should be noted that the third difference result is used to characterize one or more of the presence of a logical function modification in the configuration segment or a difference in the logical object. Further, if there is a logical function modification in the configuration segment, or there is a difference in the logical object, the current difference can be considered to be a large difference.

[0146] For easier understanding, please refer to Fig. 9 , Fig. 9 This is a comparison chart of the differences between the program objects disclosed in the embodiments of this application. Fig. 9 It can be seen that in the data segment describing the logical object in the PLC compilation information file, the objects of PLC_PRG (PRG) include ACT3 and ACT4 in addition to ACT1 and ACT2. Then, there are only ACT1 and ACT2 in the local compilation information file. Therefore, the difference in the data segment can be used to determine the degree of difference as the third difference result. In addition, it can also be understood that the third difference result corresponds to differences in the basic function module or the inherited class module (subclass parent class), etc.

[0147] Furthermore, when the difference degree is determined to be the third difference result, it can be considered that the current difference is a large difference. At this time, it is necessary to notify the user to stop the PLC device and execute step 509.

[0148] 509. Send full prompt information corresponding to the third difference result to the user.

[0149] Therefore, when the difference degree is the third difference result (large difference), it is necessary to send the full amount of prompt information corresponding to the third difference result to the user.

[0150] In one specific embodiment, based on Fig. 9 As shown, the local compilation information file lacks data describing the logical objects. Furthermore, some basic functional modules may be missing, such as inherited projects or overloaded projects, which can be understood as missing object description data, and there is no specific limitation here. At this time, it is necessary to completely download the PLC execution file and its corresponding compilation information file to complete the login. It should be noted that when there are large differences, some basic functions or logical functions will inevitably be missing or changed, resulting in changes in the overall basic functions or logical functions. Therefore, it is necessary to send a full prompt message for a full download.

[0151] 510. Download the PLC execution file according to the full prompt information, so as to perform full synchronization update on the project data according to the PLC execution file to obtain the modified project data.

[0152] Based on step 509, the PLC execution file can be downloaded according to the full prompt information, so that the engineering data can be fully synchronized and updated according to the PLC execution file to obtain the modified engineering data.

[0153] In one of the specific embodiments, according to the full prompt information, the PLC execution file is downloaded in the PLC to determine the current execution logic of the PLC, so that the local engineering data is fully synchronized and updated according to the PLC execution file to obtain the modified engineering data.

[0154] Furthermore, the PLC execution file can be converted into a compilation information file through the local project file service, and then the latest local project data, ie, the modified project data, can be obtained based on the execution file and the converted compilation information file.

[0155] Through an online login method disclosed in this embodiment, users can debug PLC execution files according to different difference situations to minimize login restrictions caused by data loss or data confusion, thereby greatly improving user debugging efficiency.

[0156] based on Figure 2 After step 204, the same project can also be debugged for multiple PLCs. Figure 6 , Figure 6 This is a flow chart of another online login method disclosed in an embodiment of the present application, including steps 601 to 603.

[0157] 601. Determine the degree of difference according to the target data segment.

[0158] In this embodiment, step 601 is the same as the aforementioned Figure 2 The steps 602 and 603 are similar, and will not be described in detail here. However, it should be noted that in this embodiment, step 602 or step 603 can be performed separately according to different usage requirements. Furthermore, step 602 and step 603 can also be performed simultaneously, and there is no specific limitation here.

[0159] 602. According to the degree of difference, the logic application installed in the PLC is updated to the programming application in the programming platform, so as to achieve application synchronization between the PLC and the programming platform when debugging the PLC according to the programming application.

[0160] Combination Figure 5The illustrated embodiment can update the logic application installed in the PLC to the programming application in the programming platform according to the degree of difference, thereby achieving application synchronization between the PLC and the programming platform when debugging the PLC according to the programming application.

[0161] In one specific embodiment, when there is a difference in the comparison result, the difference degree of the local compilation information file when the difference occurs can be determined, so that the user can choose to update the program (logic application) in the PLC device to the program on the PC side (programming application in the programming program platform) according to the difference. Therefore, when the programming application debugs the PLC, program synchronization can be achieved between the PC side and the PLC side, that is, between the programming program platform and the PLC side.

[0162] Furthermore, when debugging the PLC logic application on the same PLC and switching different PLCs, online modifications can be achieved and the latest engineering data can be synchronized to the PLC.

[0163] 603. Based on the degree of difference, the programming application is updated to a logic application, and the logic application is used as the programming application to achieve application synchronization between the PLC and the programming program platform when debugging the PLC based on the logic application.

[0164] Combination Figure 5 In the embodiment shown, the programming application can be updated to a logic application according to the degree of difference, and the logic application can be used as the programming application, so that the application synchronization between the PLC and the programming platform can be achieved when debugging the PLC according to the logic application.

[0165] In one specific embodiment, when there is a difference in the comparison result, the difference degree of the local compilation information file when the difference occurs can be determined, so that the user can choose to update the program on the PC side (the programming application in the programming program platform) to the program in the PLC device (logic application) according to the difference. Therefore, when multiple people debug the same PLC, the application synchronization between the PLC and the programming program platform can be achieved.

[0166] The online login method disclosed in this embodiment can solve the problem of program asynchrony when multiple people debug the same PLC. The method also solves the problem of switching different PLC devices during the debugging of the PLC program on the same PC, and can also modify and synchronize the latest program information to the controller online, solving the problem of logging into different PLCs and needing to repeat the download of all because of minor changes in user process changes.

[0167] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0168] See also Fig.10 , Fig.10 A schematic diagram of the structure of a login system disclosed in an embodiment of the present application.

[0169] The acquisition unit 1001 is used to communicate with the PLC according to the login instruction after receiving the login instruction from the user, and acquire the compilation information file of the PLC; wherein the compilation information file is used to represent the interpretation file of the execution file of the PLC;

[0170] The comparison unit 1002 is used to compare the locally stored compilation information file with the PLC compilation information file to see whether they are the same according to the received engineering comparison instruction;

[0171] The acquisition unit 1001 is further used to acquire the target data segment with the difference when there is a difference between the locally stored compilation information file and the PLC compilation information file;

[0172] The determining unit 1003 is used to determine the difference degree according to the target data segment, so as to modify the engineering data according to the difference degree to obtain the modified engineering data; wherein the engineering data at least includes the compilation information file stored locally;

[0173] The login unit 1004 is used to complete the user login according to the modified project data.

[0174] Exemplarily, the system further includes: a storage unit 1005 and an execution unit 1006;

[0175] The saving unit 1005 is used for saving the PLC's compilation information file to the local storage space when the local storage space of the programming program platform does not store the compilation information file, so as to use the PLC's compilation information file as the locally stored compilation information file, and executing the step of comparing whether the locally stored compilation information file is the same as the PLC's compilation information file according to the received engineering comparison instruction;

[0176] Or, the execution unit 1006 is used to execute the step of comparing whether the locally stored compilation information file is the same as the compilation information file of the PLC according to the received engineering comparison instruction when the local storage space of the programming program platform stores the compilation information file.

[0177] Exemplarily, the system further includes: a verification unit 1007;

[0178] The acquisition unit 1001 is specifically used to acquire the compilation information file corresponding to the current execution file of the PLC from the PLC through the file transfer service after establishing the communication connection between the programming program platform and the PLC;

[0179] The verification unit 1007 is used to verify the compilation information file of the PLC and upload the compilation information file to the local storage space.

[0180] Exemplarily, the system further includes: a sending unit 1008;

[0181] The determining unit 1003 is specifically configured to determine the degree of difference as a first difference result when the target data segment is at least one of a text segment or a program segment; wherein the first difference result is used to indicate that the text segment or the program segment has first difference data;

[0182] A sending unit 1008 is used to send incremental prompt information corresponding to the first difference result to the user; wherein the incremental prompt information includes first difference data in which the first difference result exists in the text segment or program segment of the engineering data;

[0183] The acquisition unit 1001 is specifically used to incrementally download the first difference data according to the compilation information file of the PLC to obtain incremental data, and to incrementally synchronize and update the engineering data according to the incremental data to obtain modified engineering data.

[0184] Exemplarily, the system further includes: a downloading unit 1009;

[0185] The determining unit 1003 is specifically configured to determine the difference degree as a second difference result when the target data segment is a data segment describing a program object in the engineering data;

[0186] The determining unit 1003 is further used to determine the object description data corresponding to the program object missing in the engineering data according to the compilation information file of the PLC;

[0187] The downloading unit 1009 is used to download the object description data, so as to perform incremental synchronous update on the engineering data according to the object description data to obtain the modified engineering data.

[0188] Exemplarily, the system includes:

[0189] A determining unit 1003, specifically configured to determine the difference degree as a third difference result when the target data segment is a configuration segment;

[0190] The sending unit 1008 is specifically configured to send a full amount prompt information corresponding to the third difference result to the user;

[0191] The downloading unit 1009 is specifically used to download the execution file of the PLC according to the full prompt information, so as to perform full synchronization update on the engineering data according to the execution file of the PLC to obtain the modified engineering data.

[0192] Exemplarily, the system further includes: an updating unit 1010;

[0193] The updating unit 1010 is used to update the logic application installed in the PLC to the programming application in the programming platform according to the difference degree, so as to achieve the synchronization of the application between the PLC and the programming platform when debugging the PLC according to the programming application; or

[0194] The updating unit 1010 is further used to update the programming application to a logic application according to the degree of difference, and use the logic application as the programming application to achieve application synchronization between the PLC and the programming program platform when debugging the PLC according to the logic application.

[0195] Exemplarily, the system further includes:

[0196] The determining unit 1003 is further used to complete the user login according to the modified engineering data, and determine the engineering file corresponding to the PLC in the engineering data; wherein the engineering file includes an execution file and a compilation information file;

[0197] The downloading unit 1009 is used to download the project file to the PLC so that the user can perform the next PLC login operation according to the compilation information file.

[0198] See below Fig.11 , a schematic diagram of a login device disclosed in an embodiment of the present application includes:

[0199] CPU 1101, memory 1105, input / output interface 1104, wired or wireless network interface 1103 and power supply 1102;

[0200] The memory 1105 is a temporary storage memory or a permanent storage memory;

[0201] The CPU 1101 is configured to communicate with the memory 1105 and execute the instructions in the memory 1105 to perform the aforementioned Figures 2 to 6 The online login method in any of the illustrated embodiments.

[0202] The embodiment of the present application also provides a chip system, characterized in that the chip system includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected through a line, and the at least one processor is used to run a computer program or instruction to execute the aforementioned Figures 2 to 6 The online login method in any of the illustrated embodiments.

[0203] The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium includes instructions, when the instructions are executed on a computer, the computer executes the aforementioned Figures 2 to 6 The online login method in any of the illustrated embodiments.

[0204] The present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the aforementioned Figures 2 to 6 The online login method in any of the illustrated embodiments.

[0205] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0206] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0207] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0208] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0209] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. An online login method, characterized in that: Applied to a programming platform, the method comprises: After receiving a login instruction from a user on a programmable logic controller (PLC), a communication connection is established with the PLC according to the login instruction to obtain a compilation information file of the PLC; wherein the compilation information file is an interpretation file used to represent an execution file of the PLC; According to the received engineering comparison instruction, comparing the locally stored compilation information file with the compilation information file of the PLC to see whether they are the same; If there is a difference between the locally stored compilation information file and the PLC compilation information file, obtaining the target data segment with the difference; Determining the degree of difference according to the target data segment, so as to modify the engineering data according to the degree of difference to obtain modified engineering data; wherein the engineering data at least includes the locally stored compilation information file; The user login is completed according to the modified engineering data.

2. The online login method according to claim 1, characterized in that: Before comparing the locally stored compilation information file with the PLC compilation information file to see whether they are the same according to the received engineering comparison instruction, the method further includes: If the local storage space of the programming program platform does not store the compilation information file, the compilation information file of the PLC is saved in the local storage space to use the compilation information file of the PLC as the locally stored compilation information file, and the step of comparing the locally stored compilation information file with the compilation information file of the PLC to see whether they are the same according to the received engineering comparison instruction; Or, if the local storage space of the programming program platform stores a compilation information file, the step of comparing the locally stored compilation information file with the compilation information file of the PLC to see whether they are the same according to the received engineering comparison instruction is executed.

3. The online login method according to claim 1, characterized in that: The obtaining of the compilation information file of the PLC comprises: After establishing a communication connection between the programming program platform and the PLC, obtaining a compilation information file corresponding to a current execution file of the PLC from the PLC through a file transfer service; Verify the compilation information file of the PLC, and upload the compilation information file to a local storage space.

4. The online login method according to claim 1, characterized in that: Determining the degree of difference according to the target data segment includes: If the target data segment is at least one of a text segment or a program segment, determining the degree of difference as a first difference result; wherein the first difference result is used to indicate that there is first difference data in the text segment or the program segment; The step of modifying the engineering data according to the degree of difference to obtain modified engineering data includes: Sending incremental prompt information corresponding to the first difference result to the user; wherein the incremental prompt information includes the first difference data in the text segment or the program segment of the engineering data where the first difference result exists; The first difference data is incrementally downloaded according to the compilation information file of the PLC to obtain incremental data, and the engineering data is incrementally synchronously updated according to the incremental data to obtain the modified engineering data.

5. The online login method according to claim 1, characterized in that: Determining the degree of difference according to the target data segment includes: If the target data segment is a data segment describing a program object in the engineering data, determining the difference degree as a second difference result; The step of modifying the engineering data according to the degree of difference to obtain modified engineering data includes: Determining the object description data corresponding to the program object missing in the engineering data according to the compilation information file of the PLC; The object description data is downloaded to incrementally and synchronously update the engineering data according to the object description data to obtain the modified engineering data.

6. The online login method according to claim 1, characterized in that: Determining the degree of difference according to the target data segment includes: If the target data segment is a configuration segment, determining the degree of difference as a third difference result; The step of modifying the engineering data according to the degree of difference to obtain modified engineering data includes: Sending a full amount of prompt information corresponding to the third difference result to the user; The execution file of the PLC is downloaded according to the full prompt information, so as to perform a full synchronization update on the engineering data according to the execution file of the PLC to obtain the modified engineering data.

7. The online login method according to claim 1, characterized in that: After determining the degree of difference according to the target data segment, the method further includes: According to the degree of difference, the logic application installed in the PLC is updated to the programming application in the programming platform, so as to achieve application synchronization between the PLC and the programming platform when debugging the PLC according to the programming application; or, According to the degree of difference, the programming application is updated to the logic application, and the logic application is used as the programming application to achieve application synchronization between the PLC and the programming program platform when debugging the PLC according to the logic application.

8. The online login method according to claim 1, characterized in that: The method further comprises: Complete user login according to the modified engineering data, and determine the engineering file corresponding to the PLC in the engineering data; wherein the engineering file includes the execution file and the compilation information file; The project file is downloaded to the PLC, so that the user can perform the next login operation of the PLC according to the compilation information file.

9. A login system, characterized in that: Applied to a programming platform, the system comprises: The acquisition unit is used to, after receiving a login instruction from a user on a programmable logic controller (PLC), establish a communication connection with the PLC according to the login instruction, and acquire a compilation information file of the PLC; wherein the compilation information file is used to represent an interpretation file of an execution file of the PLC; A comparison unit, used to compare the locally stored compilation information file with the compilation information file of the PLC to see whether they are the same according to the received engineering comparison instruction; The acquisition unit is further configured to acquire the target data segment having the difference when there is a difference between the locally stored compilation information file and the PLC compilation information file; A determination unit, configured to determine a difference degree according to the target data segment, so as to modify the engineering data according to the difference degree to obtain modified engineering data; wherein the engineering data at least includes the locally stored compilation information file; The login unit is used to complete user login according to the modified engineering data.

10. An online login device, characterized in that: The device comprises: CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply; The memory is a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instruction operations in the memory to perform the online login method described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes instructions, and when the instructions are executed on a computer, the computer executes the online login method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Online downloading method and related equipment

    CN119758864A