PLC annotation transmission method, device and equipment

By transmitting comments between the PLC device and the host computer device and using standard encoding, the problem of poor readability of PLC programming code is solved, and higher programming readability and maintainability are achieved.

CN118981316AInactive Publication Date: 2024-11-19SHENZHEN GUMEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411472266.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2024-11-19
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The programming code of PLC devices is poorly readable, resulting in increased programming complexity and difficulty in understanding and maintaining.

Method used

By transmitting comments between the PLC device and the host computer device, and using standard encoding methods to encode and decode content, uploading and downloading of comments is realized, and the readability of programming is improved.

Benefits of technology

Through the transmission and decoding of comments, it helps to understand the programming of PLC devices, and improves the readability and maintainability of programming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981316A_ABST
    Figure CN118981316A_ABST
Patent Text Reader

Abstract

The invention discloses a PLC annotation transmission method, device and equipment, and relates to the technical field of communication, and the method comprises the steps: receiving an annotation address request instruction sent by upper computer equipment; acquiring a to-be-uploaded annotation of the PLC equipment according to the annotation address request instruction; performing content coding on the to-be-uploaded annotation in a standard coding mode to obtain a to-be-uploaded annotation code of the to-be-uploaded annotation; and uploading the to-be-uploaded annotation code to the upper computer equipment, so that the upper computer equipment obtains a to-be-uploaded annotation according to the to-be-uploaded annotation code. The annotation is transmitted between the PLC equipment and the upper computer equipment, so that the annotation can be provided for programming of the PLC equipment, the programming is helped to be understood, and the readability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device and equipment for transmitting PLC annotations. Background Art

[0002] PLC (Programmable Logic Controller) and PLC host computer are closely connected in industrial automation systems, and together they constitute the core part of controlling, monitoring and managing the automation process. PLC and PLC host computer work together to achieve stable operation of the automation system. PLC is responsible for the underlying real-time control and signal processing, while the host computer provides advanced data processing, analysis and visualization functions. The PLC host computer is located on the PC side and is used to operate PLC equipment. Due to the large number of PLC manufacturers, each PLC equipment manufacturer has its own set of software, and the internal implementation is not yet public. Therefore, PLC annotations are needed to explain the code to improve the readability of programming.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of this application is to provide a method, device and equipment for transmitting PLC comments, aiming to solve the technical problem of improving code readability.

[0005] To achieve the above object, the present application proposes a method for transmitting PLC comments, which is applied to a programmable logic controller (PLC) device, and the method comprises: Receive the annotation address request command sent by the host device; Obtain the to-be-uploaded annotations of the PLC device according to the annotation address request instruction; Encoding the content of the annotation to be uploaded by a standard encoding method to obtain the annotation code to be uploaded of the annotation to be uploaded; The annotation code to be uploaded is uploaded to the host computer device, so that the host computer device obtains the annotation to be uploaded according to the annotation code to be uploaded.

[0006] In one embodiment, the step of obtaining the to-be-uploaded annotations of the PLC device according to the annotation address request instruction includes: According to the annotation address request instruction, obtain the address of the PLC device to upload the annotation; Generate a comment address reply instruction according to the address of the comment to be uploaded, and send the comment address reply instruction to the host computer device, so that the host computer device generates a comment content request instruction according to the comment address reply instruction and sends it to the PLC device; The annotation content request instruction is received, and the annotations to be uploaded of the PLC device are acquired according to the annotation content request instruction.

[0007] In one embodiment, the method further comprises: Sending an annotation download request instruction to the host computer device, so that the host computer device obtains the annotation to be downloaded according to the annotation download request instruction, encodes the content of the annotation to be downloaded in a standard encoding manner, obtains the annotation code to be downloaded of the annotation to be downloaded, and sends the annotation code to be downloaded to the PLC device; The to-be-downloaded annotation code sent by the host device is received through a communication protocol, and the to-be-downloaded annotation of the host device is obtained according to the to-be-downloaded annotation code.

[0008] In one embodiment, the method is applied to a host computer device, and the method includes: Sending an annotation address request instruction to a PLC device, so that the PLC device obtains the annotation to be uploaded according to the annotation address request instruction, encodes the content of the annotation to be uploaded by a standard encoding method, obtains the annotation code to be uploaded of the annotation to be uploaded, and sends the annotation code to be uploaded to the host computer device; Receive the comment code to be uploaded sent by the PLC device, and obtain the comment to be uploaded of the PLC device according to the comment code to be uploaded.

[0009] In one embodiment, the step of sending a comment address request instruction to a PLC device so that the PLC device obtains the comment to be uploaded according to the comment address request instruction, encoding the content of the comment to be uploaded by a standard encoding method to obtain the comment code to be uploaded of the comment to be uploaded, and sending the comment code to be uploaded to the host computer device includes: Sending an annotation address request instruction to a PLC device so that the PLC device obtains the address of the annotation to be uploaded, generating an annotation address reply instruction according to the address of the annotation to be uploaded, and sending the annotation address reply instruction to the host computer device; Receive the comment address reply instruction sent by the PLC device, generate a comment content request instruction according to the comment address reply instruction, send the comment content request instruction to the PLC device, so that the PLC device obtains the comments to be uploaded according to the comment content request instruction, encodes the content of the comments to be uploaded by using a standard encoding method, obtains the comment code to be uploaded, and sends the comment code to be uploaded to the host computer device.

[0010] In one embodiment, the method further comprises: Receiving an annotation download request instruction sent by the PLC device; Obtain the to-be-downloaded annotations of the host device according to the annotation download request instruction; Encoding the content of the annotation to be downloaded by a standard encoding method to obtain the annotation code to be downloaded of the annotation to be downloaded; The to-be-downloaded annotation code is transmitted to the PLC device, so that the PLC device obtains the to-be-downloaded annotation according to the to-be-downloaded annotation code.

[0011] In one embodiment, after the step of obtaining the annotations to be downloaded from the host device according to the annotation download request instruction, the step further includes: Determining the annotation capacity of the annotations to be downloaded according to the annotations to be downloaded; The annotation capacity is sent to the PLC device, and the PLC device determines the annotation space to be downloaded according to the annotation capacity.

[0012] In one embodiment, the method further comprises: A universal frame for communication between the PLC device and the host computer device is determined, wherein the universal frame consists of a frame start character, a frame end character, a command field, a data field, and a checksum field.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a PLC annotation transmission device, the PLC annotation transmission device comprising: The upload request receiving module is used to receive the annotation address request instruction sent by the host computer device; An upload annotation acquisition module is used to acquire the to-be-uploaded annotations of the PLC device according to the annotation address request instruction; Generate an annotation encoding module, used for encoding the content of the annotation to be uploaded by a standard encoding method to obtain the annotation code to be uploaded of the annotation to be uploaded; The annotation code uploading module is used to upload the annotation code to be uploaded to the host computer device, so that the host computer device obtains the annotation to be uploaded according to the annotation code to be uploaded.

[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a PLC annotation transmission device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the PLC annotation transmission method as described above.

[0015] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the PLC annotation transmission method described above are implemented.

[0016] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the PLC annotation transmission method described above are implemented.

[0017] One or more technical solutions proposed in this application have at least the following technical effects: The embodiment of the present application proposes a method, device, equipment and storage medium for transmitting PLC comments. The method is applied to a host computer device, including: receiving a comment address request instruction sent by the host computer device; obtaining the to-be-uploaded comments of the PLC device according to the comment address request instruction; encoding the content of the to-be-uploaded comments by a standard encoding method to obtain the to-be-uploaded comment code of the to-be-uploaded comments; uploading the to-be-uploaded comment code to the host computer device, so that the host computer device obtains the to-be-uploaded comments according to the to-be-uploaded comment code. By transmitting comments between the PLC device and the host computer device, comments can be provided for the programming of the PLC device, helping to understand the programming and improving readability. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 A flow chart of the first embodiment of the method for transmitting PLC annotations of the present application; Figure 2 A schematic diagram of the module structure of the transmission device annotated by PLC in the embodiment of the present application; Figure 3 A schematic diagram of the device structure of the hardware operating environment involved in the transmission method of the PLC annotation in the embodiment of the present application.

[0021] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0022] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0023] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0024] The main solution of the embodiment of the present application is: receiving the annotation address request instruction sent by the host computer device; obtaining the annotations to be uploaded of the PLC device according to the annotation address request instruction; encoding the content of the annotations to be uploaded by standard coding method to obtain the annotations to be uploaded code of the annotations to be uploaded; uploading the annotations to be uploaded code to the host computer device, so that the host computer device obtains the annotations to be uploaded according to the annotations to be uploaded code.

[0025] In this embodiment, for ease of description, the following description is made with the transmission device for identifying PLC annotations as the execution subject.

[0026] PLC (Programmable Logic Controller) and PLC host computer are closely connected in industrial automation systems, and together they constitute the core part of controlling, monitoring and managing the automation process. PLC and PLC host computer work together to achieve stable operation of the automation system. PLC is responsible for the underlying real-time control and signal processing, while the host computer provides advanced data processing, analysis and visualization functions. The PLC host computer is located on the PC side and is used to operate PLC equipment. Due to the large number of PLC manufacturers, each PLC equipment manufacturer has its own set of software, and the internal implementation is not yet public. Therefore, PLC annotations are needed to explain the code to improve the readability of programming.

[0027] This application can provide annotations for the programming of the PLC device by transmitting annotations between the PLC device and the host computer device, thereby helping to understand the programming and improving readability.

[0028] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a transmission device of PLC annotations, etc. The following takes the transmission device of PLC annotations as an example to illustrate this embodiment and the following embodiments.

[0029] Based on this, the embodiment of the present application provides a method for transmitting PLC annotations, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the method for transmitting PLC comments of the present application, and the method for transmitting PLC comments is applied to a programmable logic controller (PLC) device.

[0030] In this embodiment, the PLC annotation transmission method includes steps S10 to S60: Step S10, receiving an annotation address request instruction sent by a host device.

[0031] It should be noted that the PLC device refers to PLC (Programmable Logic Controller), which is a digital electronic instrument specially used in industrial automation control systems. It mainly receives input signals (such as sensor signals), processes them according to pre-written program logic, and outputs control signals to actuators to achieve control of equipment and processes. PLC has the characteristics of programmability and is programmed through specific programming languages ​​(such as ladder diagrams, STL languages, C languages, instruction lists, etc.). Users can write and modify control programs according to the needs of control tasks.

[0032] In addition, it should be noted that the host device refers to the PLC host computer, which is a computer or industrial control system that communicates with the PLC and expands its functions. It can be connected to the PLC through communication interfaces such as serial ports and Ethernet to realize data exchange and the issuance of control instructions, and is used for programming, monitoring, debugging and maintaining the PLC. The host computer can be a personal computer, industrial control computer or other types of programming devices. The functions of the host device mainly include: programming and control (writing, uploading and downloading PLC programs on the host computer, configuring the input and output interfaces and other parameters of the PLC, and realizing remote control and configuration of the PLC), monitoring and diagnosis (real-time monitoring of the status and operation of the PLC, viewing the current values ​​of the input and output variables, diagnosing faults and anomalies), data processing and analysis (collecting PLC data, performing data processing and analysis, and providing more powerful support for industrial automation), and communication (communicating with the PLC, exchanging data and instructions, and realizing remote control and monitoring).

[0033] In addition, it should be noted that the annotation address request instruction refers to an instruction sent by the host computer to the PLC, which is used to request the PLC to upload the address of the annotation.

[0034] Specifically, a communication connection is first established between the PLC host computer and the PLC. The host computer device sends an annotation address request instruction to the PLC device to query the address of the instruction to be uploaded on the PLC device, and the PLC device receives the annotation address request instruction sent by the host computer device.

[0035] Step S20: Obtain the to-be-uploaded annotations of the PLC device according to the annotation address request instruction.

[0036] It should be noted that the comments to be uploaded refer to the comments that need to be uploaded from the PLC to the host computer, which are used to identify instructions to explain the PLC code and play a role in explaining the code and improving readability in PLC programming.

[0037] Specifically, according to the annotation address request instruction, obtain the address of the PLC device to be uploaded with annotations; generate an annotation address reply instruction based on the address of the annotation to be uploaded, and send the annotation address reply instruction to the host device, so that the host device generates an annotation content request instruction according to the annotation address reply instruction and sends it to the PLC device; receive the annotation content request instruction, and obtain the annotation to be uploaded of the PLC device according to the annotation content request instruction.

[0038] Step S30, encode the content of the annotation to be uploaded through a standard encoding method to obtain the annotation encoding to be uploaded of the annotation to be uploaded.

[0039] It should be noted that the annotation encoding to be uploaded refers to the content obtained by encoding the content of the annotation to be uploaded through a standard encoding method.

[0040] In addition, it should be noted that the standard encoding method refers to the national standard extended code GBK (Chinese Internal Code Specification), which is a character encoding widely used in the simplified Chinese environment. It is an extension of the GB2312-1980 standard. The encoding range of GBK encoding is 8140-FEFE, excluding the code position of xx7F, with a total of 23,940 code positions. It has a total of 21,886 Chinese characters and graphic symbols, including 21,003 Chinese characters (including radicals and components) and 883 graphic symbols. Each Chinese character corresponds to 2 BYTEs, and a number or English corresponds to 1 BYTE.

[0041] Specifically, encode the content of the annotation to be uploaded through GBK encoding to obtain the annotation encoding to be uploaded. For example, when the annotation to be uploaded "This is the annotation of x1" is encoded through content encoding, the annotation encoding to be uploaded is obtained. Because the specific encoding of each character is: "这" - 0xD5 0xE2; "个" - 0xB8 0xF6; "是" - 0xCA 0xC7; "x1" - 0x78 0x31; "的" - 0xB5 0xC4; "注" - 0xD7 0xA2; "释" - 0xCA 0xCD, the obtained annotation encoding to be uploaded is "D5E2B8F6CAC77831B5C4D7A2CACD".

[0042] Step S40, upload the annotation encoding to be uploaded to the host device, so that the host device obtains the annotation to be uploaded according to the annotation encoding to be uploaded.

[0043] Specifically, through the standards and regulations in the communication protocol, the comment code to be uploaded is uploaded to the host device in the format of a universal frame. After the host device receives the comment code to be uploaded, verification and analysis are performed to obtain the comments to be uploaded of the PLC device.

[0044] Through the above-mentioned embodiments, the present application can provide annotations for the programming of the host computer device by uploading the annotations in the PLC device to the host computer, thereby helping to understand the programming and improving readability.

[0045] Based on the above implementation scheme, in a feasible implementation manner, obtaining the to-be-uploaded annotations of the PLC device according to the annotation upload request instruction includes steps S21 to S23: Step S21, obtaining the address of the PLC device to upload annotations according to the annotation address request instruction.

[0046] Specifically, according to the annotation address request instruction, the address of the annotation to be uploaded in the PLC device is queried, for example, the specific location of the annotation to be uploaded in the PLC device.

[0047] Step S22, generating an annotation address reply instruction according to the address of the annotation to be uploaded, and sending the annotation address reply instruction to the host computer device, so that the host computer device generates an annotation content request instruction according to the annotation address reply instruction and sends it to the PLC device.

[0048] It should be noted that the comment address reply instruction is used to transmit the address of the comment to be uploaded to the host computer device, which includes the address of the comment to be uploaded.

[0049] Specifically, after the PLC device obtains the address of the annotation to be uploaded, it generates an annotation address reply instruction based on the address, and sends the annotation address reply instruction to the host computer device. After the host computer device receives it, it generates an annotation content request instruction based on the annotation address reply instruction, which is used to request the annotation content of the annotation to be uploaded at the address, and sends the annotation content request instruction to the PLC device.

[0050] Step S23: receiving the annotation content request instruction, and obtaining the annotations to be uploaded of the PLC device according to the annotation content request instruction.

[0051] It should be noted that the comment content request instruction refers to an instruction sent by the host computer to the PLC, which is used to request the comment content to be uploaded to the PLC.

[0052] Specifically, after the host device generates the comment content request instruction, it sends the instruction to the PLC device. The PLC device obtains the address of the comment to be uploaded according to the comment content request instruction, and obtains the corresponding comment to be uploaded at the address of the PLC device.

[0053] Based on the above implementation, in a feasible implementation, the method further includes steps S50 to S60: Step S50, sending an annotation download request instruction to the host device, so that the host device obtains the annotation to be downloaded according to the annotation download request instruction, encodes the content of the annotation to be downloaded by standard encoding method, obtains the annotation code to be downloaded, and sends the annotation code to be downloaded to the PLC device.

[0054] It should be noted that the comment download request instruction is an instruction sent by the PLC device to the host computer, which is used to request the host computer to download the comments generated during the programming process. Because the address of the comments to be downloaded is determined, there is no need to query the comment address.

[0055] In addition, it should be noted that the comments to be downloaded refer to the comments added by the host computer device to improve readability when writing the program, and need to be downloaded to the PLC device.

[0056] In addition, it should be noted that the code of the annotation to be downloaded refers to the content obtained by encoding the annotation to be downloaded in a standard encoding manner.

[0057] Specifically, a communication connection is first established between the PLC host computer and the PLC. The PLC device sends a comment download request instruction to the host computer device to request the download of the comments of the host computer during programming. The host computer device receives the comment download request instruction sent by the PLC, obtains the comments to be downloaded according to the comment download request instruction, encodes the content of the comments to be downloaded in a standard encoding method, obtains the comment code to be downloaded of the comments to be downloaded, and sends the comment code to be downloaded to the PLC device in a universal frame format.

[0058] Step S60: receiving the annotation code to be downloaded sent by the host device through the communication protocol, and obtaining the annotation to be downloaded of the host device according to the annotation code to be downloaded.

[0059] Specifically, the PLC device receives a response data packet from the host device through a communication protocol, verifies and parses the received response data packet, extracts the encoded annotation code to be downloaded, decodes the code, and recovers the annotation content to be downloaded sent by the host device.

[0060] Through the above-mentioned embodiments, the present application can provide annotations for the PLC device by downloading the annotations of the programming code of the host computer device to the PLC device, thereby helping to understand the programming and improving readability.

[0061] Based on the above implementation scheme, in a feasible implementation scheme, the PLC annotation transmission method is applied to a host computer device, and the method includes steps S10' to S20': Step S10', sending a comment address request instruction to the PLC device, so that the PLC device obtains the comments to be uploaded according to the comment address request instruction, encodes the content of the comments to be uploaded by standard encoding method, obtains the comments to be uploaded code, and sends the comments to be uploaded code to the host computer device.

[0062] Specifically, when the PLC device needs to upload comments, a communication connection is established between the host device and the PLC, and an annotation address request instruction is sent to the PLC device through the host device, and the address of the annotation to be uploaded on the PLC device is queried. The PLC device receives the annotation address request instruction sent by the host device, generates an annotation address reply instruction according to the address of the annotation to be uploaded, and sends the annotation address reply instruction to the host device. The host device receives the annotation address reply instruction sent by the PLC device, generates an annotation content request instruction according to the annotation address reply instruction, and sends the annotation content request instruction to the PLC device, so that the PLC device obtains the annotation to be uploaded according to the annotation content request instruction, and content encodes the annotation to be uploaded through a standard encoding method to obtain the annotation code to be uploaded.

[0063] Step S20': receiving the comment code to be uploaded sent by the PLC device, and acquiring the comment to be uploaded of the PLC device according to the comment code to be uploaded.

[0064] Specifically, after receiving the annotation code to be uploaded sent by the PLC device, the host device verifies and analyzes the annotation code to be uploaded according to the standards and rules of the communication protocol, and obtains the annotation to be uploaded of the PLC device, indicating that the annotation to be uploaded has been uploaded successfully.

[0065] Based on the above implementation scheme, in a feasible implementation manner, sending an annotation address request instruction to a PLC device so that the PLC device obtains the annotation to be uploaded according to the annotation address request instruction, encoding the content of the annotation to be uploaded by a standard encoding method to obtain the annotation code to be uploaded, and sending the annotation code to be uploaded to the host computer device includes steps S11'~S12': Step S11 ′, sending a comment address request instruction to the PLC device so that the PLC device obtains the address of the comment to be uploaded, generates a comment address reply instruction according to the address of the comment to be uploaded, and sends the comment address reply instruction to the host computer device.

[0066] It should be noted that the comment address reply instruction refers to an instruction sent by the PLC device and received by the host computer device, which replies to the host computer device the location of the comment to be uploaded in the PLC device, including the location information of the comment.

[0067] Specifically, the host computer sends an annotation address request instruction according to the format of the general frame to query the annotations to be uploaded on the PLC device. Through the established communication connection, the host computer sends the constructed annotation address request instruction to the PLC device. The PLC device monitors the communication request from the host computer and receives the annotation address request instruction. The PLC device parses the received request instruction and searches for the address of the annotation to be uploaded in its internal storage space. The PLC device generates an annotation address reply instruction according to the found address of the annotation to be uploaded, and the annotation address reply instruction contains the address information of the annotation to be uploaded, and sends the annotation address reply instruction to the host computer device.

[0068] Step S12', receiving the comment address reply instruction sent by the PLC device, generating a comment content request instruction according to the comment address reply instruction, sending the comment content request instruction to the PLC device, so that the PLC device obtains the comments to be uploaded according to the comment content request instruction, encodes the content of the comments to be uploaded by a standard encoding method, obtains the comment code to be uploaded of the comments to be uploaded, and sends the comment code to be uploaded to the host computer device.

[0069] Specifically, the host computer monitors the communication reply from the PLC device and receives the comment address reply instruction, verifies and analyzes the received comment address reply instruction, and extracts the address information of the comment to be uploaded; based on the extracted comment address information, the host computer constructs a comment content request instruction for requesting the content of the comment to be uploaded; the host computer sends the comment content request instruction to the PLC device, and after receiving the PLC device, according to the comment address in the comment content request instruction, it obtains the comment content of the comment to be uploaded from the internal storage space, encodes the content of the comment to be uploaded by using a standard encoding method, and obtains the comment code to be uploaded of the comment to be uploaded.

[0070] Based on the above implementation, in a feasible implementation, the method further includes steps S30' to S60': Step S30': receiving the annotation download request instruction sent by the PLC device.

[0071] Specifically, when the PLC device sends an annotation download request instruction, the host computer receives the annotation download request instruction through the monitored communication interface.

[0072] Step S40': obtaining the annotations to be downloaded from the host device according to the annotation download request instruction.

[0073] Specifically, the host device parses the received annotation download request instruction to search for the annotation to be downloaded and obtain the content of the annotation.

[0074] Step S50': content-encode the annotation to be downloaded in a standard encoding manner to obtain the annotation code to be downloaded.

[0075] Specifically, after the annotation is found, the annotation is converted into the annotation encoding to be downloaded by using the standard encoding method, that is, by using the GBK encoding. Step S60': transmitting the annotation code to be downloaded to the PLC device, so that the PLC device obtains the annotation to be downloaded according to the annotation code to be downloaded.

[0076] Specifically, the encoded annotations to be downloaded are converted into a universal frame format through data encapsulation and encapsulated into a data table that conforms to the communication protocol. The upper computer sends the encapsulated code to the PLC device through a data packet through the same communication interface and communication protocol. After receiving the data packet, the PLC verifies and parses it to obtain the annotations to be downloaded, thereby successfully downloading the annotations.

[0077] Based on the above implementation scheme, in a feasible implementation manner, after the step of obtaining the annotations to be downloaded from the host device according to the annotation download request instruction, the steps S41'-S42' are further included: Step S41', determining the annotation capacity of the annotation to be downloaded according to the annotation to be downloaded.

[0078] It should be noted that the annotation capacity of the annotations to be downloaded refers to the size of the space occupied by the annotations to be downloaded in the host computer device.

[0079] Specifically, the host device obtains the to-be-downloaded annotations in the programming code, and calculates the total capacity of the to-be-downloaded annotation file according to the content (such as text length, encoding method, etc.).

[0080] Step S42', sending the annotation capacity to the PLC device, and the PLC device determines the annotation space to be downloaded according to the annotation capacity.

[0081] Specifically, first, a stable communication connection is established between the host computer and the PLC device, and the content of the annotation capacity is encoded by a standard encoding method. After the communication connection is established, the host computer device sends the encoded content of the annotation capacity to the PLC device; after receiving the encoded content of the annotation capacity, the PLC device performs content verification and analysis to obtain the capacity value of the annotations to be downloaded, and the PLC device checks the remaining capacity of its internal storage space (especially the part used to store annotations), including comparing the received annotation capacity with the storage capacity limit of the PLC device. If the remaining storage space of the PLC device is sufficient to accommodate the annotations to be downloaded, the PLC device will allocate corresponding storage space as the annotation space to be downloaded to prepare for receiving the annotation data; if the remaining storage space is insufficient, the PLC device may need to return an error message to the host computer, indicating that the annotations cannot be downloaded or that some existing annotations need to be deleted to make room.

[0082] Based on the above implementation, in a feasible implementation, the method further includes step S70: Step S70, determining a universal frame for communication between the PLC device and the host computer device, wherein the universal frame is composed of a frame start character, a frame end character, a command field, a data field, and a checksum field.

[0083] It should be noted that the communication protocol between the PLC device and the host computer device is the bridge for communication between the PLC device and the host computer device, which ensures that data can be transmitted between the two accurately, efficiently and securely.

[0084] Specifically, the format of the universal frame in the communication protocol is determined, and the universal frame consists of a frame start character, a frame end character, a command field, a data field, and a checksum field. More specifically, the maximum length of the universal frame is set in the communication protocol. When the length exceeds the maximum length of the universal frame after adding the communication content (the address code of the annotation to be uploaded, the annotation code to be uploaded, the annotation code to be downloaded, etc.), the data packet is fragmented for transmission. In one embodiment of the present application, the length of the universal frame for each communication is set to be 0XFE bytes at most.

[0085] In addition, it should be noted that the common frame in the communication protocol is the data frame format for communication between the PLC and the PLC host computer specified by the communication protocol, which at least includes the frame start, command, data content, frame end and checksum and other key information for communication between the PLC host computer and the PLC.

[0086] Specifically, the format of the general frame in the communication protocol is: STX, CMD, DATA1...DATAn, ETX,SUM STX: 02H, ETX: 03H SUM = (CMD + DATA1+…+DATAn +ETX) AND 0xFFFF Among them, STX (Start of Text) is a frame start character, which is used to identify the beginning of a data frame. In this application, it is represented by a hexadecimal value of 02H, indicating the beginning of a data frame.

[0087] ETX (End of Text) is a frame end character used to mark the end of a data frame. In this application, it is represented by the hexadecimal value 03H, indicating the end of the data frame.

[0088] CMD (Command) is the command field, which is used to specify the specific operation or request type of this communication. It contains the command code used to indicate the type of operation performed by the frame, such as read, write, control commands, etc.

[0089] DATA1...DATAn is a data field, which includes one or more data units and is used to transmit specific communication content or parameters. Here, n means there are n data units.

[0090] SUM (Checksum) is a checksum field used to ensure the integrity and correctness of the data frame during transmission and to check whether errors occur during frame transmission. The checksum is calculated by adding the values ​​of the bytes CMD, DATA1~DATAn, and ETX, and then performing an AND operation on 0xFFFF to obtain the least significant byte of the result.

[0091] The calculation formula for the checksum field is: SUM = (CMD + DATA1+…+DATAn +ETX) AND 0xFFFF Among them, SUM is the checksum field; CMD is the command field; DATA1...DATAn are the data fields; ETX is the frame end mark; and AND is the AND calculation.

[0092] The command field in the general frame is determined by ASCII encoding.

[0093] Specifically, the command field in the general frame is extended and defined by ASCII encoding. In one embodiment of the present application, the correspondence between some command fields and corresponding ASCII encodings is shown in Table 1:

[0094] Table 1 In Table 1, READ is the register read command, the character representation is "0", the corresponding ASCII code is "30H", and the soft element types that can be operated are X, Y, M, S, T, C, and D.

[0095] WRITE is the command to write to the register. The character representation is "1" and the corresponding ASCII code is "31H". The soft element types that can be operated are X, Y, M, S, T, C, and D.

[0096] Forced ON is a command to force a soft element to the ON state. The character representation is "7" and the corresponding ASCII code is "37H". The soft element types that can be operated are X, Y, M, S, T, and C.

[0097] Forced OFF is a command to force the soft element to the ON state. The character representation is "8" and the corresponding ASCII code is "38H". The soft element types that can be operated are X, Y, M, S, T, and C.

[0098] Read configuration is a command to read configuration information. The character representation is "E00" and the corresponding ASCII code is "45, 30, 30".

[0099] Write configuration is a command for writing configuration information. The character representation is "E10" and the corresponding ASCII code is "45, 31, 30".

[0100] Read program is the command to read the program. The character representation is "E01" and the corresponding ASCII code is "45, 30, 31".

[0101] The write program is the command for reading the program. The character representation is "E11" and the corresponding ASCII code is "45, 31, 31".

[0102] ENQ (ENQUIRY) is a communication request command, and its corresponding ASCII code is “05H”.

[0103] ACK (ACKNOWLEDGE) is the correct response command of PLC, and the corresponding ASCII code is "06H".

[0104] NAK (NEGATIVE ACKNOWLEDGE) is a PLC error response command, and its corresponding ASCII code is "15H".

[0105] STX (START OF TEXT) is the message start command, and the corresponding ASCII code is "02H".

[0106] ETX (END OF TEXT) is the message end command, and the corresponding ASCII code is "03H".

[0107] These command fields and codes are part of the communication protocol between the PLC and the PLC host computer, and are used to ensure that data between the PLC host computer and the PLC can be sent and received correctly.

[0108] Among them, the communication identification code about the PLC soft element in the data field is determined by ASCII coding.

[0109] It should be noted that the communication identification code refers to encoding the soft element in the PLC as an identification distinction, and the content of the code is encoded using ASCII encoding during communication to obtain the communication identification code of the soft element.

[0110] In addition, it should be noted that the soft components in PLC refer to the simulated devices with certain functions inside the PLC. These devices are not actual physical components, but are composed of electronic circuits, registers and memory units. They simulate various electrical components in traditional electrical control systems, such as relays, timers, counters, etc., to achieve control of electrical equipment.

[0111] More specifically, soft components can be divided into many types according to their functions, mainly including: The input relay (X) corresponds to the input terminal of the PLC and is used to receive external switch signals. When the external switch signal is closed, the coil of the input relay is energized, its normally open contact is closed, and its normally closed contact is opened.

[0112] The output relay (Y) corresponds to the output terminal of the PLC and is used to send signals to the external load; when the program energizes the output relay coil, the output switch on the PLC closes to control the external load.

[0113] Auxiliary relay (M) is used inside the PLC and has no corresponding input / output terminals; it is divided into general auxiliary relays, latching auxiliary relays and special auxiliary relays, and is used to store intermediate states, control information, etc.

[0114] Data register (D) is a soft element specially used to store data for data transmission, data comparison, data calculation and other operations; it is divided into general data register, latch data register, special data register and index data register.

[0115] The status relay (S) is usually used in conjunction with step instructions or sequential function charts (SFCs) to complete the step sequence action control of a certain process; when not used for step control, it can be used as an auxiliary relay.

[0116] The timer (T) is equivalent to the time relay in the relay system and is used to implement delay control in the program. The clock pulse of the timer has different specifications (such as 1ms, 10ms, 100ms). When the current value reaches the set value, the output contact will operate.

[0117] The counter (C) is used to accumulate the number of times the input pulse level changes from low to high; the set value can be specified by a constant or the content of a data register. When the count reaches the set value, the counter coil is energized and its corresponding contact is actuated.

[0118] The extended register (R) is an extended soft element of the data register (D). It is used to store data, similar to the data register, the R register is used to store and transfer data in the PLC program, such as intermediate calculation results, control parameters, etc. They allow the program to share data between different logic blocks or steps.

[0119] Pointer register (P) is used to point to the address of other soft elements to implement operations on specific soft elements; it is used as an indirect addressing tool in PLC programs.

[0120] The interrupt pointer (I) is used to specify the soft element of the interrupt subroutine for input interrupt, timer interrupt or counter interrupt. When the PLC encounters a specific event (such as a change in an external input signal, the expiration of a timer, the count value of a counter reaching a set value, etc.), an interrupt will be triggered. The I register is used to specify the interrupt subroutine that should be executed when these interrupts occur.

[0121] Specifically, the PLC soft elements are numbered and distinguished, each number occupies 2 BYTEs, with the low bit in front and the high bit in the back, and then the number is represented by ASCII encoding to obtain the communication identification code of the soft element. In one embodiment of the present application, the corresponding codes of some soft elements are shown in Table 2:

[0122] Table 2 The soft component number occupies 2 BYTE spaces, with the low digit in front and the high digit in the back. For example, the soft component X1 is encoded as 58100, and the ASCII encoding is: 35, 38, 30, 31, 30, 30.

[0123] Through the above scheme, this embodiment determines the format of the general frame and defines clear frame start and end characters, thereby ensuring the integrity and accuracy of the data; the correctness of the data can be verified through the checksum field, and the command field can flexibly control different operations on the PLC to meet the needs of different application scenarios.

[0124] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the transmission method of the PLC annotations of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0125] This application also provides a transmission device for PLC annotations, please refer to Figure 2 , the transmission device of the PLC annotation comprises: The upload request receiving module 201 is used to receive the annotation address request instruction sent by the host device; The upload annotation acquisition module 202 is used to acquire the to-be-uploaded annotations of the PLC device according to the annotation address request instruction; Generate annotation code module 203, used for encoding the content of the annotation to be uploaded by standard encoding method to obtain the annotation code to be uploaded of the annotation to be uploaded; The annotation code uploading module 204 is used to upload the annotation code to be uploaded to the host device, so that the host device obtains the annotation to be uploaded according to the annotation code to be uploaded.

[0126] The PLC annotation transmission device provided by the present application adopts the PLC annotation transmission method in the above-mentioned embodiment, which can solve the technical problem of improving code readability. Compared with the prior art, the beneficial effects of the PLC annotation transmission device provided by the present application are the same as the beneficial effects of the PLC annotation transmission method provided by the above-mentioned embodiment, and other technical features in the PLC annotation transmission device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0127] The present application provides a PLC annotation transmission device, the PLC annotation transmission device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the PLC annotation transmission method in the above-mentioned embodiment one.

[0128] Reference below Figure 3, which shows a schematic diagram of the structure of a transmission device suitable for implementing the PLC annotation of the embodiment of the present application. The transmission device of the PLC annotation in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The PLC annotated transmission device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0129] like Figure 3 As shown, the transmission device of PLC annotation may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the transmission device of PLC annotation are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the PLC-annotated transmission device to communicate with other devices wirelessly or by wire to exchange data. Although the PLC-annotated transmission device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0130] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0131] The PLC annotation transmission device provided by the present application adopts the PLC annotation transmission method in the above embodiment, which can solve the technical problem of improving code readability. Compared with the prior art, the beneficial effects of the PLC annotation transmission device provided by the present application are the same as the beneficial effects of the PLC annotation transmission method provided by the above embodiment, and the other technical features in the PLC annotation transmission device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.

[0132] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0134] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the PLC annotation transmission method in the above-mentioned embodiment.

[0135] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0136] The computer-readable storage medium may be included in the transmission device of the PLC annotation; or may exist independently without being assembled into the transmission device of the PLC annotation.

[0137] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the PLC annotation transmission device, the PLC annotation transmission device: receives the annotation address request instruction sent by the host computer device; obtains the annotations to be uploaded of the PLC device according to the annotation address request instruction; encodes the content of the annotations to be uploaded by a standard encoding method to obtain the annotation code to be uploaded of the annotations to be uploaded; uploads the annotation code to be uploaded to the host computer device, so that the host computer device obtains the annotations to be uploaded according to the annotation code to be uploaded.

[0138] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0139] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0140] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0141] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned PLC annotation transmission method, and can solve the technical problem of improving code readability. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the PLC annotation transmission method provided by the above-mentioned embodiment, and will not be repeated here.

[0142] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned PLC annotation transmission method when executed by a processor.

[0143] The computer program product provided by the present application can solve the technical problem of improving code readability. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the PLC annotation transmission method provided by the above embodiment, which will not be repeated here.

[0144] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for transmitting PLC annotations, characterized in that: The method is applied to a programmable logic controller (PLC) device, and the method comprises: Receive the annotation address request command sent by the host device; Obtain the to-be-uploaded annotations of the PLC device according to the annotation address request instruction; Encoding the content of the annotation to be uploaded by a standard encoding method to obtain the annotation code to be uploaded of the annotation to be uploaded; The annotation code to be uploaded is uploaded to the host computer device, so that the host computer device obtains the annotation to be uploaded according to the annotation code to be uploaded.

2. The method according to claim 1, characterized in that The step of obtaining the to-be-uploaded annotations of the PLC device according to the annotation address request instruction comprises: According to the annotation address request instruction, obtain the address of the PLC device to upload the annotation; Generate a comment address reply instruction according to the address of the comment to be uploaded, and send the comment address reply instruction to the host computer device, so that the host computer device generates a comment content request instruction according to the comment address reply instruction and sends it to the PLC device; The annotation content request instruction is received, and the annotations to be uploaded of the PLC device are acquired according to the annotation content request instruction.

3. The method according to claim 1, characterized in that The method further comprises: Sending an annotation download request instruction to the host computer device, so that the host computer device obtains the annotation to be downloaded according to the annotation download request instruction, encodes the content of the annotation to be downloaded in a standard encoding manner, obtains the annotation code to be downloaded of the annotation to be downloaded, and sends the annotation code to be downloaded to the PLC device; The to-be-downloaded annotation code sent by the host device is received through a communication protocol, and the to-be-downloaded annotation of the host device is acquired according to the to-be-downloaded annotation code.

4. A method for transmitting PLC annotations, characterized in that: The method is applied to a host computer device, and the method comprises: Sending an annotation address request instruction to a PLC device, so that the PLC device obtains the annotation to be uploaded according to the annotation address request instruction, encodes the content of the annotation to be uploaded by a standard encoding method, obtains the annotation code to be uploaded of the annotation to be uploaded, and sends the annotation code to be uploaded to the host computer device; Receive the to-be-uploaded annotation code sent by the PLC device, and obtain the to-be-uploaded annotation of the PLC device according to the to-be-uploaded annotation code.

5. The method according to claim 4, characterized in that The step of sending a comment address request instruction to a PLC device so that the PLC device obtains the comment to be uploaded according to the comment address request instruction, encoding the content of the comment to be uploaded by a standard encoding method to obtain the comment code to be uploaded, and sending the comment code to be uploaded to the host computer device includes: Sending an annotation address request instruction to a PLC device so that the PLC device obtains the address of the annotation to be uploaded, generating an annotation address reply instruction according to the address of the annotation to be uploaded, and sending the annotation address reply instruction to the host computer device; Receive the comment address reply instruction sent by the PLC device, generate a comment content request instruction according to the comment address reply instruction, send the comment content request instruction to the PLC device, so that the PLC device obtains the comments to be uploaded according to the comment content request instruction, encodes the content of the comments to be uploaded by using a standard encoding method, obtains the comment code to be uploaded, and sends the comment code to be uploaded to the host computer device.

6. The method according to claim 4, characterized in that The method further comprises: Receiving an annotation download request instruction sent by the PLC device; Obtain the to-be-downloaded annotations of the host device according to the annotation download request instruction; Encoding the content of the annotation to be downloaded by a standard encoding method to obtain the annotation code to be downloaded of the annotation to be downloaded; The to-be-downloaded annotation code is transmitted to the PLC device, so that the PLC device obtains the to-be-downloaded annotation according to the to-be-downloaded annotation code.

7. The method according to claim 6, characterized in that After the step of obtaining the annotations to be downloaded from the host device according to the annotation download request instruction, the following step further comprises: Determining the annotation capacity of the annotations to be downloaded according to the annotations to be downloaded; The annotation capacity is sent to the PLC device, and the PLC device determines the annotation space to be downloaded according to the annotation capacity.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: A universal frame for communication between the PLC device and the host computer device is determined, wherein the universal frame consists of a frame start character, a frame end character, a command field, a data field, and a checksum field.

9. A transmission device for PLC annotations, characterized in that: The device comprises: The upload request receiving module is used to receive the annotation address request instruction sent by the host computer device; An upload annotation acquisition module is used to acquire the to-be-uploaded annotations of the PLC device according to the annotation address request instruction; Generate an annotation encoding module, used for encoding the content of the annotation to be uploaded by a standard encoding method to obtain the annotation code to be uploaded of the annotation to be uploaded; The annotation code uploading module is used to upload the annotation code to be uploaded to the host computer device, so that the host computer device obtains the annotation to be uploaded according to the annotation code to be uploaded.

10. A transmission device for PLC annotations, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for transmitting PLC comments according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and system for communication between upper computer and lower computer

    CN102750241A

  • Data communication method and device for monitoring PLC system, equipment and storage medium

    CN109270885A

  • Request processing method and device, electronic equipment and computer readable medium

    CN113468445A

  • PLC communication method, apparatus and device, and storage medium

    CN118353973A