Disclosure of Invention
The embodiment of the application provides a method and a device for processing interactive data, an electronic device and a storage medium, so as to at least solve the problem of low processing efficiency of interactive data in the related art.
In a first aspect, an embodiment of the present application provides a method for processing interactive data, where the method includes:
acquiring classification information of the interactive data;
configuring the behavior parameters of the classification information to a control, configuring the instantiated component by using the control, and configuring a control flow according to the classification information;
and sending the interaction data to a device control apparatus when the component and the control flow configuration are completed.
In one possible embodiment, the equipment control device includes a production logistics equipment and a processor, and the sending the interaction data to the equipment control device includes:
sending the interaction data to the production logistics equipment and/or sending the interaction data to the processor;
and under the condition that the interactive data is only sent to the processor, the processor sends the interactive data to a Field Programmable Gate Array (FPGA).
In a possible embodiment, in case that the interaction data is transmitted only to the production logistics apparatus, the method further comprises:
sending the interactive data to an Intelligent digital factory management system (IFMS) through the production logistics equipment; wherein the IFMS is configured to provide data to the production logistics apparatus and maintain the interaction data.
In one possible embodiment, the configuring instantiated components with the control and configuring control flows according to the classification information includes:
configuring a register address scheme to the control flow and the component and configuring the component with the control; wherein the register address scheme comprises: component addresses, control flow addresses, and parameter addresses;
and acquiring an automatic matching result of the register address according to the register address scheme through the component.
In a possible embodiment, the sending the interaction data to the device control apparatus includes:
storing the interactive data in an interactive file according to the classification information, and configuring the control flow into the interactive file; acquiring the classification information according to a classification protocol of the interactive file;
and exporting the interactive file and sending the interactive file to the equipment control device.
In one possible embodiment, the configuring the control flow according to the classification information includes:
and configuring the control flow according to the behavior data in the classification information and the behavior parameters corresponding to the behavior data.
In a possible embodiment, after configuring the control flow according to the classification information, the method further includes:
modifying the behavior parameters in the event of detecting a parameter configuration error of the control flow.
In a second aspect, an embodiment of the present application provides an apparatus including: the system comprises a classification module, a configuration module and an interaction module;
the classification module is used for acquiring classification information of the interactive data;
the configuration module is used for configuring the behavior parameters of the classification information to a control, configuring the instantiated component by using the control and configuring a control flow according to the classification information;
and the interaction module is used for sending the interaction data to the equipment control device under the condition that the components and the control flow configuration are completed.
In a third aspect, an embodiment of the present application provides a system for processing interactive data, where the system includes: configuring a platform device and a device control device; wherein the configuration platform device is connected with the equipment control device;
the configuration platform device is configured to execute the interactive data processing method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic apparatus, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the method for processing interaction data according to the first aspect.
In a fifth aspect, the present application provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for processing interactive data according to the first aspect.
Compared with the related art, the interactive data processing method, the interactive data processing device, the electronic device and the storage medium provided by the embodiment of the application acquire the classification information of the interactive data; configuring the behavior parameters of the classification information to a control, configuring the instantiated component by using the control, and configuring the control flow according to the classification information; and sending the interactive data to the equipment control device under the condition that the configuration of the component and the control flow is completed, so that the problem of low processing efficiency of the interactive data is solved, and the data interaction between the configuration platform and the bottom layer software is realized.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
In this embodiment, a method for processing interactive data is provided, and fig. 1 is a flowchart of a method for processing interactive data according to an embodiment of the present application, and as shown in fig. 1, the flowchart includes the following steps:
step S102, obtaining the classification information of the interactive data. It should be noted that the interactive data in the embodiments of the present application refers to data for performing interaction between the configuration platform device and the device control apparatus.
Interactive data can be subdivided into the following categories based on pre-stored protocols: components, behaviors, instructions, component parameters, behavior parameters, instruction parameters, and system parameters. It is understood that the classification information is composed of the above-described classification of the interactive data. It should be noted that, through the step S102, the data may be divided into modules for interaction, such as a component module, a component behavior module, a behavior parameter module, and a control flow module. The modules of the interactive data have close relation, and are divided into different parts like building blocks, so that all the interactive data can be decoupled, and the data can be freely configured and modified by engineers, so that the engineers can maintain the data and accurately position the problem.
And step S104, configuring the behavior parameters of the classification information to a control, configuring the instantiated component by using the control, and configuring a control flow according to the classification information. Wherein, the control refers to a module before instantiation; for example, in a logistics transportation project, the rollers and the stacker need to be configured with behavior parameters to configure a stacker control. And correspondingly, a component refers to an instantiated module. For example, after a stacker control is configured, if 10 stacker assemblies are needed in a certain project, only 10 stacker assemblies need to be created to select the control, and then the 10 stacker assemblies all have all the attributes of the stacker control. Specifically, attributes of the control, such as control resources, control behaviors, control instructions, and control parameters, of the control may be assigned to the instantiated component. It should be noted that different components and different behaviors in the classification information are associated, which constitutes different control flows.
Step S106, in case the configuration of the component and the control flow is completed, sends the interactive data to the device control apparatus. The configuration process in step S102 and step S104 may be completed on a configuration platform device serving as a public cloud platform, and after the configuration is completed, the interaction data may be sent to the device control device through the configuration platform device, and then sent to the bottom layer software through the device control device, so as to perform data interaction between the configuration platform and the bottom layer software. It should be noted that there are many ways of the above interaction, for example, the interaction between the configuration platform device and the device control device may be performed directly through an interface, or a protocol may also be sent for interaction, so as to save the step of manual input by the user.
Through the steps S102 to S106, the classification information of the interactive data is obtained on the configuration platform, the behavior parameters are configured to the control according to the classification information, the instantiated component is configured by using the control, and the control flow is configured, so that the interactive data is sent to the device control apparatus when the configuration of the component and the control flow is completed, and therefore, the original data can be configured on the configuration platform, and the interactive data is sent to the bottom layer software by the configuration platform, so that the problem of low processing efficiency of the interactive data is solved, and the data interaction between the configuration platform and the bottom layer software system is realized.
In a possible embodiment, the device control apparatus includes a production material flow device and a processor, and the step S106 further includes the steps of: sending the interaction data to the process logistics equipment and/or sending the interaction data to the processor; and under the condition that the interactive data is only sent to the processor, the processor sends the interactive data to the FPGA. It should be noted that the production logistics equipment may be a Flexible Intelligent production system (FILS) or an Intelligent Logistics Management System (ILMS). The processor may be an Advanced RISC Machine (ARM) processor. Wherein, in case that the interactive data is transmitted only to the production logistics apparatus, the interactive data is transmitted to the IFMS through the production logistics apparatus; wherein the IFMS is configured to provide data to the process logistics apparatus and maintain the interaction data.
Compared with the two-layer architecture in which the production system or the logistics system directly interacts with the PLC to control the execution device in the related art, the method and the system build the control framework of the configuration platform, the production logistics device, the processor, the FPGA and the execution device through the embodiment, reduce the coupling degree of each system, and solve the problem of low processing efficiency of interactive data because different schemes only need to be configured on the configuration platform.
In a possible embodiment, a method for processing interactive data is provided, and fig. 2 is a flowchart of another method for processing interactive data according to an embodiment of the present application, as shown in fig. 2, the flowchart includes the following steps:
step S202, after configuring the behavior parameters of the classification information to a control, configuring a register address scheme to the control flow and the component, and configuring the component by using the control; wherein, the register address scheme comprises: component addresses, control flow addresses, and parameter addresses. It should be noted that, in data configuration, the components, control flow, and some parameters all need to configure the register address. Specifically, the register address of the configuration system is automatically matched, namely, the address required by the component, the address required by the control flow and the address required by the parameter are made into a register address scheme.
And step S204, acquiring an automatic matching result of the register address according to the register address scheme through the component. Wherein not all register addresses in the register address scheme need to be used; when a board card is selected to do the item, one scheme can be selected from various register schemes; for example, addresses required by each block are placed in a region divided in advance, when matching, the component randomly selects an address matching from the region of the corresponding component, and other addresses are similar to a matching method, which is a mode of automatic address matching.
In the related art, the number of addresses is generally large, and if the addresses are manually configured, a lot of time is spent, and the accuracy is greatly reduced. In the embodiment of the present application, through the steps S202 to S204, in the data configuration process, the address is automatically matched based on the register address scheme, so that the accuracy and efficiency of address matching are improved, the project period is greatly reduced, and the processing efficiency and accuracy of the interactive data are effectively improved.
In a possible embodiment, a method for processing interactive data is provided, and fig. 3 is a flowchart of another method for processing interactive data according to an embodiment of the present application, as shown in fig. 3, the flowchart includes the following steps:
step S302, storing the interactive data in an interactive file according to the classification information, and configuring the control flow into the interactive file; and acquiring the classification information according to the classification protocol of the interactive file. The interaction file may include: control flow, board, class package relationships, and data table contents needed by the processor. The board data includes all components and behavior parameters. It should be noted that, the configuration platform apparatus may automatically give different interactive contents according to whether it is a line body or not. The processor can also import different tables and data content, which reduces the workload of the processor to maintain data.
Step S304, exporting the interactive file and sending the interactive file to the device control apparatus. And when the configuration is completed, exporting the interactive file and sending the interactive file to a file required by the equipment control device, and finishing data interaction between the configuration platform device and the equipment control device.
Through the steps S302 to S304, the interaction data is stored in the interaction file, and the interaction file is exported and sent to the device control apparatus, so that interaction between the configuration platform apparatus and the device control apparatus is performed in a file form, interaction failure caused by the fact that a network cannot be used under the conditions of military project application of military enterprises and the like is avoided, and the configured data interaction mode is more convenient.
In a possible embodiment, the method for processing the interactive data further includes the following steps: and configuring the control flow according to the behavior data in the classification information and the behavior parameters corresponding to the behavior data. The control flow is configured by each behavior configuration and flow symbol of each component; different control flows may correspond to different project requirements. It should be noted that, in the case of detecting that the parameter of the control flow is configured incorrectly, the behavior parameter is modified; therefore, when a certain parameter of a certain control flow is configured wrongly, only the behavior parameter needs to be modified, thereby greatly improving the flexibility of data interaction and reducing the data coupling degree.
The following describes embodiments of the present invention in detail with reference to practical application scenarios. Fig. 4 is a schematic diagram of data interaction according to an embodiment of the present application, and as shown in fig. 4, a configuration platform device in the embodiment of the present application is an Intelligent Factory Configuration Center (IFCC), and the IFCC is used as a cloud configuration platform and mainly performs data interaction with an ARM processor and a FILS. Wherein, the configuration on the IFCC is completed, and the interactive data is sent to the FILS and the ARM; it is understood that data interaction between FILS and ARM is also possible. The FILS sends the interactive data to the IFMS, and the IFMS provides and maintains the data to the FILS; FILS may also send the required interaction data to a Virtual Reality technology (VR) device. The ARM and the FPGA carry out data interaction, and the FPGA sends control signals to the execution equipment 1, the execution equipment 2 and the execution equipment 3 such as a stacker and the like based on the interaction data.
Fig. 5 is a schematic diagram of a configuration platform according to an embodiment of the present application, and as shown in fig. 5, the configuration platform includes a building project, a sub-control center a, i.e., a board a, a sub-control center B, i.e., a board B, an application a, an application B, a component 1, a component 2, a component 3, and a control. Specifically, for example, the application to a logistics transportation project is provided, and the logistics transportation project is controlled by a roller line, a belt line and the like, and is also controlled by a common stacker. Therefore, the scheme adopted by the user is that a plurality of boards are controlled; for example, the wire body needs to be controlled by three plate clamps which respectively control a belt and a roller wire divided into two parts; and a board card can control a plurality of robots and a plurality of stackers.
The specific data configuration and interaction method is as follows: firstly, all required controls are configured, namely parameters and behavior instructions are configured for the controls such as the rollers, the robots and the stackers. For example, a stacker control is configured, and a plurality of stackers can be instantiated in the component modules of the components 1 to 3, only by different names. The project and two sub-control centers (each sub-control center corresponds to a board card) are created, a register address scheme is required to be configured when the sub-control centers are configured, required components can be configured, and when the components 1 to 3 are configured, a line network of the roller and a control flow of the stacker robot are required to be configured. And matching the register address after the control flow is configured. And finally, only exporting the file and handing the file to the file required by the FILS and the ARM. And the configuring party finishes the interaction with the other two parties, and then the ARM and the FILS carry out mutual transmission of the interactive data. Therefore, the original data is configured by the configuration platform no matter how the value of the interactive data changes.
It should be understood that, although the steps in the flowcharts of fig. 1 to 3 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
This embodiment further provides a device for processing interactive data, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a device for processing interaction data according to an embodiment of the present application, where as shown in fig. 6, the device includes: a classification module 62, a configuration module 64, and an interaction module 66; the classification module 62 is configured to obtain classification information of the interactive data; the configuration module 64 is configured to configure the behavior parameters of the classification information to a control, configure the instantiated component by using the control, and configure a control flow according to the classification information; the interaction module 66 is configured to send the interaction data to the device control apparatus when the component and the control flow configuration are completed.
Through the above embodiment, the configuration module 64 acquires the classification information of the interactive data on the configuration platform, configures the behavior parameters to the control according to the classification information, configures the instantiated component by using the control, and configures the control flow, and the interaction module 66 sends the interactive data to the device control apparatus when the configuration of the component and the control flow is completed, thereby solving the problem of low processing efficiency of the interactive data and realizing data interaction between the configuration platform and the underlying software system.
In one possible embodiment, the equipment control device includes a production logistics equipment and a processor, and the interaction module 66 is further configured to send the interaction data to the production logistics equipment and/or to send the interaction data to the processor; and under the condition that the interactive data is only sent to the processor, the processor sends the interactive data to the FPGA.
In one possible embodiment, the interaction module 66 is further configured to send the interaction data to the IFMS through the production logistics apparatus if the interaction data is sent only to the production logistics apparatus; wherein the IFMS is configured to provide data to the process logistics apparatus and maintain the interaction data.
In one possible embodiment, the configuration module 64 is further configured to configure a register address scheme to the control flow and the component and configure the component with the control; wherein, the register address scheme comprises: component addresses, control flow addresses, and parameter addresses; the configuration module 64 obtains, by this component, the result of the automatic matching of the register address according to the register address scheme.
In one possible embodiment, the interaction module 66 is further configured to store the interaction data in an interaction file according to the classification information, and configure the control flow into the interaction file; acquiring the classification information according to the classification protocol of the interactive file; the interaction module 66 exports and sends the interaction file to the device control apparatus.
In one possible embodiment, the classification module 62 is further configured to configure the control flow according to the behavior data in the classification information and the behavior parameters corresponding to the behavior data.
In a possible embodiment, the processing device of the interaction data further comprises a modification module; the modification module is used for modifying the behavior parameter under the condition that the parameter configuration error of the control flow is detected.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
The present embodiment further provides a system for processing interactive data, where the system includes: configuring a platform device and a device control device; wherein, the configuration platform device is connected with the equipment control device; the configuration platform device acquires the classification information of the interactive data; the configuration platform device configures the behavior parameters of the classification information to a control, configures the instantiated component by using the control, and configures the control flow according to the classification information; the configuration platform means sends the interaction data to the device control means using the control flow and the component.
According to the embodiment, the classification information of the interactive data is acquired at the configuration platform, the configuration platform device acquires the control flow, the behavior parameters are configured to the control according to the classification information, the instantiated components are configured by the control, and the interactive data is sent to the equipment control device under the condition that the components and the control flow are configured, so that the original data can be configured at the configuration platform, the problem of low interactive data processing efficiency is solved, and data interaction between the configuration platform and the bottom layer software system is realized.
In one possible embodiment, a system for processing interactive data is provided, and fig. 7 is a block diagram of a system for processing interactive data according to an embodiment of the present application, as shown in fig. 7, the device control apparatus includes a process logistics device 74 and a processor 76; the configuration platform device 72 is connected to the process logistics equipment 74 and the processor 76 respectively; the configuration platform assembly 72 sends the interaction data to the process logistics equipment 74 and/or the processor 76; wherein, in case the interactive data is only transmitted to the processor 76, the processor 76 transmits the interactive data to the FPGA.
In a possible embodiment, the configuration platform means 72 is further configured to send the interaction data to the IFMS through the production logistics apparatus if the interaction data is sent only to the production logistics apparatus; wherein the IFMS is configured to provide data to the process logistics apparatus and maintain the interaction data.
In one possible embodiment, the configuration platform means 72 is further configured to configure a register address scheme to the control flow and the component, and configure the component using the control; wherein, the register address scheme comprises: component addresses, control flow addresses, and parameter addresses; the configuration platform means 72 is also arranged to obtain, by the component, an automatic matching result of the register address according to the register address scheme.
In a possible embodiment, the configuration platform means 72 is further configured to store the interaction data in an interaction file according to the classification information, and configure the control flow into the interaction file; acquiring the classification information according to the classification protocol of the interactive file; the configuration platform means 72 exports and sends the interaction file to the device control means.
In a possible embodiment, the configuration platform device 72 is further configured to configure the control flow according to the behavior data in the classification information and the behavior parameters corresponding to the behavior data.
In a possible embodiment, the configuration platform means 72 is further configured to modify the behavior parameter in case of detecting a parameter configuration error of the control flow.
The embodiment also provides a computer device, which may be a server, and fig. 8 is a structural diagram of the inside of the computer device according to the embodiment of the present application, as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing classification information. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement the above-mentioned interactive data processing method.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The present embodiment also provides an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
and S1, acquiring the classification information of the interactive data.
And S2, configuring the behavior parameters of the classification information to a control, configuring the instantiated component by using the control, and configuring the control flow according to the classification information.
S3, in case the component and the control flow configuration are completed, the interactive data is transmitted to the device control apparatus.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In addition, in combination with the method for processing interactive data in the foregoing embodiments, the embodiments of the present application may provide a storage medium to implement. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements any one of the interactive data processing methods in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather, all combinations of features which are not inconsistent with each other should be construed as being within the scope of the present disclosure.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.