Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
The embodiment provides an industrial data processing system, which includes:
the database is used for storing a plug-in ID list, a target symbol list, a target function list and an industrial data list;
the memory is used for storing a processing program of industrial data and a determination program of a to-be-processed data set;
a processor executing the processing program of the industrial data to realize the following processing steps, as shown in fig. 1:
s101, acquiring a data set A = (A) to be processed1,A2,A3,……,An) Wherein A isiThe method refers to a to-be-processed data list corresponding to the ith target node, i =1 … … n, and n is the number of the target nodes.
Specifically, the type corresponding to the data to be processed is an integer type, a text type, or a boolean type, and preferably, the type corresponding to the data to be processed is an integer type.
In a specific embodiment, the determination procedure of the data set to be processed by the system implements the following processing steps:
s201, obtaining a target plug-in ID set B = (B)1,B2,B3,……,Bm),BjThe method is a logic node list corresponding to the jth target plug-in ID, j =1 … … m, and m is the number of target plug-ins;
specifically, the target plug-in refers to a program providing one or more services.
Further, the target plug-in may be deployed independently on any one of the servers, and the server may be a local server, a private cloud server, or a public cloud server; wherein the number of the servers is more than or equal to m.
Specifically, the value range of m is 10-20; wherein, preferably, m is 10.
S203, according to the corresponding flow point of the target service, the pairz number of BjConfiguring to obtain a target node list D = (D)1,D2,D3,……Dn) To provide the target service based on D; wherein D isiMeans AiA corresponding target node;
specifically, S203 further includes the steps of:
initialization D = Null traversal Bj=(Bj1,Bj2,Bj3,……,Bjs) Wherein B isjrThe number of the r-th logical node is defined, r =1 … … s, and s is the number of the logical nodes;
when B is presentjrThe name of the corresponding code packet is consistent with the name of the process point corresponding to the target service, and B is compared with the name of the process point corresponding to the target servicejrInsert into D.
Further, the logic node refers to a program for executing a flow point in a service, wherein the logic node cannot be separately deployed in the independent server, so that barriers between different logic nodes can be eliminated, communication connection is improved, and efficient service improvement is facilitated.
Preferably, the target node is a logical node that executes a flow point corresponding to a target service, where the target node corresponds to the flow point corresponding to the target service one to one.
Further, the value range of s is 10-100, preferably, s is 50.
Specifically, n satisfies the following condition:
wherein Y is
XRefers to the X number B
jCorresponding target node number and Y
XN or less, z is B corresponding to D
jAnd z is less than or equal to m.
It can be understood that: when the target service is provided and interaction among a plurality of target plug-ins is required, namely when z is more than or equal to X more than or equal to 2, based on z BjRunning n logic nodes to provide the target service according to the flow point corresponding to the target service; can provide different clothes by interacting between different target plug-insAnd the corresponding target plug-ins do not need to be installed on each newly added service, so that the number of the target plug-ins and the load of the processor are reduced, and the waste of resources is avoided, and the service items of enterprises are enriched.
And S205, generating A corresponding to D in the process of providing the target service by D.
In a specific embodiment, the target service quantity G provided by interaction among a plurality of target plug-ins1≦ the target number of services G provided by a single target plug-in2,G1+G2Is 10 to 100, preferably G1+G2The number is 50.
In one embodiment, when running different B' sjWhen the middle logic node realizes the same flow point of the target service, D is obtainedr-1Corresponding target plug-in ID and traversing the logic node list corresponding to the target plug-in ID to determine DrThe method comprises the steps that firstly, selection is carried out in a logic node list corresponding to the same target plug-in ID, interaction among the plug-ins can be achieved, meanwhile, priority use of the logic nodes in the same plug-in is guaranteed, abnormal situations of interaction among different logic nodes are reduced to the greatest extent, service cannot be completed, and production is stopped or abnormal;
meanwhile, due to interaction among the target plug-ins, data of the association relation are updated at the same time, calculation of intermediate data is not needed, calculation errors caused by secondary calculation and calculation errors caused by the fact that certain data are not updated timely can be avoided, and calculation accuracy is improved.
In a specific embodiment, the system further includes an API interface corresponding to the target plug-in, the API interface is in communication connection with other servers, and the API interface is used for providing target services through the target plug-in, and can ensure direct interaction of different servers, so as to complete provision of multiple services and enrich enterprise services.
In a specific embodiment, the processor further executes the configuration program of the industrialization plug-in to further realize the following processing steps:
s207 after step S205: obtaining AiCorresponding monitoring dataVector C = (C)1,C2,C3,……,Cp) To reconfigure A according to CiWherein, CqThe state data corresponds to the q-th monitoring dimension, q =1 … … p, and p is the number of monitoring dimensions.
Specifically, the step S105 further includes the steps of:
go through C and when any CqWhen the preset conditions corresponding to the same monitoring dimension are met, reconfiguring the Ai。
Specifically, the monitoring dimensions include: the memory space of the memory, the utilization rate of the memory, the disk speed, the memory space of the disk, the processor occupancy rate, etc. are not described herein again.
In particular, when reconfiguring AiThe method comprises the following steps:
sending a configuration request to an administrator module so that the administrator module sends an operation instruction to the configuration module according to the configuration request;
receiving feedback information of the configuration module receiving the operation instruction, so that the configuration module sends A according to the operation instructioniThe configuration to other servers can be according to the state of the server that the plug-in corresponds, through the deployment of administrator's manual adjustment plug-in, avoids on the one hand the excessive load in the server, influences the availability factor of server, and on the other hand provides different services through different servers in order to satisfy multiple business demands, has enriched enterprise's business.
In another embodiment, specifically when reconfiguring AiThe method also comprises the following steps:
sending a configuration instruction to a configuration module so that the configuration module sends A according to the operation instructioniThe system is configured to other servers, the deployment of the plug-ins can be automatically adjusted according to the states of the servers corresponding to the plug-ins, on one hand, when the state conditions of the servers are met, the deployment of the plug-ins is adjusted by the system, abnormal conditions caused by manual labor and misoperation of personnel are reduced, meanwhile, the phenomenon that the service efficiency of the servers is influenced due to excessive load in the servers is avoided, and on the other hand, different services are provided through different servers to meet the requirements of various servicesAnd the enterprise business is enriched due to the demand.
S103, obtaining A and extracting any AiSampling a field corresponding to the physical quantity;
specifically, the to-be-processed data list refers to a list of industrial data stored in the target node, where the industrial data includes: the industrial data preferably includes a sampled physical quantity value, one or more combinations of a sampled physical quantity, a sampled time corresponding to the sampled physical quantity, and a device name corresponding to the sampled physical quantity.
S105, mapping the field corresponding to the sampling physical quantity to a target field list T = (T)1,T2,T3,……,Tn) In which T isiMeans AiA corresponding target field;
specifically, A1To Ai-1Wherein one or more to-be-processed data lists are stored in DiIn the corresponding target node, the problem that the target node cannot provide services due to abnormal conditions of other target nodes or data abnormal conditions generated when the plug-in is configured to other servers can be avoided.
S107, inserting a target variable list into a target formula to obtain a target data list, wherein the target variable list comprises TiOr TiA corresponding data list.
In particular, TiThe corresponding data list is denoted TiAnd calculating the data list by other target formulas by adopting the same steps of S201-S203, and the details are not repeated here.
Specifically, the target formula is according to a target symbol list E and a target function list
And configuring a formula according to a preset rule.
Further, E = (E)
1,E
2,E
3,……,E
λ) Wherein, in the step (A),
refers to the alpha-th physical symbol, alpha =1 … … lambda, lambda being the number of physical symbols.
Further, the air conditioner is provided with a fan,
wherein, in the step (A),
refers to the beta-th calculation function, where beta =1 … … gamma, and gamma is the number of calculation functions.
Preferably, the target formula consists of one or more
With one or more
And setting according to the preset rule, and a person skilled in the art can select the preset rule according to actual requirements, which is not described herein again.
The embodiment provides an industrial data processing system, which includes: a database for storing plug-in IDs, industrial data, physical symbols and calculation functions, a memory for storing a processing program for industrial data and a processor, the processor executing the industrial data processing program to perform the following processing steps: the method comprises the steps of obtaining a data set to be processed, carrying out field extraction on any data list to be processed, mapping the extracted field to a target field list, and inserting a target variable list into a target formula to obtain a target data list, wherein the target variable list comprises the target field list or other data lists corresponding to the target field list, different data required by a user can be accurately calculated, the target variable list is used for monitoring a production system, meanwhile, an association relation also exists among variable data, and the influence on the calculation of other data when a plug-in corresponding to any data is abnormal is avoided.
Example two:
after S107, the processor in the system further executes the processing program of the industrial data to implement the following processing steps, as shown in fig. 3:
s109, sending the detail information corresponding to the target formula to a foreground, so that the foreground obtains a target formula configuration interface according to the detail information corresponding to the target formula as shown in FIG. 2;
and S1011, sending the to-be-processed data list corresponding to the target formula to a background, so that the background sends a prompt instruction according to the to-be-processed data list corresponding to the target formula.
Specifically, the step S109 can facilitate the user to directly observe and operate the target formula to edit the required target formula for obtaining different target data, thereby enriching the data size.
Specifically, the step S1011 can facilitate monitoring abnormal conditions during generation and making an early warning prompt, so as to avoid production stagnation caused by abnormal conditions during production.
Further, the prompt instruction is an early warning prompt, and a person skilled in the art can select an instruction according to actual needs, which is not described herein again.
Specifically, reference is made to the first embodiment in S101-S107, which is not described herein again.
The second embodiment provides an industrial data processing system, wherein the detail information corresponding to the target formula and the to-be-processed data list corresponding to the target formula are sent to a foreground for generating a formula configuration interface, so that a user can conveniently and directly observe and operate the target formula to edit the required target formula to obtain different target data, and the data volume is enriched; meanwhile, the abnormal conditions in the production can be conveniently monitored and early warning prompts can be given, and production stagnation caused by the abnormal conditions in the production process is avoided.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.