Method, device and system for fine-grained collection of equipment action data

By recording action codes and timestamps on the programmable logic controller, combined with a double buffer design and encoding protocol, the problem of missing action data on production line equipment is solved, and fine-grained data collection and accurate action recording are achieved.

CN120215453BActive Publication Date: 2025-09-19KONGTROLINK
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510695372.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-28
Publication Date
2025-09-19
Estimated Expiration
2045-05-28

AI Technical Summary

Technical Problem

In existing technologies, the equipment action data of production line equipment is seriously missing, and the collection method can only determine the key node actions in the production process, and cannot capture instantaneous actions, resulting in insufficient data integrity and accuracy, affecting the prediction and performance analysis of industrial artificial intelligence.

Method used

An event-driven approach is used to record action codes and timestamps on the programmable logic controller. Through double buffer design and preset coding protocols, fine-grained data collection is achieved to ensure that each action is recorded in detail and stored in sequence in the data storage terminal.

Benefits of technology

It improves the granularity of equipment action data, ensures the association between equipment action data and the actions of production line equipment, and realizes detailed records of production line equipment actions and data accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120215453B_ABST
    Figure CN120215453B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and system for fine-grained collection of equipment action data, which relates to the field of digital information transmission technology. The method includes: when an action start signal or an action end signal of a production line equipment is monitored, an action recording event is triggered, the action recording event is encoded through a preset encoding protocol to obtain an action code, and the coding time is obtained according to the triggering time of the action recording event; the action recording data of the action recording event is obtained according to the action code and the coding time; the action recording data is transmitted to a data storage terminal; the data storage terminal is used to parse the action recording data to obtain the action code and the coding time, and the equipment action data is obtained according to the action code and the coding time. The method of the present application improves the fine-grainedness of the equipment action data and ensures the association between the equipment action data and the action of the production line equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital information transmission, and in particular to a method, device and system for fine-grained collection of equipment action data. Background Art

[0002] The data generated throughout the entire manufacturing process of production line products is mainly production management data, which is mainly used to plan the production process and determine the timing and resource allocation of products at each production stage to ensure the orderly progress of production.

[0003] With the development of intelligent manufacturing technology, industrial artificial intelligence (AI) is increasingly demanding fine-grained data. However, current production management data mostly focuses on macro-level production management and decision support, while neglecting the micro-level details of production line equipment movement, that is, equipment movement data related to the product manufacturing process.

[0004] Specifically, during the manufacturing process, there is a significant lack of equipment motion data for production line equipment. Even when some equipment motion data is collected, it is mostly collected in a fixed-cycle mode. This collection method can only identify key node motions of production line equipment in the production process, but cannot capture its instantaneous motion. Therefore, how to improve the granularity of equipment motion data and ensure the correlation between equipment motion data and the motion of production line equipment is an urgent problem to be solved in this application. Summary of the Invention

[0005] The present application provides a method, device and system for fine-grained collection of equipment action data, which improves the fine-grainedness of equipment action data and ensures the association between equipment action data and the actions of production line equipment.

[0006] A first aspect of the present application provides a fine-grained collection method for equipment action data, which is applied to a programmable logic controller and includes:

[0007] When an action start signal or an action end signal of a production line equipment is monitored, an action recording event is triggered. The action recording event is encoded using a preset encoding protocol to obtain an action code, and the encoding time is obtained based on the triggering time of the action recording event. The action code is used to indicate the action type of the production line equipment.

[0008] Obtaining action record data of the action record event according to the action code and the coding time;

[0009] The action record data is transmitted to the data storage terminal; wherein the data storage terminal is used to parse the action record data, obtain the action code and encoding time, and obtain the equipment action data based on the action code and encoding time.

[0010] In a possible design, the action record event is encoded using a preset encoding protocol to obtain an action code, including:

[0011] Determine a target point address from a plurality of preset point addresses of a programmable logic controller; wherein the programmable logic controller is used to control the production line equipment to perform an action corresponding to the action type through the target point address;

[0012] The action record event is encoded through the coding protocol and the target point address to obtain the action code.

[0013] In a possible design, the action record event is encoded through the coding protocol and the target point address to obtain the action code, including:

[0014] Get the input and output type of the target point address, as well as the level change of the target point address when the action record event is triggered;

[0015] A first interval code is obtained according to the input and output type, a second interval code is obtained according to the target point address, and a third interval code is obtained according to the level change;

[0016] The action code is obtained according to the first interval code, the second interval code and the third interval code.

[0017] In one possible design, for a target point address, when an action start signal or an action end signal of a production line equipment is detected, an action recording event is triggered, including:

[0018] Through the edge trigger mechanism of the point address, the level status of the target point address is continuously monitored;

[0019] When the level state of the target point address is monitored to change, it is determined that the action start signal or action end signal of the production line equipment is monitored, and the action recording event is triggered.

[0020] In one possible design, the level change is obtained based on the change in the level state of the target point address; the encoding time is obtained through a preset timestamp mechanism based on the time point recorded when the level state of the target point address changes.

[0021] In a possible design, the programmable logic controller is configured with two buffer areas of equal capacity, and the action record data is transmitted to the data storage terminal, including:

[0022] designating one of the two cache areas that is not fully written as a primary cache area, and designating the other of the two cache areas as a backup cache area;

[0023] Write the action record data into the main buffer area;

[0024] When the main cache area is full, the data written in the main cache area is transmitted to the data storage terminal;

[0025] Swaps the specified results of the primary and backup buffers.

[0026] In one possible design, the data storage terminal is specifically used to store action start recording data and action end recording data in pairs according to the triggering order of the action recording event; wherein, the action start recording data includes the action type and encoding time corresponding to the action start signal, and the action end recording data includes the action type and encoding time corresponding to the action end signal.

[0027] In a possible design, the data storage terminal pre-stores an equipment action data table, and the equipment action data table is preset with the action type of the action start record data and the action end record data;

[0028] The data storage terminal is specifically used to write the encoding time corresponding to each action type into the equipment action data table.

[0029] A second aspect of the present application provides a fine-grained collection device for equipment action data, the device comprising:

[0030] A programmable logic controller is used to execute the fine-grained collection method of equipment action data of the first aspect.

[0031] A third aspect of the present application provides a fine-grained collection system for equipment action data, the system comprising:

[0032] Such as the fine-grained equipment action data collection device of the second aspect, and the data storage terminal and multiple production line equipment communicatively connected to the fine-grained equipment action data collection device.

[0033] The present application provides a method, device, and system for fine-grained collection of equipment action data. The method comprises: upon monitoring an action start signal or an action end signal of production line equipment, triggering an action record event, encoding the action record event through a preset encoding protocol to obtain an action code, and obtaining a coding time based on the triggering time of the action record event; obtaining action record data of the action record event based on the action code and coding time; transmitting the action record data to a data storage terminal; the data storage terminal is used to parse the action record data to obtain an action code and coding time, and obtain equipment action data based on the action code and coding time. The following technical effects are achieved: the programmable logic controller converts the action of the production line equipment into a digital action code and coding time through the action record event and coding protocol, thereby improving the fine-grainedness of the equipment action data and ensuring the association between the equipment action data and the action of the production line equipment; the programmable logic controller triggers an action record event for each action by monitoring the action start signal or action end signal, thereby achieving event-driven data collection and ensuring that every action of the production line equipment is recorded in detail. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0035] Figure 1 A schematic diagram of a scenario for a fine-grained collection method of equipment action data provided in an embodiment of the present application;

[0036] Figure 2 A schematic diagram of the system architecture of a programmable logic controller provided in an embodiment of the present application;

[0037] Figure 3 Schematic diagram of the process of the fine-grained collection method of equipment action data provided in the embodiment of the present application Figure 1 ;

[0038] Figure 4 Schematic diagram of the process of the fine-grained collection method of equipment action data provided in the embodiment of the present application Figure 2 .

[0039] Reference numerals:

[0040] 110-Production line equipment; 120-Programmable logic controller; 121-Point address; 122-Data recording module; 123-Cache area; 130-Data storage terminal; 140-Data analysis terminal. DETAILED DESCRIPTION

[0041] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0042] In this application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be interpreted as being more preferred or advantageous than other embodiments or design. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In this application, "at least one" refers to one or more, and "more than one" refers to two or more.

[0043] It should be noted that the "at..." in this application can be the instant when a certain situation occurs, or it can be a period of time after a certain situation occurs, and this application does not make specific limitations on this. In addition, the fine-grained collection method of equipment action data provided in this application is only an example, and the fine-grained collection method of equipment action data can also include more or less content. The user information (including but not limited to user device information and user personal information, etc.) and data (including but not limited to data for analysis, stored data and displayed data, etc.) involved in one or more embodiments of this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0044] To facilitate a clear description of the technical solution of this application, the following briefly introduces some of the terms and technologies involved in this application:

[0045] Industrial AI refers to the application of artificial intelligence technologies to the industrial sector to optimize manufacturing processes, improve quality control, predict maintenance needs, and enhance supply chain efficiency. Industrial AI uses machine learning, deep learning, and data analytics to analyze and process production data to support decision-making.

[0046] Programmable Logic Controller (PLC): A digital computing and operating electronic system designed for industrial production environments, primarily used to control various types of electromechanical processes or devices. PLCs can be programmed to perform a series of logical, sequential, timing, and counting operations to suit diverse production needs.

[0047] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail.

[0048] As the manufacturing industry continues to advance towards digitalization and intelligentization, the amount of data generated throughout the entire production process is growing exponentially, with production management data being the primary source. This data is primarily used to plan production processes and determine the timing and resource allocation for each stage of production, ensuring the orderly progress of production.

[0049] With the development of intelligent manufacturing technology, industrial AI is increasingly demanding fine-grained data. However, current production management data mostly focuses on macro-level production management and decision support, while neglecting the micro-level details of production line equipment movement, that is, equipment movement data related to the product manufacturing process.

[0050] Specifically, during the manufacturing process, there's a significant lack of data on the motion of production line equipment. Even when some motion data is collected, it's often collected at a fixed interval (e.g., once per second). This method only identifies key motions at key points in the production process, but fails to capture instantaneous motions (such as robotic arm operation sequences and sensor triggering). This makes it difficult to construct a complete timeline of equipment operations, resulting in insufficient data integrity and accuracy.

[0051] Due to the lack of sufficient effective correlation between equipment action data and production line equipment actions, industrial artificial intelligence is unable to accurately predict equipment failures when conducting equipment pre-diagnosis due to insufficient data support, and cannot take maintenance measures in advance, which may lead to production interruptions and increase production costs; at the same time, when conducting performance analysis, industrial artificial intelligence is unable to comprehensively evaluate the operating efficiency and synergy of each production line equipment in the production process, limiting the maximization of production efficiency.

[0052] In summary, current methods for collecting and storing equipment motion data are no longer able to meet the needs of intelligent manufacturing development. Therefore, how to improve the granularity of equipment motion data and ensure the correlation between equipment motion data and the movements of production line equipment is an urgent problem to be solved in this application.

[0053] To address this issue, research has found that the first step is to configure two buffers of equal capacity on the PLC and implement fine-grained data collection using an event-driven approach. When production line equipment begins or ends an action, the PLC records the system time and stores the action code paired with a timestamp in the currently active buffer. This dual-buffer design allows automatic switching when one buffer fills, while simultaneously sending data from the full buffer to the data storage terminal. At the data storage terminal, the received data is parsed according to a predefined encoding protocol and stored in pairs, denoting the start and end of the action.

[0054] Based on the above creative findings, the technical solution of the present application is proposed.

[0055] The following introduces the application scenarios of the fine-grained collection method of equipment action data provided by this application.

[0056] Figure 1 This is a schematic diagram of a scenario for a fine-grained collection method of equipment action data provided in an embodiment of the present application. It should be noted that: Figure 1 What is shown are merely examples of scenarios in which the present application can be applied, to help those skilled in the art understand the technical content of the present application, but does not mean that the present application cannot be used in other devices, systems, environments or scenarios.

[0057] like Figure 1 As shown, the application scenario includes: multiple production line equipment 110, a programmable logic controller 120, a data storage terminal 130 and a data analysis terminal 140.

[0058] Production line equipment 110 is used to execute preset actions to complete the corresponding production line product manufacturing process. For example, in a wheel hub processing line, for the hub drilling process, production line equipment 110 may include a conveyor belt, clamping equipment, drilling equipment, and machine vision positioning equipment. The clamping equipment securely clamps the hub by retracting and retracting the cylinder. The clamping equipment includes a clamp cylinder and an air inlet solenoid valve and an exhaust solenoid valve controlled by a programmable logic controller 120. These two valves are responsible for supplying and exhausting air to the cylinder, respectively, to achieve clamping and release actions.

[0059] The programmable logic controller 120 is simultaneously connected to multiple production line equipment 110. The programmable logic controller 120 can be classified according to its structural form, such as an integrated PLC or a modular PLC; classified according to the scale of input and output (I / O) points, such as a small PLC, a medium-sized PLC or a large PLC; classified according to its functional characteristics, such as a general-purpose PLC, a high-performance PLC or a safety PLC.

[0060] Figure 2This is a schematic diagram of the system architecture of the programmable logic controller provided in the embodiment of the present application. Figure 1 and Figure 2 As shown, the programmable logic controller 120 serves as the core data source of the production line and is used to execute the fine-grained collection method of equipment action data of the embodiment of the present application. Specifically, the programmable logic controller 120 is configured with multiple point addresses 121. Each production line equipment 110, or a component of each production line equipment 110 (in the above example, the production line equipment 110 is a clamping device, and the components of the production line equipment 110 are the air inlet solenoid valve and the exhaust solenoid valve), is connected to at least one point address 121. The programmable logic controller 120 is used to control the corresponding production line equipment 110 to perform preset actions through these point addresses 121. When the production line equipment 110 starts or ends an action, the corresponding point address 121 is triggered. For example, when the action starts, the point address 121 is triggered on the rising edge (Positive, P), that is, a change from a low level to a high level; when the action ends, the point address 121 is triggered on the falling edge (Negative, N), that is, a change from a high level to a low level.

[0061] The programmable logic controller 120 is further configured with a data recording module 122 , which records the timestamp of each action signal trigger and the corresponding action code, ensuring that each action record event has a unique identifier.

[0062] The programmable logic controller 120 is further configured with a buffer area 123 for temporarily storing data generated by the data recording module, ensuring that the data can be transmitted to the data storage terminal 130 in an orderly manner even under high load conditions.

[0063] The data storage terminal 130 is in communication with the programmable logic controller 120 and can be a dedicated data server or a cloud storage service. The data storage terminal 130 is used to parse and store the data transmitted by the programmable logic controller 120, and ultimately form complete equipment action data.

[0064] Data analysis terminal 140 is in communication with data storage terminal 130 and can be a dedicated data server or cloud storage service. Data analysis terminal 140 is equipped with industrial AI and is used to perform equipment pre-diagnosis and / or performance analysis on multiple production line equipment 110 based on the equipment operation data stored in data storage terminal 130.

[0065] In other application scenarios, the data storage terminal 130 and the data analysis terminal 140 may be two independent physical servers, or different virtual divisions of the same physical server.

[0066] In other application scenarios, there are multiple programmable logic controllers 120, and each programmable logic controller 120 is used to execute the fine-grained collection method of equipment action data in the above embodiment. Then the data storage terminal 130 also stores the equipment action data corresponding to each programmable logic controller 120.

[0067] In other application scenarios, there are multiple data storage terminals 130 , and the programmable logic controller 120 transmits data to each data storage terminal 130 simultaneously, so each data storage terminal 130 stores equipment action data.

[0068] The technical solution of the present application is described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0069] Figure 3 Schematic diagram of the process of the fine-grained collection method of equipment action data provided in the embodiment of the present application Figure 1 .like Figure 3 As shown, in the embodiment of the present application, the execution subject may be a programmable logic controller. Then the fine-grained collection method of equipment action data provided in the embodiment of the present application includes the following steps:

[0070] S301. When an action start signal or an action end signal of a production line equipment is monitored, an action recording event is triggered. The action recording event is encoded using a preset encoding protocol to obtain an action code, and the encoding time is obtained based on the triggering time of the action recording event.

[0071] Specifically, the action start signal and action end signal are electrical signals or other forms of signals sent by the production line equipment or directly by the programmable logic controller, indicating the start or end of an action of a certain production line equipment. For example, in the above example, when the machine vision instrument detects that the wheel hub has reached the specified position, it sends an action start signal of the clamping device to the programmable logic controller, and the programmable logic controller controls the clamping device to clamp the wheel hub; when the drilling equipment completes the drilling work of the wheel hub, it sends an action end signal of the clamping device to the programmable logic controller, and the programmable logic controller controls the clamping device to release the wheel hub. For another example, in the above example, when the programmable logic controller controls the clamping device to clamp the wheel hub according to the preset program, it is determined that the action start signal of the clamping device has been detected, and when it controls the clamping device to release the wheel hub, it is determined that the action end signal of the clamping device has been detected.

[0072] When the programmable logic controller monitors the above signal, it triggers an action recording event and starts executing the data recording action of the action code and coding time. Specifically, once the action recording event is triggered, the programmable logic controller encodes the event through a preset coding protocol, generates an action code, and records the coding time when the action occurs. Among them, the coding protocol is a set of pre-defined rules used to convert the action type into an action code in digital or character form and associate it with the time of occurrence. The coding protocol not only converts the action type into an easy-to-process form, but also ensures compatibility and data consistency between different systems. The action code is used to indicate the action type of the production line equipment, such as the clamping action and drilling action in the above example; the coding time is the exact time point of the action recording event, usually accurate to seconds or even milliseconds.

[0073] S302: Obtain action record data of the action record event according to the action code and the coding time.

[0074] Specifically, action record data is a set of information containing action codes and their corresponding coding times, and is the basic data for further analysis.

[0075] S303: Transmit the action record data to the data storage terminal.

[0076] Specifically, the programmable logic controller transmits the generated action record data to the data storage terminal. The transmission process can be real-time, and each time an action record data is generated, the programmable logic controller transmits it to the data storage terminal; the transmission process can also be periodic, and the programmable logic controller first stores the generated action record data in its own cache area, and then transmits it to the data storage terminal at fixed time intervals or when the cache area is full.

[0077] After receiving the action record data, the data storage terminal parses the action record data to obtain the action code and encoding time. Specifically, according to the aforementioned preset encoding protocol or other encoding protocols, the action code is converted into an understandable action type, such as clamping, releasing, and drilling. Simultaneously, the precise timestamp corresponding to the action type, i.e., the encoding time, is extracted from the action record data.

[0078] The data storage terminal is further used to obtain equipment action data based on the action code and the coding time. Specifically, the data storage terminal stores the action code or the action type it indicates, and its corresponding coding time, and obtains the equipment action data through this associative storage method.

[0079] Furthermore, to ensure data accuracy and logic, the data storage terminal stores data in the order in which the action recording events were triggered. This means that the data corresponding to an action's start signal is stored before the data corresponding to the action's end signal. Furthermore, during storage, the action type and its corresponding encoding time are both saved. This approach facilitates a clear understanding of the time and type of each action during subsequent analysis.

[0080] Furthermore, the data storage terminal can store the action type and encoding time based on the action type, that is, the data storage terminal stores the action type and encoding time corresponding to the action start signal and the action end signal of each action together; or, the data storage terminal can also store the action type and encoding time based on the encoding time. If the encoding time of an action is before that of another action, this order will also be maintained in the final storage result.

[0081] The embodiment of the present application provides a method for fine-grained collection of equipment action data, the method comprising: upon monitoring an action start signal or an action end signal of production line equipment, triggering an action record event, encoding the action record event through a preset encoding protocol to obtain an action code, and obtaining a coding time based on the triggering time of the action record event; obtaining action record data of the action record event based on the action code and coding time; transmitting the action record data to a data storage terminal; the data storage terminal is used to parse the action record data to obtain an action code and coding time, and obtain equipment action data based on the action code and coding time. The following technical effects are achieved: the programmable logic controller converts the action of the production line equipment into a digital action code and coding time through the action record event and coding protocol, thereby improving the fine-grainedness of the equipment action data and ensuring the association between the equipment action data and the action of the production line equipment; the programmable logic controller triggers an action record event for each action by monitoring the action start signal or action end signal, thereby achieving event-driven data collection and ensuring that every action of the production line equipment is recorded in detail.

[0082] Figure 4 Schematic diagram of the process of the fine-grained collection method of equipment action data provided in the embodiment of the present application Figure 2 .like Figure 4 As shown, the fine-grained collection method of equipment action data provided by the embodiment of the present application is based on Figure 3 Based on the fine-grained collection method of equipment action data provided in the embodiment, the fine-grained collection method of equipment action data provided in the embodiment is further refined and includes the following steps.

[0083] S401. When an action start signal or an action end signal of a production line equipment is monitored, an action recording event is triggered.

[0084] S402: Determine a target point address from a plurality of preset point addresses of the programmable logic controller.

[0085] Specifically, the PLC is configured with multiple preset point addresses, each corresponding to a specific action or state of production line equipment. Therefore, the PLC's multiple preset point addresses are associated with different actions or states. This step requires selecting one of these preset point addresses as the target point address. The PLC uses this target point address to control the production line equipment to perform the action corresponding to the action type.

[0086] After executing S402, the action record event is encoded using the encoding protocol and the target point address to obtain an action code. Specifically, using the preset encoding protocol and the selected target point address, the data corresponding to the action record event is combined with the point address to generate a unique action code. This action code not only contains an indication of the action type, but also implicitly associates the specific hardware resources. This step includes:

[0087] S403: Acquire the input and output type of the target point address, and the level change of the target point address when the action record event is triggered.

[0088] Specifically, the input / output type refers to the functional attributes of the target point address within the programmable logic controller (PLC). Specifically, it refers to whether the point is used to receive external signals (input) or to send control commands (output). This determines how the point interacts with external devices. A level change refers to a change in the voltage state of the target point address, typically manifested as a transition between high and low levels. This level change can be used to indicate an action record event corresponding to an action start or end signal.

[0089] By obtaining the input and output type of the target point address, it can be determined whether it is used as input or output during the data acquisition process; at the same time, the level change at the target point address is monitored when the action record event is triggered.

[0090] S404: Obtain a first interval code according to the input / output type, obtain a second interval code according to the target point address, and obtain a third interval code according to the level change.

[0091] Specifically, a first interval code is generated based on the acquired input and output types, which reflects the functional characteristics of the target point address; a second interval code is generated based on the information of the target point address itself, which helps to identify which specific hardware resource is activated; and a third interval code is generated based on the level change pattern, which describes the specific electrical state changes when the action occurs.

[0092] S405 : Obtain an action code according to the first interval code, the second interval code, and the third interval code.

[0093] Specifically, the first, second, and third interval codes obtained in the above steps are combined to form a complete action code. This code integrates all relevant information about input and output types, specific point addresses, and level changes, and can accurately describe an action record event.

[0094] After executing S405, continue to execute S406.

[0095] S406: Obtain the encoding time according to the triggering time of the action record event.

[0096] S407: Obtain action record data of the action record event according to the action code and the coding time.

[0097] S408: Transmit the action record data to the data storage terminal.

[0098] The technical effect of the embodiment of the present application is: action codes are generated based on the target point address and its input and output types and level changes, so that each action record event not only contains information on the action type, but also is associated with specific hardware resources and electrical status changes, thereby improving the accuracy and uniqueness of the action record and reducing the possibility of misjudgment.

[0099] In one possible design, for the target point address, S401 includes:

[0100] S4011. Continuously monitor the level status of the target point address through the edge trigger mechanism of the point address.

[0101] Specifically, the edge-triggered mechanism of a point address is a method for detecting changes in input signals, with a particular focus on rising and falling edges of the signal level. For programmable logic controllers, this mechanism can accurately capture the state transitions of specific hardware resources.

[0102] S4012: When a change in the level state of the target point address is detected, it is determined that an action start signal or an action end signal of the production line equipment is detected.

[0103] S4013. Trigger an action recording event.

[0104] Specifically, based on the changes in the level state, the programmable logic controller interprets these changes as action start and end signals for the production line equipment, triggering action recording events. For example, a rising edge trigger may indicate the start of an action, while a falling edge trigger may indicate the end of an action.

[0105] In a possible design, the level change is obtained according to the change result of the level state of the target point address.

[0106] Specifically, for example, when the change result of the level state indicates a change from a low level to a high level, the level change is triggered by a rising edge, and the third area code is defined as 0; when the change result of the level state indicates a change from a high level to a low level, the level change is triggered by a falling edge, and the third area code is defined as 1.

[0107] The encoding time is obtained through a preset timestamp mechanism based on the time point recorded when the level state of the target point address changes.

[0108] Specifically, a timestamp mechanism is a method for recording the precise time of an event. By providing data with a temporal dimension, it makes data processing and analysis more organized and efficient. For pulse-width modulation (PWM) signals, which represent level changes, since their time periods are in the millisecond (ms) and microsecond (us) range, timer interrupts can be used to precisely record the timing of their rising and falling edges. Specifically, in a PWM signal, by recording the timing of the rising and falling edges, the high-level duration and total period can be calculated, thereby accurately recording the level state.

[0109] The technical effect of the embodiment of the present application is: triggering action recording events through changes in level status, quickly and accurately responding to any level changes on the point address, and ensuring that every action of the production line equipment can be captured in time.

[0110] In one possible design, the programmable logic controller is configured with two cache areas of equal capacity. The cache area refers to an area in the programmable logic controller used to temporarily store data. Then S405 includes:

[0111] S4051: designate one of the two cache areas that is not fully written as a primary cache area, and designate the other of the two cache areas as a backup cache area.

[0112] Specifically, the primary buffer is the buffer currently designated for writing new action record data. Specifically, when a new action record event is triggered, the action record data is written to this buffer. The backup buffer, in contrast to the primary buffer, is not directly used for writing new action record data during the current cycle, but is prepared to become the primary buffer when needed. The configuration of the primary and backup buffers ensures that there is always an available buffer to store new action record data.

[0113] S4052. Write the action record data into the main buffer area.

[0114] S4053: When the main cache area is full, the data written in the main cache area is transmitted to the data storage terminal.

[0115] Specifically, all new action record data is written to the currently designated primary buffer until it reaches its capacity limit. At this point, the data stored in the primary buffer is transmitted in the form of data packets via common industrial network protocols such as the User Datagram Protocol (UDP) to a more permanent data storage terminal for storage, freeing up space in the buffer.

[0116] S4054: Exchange the designated results of the primary cache area and the backup cache area.

[0117] Specifically, when the primary cache area is full, the original primary cache area is changed into a new backup cache area, and the original backup cache area is changed into a new primary cache area.

[0118] The technical effect of the embodiment of the present application is: through double-buffer alternating transmission, without affecting the collection of action record data, the network instantaneous load pressure is alleviated, data congestion is avoided, and the stability of the programmable logic controller operation is improved.

[0119] In a possible design, the data storage terminal is specifically used to store the action start record data and the action end record data in pairs according to the triggering order of the action record event.

[0120] Specifically, the action start record data includes the action type and encoding time corresponding to the action start signal, and the action end record data is similar to the action start record data, including the action type and encoding time corresponding to the action end signal.

[0121] Whenever an action record event corresponding to an action start record data is triggered, the corresponding action end record data will also be captured in pairs. The two related records will be stored together in the data storage terminal, and the time sequence relationship between them will remain unchanged. Each pair of records will contain the action start record data and the corresponding action end record data.

[0122] The technical effect of the embodiment of the present application is that the data storage terminal stores the action type and encoding time according to the triggering order of the action recording event, thereby improving the accuracy and logic of the equipment action data.

[0123] In a possible design, the data storage terminal pre-stores an equipment action data table, and the equipment action data table is preset with the action type of the action start record data and the action end record data;

[0124] The data storage terminal is specifically used to write the encoding time corresponding to each action type into the equipment action data table.

[0125] The following is a specific example of a wheel hub drilling process in a wheel hub processing production line provided in an embodiment of the present application. The example includes the following steps.

[0126] Step 1: Based on the triggered action record event, obtain the action code and coding time.

[0127] The action code protocol uses a 5-bit encoding rule. The first digit is coded based on the input / output type of the target point address. If the point is an input, the first area is coded as 1; if it is an output, the first area is coded as 0. The target point address is coded based on 2 to 4 digits, with the second area being the target point address itself. The last digit is coded based on the level change of the target point address. If the level change is a rising edge trigger, the third area is coded as 0; if it is a falling edge trigger, the third area is coded as 1.

[0128] Table 1 is a table of action codes for clamping and releasing the wheel hub provided by the cylinder in the embodiment of the present application. As shown in Table 1, when the cylinder clamps and releases the wheel hub, the action codes are expressed as:

[0129] Table 1

[0130]

[0131] When the wheel hub starts to release, the programmable logic controller transmits a release start instruction to the exhaust hole solenoid valve of the clamping device. The point address corresponding to the instruction is configured as an output signal, and its first area code is 0; the start of wheel hub clamping is similar, and its first area code is also 0.

[0132] After the exhaust hole solenoid valve of the clamping device performs the corresponding action and lasts for a period of time, or when the monitoring device such as the pressure sensor equipped on the clamping device detects that the wheel hub release has been completed and has been successfully released, the clamping device will determine that the wheel hub release has been completed and transmit an instruction to the programmable logic controller. The point address corresponding to the instruction is configured as an input signal, and its first area code is 1; the wheel hub clamping is completed similarly, and its first area code is also 1.

[0133] Step 2: Get the action record data of the action record event based on the action code and coding time. The programmable logic controller temporarily stores these action record data.

[0134] Table 2 is a storage data table of the programmable logic controller provided in the embodiment of the present application. As shown in Table 2, N groups of action codes and coding times, and their storage format in the programmable logic controller are represented as follows:

[0135] Table 2

[0136]

[0137] Step 3: The action record data is transmitted to the data storage terminal, and the data storage terminal stores the action type and coding time to obtain the equipment action data.

[0138] Table 3 is an equipment action data table provided in an embodiment of the present application. As shown in Table 3, the form in which the equipment action data table is stored in the data storage terminal is represented as follows:

[0139] Table 3

[0140]

[0141] The start time refers to the encoding time corresponding to the action start signal, and the end time refers to the encoding time corresponding to the action end signal.

[0142] Furthermore, throughout the entire production process, the actions of production line equipment are predefined and difficult to change. Therefore, the equipment action data table can be pre-stored in the data storage terminal. The contents of the first three columns in the table—the action type column, the action type variable name column, and the encoding time column—can also be pre-set. After the data storage terminal parses the action record data, it simply writes the parsed encoding time into the corresponding position in the encoding time variable name column.

[0143] The present application also provides a device for collecting fine-grained equipment action data. The device includes a programmable logic controller configured to execute the method for collecting fine-grained equipment action data of the above method embodiment.

[0144] The fine-grained collection device for equipment action data provided in the embodiment of the present application can perform Figures 3 and 4 The technical solution of the method embodiment shown in the figure has the same implementation principle and technical effect as Figures 3 and 4 The method embodiments shown are similar and will not be described in detail in the embodiments of this application.

[0145] The present application also provides a fine-grained equipment action data collection system, which includes: a fine-grained equipment action data collection device as described in the above device embodiment, a data storage terminal and a plurality of production line equipment in communication with the fine-grained equipment action data collection device.

[0146] The fine-grained collection system of equipment action data provided by the embodiment of the present application is Figure 1 Similar to the application scenario shown in the figure, the fine-grained collection device of the system's equipment action data can be performed Figures 3 and 4 The technical solution of the method embodiment shown in the figure has the same implementation principle and technical effect as Figures 3 and 4 The method embodiments shown are similar and will not be described in detail in the embodiments of this application.

[0147] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the scope of protection of the present application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solution of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solution to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A fine-grained collection method for equipment action data, characterized in that: The method is applied to a programmable logic controller, and the method includes: The level status of the programmable logic controller's point address is continuously monitored through the edge trigger mechanism of the point address; when the level status of the target point address is monitored to change, it is determined that the action start signal or action end signal of the production line equipment is monitored, and the action recording event is triggered; wherein, the programmable logic controller is configured with multiple preset point addresses, each preset point address corresponds to a specific action or status of the production line equipment; the programmable logic controller is used to control the production line equipment to perform the action corresponding to the action type through the target point address; Acquire the input and output type of the target point address, and the level change of the target point address when the action record event is triggered; A first interval code is obtained based on the input / output type, a second interval code is obtained based on the target point address, and a third interval code is obtained based on the level change; wherein the first interval code reflects the functional characteristics of the target point address, the second interval code is used to identify which specific hardware resource is activated, and the third interval code describes the specific electrical state change when the action occurs; Obtaining an action code according to the first interval code, the second interval code, and the third interval code, and obtaining a coding time according to the triggering time of the action record event; wherein the action code is used to indicate the action type of the production line equipment; Obtaining action record data of the action record event according to the action code and the coding time; The action record data is transmitted to a data storage terminal; wherein the data storage terminal is used to parse the action record data to obtain the action code and the coding time, and obtain the equipment action data according to the action code and the coding time.

2. The fine-grained collection method for equipment action data according to claim 1, characterized in that: The level change is obtained according to the change result of the level state of the target point address; the encoding time is obtained through a preset timestamp mechanism, according to the time point recorded when the level state of the target point address changes.

3. The fine-grained collection method for equipment action data according to claim 1 or 2, characterized in that: The programmable logic controller is configured with two buffer areas of the same capacity, and the step of transmitting the action record data to the data storage terminal includes: designating one of the two buffer areas that is not fully written as a primary buffer area, and designating the other of the two buffer areas as a backup buffer area; Writing the action record data into the main buffer area; When the main cache area is full, the data written in the main cache area is transmitted to the data storage terminal; The designated results of the primary buffer area and the backup buffer area are exchanged.

4. The fine-grained collection method for equipment action data according to claim 1 or 2, characterized in that: The data storage terminal is specifically used to store action start record data and action end record data in pairs according to the triggering order of the action record event; wherein, the action start record data includes the action type and encoding time corresponding to the action start signal, and the action end record data includes the action type and encoding time corresponding to the action end signal.

5. The fine-grained collection method for equipment action data according to claim 4, characterized in that: The data storage terminal pre-stores an equipment action data table, wherein the equipment action data table is preset with the action type of each of the action start record data and the action end record data; The data storage terminal is specifically used to write the encoding time corresponding to each action type into the equipment action data table.

6. A fine-grained collection device for equipment motion data, characterized in that: The device comprises: A programmable logic controller, configured to execute the fine-grained collection method for equipment action data according to any one of claims 1 to 5.

7. A fine-grained collection system for equipment action data, characterized in that: The system comprises: The fine-grained equipment action data collection device according to claim 6, and a data storage terminal and a plurality of production line equipment communicatively connected to the fine-grained equipment action data collection device.

Citation Information

Patent Citations

  • Automatic line production task dynamic scheduling method

    CN111650895A

  • Event recording method, device and equipment of intelligent electric meter and storage medium

    CN118397719A

  • Interface connection method for execution device and programmable logic controller, control system and storage medium

    CN119247869A