Multi-person cooperation method, device and system of programmable logic controller

By realizing the synchronization of browsing and modifying status user information in the PLC system, the problem of inability to perceive the editing status when multiple users edit in traditional PLC is solved, and real-time perception and data consistency of multi-user synchronous development are achieved.

CN118778541APending Publication Date: 2024-10-15BEIJING GUODIAN ZHISHEN CONTROL TONGDY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410915211.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

When traditional PLC is being edited by multiple users, one user cannot sense the editing status of other users, resulting in the inability to observe how many users are currently modifying project files, which is not conducive to multi-user synchronous development.

Method used

By synchronizing the browsing status user information and modifying status user information between the terminal and the network device, and using the status update request and notification mechanism to ensure that users can perceive the editing status of other users in real time, and perform version number comparison and selection when saving. Upload or download operations to ensure data consistency.

Benefits of technology

This enables users to perceive the editing status of other users in real time in a multi-user editing scenario, avoiding the problems of data loss and forced refresh, and improving the efficiency and accuracy of multi-user synchronous development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778541A_ABST
    Figure CN118778541A_ABST
Patent Text Reader

Abstract

The invention provides a multi-person cooperation method, device and system of a programmable logic controller, and belongs to the technical field of computers. The method comprises the following steps: in response to a program organization unit file opening instruction, displaying an interface of a program organization unit file and sending a first state updating request to network equipment, so that the network equipment executes an adding operation of browsing state user information; in response to a program organization unit file editing instruction, sending a second state updating request to the network equipment, so that the network equipment executes an adding operation of state modification user information; and receiving state modification user information, and displaying user information which is editing the program organization unit file and displaying information that the program organization unit file has been updated. According to the method, the defects that when a traditional PLC carries out multi-user editing, a certain user cannot perceive the editing states of other users, that is, how many users are modifying files at present cannot be observed, and multi-user synchronous development states are not facilitated are overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a multi-person collaboration method of a programmable logic controller, a multi-person collaboration device of a programmable logic controller, a multi-person collaboration system of a programmable logic controller, a machine-readable storage medium and a computer program product. Background Art

[0002] Programmable Logic Controller (PLC) is an important core control device in the field of industrial automation, and is widely used in discrete or continuous control industries such as manufacturing, transportation, and energy production. PLC has a wide range of application scenarios. In some large-scale application scenarios, in order to improve work efficiency, multiple users are sometimes required to collaborate on program development at the same time.

[0003] When a traditional PLC is edited by multiple users, a certain user cannot perceive the editing status of other users, that is, the user cannot observe how many users are currently modifying the project file, which is not conducive to the synchronous development status of multiple users. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a multi-person collaboration method, device and system for a programmable logic controller, so as to solve the defect that when multiple users are editing a traditional PLC, a certain user cannot perceive the editing status of other users, that is, the user cannot observe how many users are currently modifying the project file, which is not conducive to the synchronous development status of multiple users.

[0005] In order to achieve the above object, an embodiment of the present invention provides a multi-person collaboration method of a programmable logic controller, which is applied to a terminal, and the method includes:

[0006] In response to a program organization unit file opening instruction, displaying the interface of the program organization unit file and sending a first status update request to a network device, so that the network device performs an operation of adding browsing status user information; the browsing status user information is used to store user information that is in a state of browsing the program organization unit file;

[0007] In response to the program organization unit file editing instruction, a second status update request is sent to the network device, so that the network device performs an adding operation of modifying the state user information; the modifying state user information is used to store the user information that is in the state of editing the program organization unit file;

[0008] The modification status user information sent by the network device is received, and based on the modification status user information, user information in a state of editing the program organization unit file and information that the program organization unit file has been updated are displayed.

[0009] Optionally, after receiving the modification status user information sent by the network device, and displaying the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated based on the modification status user information, the method further comprises:

[0010] In response to a save instruction of a program organization unit file, sending the edited program organization unit file and a version number corresponding to the program organization unit file to the network device;

[0011] Receiving a prompt message sent by the network device, and displaying a selection control based on the prompt message; the prompt message indicates that the version number corresponding to the program organization unit file is smaller than the version number of the program organization unit file in the network device, and the selection control is used to provide a download instruction for the program organization unit file in the network device or an upload instruction for the edited program organization unit file. Optionally, after receiving the prompt message sent by the network device and displaying the selection control based on the prompt message, it also includes:

[0012] In response to an upload instruction of the selection control, sending an upload request to a network device so that the network device performs information update based on the edited program organization unit file;

[0013] Receive the latest version number of the program organization unit file sent by the network device.

[0014] Optionally, the method further includes:

[0015] In response to an executable program download instruction, receiving the executable program sent by the network device; the executable program is compiled by the network device based on the program organization unit file;

[0016]

[0017] sending the executable program to a programmable logic controller device;

[0018] Among them, when the program organization unit file is being compiled, the remaining devices connected to the network device for communication cannot perform the compilation operation of the program organization unit file; when the download instruction is responded to, the remaining devices connected to the network device for communication cannot perform the download operation of the executable program.

[0019] Optionally, the method further includes:

[0020] In response to a closing instruction of the program organization unit file, the interface of the program organization unit file is closed, and a third status update request is sent to the network device, so that the network device executes a removal operation of the browsing status user information.

[0021] Optionally, after the program organization unit file opening instruction is displayed in response to the program organization unit file opening instruction and the first status update request is sent to the network device, the method further includes:

[0022] A first status notification is periodically sent to the network device, so that the network device determines that the user who opens the program organization unit file is still in a browsing state.

[0023] Optionally, after receiving the modification status user information sent by the network device, and displaying the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated based on the modification status user information, the method further includes:

[0024] A second status notification is periodically sent to the network device, so that the network device determines that the user who edits the program organization unit file editing instruction is still in the editing state.

[0025] On the other hand, an embodiment of the present invention further provides a multi-person collaboration method of a programmable logic controller, which is applied to a network device, and the method includes:

[0026] receiving a first status update request sent by a terminal, and adding user information corresponding to the first status update request to browsing status user information; the first status update request indicates that the program organization unit file has been opened; the browsing status user information is used to store user information that is in a state of browsing the program organization unit file;

[0027] receiving a second status update request sent by the terminal, and adding user information corresponding to the second status update request to the modification status user information; the second status update request indicates that the program organization unit file has been edited; the modification status user information is used to store user information that is in the state of editing the program organization unit file;

[0028] The modification state user information is sent to all users in the browsing state user information, so that each user's terminal displays all user information in the state of editing the program organization unit file.

[0029] Optionally, after sending the modification status user information to all users in the browsing status user information, the method further includes:

[0030] Receiving the edited program organization unit file and the version number corresponding to the program organization unit file sent by the terminal;

[0031] When the version number is smaller than the version number of the program organization unit file in the network device, a prompt message is sent to the terminal.

[0032] Optionally, after sending the prompt information to the terminal, the method further includes:

[0033] receiving an upload request sent by the terminal, replacing the original program organization unit file stored in the network device with the edited program organization unit file, adding one to the version number of the program organization unit file in the network device and taking the result after modulo as the latest version number, and removing the user information corresponding to the upload request from the modification status user information; the upload request indicates that the terminal uploads the edited program organization unit file to the network device;

[0034] Send update prompt information and the latest version number to all users in the browsing status user information to prompt that the program organization unit file has been updated, and update to the latest program organization unit file in time for browsing.

[0035] Optionally, the steps of replacing the original program organization unit file stored in the network device with the edited program organization unit file, adding one to the version number of the program organization unit file in the network device and taking the result after modulo as the latest version number, and removing the user information corresponding to the upload request in the modified status user information will not be interrupted by other users.

[0037] Optionally, the method further includes:

[0038] When a third status update request is received from the terminal or the first status notification is not received within a set time, the user information corresponding to the third status update request or the first status notification is removed from the browsing status user information; wherein, the third status update request indicates that the program organization unit file has been closed; and the first status notification is used to determine that the user who opened the program organization unit file is still in a browsing state.

[0039] On the other hand, an embodiment of the present invention further provides a multi-person collaboration device of a programmable logic controller, comprising:

[0040] A first sending module is used to respond to a program organization unit file opening instruction, display the interface of the program organization unit file and send a first status update request to the network device, so that the network device performs an operation of adding browsing status user information; the browsing status user information is used to store user information that is in the state of browsing the program organization unit file;

[0041] A second sending module is used to send a second status update request to the network device in response to the program organization unit file editing instruction, so that the network device performs an adding operation of modifying the state user information; the modifying state user information is used to store the user information that is in the state of editing the program organization unit file;

[0042] The display module is used to receive the modification status user information sent by the network device, and based on the modification status user information, display the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated.

[0043] On the other hand, an embodiment of the present invention further provides a multi-person collaboration device of a programmable logic controller, comprising:

[0044] A first receiving module is used to receive a first status update request sent by a terminal, and add user information corresponding to the first status update request to browsing status user information; the first status update request indicates that the program organization unit file has been opened; the browsing status user information is used to store user information that is in the state of browsing the program organization unit file;

[0045] A second receiving module is used to receive a second status update request sent by the terminal, and add user information corresponding to the second status update request to the modification status user information; the second status update request indicates that the program organization unit file has been edited; the modification status user information is used to store user information that is in the state of editing the program organization unit file;

[0046] The sending module is used to send the modifying state user information to all users in the browsing state user information, so that each user's terminal displays all user information in the state of editing the program organization unit file.

[0047] On the other hand, an embodiment of the present invention further provides a multi-person collaboration system of a programmable logic controller, comprising:

[0048] A terminal, for responding to a program organization unit file opening instruction, displaying the interface of the program organization unit file and sending a first status update request to a network device, so that the network device performs an operation of adding browsing status user information; the browsing status user information is used to store user information that is in a state of browsing the program organization unit file; in response to a program organization unit file editing instruction, sending a second status update request to the network device, so that the network device performs an operation of adding modification status user information; the modification status user information is used to store user information that is in a state of editing the program organization unit file; receiving the modification status user information sent by the network device, and displaying the user information that is in a state of editing the program organization unit file and displaying information that the program organization unit file has been updated based on the modification status user information;

[0049] A network device, used for receiving a first status update request sent by the terminal, adding user information corresponding to the first status update request to browsing status user information; the first status update request indicates that a program organization unit file has been opened; the browsing status user information is used to store user information that is in a state of browsing the program organization unit file; receiving a second status update request sent by the terminal, adding user information corresponding to the second status update request to modifying status user information; the second status update request indicates that a program organization unit file has been edited; the modifying status user information is used to store user information that is in a state of editing the program organization unit file; sending the modifying status user information to all users in the browsing status user information, so that each of the user's terminals displays all user information that is in a state of editing the program organization unit file;

[0050] A programmable logic controller device is used to execute the executable program sent by the terminal; the executable program is obtained by the network device through a compiling operation based on the program organization unit file.

[0051] On the other hand, the present invention also provides a machine-readable storage medium having a computer program stored thereon, which implements the multi-person collaboration method of the above-mentioned programmable logic controller when executed by a processor.

[0052] On the other hand, the present invention also provides a computer program product, including a computer program, which implements the multi-person collaboration method of the above-mentioned programmable logic controller when executed by a processor.

[0053] Through the above technical scheme, when the terminal of the embodiment of the present invention opens and edits a program organization unit file, the browsing status user information of the network device is used to store the user information that is in the state of browsing the program organization unit file, and the modification status user information is used to store the user information that is in the state of editing the program organization unit file, and by receiving and displaying the modification status user information, the embodiment of the present invention realizes the perception of the editing status of other users when the terminal edits the program organization unit file, that is, it realizes the observation of how many users are currently modifying the project file, which is conducive to multi-user synchronous development.

[0054] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0056] Figure 1 It is one of the flow charts of the multi-person collaboration method of the programmable logic controller provided by the present invention;

[0057] Figure 2 It is a structural diagram of the existing client / server architecture PLC software system;

[0058] Figure 3 This is the second flow chart of the multi-person collaboration method of the programmable logic controller provided by the present invention;

[0059] Figure 4 This is the third flow chart of the multi-person collaboration method of the programmable logic controller provided by the present invention;

[0060] Figure 5 This is a fourth flow chart of the multi-person collaboration method of a programmable logic controller provided by the present invention;

[0061] Figure 6 It is a structural schematic diagram of a multi-person collaboration system of a programmable logic controller provided by the present invention;

[0062] Figure 7 It is one of the structural schematic diagrams of the multi-person collaboration device of the programmable logic controller provided by the present invention;

[0063] Figure 8 This is the second structural schematic diagram of the multi-person collaboration device of the programmable logic controller provided by the present invention. DETAILED DESCRIPTION

[0064] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0065] Please refer to Figure 2 The traditional PLC software system architecture is generally a client / server architecture (Client / Server, C / S). In the traditional C / S architecture PLC software system, users connect to the PLC device through the client software installed on the host computer to perform related operations. The PLC device stores the original project file, and each client saves a copy of the project file. The software system uses the PLC device as an intermediary unit to synchronize the version of the project file copy data in each client.

[0066] Among them, when multiple users are editing in a PLC software system based on a C / S architecture, a certain user cannot perceive the editing status of other users, that is, the user cannot observe how many users are currently modifying the project file, which is not conducive to the synchronous development status of multiple users.

[0067] In view of this, an embodiment of the present invention proposes a multi-person collaboration method, device and system for a programmable logic controller, so as to solve the defect that when multiple users are editing a traditional PLC, a certain user cannot perceive the editing status of other users, that is, the user cannot observe how many users are currently modifying the project file, which is not conducive to the synchronous development status of multiple users.

[0068] Method Embodiment

[0069] Please refer to Figure 1 The embodiment of the present invention provides a multi-person collaboration method of a programmable logic controller, which is applied to a terminal. The method includes:

[0070] Step 101: In response to a program organization unit file opening instruction, an interface of the program organization unit file is displayed and a first status update request is sent to a network device, so that the network device performs an operation of adding browsing status user information.

[0071] The embodiment of the present invention is constructed based on the browser / server (B / S) architecture. Among them, the program organization unit (POU) connects the browser of the terminal to the server through the full-duplex WebSocket protocol to synchronize the POU status. The user logs in to the PLC host computer software system in the browser of the terminal, clicks the program organization unit file (POU file for short) under the project directory, and the browser of the terminal responds to the program organization unit file opening instruction, displays the interface of the program organization unit file, and enters its browsing view page. At this time, the browser sends a first status update request to the server to the network device. After receiving the first status update request, the network device will add the user information of the first status update request to the browsing status user information of the program organization unit file, and send the relevant attribute information of the POU file (such as version number, browsing status user information) to the browser of the terminal. Among them, the network device can be a server, and the network device of the embodiment of the present invention is described by taking the server as an example. The user information in the browsing status user information can be stored in a list, that is, a browsing status user list is obtained. The version number represents the current version of the POU file, which is represented by a modulo long integer.

[0072] The browsing status user information is used to store the user information that is browsing the program organization unit file. That is, the browsing status user list stores the user that is browsing the POU file, that is, the active user who opens the view window of the POU file through the browser. After the user opens the window, the user information (such as the user name) will be added to the browsing status user list, and will be removed from the browsing status user list after the window is closed.

[0073] Step 103: In response to the program organization unit file editing instruction, send a second status update request to the network device, so that the network device performs an adding operation of modifying the status user information.

[0074] The user starts to edit the program organization unit file on the browsing view page. At this time, the terminal browser responds to the program organization unit file editing instruction and sends a second status update request to the server. After receiving the request, the server adds the user information (such as user name) corresponding to the second status update request to the modified status user information of the program organization unit file.

[0075] The modification status user information is used to store user information that is in the state of editing the program organization unit file. The modification status user information can be stored in a list, that is, a modification status user list is obtained. That is, the modification status user list saves users that are in the state of modifying the program organization unit file. When the user starts to edit the view window of the opened program organization unit file in the browser, the user information (such as the user name) will be added to the modification status user list, and will be removed from the modification status user list after the edit is saved or the window is closed.

[0076] Step 105: Receive the modification status user information sent by the network device, and based on the modification status user information, display the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated.

[0077] The browser of the terminal receives the list of users in the modification status sent by the server, and the user browser program that receives the message push dynamically renders the front-end page, and displays which users are currently modifying or editing the program organization unit file in the browsing page, and displays the information that the program organization unit file has been updated. For example, the browser of the current user A directly displays that users B and C are editing the program organization unit file through the corresponding information prompt on the page, and displays the information that the program organization unit file has been updated, and dynamically refreshes.

[0078] When a terminal in an embodiment of the present invention opens and edits a program organization unit file, the browsing status user information of the network device stores the user information that is in the state of browsing the program organization unit file, and the modification status user information stores the user information that is in the state of editing the program organization unit file. By receiving and displaying the modification status user information, the embodiment of the present invention realizes the perception of the editing status of other users when the terminal edits the program organization unit file, that is, it realizes the observation of how many users are currently modifying the project file, which is conducive to multi-user synchronous development.

[0079] For other aspects of the embodiments of the present invention, please refer to Figure 3 , step 101, in response to the program organization unit file opening instruction, displaying the interface of the program organization unit file and sending the first status update request to the network device, further comprising:

[0080] Step 102: Periodically send a first status notification to the network device, so that the network device determines that the user who opens the program organization unit file is still in a browsing state.

[0081] Specifically, the browser of the terminal can send the first status notification to the server regularly and periodically (for example, every 2 minutes) so that the server can determine that the user who opens the program organization unit file is still in the browsing state. In other words, by setting the heartbeat mechanism, the browsing state user list is maintained to prevent the offline user from being removed from the browsing state user list due to network or other reasons.

[0082] For other aspects of the embodiments of the present invention, please refer to Figure 3 , after step 105, receiving the modification status user information sent by the network device, and displaying the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated based on the modification status user information, it also includes:

[0083] Step 106: Periodically send a second status notification to the network device, so that the network device determines that the user who edits the program organization unit file editing instruction is still in the editing state.

[0084] Specifically, the browser of the terminal can send the second status notification to the server regularly and periodically (for example, every 2 minutes) to enable the server to determine that the user who opened the program organization unit file is still in the editing state. In other words, by setting the heartbeat mechanism, the list of users in the modified state is maintained to prevent the offline user from being removed from the list of users in the modified state due to network or other reasons.

[0085] For other aspects of the embodiments of the present invention, please refer to Figure 3 Step 105, after receiving the modification status user information sent by the network device, and displaying the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated based on the modification status user information, includes:

[0086] Step 107: In response to a save instruction of a program organization unit file, the edited program organization unit file and the version number corresponding to the program organization unit file are sent to the network device.

[0087] After the user completes the editing, the editing result can be saved. When the user saves the editing result, the terminal responds to the save instruction of the program organization unit file and sends the edited program organization unit file and the version number corresponding to the program organization unit file to the network device, so that the server first compares the stored program organization unit file version number with the version number corresponding to the program organization unit file in the terminal.

[0088] Step 109: receive the prompt information sent by the network device, and display a selection control based on the prompt information; the prompt information indicates that the version number corresponding to the program organization unit file is smaller than the version number of the program organization unit file in the network device, and the selection control is used to provide a download instruction for the program organization unit file in the network device or an upload instruction for the edited program organization unit file.

[0089] If the version number of the program organization unit file in the terminal is less than the version number in the server, the prompt information sent by the server to the terminal browser indicates that the version number corresponding to the program organization unit file is less than the version number of the program organization unit file in the network device. The browser displays a selection control based on the prompt information. For example, through a pop-up window or a dialog box, the browser sends a prompt to the user, allowing him to choose whether to upload and overwrite the program organization unit file in the server (select the upload instruction of the edited program organization unit file) or download and overwrite the program organization unit file saved in the local browser (select the download instruction of the program organization unit file in the network device). Thus, the embodiment of the present invention uses a version number comparison mechanism to save the modification results without forcibly refreshing other users' local copies, and the user can freely choose to keep the server version or the local browser version when saving. Solve the problem that when a user saves and modifies, the project files of other users will be forced to refresh, regardless of whether they are in a modified state, which may cause the loss of user modified content.

[0090] In addition, if the user chooses to download, the browser will request the latest program organization unit file from the server to update the local data.

[0091] For other aspects of the embodiments of the present invention, please refer to Figure 3 , step 109, after receiving the prompt information sent by the network device and displaying the selection control based on the prompt information, it also includes:

[0092] Step 111 : In response to an upload instruction of the selection control, an upload request is sent to a network device, so that the network device executes information update based on the edited program organization unit file and the updated version number.

[0093] Step 113: Receive the latest version number of the program organization unit file sent by the network device.

[0094] If the user chooses to upload, in response to the upload instruction of the selection control, an upload request is sent to the network device, and the server overwrites and saves based on the upload request, and adds one and modulo the version number value of the program organization unit file stored in the server to update the version number and the modified status user list. That is, the server will overwrite the original program organization unit file stored in the server with the edited program organization unit file, use the version number updated by the server as the latest version number, and remove the user information corresponding to the upload request from the modified status user information. The server then sends the latest version number to all users in the browsing state in the browsing state user information, so that the terminal in the browsing state can determine whether it is currently browsing the latest version. If not, a prompt message will be displayed.

[0095] By sending the upload request to the network device, the user can freely choose the local browser version when saving. The embodiment of the present invention solves the problem that when a user saves and modifies, the project files of other users will be forced to refresh, regardless of whether they are in the modification state, which may cause the loss of the user's modified content.

[0096] For other aspects of the embodiments of the present invention, please refer to Figure 3 , the method further comprises:

[0097] Step 115: In response to an executable program download instruction, receive the executable program sent by the network device; the executable program is compiled by the network device based on the program organization unit file.

[0100] Step 117: Send the executable program to a programmable logic controller device.

[0101] After the user has finished editing the program organization unit file, the program can be compiled. The object of the compilation is the program organization unit file stored in the server. After the user clicks download, the server will first upload the executable program compiled from the program organization unit file to the user's browser, and then download it to the connected programmable logic controller device through the browser.

[0102] Among them, when the program organization unit file is being compiled, the other devices that are communicatively connected to the network device cannot perform the compilation operation of the program organization unit file; when the download instruction is responded to, the other devices that are communicatively connected to the network device cannot perform the download operation of the executable program. In other words, the compilation process is a mutually exclusive operation, and only one user is allowed to compile. After the user completes the compilation, the PLC device can be connected, and then the compiled executable program can be downloaded to the PLC controller and scheduled for execution by the RTS program. The embodiment of the present invention allows multiple users to connect to the PLC device at the same time for data monitoring, but the user download process is a mutually exclusive action, and only one user is allowed to download.

[0103] For other aspects of the embodiments of the present invention, please refer to Figure 3 , the method further comprises:

[0104] Step 119: In response to a closing instruction of the program organization unit file, close the interface of the program organization unit file, and send a third status update request to the network device, so that the network device executes a removal operation of the browsing status user information.

[0105] When the user finishes the operation on the program organization unit file, he can close his browsing view page. The browser responds to the closing instruction of the program organization unit file. At this time, the browser will send a third status update request to the server. After receiving the request, the server will remove the user information (such as user name) from the browsing status user list of the POU, indicating that the user is no longer in the browsing state, so there is no need to push status update information to him.

[0106] On the other hand, please refer to Figure 4 The embodiment of the present invention further provides a multi-person collaboration method of a programmable logic controller, which is applied to a network device, and the method includes:

[0107] Step 201: Receive a first status update request sent by a terminal, and add user information corresponding to the first status update request to browsing status user information. The first status update request indicates that a program organization unit file has been opened; the browsing status user information is used to store user information that is browsing the program organization unit file.

[0108] In the embodiment of the present invention, the network device uses a server, and the program organization unit file on the server side is identified by the version number, browsing status user list, and modification status user list. When the user opens the program organization unit file in the terminal browser, the browser sends a first status update request to the server. After receiving the first status update request, the server will add the user to the browsing status user list of the program organization unit file, and send the relevant attribute information of the POU file (such as version number, browsing status user information) to the browser of the terminal. The user browser in the window open state will periodically send a status notification to the server, so that the server can determine that the user is still in the browsing state.

[0109] Step 203, receive a second status update request sent by the terminal, and add user information corresponding to the second status update request to the modified status user information; the second status update request indicates that the program organization unit file has been edited; the modified status user information is used to store user information that is in the state of editing the program organization unit file.

[0110] The user starts to edit the program organization unit file on the browsing view page. At this time, the terminal browser responds to the program organization unit file editing instruction and sends a second status update request to the server. After receiving the request, the server adds the user information (such as user name) corresponding to the second status update request to the modified status user information of the program organization unit file.

[0111] The modification status user information is used to store user information that is in the state of editing the program organization unit file. The modification status user information can be stored in a list, that is, a modification status user list is obtained. That is, the modification status user list stores users that are in the state of modifying the program organization unit file. When the user starts to edit the view window of the opened program organization unit file in the browser, the user information (such as user name) will be added to the modification status user list.

[0112] Step 205: Send the modification status user information to all users in the browsing status user information, so that each user's terminal displays all user information that is in the state of editing the program organization unit file.

[0113] The server also pushes the modification status user list to all users in the browsing status user list through the WebSocket protocol. The browser program of the user who receives the message push dynamically renders the front-end page, and displays which users are currently making modifications on the browsing page of the program organization unit file, as well as information that the program organization unit file has been updated. The browser of the user in the modification status will periodically send status notifications to the server, so that the server can determine that the user is still in the modification status.

[0114] When a terminal in an embodiment of the present invention opens and edits a program organization unit file, the browsing status user information of the network device stores the user information that is in the state of browsing the program organization unit file, and the modification status user information stores the user information that is in the state of editing the program organization unit file. By receiving and displaying the modification status user information, the embodiment of the present invention realizes the perception of the editing status of other users when the terminal edits the program organization unit file, that is, it realizes the observation of how many users are currently modifying the project file, which is conducive to multi-user synchronous development.

[0115] For other aspects of the embodiments of the present invention, please refer to Figure 5 After step 205, sending the modification status user information to all users in the browsing status user information, the method further includes:

[0116] Step 207: Receive the edited program organization unit file and the version number corresponding to the program organization unit file sent by the terminal.

[0117] Step 209: When the update version number is smaller than the version number of the program organization unit file in the network device, send a prompt message to the terminal.

[0118] When the user modifies the program organization unit file and saves the result, the edited program organization unit file and the updated version number are sent to the server. The server first compares the version number of the stored program organization unit file with the version number of the program organization unit file sent by the terminal. If the version number of the program organization unit file in the browser is smaller than the version number in the server, it means that the program organization unit file in the server is the latest version, and a prompt message is sent to the terminal, indicating that the program organization unit file in the server is the latest version. The browser thus sends a prompt to the user, allowing him to choose whether to upload and overwrite these program organization unit files in the server, or download and overwrite the program organization unit files saved in the local browser.

[0119] Therefore, the embodiment of the present invention uses the version number comparison mechanism to save the modification results without forcibly refreshing other users' local copies, and the user can freely choose whether to keep the server version or the local browser version when saving. This solves the problem that when a user saves the modification, the project files of other users will be forced to refresh, regardless of whether they are in the modification state, which may cause the loss of the user's modified content.

[0120] For other aspects of the embodiments of the present invention, please refer to Figure 5 After step 209, sending the prompt information to the terminal, the method further includes:

[0121] Step 211, receive the upload request sent by the terminal, replace the original program organization unit file stored in the network device with the edited program organization unit file, add one to the version number of the program organization unit file in the network device and take the result after modulo as the latest version number, and remove the user information corresponding to the upload request in the modification status user information; the upload request indicates that the terminal uploads the edited program organization unit file to the network device.

[0122] Step 213: Send update prompt information and the latest version number to all users in the browsing status user information to prompt that the program organization unit file has been updated and update to the latest program organization unit file in time for browsing.

[0123] If the user chooses to upload, the browser sends an upload request to the network device, and the server overwrites and saves based on the upload request, and updates the version number and the modified status user list. That is, the server will overwrite the original program organization unit file stored in the server with the edited program organization unit file, add one to the version number of the program organization unit file in the server and take the result after modulo as the latest version number, and remove the user information corresponding to the upload request from the modified status user information. The server then pushes update prompt information and the latest version number to all users in the browsing status list through the WebSocket protocol, prompting them that the program organization unit file they are browsing has been updated and they should refresh and load the latest version project in time to achieve status synchronization of the program organization unit file when multiple people are editing.

[0126] In addition, the steps of replacing the original program organization unit file stored in the network device with the edited program organization unit file, adding one to the version number of the program organization unit file in the network device and taking the result after modulo as the latest version number, and removing the user information corresponding to the upload request in the modified status user information will not be interrupted by other users.

[0127] In the embodiment of the present invention, the modification of the program organization unit file and its attribute identifiers, namely, the version number, the browsing status user list, and the modification status user list, in the server is a transactional atomic operation with a mutually exclusive characteristic. When the server performs a save operation, the process of modifying the version number and the modification status user list when saving the program organization unit file will not be interrupted by other users.

[0128] In addition, the process of user program compilation and downloading program to PLC hardware device is also mutually exclusive. When one user is compiling, other users are not allowed to compile at the same time. When one user is downloading program to PLC hardware device, other users are not allowed to download at the same time.

[0129] For other aspects of the present invention, please refer to Figure 5 , the method further comprises:

[0130] Step 215: When a third status update request is received from the terminal or the first status notification is not received within a set time, the user information corresponding to the third status update request or the first status notification is removed from the browsing status user information; wherein, the third status update request indicates that the program organization unit file has been closed; and the first status notification is used to determine that the user who opened the program organization unit file is still in a browsing state.

[0131] When the user finishes the operation on the program organization unit file, he can close the browsing view page. At this time, the browser will send a third status update request to the server. After receiving the request, the server will remove the user information from the browsing status user list of the program organization unit file. In addition, if the user fails to send a status update request to the server due to browser crash, network failure or abnormal operation, the server will remove the user information from the browsing status user list of the program organization unit file after not monitoring the user status for a period of time (i.e. within the set time), thereby restoring the initial state, indicating that the user is no longer in the browsing state, avoiding affecting other users' editing.

[0132] On the other hand, please refer to Figure 6 The embodiment of the present invention further provides a multi-person collaboration system of a programmable logic controller, comprising:

[0133] A terminal, for responding to a program organization unit file opening instruction, displaying the interface of the program organization unit file and sending a first status update request to a network device, so that the network device performs an operation of adding browsing status user information; the browsing status user information is used to store user information that is in a state of browsing the program organization unit file; in response to a program organization unit file editing instruction, sending a second status update request to the network device, so that the network device performs an operation of adding modification status user information; the modification status user information is used to store user information that is in a state of editing the program organization unit file; receiving the modification status user information sent by the network device, and displaying the user information that is in a state of editing the program organization unit file and displaying information that the program organization unit file has been updated based on the modification status user information;

[0134] A network device, used for receiving a first status update request sent by the terminal, adding user information corresponding to the first status update request to browsing status user information; the first status update request indicates that a program organization unit file has been opened; the browsing status user information is used to store user information that is in a state of browsing the program organization unit file; receiving a second status update request sent by the terminal, adding user information corresponding to the second status update request to modifying status user information; the second status update request indicates that a program organization unit file has been edited; the modifying status user information is used to store user information that is in a state of editing the program organization unit file; sending the modifying status user information to all users in the browsing status user information, so that each of the user's terminals displays all user information that is in a state of editing the program organization unit file;

[0135] A programmable logic controller device is used to execute the executable program sent by the terminal; the executable program is obtained by the network device through a compiling operation based on the program organization unit file.

[0136] In the embodiment of the present invention, the user connects the PLC device (programmable logic controller device, abbreviated as PLC) and the server through the browsers (browser 1, 2, 3, ...) of multiple terminals, and respectively interacts with the RTS program in the PLC device and the service program in the server. The background server provides background operation functions such as storage of project files and program compilation, and the user's browser saves a copy of the project file cache.

[0137] When a terminal in an embodiment of the present invention opens and edits a program organization unit file, the browsing status user information of the network device stores the user information that is in the state of browsing the program organization unit file, and the modification status user information stores the user information that is in the state of editing the program organization unit file. By receiving and displaying the modification status user information, the embodiment of the present invention realizes the perception of the editing status of other users when the terminal edits the program organization unit file, that is, it realizes the observation of how many users are currently modifying the project file, which is conducive to multi-user synchronous development.

[0138] After the user has finished editing the program organization unit file, the program can be compiled. The object of the compilation is the program organization unit file stored in the server. After the user clicks download, the server will first upload the executable program compiled from the program organization unit file to the user's browser, and then download it to the connected programmable logic controller device through the browser.

[0139] Device Embodiment

[0140] Please refer to Figure 7On the other hand, an embodiment of the present invention further provides a multi-person collaboration device of a programmable logic controller, comprising:

[0141] The first sending module 701 is used to respond to the program organization unit file opening instruction, display the interface of the program organization unit file and send a first status update request to the network device, so that the network device performs an operation of adding browsing status user information; the browsing status user information is used to store user information that is in the state of browsing the program organization unit file;

[0142] The second sending module 702 is used to send a second status update request to the network device in response to the program organization unit file editing instruction, so that the network device performs an adding operation of modifying the state user information; the modifying state user information is used to store the user information in the state of editing the program organization unit file;

[0143] The display module 703 is used to receive the modification status user information sent by the network device, and display the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated based on the modification status user information.

[0144] Optionally, the device further comprises:

[0145] A saving module, configured to send the edited program organization unit file and a version number corresponding to the program organization unit file to the network device in response to a saving instruction of the program organization unit file;

[0146] A first receiving module is used to receive a prompt message sent by the network device, and to display a selection control based on the prompt message; the prompt message indicates that the version number corresponding to the program organization unit file is smaller than the version number of the program organization unit file in the network device, and the selection control is used to provide a download instruction for the program organization unit file in the network device or an upload instruction for the edited program organization unit file.

[0147] Optionally, the device further comprises:

[0148] The upload module sends an upload request to the network device in response to the upload instruction of the selection control, so that the network device executes information update based on the edited program organization unit file.

[0149] The second receiving module is used to receive the latest version number of the program organization unit file sent by the network device.

[0150] Optionally, the device further comprises:

[0151] A download module, configured to receive the executable program sent by the network device in response to a download instruction of the executable program; the executable program is compiled by the network device based on the program organization unit file;

[0152] A third sending module, used for sending the executable program to a programmable logic controller device;

[0153] Among them, when the program organization unit file is being compiled, the remaining devices connected to the network device for communication cannot perform the compilation operation of the program organization unit file; when the download instruction is responded to, the remaining devices connected to the network device for communication cannot perform the download operation of the executable program.

[0155] Optionally, the device further comprises:

[0156] The closing module is used to respond to the closing instruction of the program organization unit file, close the interface of the program organization unit file, and send a third status update request to the network device to enable the network device to perform a removal operation of the browsing status user information.

[0157] Optionally, the device further comprises:

[0158] The fourth sending module is used to periodically send a first status notification to the network device, so that the network device determines that the user who opens the program organization unit file is still in a browsing state.

[0159] Optionally, the device further comprises:

[0160] The fifth sending module periodically sends a second status notification to the network device, so that the network device determines that the user who edits the program organization unit file editing instruction is still in the editing state.

[0161] The multi-person collaboration device of the programmable logic controller includes a processor and a memory. The first sending module 701, the second sending module 702 and the display module 703 are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.

[0162] The processor includes a kernel, which calls the corresponding program unit from the memory. There can be one or more kernels.

[0163] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0164] On the other hand, please refer to Figure 8 The embodiment of the present invention further provides a multi-person collaboration device of a programmable logic controller, comprising:

[0165] The first receiving module 801 is used to receive a first status update request sent by a terminal, and add user information corresponding to the first status update request to browsing status user information; the first status update request indicates that the program organization unit file has been opened; the browsing status user information is used to store user information that is in the state of browsing the program organization unit file;

[0166] The second receiving module 802 is used to receive a second status update request sent by the terminal, and add user information corresponding to the second status update request to the modification status user information; the second status update request indicates that the program organization unit file has been edited; the modification status user information is used to store user information that is in the state of editing the program organization unit file;

[0167] The first sending module 803 is used to send the modifying state user information to all users in the browsing state user information, so that each user's terminal displays all user information in the state of editing the program organization unit file.

[0168] Optionally, the device further comprises:

[0169] A third receiving module, used for receiving the edited program organization unit file and the version number corresponding to the program organization unit file sent by the terminal;

[0170] The second sending module is used to send a prompt message to the terminal when the version number is smaller than the version number of the program organization unit file in the network device.

[0171] Optionally, after sending the prompt information to the terminal, the method further includes:

[0172] a fourth receiving module, configured to receive an upload request sent by the terminal, replace the original program organization unit file stored in the network device with the edited program organization unit file, add one to the version number of the program organization unit file in the network device and take the result after modulo as the latest version number, and remove the user information corresponding to the upload request from the modification status user information; the upload request indicates that the terminal uploads the edited program organization unit file to the network device;

[0173] The third sending module is used to send update prompt information and the latest version number to all users in the browsing status user information to prompt that the program organization unit file has been updated and update to the latest program organization unit file in time for browsing.

[0174] Optionally, the steps of replacing the original program organization unit file stored in the network device with the edited program organization unit file, adding one to the version number of the program organization unit file in the network device and taking the result after modulo as the latest version number, and removing the user information corresponding to the upload request in the modified status user information will not be interrupted by other users.

[0175] Optionally, the device further comprises:

[0176] A removal module is used to remove the user information corresponding to the third status update request or the first status notification from the browsing status user information when the third status update request sent by the terminal is received or the first status notification is not received within a set time; wherein the third status update request indicates that the program organization unit file has been closed; and the first status notification is used to determine that the user who opened the program organization unit file is still in the browsing status.

[0177] The multi-person collaboration device of the programmable logic controller includes a processor and a memory. The first receiving module 801, the second receiving module 802 and the sending module 803 are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.

[0178] The processor includes a kernel, which calls the corresponding program unit from the memory. There can be one or more kernels.

[0179] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0180] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a machine-readable storage medium. When the computer program is executed by a processor, the computer can execute a multi-person collaboration method of a programmable logic controller, the method including: in response to a program organization unit file opening instruction, displaying the interface of the program organization unit file and sending a first status update request to a network device, so that the network device performs an operation of adding browsing status user information; the browsing status user information is used to store user information that is in a state of browsing the program organization unit file; in response to a program organization unit file editing instruction, sending a second status update request to the network device, so that the network device performs an operation of adding modification status user information; the modification status user information is used to store user information that is in a state of editing the program organization unit file; receiving the modification status user information sent by the network device, and based on the modification status user information The information displays user information that is in the state of editing the program organization unit file and information that the program organization unit file has been updated; or, a first status update request sent by a receiving terminal is added, and the user information corresponding to the first status update request is added to the browsing status user information; the first status update request indicates that the program organization unit file has been opened; the browsing status user information is used to store user information that is in the state of browsing the program organization unit file; a second status update request sent by the terminal is received, and the user information corresponding to the second status update request is added to the modification status user information; the second status update request indicates that the program organization unit file has been edited; the modification status user information is used to store user information that is in the state of editing the program organization unit file; the modification status user information is sent to all users in the browsing status user information, so that each of the user's terminals displays all user information that is in the state of editing the program organization unit file.

[0181] On the other hand, the present invention also provides a machine-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a multi-person collaboration method for executing a programmable logic controller, the method comprising: in response to a program organization unit file opening instruction, displaying the interface of the program organization unit file and sending a first status update request to a network device, so that the network device performs an operation of adding browsing status user information; the browsing status user information is used to store user information that is in a state of browsing the program organization unit file; in response to a program organization unit file editing instruction, sending a second status update request to the network device, so that the network device performs an operation of adding modifying status user information; the modifying status user information is used to store user information that is in a state of editing the program organization unit file; receiving the modifying status user information sent by the network device, and displaying the user information that is in a state of editing the program organization unit file based on the modifying status user information. The method comprises the following steps: receiving a first status update request sent by a terminal, adding user information corresponding to the first status update request to browsing status user information; the first status update request indicates that the program organization unit file has been opened; the browsing status user information is used to store user information that is in the state of browsing the program organization unit file; receiving a second status update request sent by the terminal, adding user information corresponding to the second status update request to modifying status user information; the second status update request indicates that the program organization unit file has been edited; the modifying status user information is used to store user information that is in the state of editing the program organization unit file; sending the modifying status user information to all users in the browsing status user information, so that each terminal of the user displays all user information that is in the state of editing the program organization unit file.

[0182] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0183] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0184] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A multi-person collaboration method for a programmable logic controller, characterized in that: Applied to a terminal, the method comprises: In response to a program organization unit file opening instruction, displaying the interface of the program organization unit file and sending a first status update request to a network device, so that the network device performs an operation of adding browsing status user information; the browsing status user information is used to store user information that is in a state of browsing the program organization unit file; In response to the program organization unit file editing instruction, a second status update request is sent to the network device, so that the network device performs an adding operation of modifying the state user information; the modifying state user information is used to store the user information that is in the state of editing the program organization unit file; The modification status user information sent by the network device is received, and based on the modification status user information, user information in a state of editing the program organization unit file and information that the program organization unit file has been updated are displayed.

2. The multi-person collaboration method of a programmable logic controller according to claim 1, characterized in that: After receiving the modification status user information sent by the network device, and displaying the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated based on the modification status user information, the method further comprises: In response to a save instruction of a program organization unit file, sending the edited program organization unit file and a version number corresponding to the program organization unit file to the network device; Receive a prompt message sent by the network device, and display a selection control based on the prompt message; the prompt message indicates that the version number corresponding to the program organization unit file is smaller than the version number of the program organization unit file in the network device, and the selection control is used to provide a download instruction for the program organization unit file in the network device or an upload instruction for the edited program organization unit file.

3. The multi-person collaboration method of a programmable logic controller according to claim 2, characterized in that: After receiving the prompt information sent by the network device and displaying the selection control based on the prompt information, the method further includes: In response to an upload instruction of the selection control, sending an upload request to a network device so that the network device performs information update based on the edited program organization unit file; Receive the latest version number of the program organization unit file sent by the network device.

4. The multi-person collaboration method of a programmable logic controller according to claim 1, characterized in that: The method further comprises: In response to an executable program download instruction, receiving the executable program sent by the network device; the executable program is compiled by the network device based on the program organization unit file; sending the executable program to a programmable logic controller device; Among them, when the program organization unit file is being compiled, the remaining devices connected to the network device for communication cannot perform the compilation operation of the program organization unit file; when the download instruction is responded to, the remaining devices connected to the network device for communication cannot perform the download operation of the executable program.

5. The multi-person collaboration method of a programmable logic controller according to claim 1, characterized in that: The method further comprises: In response to a closing instruction of the program organization unit file, the interface of the program organization unit file is closed, and a third status update request is sent to the network device, so that the network device executes a removal operation of the browsing status user information.

6. The multi-person collaboration method of a programmable logic controller according to claim 1, characterized in that: After the program organization unit file opening instruction is responded to, the interface of the program organization unit file is displayed and the first status update request is sent to the network device, the method further includes: A first status notification is periodically sent to the network device, so that the network device determines that the user who opens the program organization unit file is still in a browsing state.

7. The multi-person collaboration method of a programmable logic controller according to claim 1, characterized in that: After receiving the modification status user information sent by the network device, and displaying the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated based on the modification status user information, the method further includes: A second status notification is periodically sent to the network device, so that the network device determines that the user who edits the program organization unit file editing instruction is still in the editing state.

8. A multi-person collaboration method for a programmable logic controller, characterized in that: Applied to a network device, the method comprises: receiving a first status update request sent by a terminal, and adding user information corresponding to the first status update request to browsing status user information; the first status update request indicates that the program organization unit file has been opened; the browsing status user information is used to store user information that is in a state of browsing the program organization unit file; receiving a second status update request sent by the terminal, and adding user information corresponding to the second status update request to the modification status user information; the second status update request indicates that the program organization unit file has been edited; the modification status user information is used to store user information that is in the state of editing the program organization unit file; The modification state user information is sent to all users in the browsing state user information, so that each user's terminal displays all user information in the state of editing the program organization unit file.

9. The multi-person collaboration method of a programmable logic controller according to claim 8, characterized in that: After sending the modification status user information to all users in the browsing status user information, the method further includes: Receiving the edited program organization unit file and the version number corresponding to the program organization unit file sent by the terminal; When the version number is smaller than the version number of the program organization unit file in the network device, a prompt message is sent to the terminal.

10. The multi-person collaboration method of a programmable logic controller according to claim 9, characterized in that: After sending the prompt information to the terminal, the method further includes: receiving an upload request sent by the terminal, replacing the original program organization unit file stored in the network device with the edited program organization unit file, adding one to the version number of the program organization unit file in the network device and taking the result after modulo as the latest version number, and removing the user information corresponding to the upload request from the modification status user information; the upload request indicates that the terminal uploads the edited program organization unit file to the network device; Send update prompt information and the latest version number to all users in the browsing status user information to prompt that the program organization unit file has been updated, and update to the latest program organization unit file in time for browsing.

11. The multi-person collaboration method of a programmable logic controller according to claim 10, characterized in that: The steps of replacing the original program organization unit file stored in the network device with the edited program organization unit file, adding one to the version number of the program organization unit file in the network device and taking the result after modulo as the latest version number, and removing the user information corresponding to the upload request in the modified status user information will not be interrupted by other users.

12. The multi-person collaboration method of a programmable logic controller according to claim 8, characterized in that: The method further comprises: When a third status update request is received from the terminal or the first status notification is not received within a set time, the user information corresponding to the third status update request or the first status notification is removed from the browsing status user information; wherein, the third status update request indicates that the program organization unit file has been closed; and the first status notification is used to determine that the user who opened the program organization unit file is still in a browsing state.

13. A multi-person collaboration device of a programmable logic controller, characterized in that: include: A first sending module is used to respond to a program organization unit file opening instruction, display the interface of the program organization unit file and send a first status update request to the network device, so that the network device performs an operation of adding browsing status user information; the browsing status user information is used to store user information that is in the state of browsing the program organization unit file; A second sending module, configured to send a second status update request to the network device in response to the program organization unit file editing instruction, so that the network device performs an adding operation of modifying the status user information; The modification status user information is used to store the user information that is in the state of editing the program organization unit file; The display module is used to receive the modification status user information sent by the network device, and based on the modification status user information, display the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated.

14. A multi-person collaboration device of a programmable logic controller, characterized in that: include: A first receiving module, configured to receive a first status update request sent by a terminal, and add user information corresponding to the first status update request to browsing status user information; The first status update request indicates that the program organization unit file has been opened; The browsing status user information is used to store the browsing status of User information about the status of the program organization unit file; A second receiving module is used to receive a second status update request sent by the terminal, and add user information corresponding to the second status update request to the modified status user information; The second status update request indicates that the program organization unit file has been edited; the modification status user information is used to store user information that is in the state of editing the program organization unit file; The sending module is used to send the modifying state user information to all users in the browsing state user information, so that each user's terminal displays all user information in the state of editing the program organization unit file.

15. A multi-person collaboration system of a programmable logic controller, characterized in that: include: The terminal is used to respond to the program organization unit file opening instruction, display the interface of the program organization unit file and send a first status update request to the network device, so that the network device performs an operation of adding browsing status user information; the browsing status user information is used to store user information that is in the state of browsing the program organization unit file; In response to the program organization unit file editing instruction, a second status update request is sent to the network device, so that the network device performs an adding operation of modifying the state user information; the modifying state user information is used to store the user information that is in the state of editing the program organization unit file; Receiving the modification status user information sent by the network device, and displaying the user information in the state of editing the program organization unit file and the information that the program organization unit file has been updated based on the modification status user information; A network device, configured to receive a first status update request sent by the terminal, and add user information corresponding to the first status update request to browsing status user information; The first status update request indicates that the program organization unit file has been opened; The browsing status user information is used to store the user information that is in the state of browsing the program organization unit file; receiving a second status update request sent by the terminal, and adding user information corresponding to the second status update request to the modified status user information; The second status update request indicates that the program organization unit file has been edited; the modification status user information is used to store user information that is in the state of editing the program organization unit file; the modification status user information is sent to all users in the browsing status user information, so that each user's terminal displays all user information that is in the state of editing the program organization unit file; A programmable logic controller device is used to execute the executable program sent by the terminal; the executable program is obtained by the network device through a compiling operation based on the program organization unit file.

16. A machine-readable storage medium having a computer program stored thereon, characterized in that: The computer program implements the multi-person collaboration method of the programmable logic controller described in any one of claims 1 to 7 when executed by a processor, or implements the multi-person collaboration method of the programmable logic controller described in any one of claims 8 to 12 when executed.

17. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the multi-person collaboration method of a programmable logic controller as described in any one of claims 1 to 5, or implements the multi-person collaboration method of a programmable logic controller as described in any one of claims 8 to 12.