Control execution method, control execution device, terminal, and readable storage medium

文档序号:7188 发布日期:2021-09-17 浏览:33次 中文

1. A control execution method, comprising:

acquiring a control program which is written by a first role user and used for calling a target function;

compiling the control program by a control compiler to generate a control code, wherein the control code comprises a function call instruction code;

the control interpreter reads the control code, and when the interpreter reads the function calling instruction code, a target execution code segment corresponding to the function calling instruction code is matched; the interpreter comprises execution code segments corresponding to different instruction codes respectively;

embedding a function name and a function parameter of the target function in the target execution code segment;

and executing the target execution code segment based on the interpreter, and calling the target function written by the second role user through the function name and the function parameter.

2. The control execution method according to claim 1, wherein the function call instruction code is associated with a function number of the target function; the embedding of the function name and the function parameter of the target function in the target execution code segment includes:

determining a target embedding position from the target execution code segment based on the function number and in combination with the corresponding relation between the function number and the function embedding position;

embedding, by the interpreter, a function name and function parameters of the target function into the target execution code segment based on the target embedding location.

3. The control execution method according to claim 1, wherein the control compiler compiles the control program to generate a control code, and includes:

controlling the compiler to load the control program, and loading variables related in the control program and attribute information of the target function into an identifier list through the compiler;

and analyzing the control program according to the identifier list to generate the control code.

4. The control execution method according to claim 3, wherein after controlling the compiler to load the control program, further comprising:

acquiring a character format requirement corresponding to the compiling language of the control program;

performing character format processing on the control program through the compiler based on the character format requirement;

the character format of the control program after the character format processing is not changed, or the characters contained in the control program after the character format processing are adjusted to be the same in format.

5. The control execution method according to claim 1, wherein the obtaining of the control program written by the first character user for making a call to the target function is preceded by:

setting an interface function table for declaring interface functions;

correspondingly, the obtaining of the control program written by the first role user for calling the target function includes:

and acquiring a control program which is written by a first role user and used for calling a target function in the interface function stated in the interface function table.

6. A control execution apparatus, characterized by comprising:

the acquisition module is used for acquiring a control program which is written by a first role user and used for calling a target function;

the compiling module is used for controlling a compiler to compile the control program to generate a control code, and the control code comprises a function call instruction code;

the interpretation module is used for controlling an interpreter to read the control code and matching a target execution code segment corresponding to the function calling instruction code when the interpreter reads the function calling instruction code; the interpreter comprises execution code segments corresponding to different instruction codes respectively;

a function embedding module for embedding a function name and a function parameter of the target function in the target execution code segment;

and the function calling module is used for executing the target execution code segment based on the interpreter and calling the target function written by the second role user through the function name and the function parameter.

7. The control execution device according to claim 6, wherein the function call instruction code is associated with a function number of the target function; the interpretation module is specifically configured to:

determining a target embedding position from the target execution code segment based on the function number and in combination with the corresponding relation between the function number and the function embedding position;

embedding, by the interpreter, a function name and function parameters of the target function into the target execution code segment based on the target embedding location.

8. The control execution apparatus of claim 6, wherein the compiling module is specifically configured to:

controlling the compiler to load the control program, and loading variables related in the control program and attribute information of the target function into an identifier list through the compiler;

and analyzing the control program according to the identifier list to generate the control code.

9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.

Background

Computer control is a commonly used technology in all industries today with rapid technological development. And in one area different computer technologies are being applied across. For example, in industrial control, as automation of industrial control progresses, more and more machine learning models are applied to industrial control. The process is accompanied by different application technologies and different implementation languages.

For example, engineers in the industrial control direction are more concerned with automatically controlled processes and are adept at implementing control systems. Engineers in the direction of artificial intelligence pay attention to the training and deployment of the machine learning model, and are good at the contents of selection adjustment, parameter optimization and the like of the model. The attention points and the excellence points of the machine learning model are completely different, and due to the difference of programming languages, the technical cooperation among users with different roles is inconvenient, so that the machine learning model cannot be conveniently applied to the field of industrial control, the technical application efficiency is low, and the technical fusion effect is poor.

Disclosure of Invention

The embodiment of the application provides a control execution method, a control execution device, a terminal and a readable storage medium, so as to solve the problems that different application technologies are applied in an industrial control in a cross way, technical cooperation is inconvenient to carry out among users with different roles, technical application efficiency is low, and technical fusion effect is poor in the prior art.

A first aspect of an embodiment of the present application provides a control execution method, including:

acquiring a control program which is written by a first role user and used for calling a target function;

compiling the control program by a control compiler to generate a control code, wherein the control code comprises a function call instruction code;

the control interpreter reads the control code, and when the interpreter reads the function calling instruction code, a target execution code segment corresponding to the function calling instruction code is matched; the interpreter comprises execution code segments corresponding to different instruction codes respectively;

embedding a function name and a function parameter of the target function in the target execution code segment;

and executing the target execution code segment based on the interpreter, and calling the target function written by the second role user through the function name and the function parameter.

A second aspect of an embodiment of the present application provides a control execution apparatus, including:

the acquisition module is used for acquiring a control program which is written by a first role user and used for calling a target function;

the compiling module is used for controlling a compiler to compile the control program to generate a control code, and the control code comprises a function call instruction code;

the interpretation module is used for controlling an interpreter to read the control code and matching a target execution code segment corresponding to the function calling instruction code when the interpreter reads the function calling instruction code; the interpreter comprises execution code segments corresponding to different instruction codes respectively;

a function embedding module for embedding a function name and a function parameter of the target function in the target execution code segment;

and the function calling module is used for executing the target execution code segment based on the interpreter and calling the target function written by the second role user through the function name and the function parameter.

A third aspect of embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect when executing the computer program.

A fourth aspect of embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, performs the steps of the method according to the first aspect.

A fifth aspect of the present application provides a computer program product, which, when run on a terminal, causes the terminal to perform the steps of the method of the first aspect described above.

As can be seen from the above, in the embodiment of the present application, by obtaining a control program written by a first role user and calling a target function, controlling a compiler to compile the control program to generate a control code including a function call instruction code, controlling an interpreter to read the control code, matching a target execution code segment corresponding to the function call instruction code when the interpreter reads the function call instruction code, embedding a function name and a function parameter of the target function in the target execution code segment, executing the target execution code segment based on the interpreter, calling the target function written by a second role user through the function name and the function parameter, so that users of different roles can focus on implementation of their respective technical applications and can fuse work among users of different roles, and during the automatic execution process of the control program written by the first role user, the method and the system can be fused with functions written by other role users, facilitate technical cooperation among different role users, and improve technical application efficiency and technical fusion effect.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.

Fig. 1 is a first flowchart of a control execution method provided in an embodiment of the present application;

fig. 2 is a second flowchart of a control execution method provided in the embodiment of the present application;

fig. 3 is a structural diagram of a control execution device according to an embodiment of the present application;

fig. 4 is a structural diagram of a terminal according to an embodiment of the present application.

Detailed Description

In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".

In particular implementations, the terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).

In the discussion that follows, a terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.

The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.

Various applications that may be executed on the terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.

It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.

In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.

Referring to fig. 1, fig. 1 is a first flowchart of a control execution method provided in an embodiment of the present application. As shown in fig. 1, a control execution method includes the steps of:

step 101, obtaining a control program written by a first role user and used for calling a target function.

The first role user can be a role user responsible for the implementation of industrial automation control, who can write a control program. In this embodiment, the control program written by the role user needs to realize the call of the external function while realizing the normal industrial control function.

In particular, the control program contains logical controls, the objective function being a function written by the second persona user. The first persona user is different from the second persona user.

As an optional implementation manner, before obtaining the control program written by the first persona user for making a call to the target function, the method further includes: an interface function table is provided for declaring interface functions.

The interface function table contains function names and parameter lists of each interface.

The interface functions declared in the interface function table may be dependent function interfaces of the artificial intelligence model. The interface function table is arranged to enable the model related functions to be conveniently added, deleted and modified in the interface function table. The functions stated in the interface function table can be written and implemented by other role users.

Optionally, the interface function table contains definitions of the prototype of the interface function, for example, in the form as follows:

bool model _ init (string p1, dint p2, dint p 3); the model initialization function is defined;

dint model _ inference (Dint p1, Dint p 2); the method realizes the definition of the model inference function.

The process appoints or declares the function through the interface function table, and appoints the relevant parameters of the function specifically, such as a return value, a function name, a parameter list, a function type and the like.

Correspondingly, the obtaining of the control program written by the first role user for calling the target function includes: and acquiring a control program which is written by the first role user and used for calling a target function in the interface function stated in the interface function table.

The control program is specifically an application program written using ST (structured text) language. A call is made in the application to a target interface function declared in the interface function table.

And 102, controlling a compiler to compile the control program to generate a control code.

A compiler is a computer program responsible for converting source code written in one programming language into another computer code, often referred to in binary form as object code. The process of this transformation is generally directed to generating an executable program. In this step, the application program is compiled by a designed language compiler to generate an instruction code.

The control code comprises a function calling instruction code. The function call instruction code is specifically a call instruction code, and the function is called.

In addition, other instruction codes may be included in the control code.

The instructions corresponding to the other instruction codes may include an arithmetic instruction, a relational operation instruction, a data transmission instruction, a logic instruction, a conditional jump instruction, a function call instruction, and a stack operation instruction, and each type of instruction at least includes the instructions described in the following table.

The instruction codes are a series of integers, and the instructions correspond to the instruction codes one by one.

And 103, controlling the interpreter to read the control code, and matching the target execution code segment corresponding to the function calling instruction code when the interpreter reads the function calling instruction code.

In computer science, an interpreter is a computer program that directly executes code written in a programming or scripting language, without pre-compiling the source code into machine code.

In the application process, the aforementioned compiler converts the source code (i.e., control program) into other lower-level code (e.g., binary code, machine code), but does not execute it. The interpreter directly generates instructions for the computer hardware to execute, and another code is not output.

Specifically, the compiler may be an ST language compiler and the interpreter may be an ST language interpreter. The ST language is a language used in writing applications in industrial control. An ST language interpreter is implemented on the target platform for executing the instruction codes generated by the ST language compiler.

The interpreter includes executing code sections corresponding to different instruction codes.

Specifically, the execution code section included in the interpreter includes: a stack operation instruction execution code segment for pushing and popping data (for example, function parameters) and the like, a function call instruction execution code segment for implementing function call, a data transmission class instruction execution code segment for reading and writing memory data and performing variable assignment, and the like. The execution code segment included in the interpreter may be correspondingly configured with reference to the instruction code included in the control code.

And when the interpreter reads the control code and detects and reads the function calling instruction code, matching a target execution code segment corresponding to the function calling instruction code from the plurality of execution code segments.

The target execution code segment needs to embed a function name and a function parameter of a target function which needs to be called by the current function calling instruction code, so that the target function is called when the target execution code segment is executed.

And step 104, embedding the function name and the function parameter of the target function in the target execution code segment.

The function name and the function parameter are defined and declared in a control program written by the first actor user for calling the target function. The determination of the function name and the function parameter of the target function may be realized based on a control program that calls the target function and a control code generated by compiling the control program.

When the control interpreter reads the control code, if the interpreter reads the function parameter stacking instruction code, the first execution code segment corresponding to the function parameter stacking instruction code is matched, and the first execution code segment is executed to realize the stacking operation of the function parameter, so that the transfer of the function parameter is realized. Correspondingly, in this step, the function parameters to be stacked may be extracted and embedded into the target execution code segment.

And 105, executing the target execution code segment based on the interpreter, and calling the target function written by the second role user through the function name and the function parameter.

The second role user is written with a plurality of functions, including a target function to be called in this embodiment, and when the interpreter calls the function, the determination of the target function and the transfer of the function parameter are realized through the function name and the function parameter embedded in the target execution code segment, so that the target function realizes the corresponding processing function based on the transferred function parameter.

The process designs a method for calling and realizing the function in the control execution process. The first role user can be, for example, an industrial control engineer, when the automatic control function is realized, the model related function is called from the ST application program, and the artificial intelligence engineer writes the pre-declared model related function on a specific platform to realize the connection and fusion of the work of the two. The model-related functions are some processing functions related to the model, such as model loading, model initialization, model configuration, model unloading and the like, and are particularly related to the design of the interface function; a specific platform refers to an environment consisting of specific hardware and operating systems and software running thereon.

The process solves the problem of application obstacle caused by different programming languages and attention points of an artificial intelligence engineer and an industrial control engineer in the application of the artificial intelligence model in industrial control, and enables the artificial intelligence engineer to be concentrated on the realization of the relevant functions of the model on a specific platform and the industrial control engineer to be concentrated on the calling of the relevant functions of the model and the realization of control logic.

In a specific application process, statement information of related functions of the machine learning model in the artificial intelligence is collected into an interface function table, and by taking the interface function table as a reference, an AI engineer is responsible for realizing the related functions of the model on a specific platform, and an industrial control engineer is responsible for calling the related functions of the model in an application program. The process realizes the separation of calling and realizing, industrial control engineers can call functions under the familiar language environment, and artificial intelligence engineers can write functions in the way of themselves.

In the embodiment of the application, a control program which is compiled by a first role user and calls a target function is obtained, a compiler is controlled to compile the control program to generate a control code containing a function call instruction code, a control interpreter is controlled to read the control code, when the interpreter reads the function call instruction code, a target execution code segment corresponding to the function call instruction code is matched, a function name and a function parameter of the target function are embedded in the target execution code segment, the target execution code segment is executed based on the interpreter, the target function which is compiled by a second role user is called through the function name and the function parameter, so that the users of different roles can focus on respective technical application and realize the fusion of work among the users of different roles, and the fusion of the work among the users of different roles can be realized with functions which are compiled by other role users in the automatic execution process of the control program which is compiled by the first role user, the method and the system facilitate technical cooperation among users with different roles, and improve technical application efficiency and technical fusion effect.

Different embodiments of the control execution method are also provided in the embodiments of the present application.

Referring to fig. 2, fig. 2 is a second flowchart of a control execution method provided in the embodiment of the present application. As shown in fig. 2, a control execution method includes the steps of:

step 201, a control program written by a first role user and used for calling a target function is obtained.

The implementation process of this step is the same as that of step 101 in the foregoing embodiment, and is not described here again.

Step 202, the control compiler loads the control program, and the compiler loads the variable and the attribute information of the target function related in the control program into the identifier list.

The attribute information of the objective function is, for example, a function name, a function number, and the like.

Variables involved in the control program include fields such as variable name, type, variable initial value, and relative address. When a compiler loads a control program and extracts variables related to the control program, the required space occupation needs to be determined according to the type of each variable, and a unique relative address is uniformly allocated to all the variables.

The identifier list may include identifiers formed by program keywords, custom variables, numerical constants, interface function names, function numbers, and the like. The identifiers in the identifier list can be loaded for customization.

The identifier set in the identifier list realizes the legalization identification of the related information, and the legalization identified identifier realizes the content identification and verification of the compiling object.

Step 203, the control program is analyzed according to the identifier list to generate a control code.

The control code includes a function call instruction code.

And realizing the content identification and verification of the compiled object through the legally identified identifier in the identifier list. For example, in the compiling process, when the compiler encounters a function name, it is compared whether the parameters of the called interface function in the control program code are completely consistent with the interface function prototype, and the analysis of the control program is realized through the identifier information imported in the identifier list (i.e. the attribute information of the variables and the target function involved in the imported control program).

The parsing process may specifically include: lexical examination (the syntax of the control program can be examined according to the syntax requirement of ST language specified in IEC 61131-3), syntax examination, semantic analysis, and the like, and finally, an instruction code is generated.

When generating the instruction code, the source program is compiled into a target code consisting of the instruction code and the operand by taking a statement expression in the control program as a basic unit, and the initial positions of partial continuous code blocks can be recorded according to the requirement so as to realize the reading and the execution of the instruction code by a subsequent interpreter.

Specifically, the compiler compiles the relevant information (function name, parameter list) of the interface function call into a corresponding instruction code, which may specifically include a stack instruction and a function call instruction of the parameter, and so on.

Optionally, after the control compiler loads the control program, the method further includes: acquiring a character format requirement corresponding to a compiling language of a control program, and performing character format processing on the control program through a compiler based on the character format requirement; the character format of the control program after the character format processing is not changed, or the characters contained in the control program after the character format processing are adjusted to be the same in format.

Before the control program is analyzed, the character format requirement corresponding to the compiling language of the control program is acquired, whether the compiling language of the current control program meets the compiling format requirement is judged based on the character format requirement, the character format of the current control program needs to be kept unchanged when the compiling language of the current control program meets the compiling format requirement, and the format of the control program needs to be changed when the compiling language of the current control program does not meet the compiling format requirement.

For example, when the programming language of the control program is ST language, the language does not distinguish case from case, and does not meet the requirements of the compiling format, so all characters need to be uniformly converted into lowercase before the control program written in ST language is compiled, so as to facilitate the execution of the compiling and parsing operations.

And step 204, controlling the interpreter to read the control code, and matching the target execution code segment corresponding to the function calling instruction code when the interpreter reads the function calling instruction code.

The interpreter includes executing code sections corresponding to different instruction codes.

The implementation process of this step is the same as the implementation process of step 103 in the foregoing embodiment, and is not described here again.

Step 205, based on the function number, and in combination with the corresponding relationship between the function number and the function embedding position, determining the target embedding position from the target execution code segment.

The function call instruction code is associated with a function number of the target function. The function number may be an additional parameter of the function call instruction code. When the interpreter reads a function call instruction code, an accessory parameter recognized before or after the function call instruction code is recognized as a function number of the target function.

And the function embedding positions correspond to the serial numbers of the functions one by one. In implementation, it may be set that all the CALLs to the target function are implemented by using the same CALL instruction, and then it is determined which function is called specifically by the number of the called function. After the currently called target function is determined, a target embedding position corresponding to the current target function is determined based on the code content in the target execution code segment.

And step 206, embedding the function name and the function parameter of the target function into the target execution code segment through the interpreter based on the target embedding position.

That is, based on the target embedding position, the function name and the function parameter of the target function are embedded into the function call instruction code at the target embedding position by the interpreter.

And step 207, executing the target execution code segment based on the interpreter, and calling the target function written by the second role user through the function name and the function parameter.

The implementation process of this step is the same as that of step 105 in the foregoing embodiment, and is not described here again.

The separation of calling and realizing has been realized to this process, the industrial control engineer can call the function under the language environment that oneself is familiar with, artificial intelligence engineer can write the function with the mode of oneself, the application of artificial intelligence model in industrial control has been solved, the technical application obstacle problem that the difference of the programming language of different role users and focus of attention leads to lets artificial intelligence engineer be absorbed in the realization of the relevant function of model on concrete platform, let the industrial control engineer be absorbed in the realization of the call of the relevant function of model and control logic.

Referring to fig. 3, fig. 3 is a structural diagram of a control execution device according to an embodiment of the present application, and for convenience of description, only a part related to the embodiment of the present application is shown.

The control execution device 300 includes:

an obtaining module 301, configured to obtain a control program for calling a target function, which is written by a first role user;

a compiling module 302, configured to control a compiler to compile the control program, and generate a control code, where the control code includes a function call instruction code;

the interpretation module 303 is configured to control an interpreter to read the control code, and when the interpreter reads the function call instruction code, match a target execution code segment corresponding to the function call instruction code; the interpreter comprises execution code segments corresponding to different instruction codes respectively;

a function embedding module 304, configured to embed a function name and a function parameter of the target function in the target execution code segment;

a function calling module 305, configured to, based on the interpreter executing the target execution code segment, call the target function written by the second role user through the function name and the function parameter.

The function calling instruction code is associated with a function number of the target function; the interpretation module is specifically configured to:

determining a target embedding position from the target execution code segment based on the function number and in combination with the corresponding relation between the function number and the function embedding position;

embedding, by the interpreter, a function name and function parameters of the target function into the target execution code segment based on the target embedding location.

Wherein the compiling module is specifically configured to:

controlling the compiler to load the control program, and loading variables related in the control program and attribute information of the target function into an identifier list through the compiler;

and analyzing the control program according to the identifier list to generate the control code.

Wherein, the compiling module is further specifically configured to:

acquiring a character format requirement corresponding to the compiling language of the control program;

performing character format processing on the control program through the compiler based on the character format requirement;

the character format of the control program after the character format processing is not changed, or the characters contained in the control program after the character format processing are adjusted to be the same in format.

The device also includes:

the setting module is used for setting an interface function table for declaring the interface function;

correspondingly, the obtaining module is specifically configured to:

and acquiring a control program which is written by a first role user and used for calling a target function in the interface function stated in the interface function table.

The control execution device provided in the embodiment of the present application can implement each process of the above-mentioned control execution method, and can achieve the same technical effect, and for avoiding repetition, details are not described here.

Fig. 4 is a structural diagram of a terminal according to an embodiment of the present application. As shown in the figure, the terminal 4 of this embodiment includes: at least one processor 40 (only one shown in fig. 4), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the steps of any of the various method embodiments described above being implemented when the computer program 42 is executed by the processor 40.

The terminal 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal 4 may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only an example of a terminal 4 and does not constitute a limitation of terminal 4 and may include more or less components than those shown, or some components in combination, or different components, for example, the terminal may also include input output devices, network access devices, buses, etc.

The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or a memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.

It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.

Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.

The present application realizes all or part of the processes in the method of the above embodiments, and may also be implemented by a computer program product, when the computer program product runs on a terminal, the steps in the above method embodiments may be implemented when the terminal executes the computer program product.

The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:构建文件系统的方法、装置、设备及计算机存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!