Industrial equipment access method and equipment for low codes and medium
By building an industrial equipment protocol library and adding front-end components and data processing modules, the problem of industrial equipment access in the low-code development platform is solved, unified management and real-time feedback of industrial equipment data are realized, and digital transformation of enterprises is supported.
Patent Information
- Application Number
- CN202510094625.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-16
AI Technical Summary
The lack of complete access solutions for industrial equipment for low-code development platforms in the existing technology has made it difficult for enterprises to effectively access and manage industrial equipment, which in turn affects digital transformation.
By building an industrial equipment protocol library, using industrial equipment protocols to communicate with industrial equipment, extract data, and unify the data format through protocol conversion functions. At the same time, add front-end components and data processing modules corresponding to industrial equipment, bind production orders, feedback production progress and generate production reports.
It realizes the rapid, accurate collection and unified management of industrial equipment data, lowers the threshold for user operation, improves the real-time grasp of the equipment operation status, and supports the digital transformation of enterprises.
Smart Images

Figure CN120010837A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and specifically to a method, device and medium for low-code industrial equipment access. Background Art
[0002] With the development of technology, low-code development platforms can reduce the complexity of application development by deploying visual development tools, so that users with weak technical background or no background can also design and build applications.
[0003] However, in the field of industrial Internet, with the continuous updating of industrial equipment, industrial equipment not only has automation capabilities, but also has information functions. This makes some companies expect to be able to access industrial equipment in the process of using low-code development applications to further carry out enterprise digital transformation.
[0004] However, in traditional solutions, there is no complete access solution for industrial equipment on low-code development platforms. Summary of the invention
[0005] In order to solve the above problems, this application proposes a low-code industrial equipment access method, including:
[0006] Building an industrial equipment protocol library for the low-code development platform, and communicating with industrial equipment through the industrial equipment protocols in the industrial equipment protocol library to extract corresponding industrial equipment data;
[0007] By means of a protocol conversion function, the extracted industrial equipment data is converted into a data format so as to unify the format of the industrial equipment data;
[0008] Add the front-end components corresponding to the industrial equipment and the data processing modules corresponding to the industrial equipment;
[0009] Bind the production order, and determine and feedback the corresponding production progress according to the processing result of the industrial equipment data by the data processing module;
[0010] Generate and feedback corresponding production reports according to the production progress.
[0011] In one example, communicating with the industrial device through the industrial device protocol in the industrial device protocol library specifically includes:
[0012] Determining industrial equipment protocols in the industrial equipment protocol library, including protocols based on network communication and non-network communication protocols;
[0013] For industrial equipment with network communication capability, communicating with the network equipment through the network communication-based protocol;
[0014] For industrial equipment that does not have network communication capabilities, an edge device is added, and communication with the edge device is performed through the network communication-based protocol, and communication between the edge device and the industrial equipment is performed through the non-network communication protocol.
[0015] In one example, the network communication-based protocol includes a modbus-tcp protocol, a network interface is provided by an industrial device, the industrial device is accessed in the low-code development platform through the network interface, and a socket client program is written in the low-code development platform to interact with the industrial device through a libmodbus library;
[0016] The non-network communication protocol includes a protocol for communicating via a serial port, the edge device provides a network interface, the edge device communicates with the low-code development platform via the network interface, and communicates with the industrial device according to the protocol for communicating via a serial port;
[0017] The edge device includes at least one of an industrial control host and an embedded linxu device;
[0018] The network interface includes at least one of a CAN interface, a HART interface, a multi-network port, and a ZigBee interface.
[0019] In one example, the extracted industrial equipment data is converted into a data format through a protocol conversion function, specifically including:
[0020] According to a preset data storage method for multi-byte data, data format conversion is performed on the extracted industrial equipment data that does not conform to the data storage method;
[0021] The industrial equipment data after format conversion is stored uniformly;
[0022] The industrial equipment data is uniformly packaged according to a preset data packaging format.
[0023] In one example, adding a front-end component corresponding to the industrial device specifically includes:
[0024] Adding a front-end component corresponding to the industrial device, wherein the front-end component includes at least one of a device diagram and a switch state;
[0025] Setting the device properties of the front-end component and binding it with the corresponding industrial equipment;
[0026] The device attributes include at least one of a device ID, a data storage method, a number of data bytes, a configuration device address, a physical meaning corresponding to a request for sending and a configuration device address, a data encapsulation format, and a data acquisition frequency.
[0027] In one example, adding a data processing module corresponding to the industrial equipment specifically includes:
[0028] Based on the extracted industrial equipment data, obtain data values therein;
[0029] According to a preset calculation rule, the data value is used for calculation to obtain production information corresponding to the industrial equipment;
[0030] Recording the production information into a corresponding database;
[0031] According to the processing result of the industrial equipment data by the data processing module, the corresponding production progress is determined and fed back, specifically including:
[0032] According to the production information and the production order, the production progress corresponding to the feedback is determined in real time, and the completion status of the production order is predicted according to the production progress.
[0033] In one example, generating and feeding back a corresponding production report according to the production progress specifically includes:
[0034] According to the production speed, statistics are collected on the periodic production efficiency of the industrial equipment;
[0035] Determining the remaining capacity of the production equipment according to the cycle production efficiency and the standard production efficiency of the industrial equipment;
[0036] A corresponding production report is generated according to the cycle production efficiency and the remaining capacity.
[0037] In one example, statistics are collected on the cycle production efficiency of the industrial equipment according to the production speed, specifically including:
[0038] Determining a standard production efficiency of the industrial equipment, and dividing the industrial equipment into a plurality of efficiency intervals according to the standard production efficiency;
[0039] Determine a preset state collection cycle, and in each state collection cycle, determine the efficiency interval corresponding to the initial time according to the production efficiency at the initial time point, and determine the corresponding sampling interval according to the efficiency interval; wherein, the higher the production efficiency value corresponding to the efficiency interval, the longer the interval time of the sampling interval;
[0040] Performing interval sampling of time sampling points in the state acquisition cycle according to the sampling interval, and determining the efficiency interval corresponding to the time sampling point according to the production efficiency of each time sampling point;
[0041] When the efficiency interval corresponding to the time sampling point changes, the sampling interval is adaptively adjusted, and / or, when the frequency of change of the efficiency interval of multiple adjacent sampling points exceeds a preset frequency, after reducing the interval of the sampling interval, the sampling point interval between the multiple adjacent sampling points is re-sampled to determine the efficiency interval of the newly obtained time sampling point;
[0042] According to the efficiency intervals of two adjacent time sampling points, determine the efficiency interval of the sampling point interval of the industrial equipment between the two adjacent time sampling points; wherein, if the efficiency intervals of the two adjacent time sampling points are inconsistent, the efficiency interval of the sampling point interval is divided proportionally according to the difference between the production efficiency of the two adjacent time sampling points and the boundary value of the efficiency interval;
[0043] Statistics are performed based on the efficiency intervals of all sampling point intervals to obtain the periodic production efficiency of the industrial equipment.
[0044] On the other hand, the present application also proposes an industrial equipment access device for low-code, including:
[0045] at least one processor; and,
[0046] a memory communicatively connected to the at least one processor; wherein,
[0047] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: the low-code industrial equipment access method described in any of the above examples.
[0048] On the other hand, the present application also proposes a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as: a low-code industrial equipment access method as described in any of the above examples.
[0049] The low-code industrial equipment access method proposed in this application can bring the following beneficial effects:
[0050] 1. Through the industrial equipment protocol library and extracting equipment data according to the protocol, various types of industrial equipment data can be collected quickly and accurately. By setting various types of industrial equipment protocols, the data acquisition time can be shortened, allowing enterprises to grasp the equipment operation status in real time.
[0051] 2. Through the protocol conversion function, data from different devices can be processed in a common format, solving the data compatibility problem caused by device diversity and laying the foundation for the enterprise to build a unified data management system.
[0052] 3. Through the industrial equipment front-end components and binding devices and components, configure device-related information without complex programming. Device connection and information interaction can be achieved through simple component configuration, which reduces the user's operation threshold and realizes intuitive visual management, making it easier for users to make decisions quickly.
[0053] 4. Bind production orders with equipment production data and provide feedback on production progress, so that enterprises can grasp the order production progress in real time. The industrial equipment data processing module extracts equipment production information, helps enterprises to deeply analyze the production process, and generates production reports to provide intuitive data support for enterprises. Management can evaluate production performance and formulate strategic plans based on report data, make more scientific and reasonable decisions, and promote the digital transformation of enterprises. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0055] Figure 1 This is a flow chart of a low-code industrial equipment access method in an embodiment of the present application;
[0056] Figure 2 This is a schematic diagram of a low-code industrial equipment access device in an embodiment of the present application. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0058] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0059] like Figure 1 As shown, the embodiment of the present application provides a method for accessing industrial equipment with low code, including:
[0060] S101: Build an industrial equipment protocol library for the low-code development platform, and communicate with industrial equipment through the industrial equipment protocol in the industrial equipment protocol library to extract corresponding industrial equipment data.
[0061] A low-code development platform is a software development environment that can quickly generate applications without coding or with a small amount of code. It develops applications visually, allowing developers with different experience levels to create web and mobile applications through a graphical user interface, using drag-and-drop components and model-driven logic.
[0062] The industrial equipment protocol library contains the protocols required for communication between the low-code development platform and industrial equipment. For different application scenarios, different industrial equipment, and different low-code development platforms, the actual protocols used may be different.
[0063] Industrial equipment data may also be different for different industrial equipment. For example, when the industrial equipment is an industrial robot, the industrial equipment data may include end effector data, motion speed and acceleration data, fault diagnosis data, etc. When the industrial equipment is an intelligent sensor, the industrial equipment data may include physical quantity measurement values, sensor status data, etc.
[0064] Specifically, for industrial equipment, some industrial equipment has network communication capabilities, such as industrial robots, intelligent sensors, CNC machine tools, etc., while some do not have network communication capabilities, such as some old-style frequency converters, data acquisition terminals, etc.
[0065] Based on this, the industrial device protocols in the industrial device protocol library include protocols based on network communication and protocols based on non-network communication.
[0066] For industrial equipment with network communication capabilities, it is possible to communicate directly with network devices through protocols based on network communication.
[0067] For industrial equipment that does not have network communication capabilities, edge devices can be added to communicate with edge devices through network communication-based protocols, and edge devices and industrial equipment can communicate through non-network communication protocols. In this way, edge devices are used as communication intermediary devices between low-code development platforms and industrial equipment to assist in communication between the two.
[0068] Furthermore, taking a practical application as an example, the network communication-based protocol includes the modbus-tcp protocol. The network interface is provided by the industrial equipment, the industrial equipment is connected to the low-code development platform through the network interface, and the socket client program is written in the low-code development platform to interact with the industrial equipment through the libmodbus library.
[0069] The non-network communication protocol includes a protocol for communicating through a serial port. The edge device provides a network interface. The edge device communicates with the low-code development platform through the network interface and communicates with the industrial equipment according to the protocol for communicating through the serial port.
[0070] Among them, the edge device includes at least one of an industrial control host and an embedded linxu device, which communicates with the low-code platform through MQTT and HTTP protocol methods to transmit the read industrial equipment data.
[0071] The network interface includes at least one of a CAN interface, a HART interface, a multi-network port, and a ZigBee interface.
[0072] S102: converting the data format of the extracted industrial equipment data through a protocol conversion function to unify the format of the industrial equipment data.
[0073] The protocol conversion function refers to converting the data format and data encapsulation format through the corresponding protocol to unify them.
[0074] Specifically, taking industrial equipment that can record the production length of the equipment as an example, the acquired industrial equipment data usually exists in the form of bytes, and there is also the problem of data storage method (for example, big endian or little endian). For example, the read 2-byte data 0x00 0X01 is interpreted as 256 in big endian storage and as 1 in little endian storage.
[0075] At this time, according to the preset data storage method of multi-byte data (for example, uniformly set to big endian or little endian), the extracted industrial equipment data that does not conform to the data storage method is converted into a data format to conform to the preset data storage method of multi-byte data.
[0076] The industrial equipment data after format conversion is uniformly stored. According to the preset data encapsulation format, the industrial equipment data is uniformly encapsulated, for example, in json format. In an example, the json format can be: {deviceId:001, type:length, value:3000, datetime:2024-01-1212:14:55}, and it is stored in the database.
[0077] S103: Adding a front-end component corresponding to the industrial equipment and a data processing module corresponding to the industrial equipment.
[0078] The front-end component is mainly used to interact with users on the low-code development platform, receive user instructions, and feedback corresponding processing results to users.
[0079] Specifically, add the front-end components corresponding to the industrial equipment, which include at least one of the equipment diagram and the switch status. The equipment diagram can be used to display the appearance, internal structure or working principle of the industrial equipment, etc. It can be a physical diagram, an electrical diagram, a structural diagram, or a line chart or bar chart for displaying relevant data. The switch status is mainly used to display the status of each switch in the industrial equipment, including closed, open, abnormal, etc., and the corresponding gear can also be set.
[0080] Set the device properties of the front-end components and bind them to the corresponding industrial devices.
[0081] Among them, the device attributes include device ID (used to bind industrial equipment), data storage method (including big endian or little endian), number of data bytes (which is the number of bytes corresponding to the data storage method), configuration device address (used to parse industrial equipment data of industrial equipment), physical meaning corresponding to the request and configuration device address, data encapsulation format (for example, encapsulated as the type in the json string), and data acquisition frequency (for example, once per second by default, used to send instructions at regular intervals to obtain industrial equipment data).
[0082] The data processing module is mainly used to perform preliminary analysis on the acquired industrial equipment data, such as data cleaning of industrial equipment, extracting required data values from it, and performing statistical calculations on data values according to rules.
[0083] Specifically, based on the extracted industrial equipment data, the data values are obtained, and according to the preset calculation rules, the data values are used for calculation to obtain the production information corresponding to the industrial equipment. For example, when calculating the production length, the current raw data per minute is obtained, and the maximum length is subtracted from the minimum length to calculate the production length per minute.
[0084] After obtaining the required production information, the production information is recorded in the corresponding database.
[0085] S104: Bind the production order, and determine and feedback the corresponding production progress according to the processing result of the industrial equipment data by the data processing module.
[0086] Production orders can be obtained through relevant business platforms (such as ERP management platforms). The low-code development platform is associated with the business platform through relevant interfaces, so that the corresponding production orders can be obtained and bound.
[0087] After the production order starts, it is assigned to specific industrial equipment. At this time, the low-code development platform records the working time of each industrial equipment, calculates the total output of each industrial equipment from the start of the order based on the recorded output of the equipment per minute, accumulates the total output of each equipment from the start of the order, and divides it by the total output of the order to obtain the real-time feedback progress of the production order, calculate the remaining output of the order and the equipment production speed, and predict the subsequent completion time. Real-time feedback on the completion speed of the production order and predict the subsequent completion time.
[0088] Of course, in actual work, the production speed of the equipment may fluctuate according to the equipment status or human control, so the production speed can be calculated in real time through the data processing module, and the predicted completion speed, subsequent completion time, etc. can be updated.
[0089] S105: Generate and feed back a corresponding production report according to the production progress.
[0090] In addition to the production progress, the production report can also include other detailed data, making the production report more complete and displayed to the user so that the user can make decisions.
[0091] Specifically, the cycle production efficiency of industrial equipment is counted based on the production speed. Cycle production efficiency refers to the overall production efficiency of the equipment within a cycle (for example, one minute, one hour or one day, which can be set based on demand and can be changed at any time). Production efficiency can include: overload production, critical state production, normal production, inefficient production, stopped production, etc.
[0092] The remaining capacity of the production equipment is determined based on the cycle production efficiency and the standard production efficiency of the industrial equipment. For example, by subtracting the two, the remaining production efficiency can be used as the remaining capacity of the production equipment.
[0093] At this time, the corresponding production report is generated according to the cycle production efficiency and remaining capacity to facilitate user decision-making.
[0094] Furthermore, when statistics are collected on the cycle production efficiency, they can be collected directly through sampling. However, when the number of industrial equipment is large, it is difficult to conduct statistical analysis on the overall status of the industrial equipment.
[0095] Therefore, we first determine the standard production efficiency of industrial equipment (which is usually determined in the factory instructions of the equipment or through expert experience), and divide the industrial equipment into multiple efficiency ranges based on the standard production efficiency. In this way, in the production report, the efficiency range required for each equipment during production can be integrated and reported, thereby increasing the overall description of a large number of industrial equipment.
[0096] Determine a preset status collection cycle (for example, one minute, one hour or one day), and in each status collection cycle, determine the efficiency interval corresponding to the initial time based on the production efficiency at the initial time point (which may refer to a time point within a current short time range), that is, determine to which efficiency interval the production efficiency at the initial time point belongs.
[0097] The corresponding sampling interval is determined according to the efficiency interval. Generally speaking, the equipment will not be overloaded for a long time, so the higher the production efficiency value corresponding to the efficiency interval, the more stable the current equipment production is. At this time, the longer the sampling interval can be set. Of course, in order to prevent overload production, an abnormal alarm can also be issued when multiple sampling industrial equipment are overloaded.
[0098] The time sampling points are sampled at intervals in the state acquisition cycle according to the sampling interval time, and the efficiency interval corresponding to the time sampling points is determined according to the production efficiency at each time sampling point (similarly, it can be the production efficiency within a small time range at each time sampling point).
[0099] In the actual process of determining the efficiency range, some special situations may be encountered.
[0100] For example, when the efficiency interval corresponding to the time sampling point changes, the sampling interval is adjusted accordingly. When the time sampling point is collected later, the adjusted sampling interval is used until the efficiency interval of the next time sampling point changes. For example, if the efficiency interval decreases, it means that the production efficiency of the current industrial equipment has decreased. This may be due to equipment failure, order changes, external human control, etc., which requires closer attention, so the sampling interval needs to be shortened. Conversely, if the efficiency interval increases, the sampling interval is extended.
[0101] For example, when the frequency of change of the efficiency interval of multiple adjacent sampling points exceeds the preset frequency, it is considered that the state of the industrial equipment changes repeatedly during this period, and more detailed collection and judgment is required. Therefore, after reducing the interval time of the sampling interval (that is, increasing the density of the time sampling points), the sampling point interval between the multiple adjacent sampling points is re-sampled to determine the efficiency interval of the newly obtained time sampling points. By increasing the density of the time sampling points, a more detailed judgment can be made in the sampling point interval where the efficiency interval changes frequently.
[0102] At this time, the efficiency interval of each time sampling point is obtained, and the efficiency interval of the sampling point interval of the industrial equipment between the two adjacent time sampling points is determined according to the efficiency interval of the two adjacent time sampling points.
[0103] Among them, if the efficiency intervals of two adjacent time sampling points are consistent, the efficiency interval can be directly used as the efficiency interval of the sampling point interval. If they are inconsistent, the efficiency interval of the sampling point interval is divided proportionally according to the difference between the production efficiency of the two adjacent time sampling points and the boundary value of the efficiency interval. For example, the production efficiency of two adjacent time sampling points is A and B, and it is assumed that A>B. At this time, the production efficiency is slowly decreasing. A is in the first efficiency interval (C, D) and B is in the second efficiency interval (D, E). Then, (AD) and (DB) are used to obtain the difference between the two production efficiencies A and B and the boundary value of the efficiency interval D, and then the two are divided to obtain the ratio between the two through (AD) / (DB). According to this ratio, the sampling point interval between the two is divided.
[0104] At this point, the efficiency intervals of all sampling point intervals are completed. According to the efficiency intervals of all sampling point intervals, the cycle production efficiency of the industrial equipment is obtained. The cycle production efficiency includes the proportion of time that the industrial equipment is in each efficiency interval during the production process. When the number of industrial equipment is large, it can also be integrated and represented, so that all industrial equipment can be represented as a whole.
[0105] 1. Through the industrial equipment protocol library and extracting equipment data according to the protocol, various types of industrial equipment data can be collected quickly and accurately. By setting various types of industrial equipment protocols, the data acquisition time can be shortened, allowing enterprises to grasp the equipment operation status in real time.
[0106] 2. Through the protocol conversion function, data from different devices can be processed in a common format, solving the data compatibility problem caused by device diversity and laying the foundation for the enterprise to build a unified data management system.
[0107] 3. Through the industrial equipment front-end components and binding devices and components, configure device-related information without complex programming. Device connection and information interaction can be achieved through simple component configuration, which reduces the user's operation threshold and realizes intuitive visual management, making it easier for users to make decisions quickly.
[0108] 4. Bind production orders with equipment production data and provide feedback on production progress, so that enterprises can grasp the order production progress in real time. The industrial equipment data processing module extracts equipment production information, helps enterprises to deeply analyze the production process, and generates production reports to provide intuitive data support for enterprises. Management can evaluate production performance and formulate strategic plans based on report data, make more scientific and reasonable decisions, and promote the digital transformation of enterprises.
[0109] like Figure 2 As shown, the embodiment of the present application also provides an industrial equipment access device for low code, including:
[0110] at least one processor; and,
[0111] a memory communicatively connected to the at least one processor; wherein,
[0112] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: the low-code industrial equipment access method described in any of the above embodiments.
[0113] An embodiment of the present application also provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to be: the low-code industrial equipment access method described in any of the above embodiments.
[0114] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0115] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0116] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0117] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0118] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0119] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0120] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0121] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0122] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0123] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0124] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for low-code industrial equipment access, characterized in that: include: Building an industrial equipment protocol library for the low-code development platform, and communicating with industrial equipment through the industrial equipment protocols in the industrial equipment protocol library to extract corresponding industrial equipment data; By means of a protocol conversion function, the extracted industrial equipment data is converted into a data format so as to unify the format of the industrial equipment data; Add the front-end components corresponding to the industrial equipment and the data processing modules corresponding to the industrial equipment; Bind the production order, and determine and feedback the corresponding production progress according to the processing result of the industrial equipment data by the data processing module; Generate and feedback corresponding production reports according to the production progress.
2. The method according to claim 1, characterized in that Communicate with industrial equipment through the industrial equipment protocol in the industrial equipment protocol library, specifically including: Determining industrial equipment protocols in the industrial equipment protocol library, including protocols based on network communication and non-network communication protocols; For industrial equipment with network communication capability, communicating with the network equipment through the network communication-based protocol; For industrial equipment that does not have network communication capabilities, an edge device is added, and communication with the edge device is performed through the network communication-based protocol, and communication between the edge device and the industrial equipment is performed through the non-network communication protocol.
3. The method according to claim 2, characterized in that The network communication-based protocol includes the modbus-tcp protocol, the network interface is provided by the industrial equipment, the industrial equipment is connected to the low-code development platform through the network interface, and a socket client program is written in the low-code development platform to interact with the industrial equipment through the libmodbus library; The non-network communication protocol includes a protocol for communicating via a serial port, the edge device provides a network interface, the edge device communicates with the low-code development platform via the network interface, and communicates with the industrial device according to the protocol for communicating via a serial port; The edge device includes at least one of an industrial control host and an embedded linxu device; The network interface includes at least one of a CAN interface, a HART interface, a multi-network port, and a ZigBee interface.
4. The method according to claim 1, characterized in that: The extracted industrial equipment data is converted into a data format through the protocol conversion function, specifically including: According to a preset data storage method for multi-byte data, data format conversion is performed on the extracted industrial equipment data that does not conform to the data storage method; The industrial equipment data after format conversion is stored uniformly; The industrial equipment data is uniformly packaged according to a preset data packaging format.
5. The method according to claim 4, characterized in that Add the front-end components corresponding to the industrial equipment, including: Adding a front-end component corresponding to the industrial device, wherein the front-end component includes at least one of a device diagram and a switch state; Setting the device properties of the front-end component and binding it with the corresponding industrial equipment; The device attributes include at least one of a device ID, a data storage method, a number of data bytes, a configuration device address, a physical meaning corresponding to a request for sending and a configuration device address, a data encapsulation format, and a data acquisition frequency.
6. The method according to claim 1, characterized in that Add the data processing module corresponding to the industrial equipment, specifically including: Based on the extracted industrial equipment data, obtain data values therein; According to a preset calculation rule, the data value is used for calculation to obtain production information corresponding to the industrial equipment; Recording the production information into a corresponding database; According to the processing result of the industrial equipment data by the data processing module, the corresponding production progress is determined and fed back, specifically including: According to the production information and the production order, the production progress corresponding to the feedback is determined in real time, and the completion status of the production order is predicted according to the production progress.
7. The method according to claim 1, characterized in that Generate and feedback the corresponding production report according to the production progress, including: According to the production speed, statistics are collected on the periodic production efficiency of the industrial equipment; Determining the remaining capacity of the production equipment according to the cycle production efficiency and the standard production efficiency of the industrial equipment; A corresponding production report is generated according to the cycle production efficiency and the remaining capacity.
8. The method according to claim 7, characterized in that According to the production speed, the cycle production efficiency of the industrial equipment is counted, specifically including: Determining a standard production efficiency of the industrial equipment, and dividing the industrial equipment into a plurality of efficiency intervals according to the standard production efficiency; Determine a preset state collection cycle, and in each state collection cycle, determine the efficiency interval corresponding to the initial time according to the production efficiency at the initial time point, and determine the corresponding sampling interval according to the efficiency interval; wherein, the higher the production efficiency value corresponding to the efficiency interval, the longer the interval time of the sampling interval; Performing interval sampling of time sampling points in the state acquisition cycle according to the sampling interval, and determining the efficiency interval corresponding to the time sampling point according to the production efficiency of each time sampling point; When the efficiency interval corresponding to the time sampling point changes, the sampling interval is adaptively adjusted, and / or, when the frequency of change of the efficiency interval of multiple adjacent sampling points exceeds a preset frequency, after reducing the interval of the sampling interval, the sampling point interval between the multiple adjacent sampling points is re-sampled to determine the efficiency interval of the newly obtained time sampling point; According to the efficiency intervals of two adjacent time sampling points, determine the efficiency interval of the sampling point interval of the industrial equipment between the two adjacent time sampling points; wherein, if the efficiency intervals of the two adjacent time sampling points are inconsistent, the efficiency interval of the sampling point interval is divided proportionally according to the difference between the production efficiency of the two adjacent time sampling points and the boundary value of the efficiency interval; Statistics are performed based on the efficiency intervals of all sampling point intervals to obtain the periodic production efficiency of the industrial equipment.
9. A low-code industrial equipment access device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: the low-code industrial equipment access method as described in any one of claims 1 to 8.
10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are set to: the low-code industrial equipment access method described in any one of claims 1 to 8.