Liquid path control language system with script analysis and construction method

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

1. A method for constructing a liquid path control language system with script analysis is characterized by comprising the following steps:

acquiring basic information of a liquid path component, defining syntax of a control statement, and acquiring a control protocol document;

making a regulation on the binary file coding mode of the control protocol document statement to obtain a script coding document;

obtaining a script coding tool according to the script coding document;

according to the script coding document, coding in a target machine to obtain a function for analyzing and executing a binary instruction file;

decomposing the whole control flow into specific control steps according to the control protocol document, and compiling a control script;

coding the control script according to the script coding tool to generate a binary instruction file;

and transmitting the binary instruction file into a target machine, and completing construction when the binary instruction file is operated to meet set conditions.

2. The method for constructing a fluid path control language system with script parsing as claimed in claim 1, wherein said obtaining basic information of fluid path components, defining syntax of control sentences, and obtaining control protocol documents comprises:

based on a general use habit, naming each general liquid path component by English shorthand, forming a control protocol document by English shorthand of an operation mode of each component, operation parameters and the number of the parameters, and defining a writing mode of name, declaration and code according to the control protocol document, wherein the control protocol document is grammar of a liquid path control language.

3. The method for constructing a liquid path control language system with script parsing as claimed in claim 2, wherein specifying the encoding mode of the binary file of the control protocol document statement to obtain a script encoded document comprises:

and defining the binary file coding mode of the statement in the control protocol document to obtain a script coding document, wherein the script coding document comprises the format of the instruction, the binary coding mode of each instruction and the storage format.

4. The method for constructing a liquid path control language system with script parsing as claimed in claim 3, wherein obtaining a script encoding tool according to the script encoding document comprises:

and reading and generating binary instructions corresponding to each line of sentences line by line according to the specification of the script coding document, and assembling the binary instructions into a binary instruction file.

5. The method for constructing a fluid path control language system with script parsing as claimed in claim 4, wherein the obtaining of the function of parsing the execution binary instruction file in the target machine according to the script coding document comprises:

and based on the setting of the developed new system, decoding the binary instruction file according to the script coding document, realizing a corresponding functional function, and calling the corresponding functional function according to the result of decoding the binary instruction file during operation.

6. The method for constructing a fluid control language system with script parsing as claimed in claim 5, wherein decomposing the overall control flow into specific control steps according to the control protocol document, writing a control script, comprising:

and decomposing the whole control flow into specific control steps according to the script grammar in the control protocol document, compiling the name, declaration and code parts of the control script, and sequentially writing the control steps into the script according to a specified format to form the control script.

7. The method for constructing a liquid path control language system with script parsing as claimed in claim 6, wherein encoding the control script according to the script encoding tool to generate a binary instruction file comprises:

and coding the control script by using the script coding tool to obtain a binary instruction file, and corresponding the file number in the maintained program name document, the name defined in the script file and the name of the generated binary instruction file one by one.

8. The method for constructing a liquid path control language system with script parsing as claimed in claim 7, wherein the step of transmitting the binary instruction file into the target machine and completing construction when running to meet the set conditions comprises:

the binary instruction file is transmitted into a target machine, and the binary instruction file is analyzed and executed by utilizing the analysis execution function until the target machine runs to meet a set target and a new system does not need to be developed, so that the construction is completed;

if the target machine does not conform to the set target in operation, rewriting the control script until the operation conforms to the set target;

if the operation of the target machine meets the set target but a new system needs to be developed, the target machine is recoded to realize the analysis and execution of the function until the operation meets the set target and the new system does not need to be developed.

9. A liquid path control language system with script analysis is characterized in that the liquid path control language system with script analysis comprises a control protocol document module, a script coding tool module, an analysis execution function module, a control script module and a binary instruction file module, wherein the control protocol document module is connected with the script coding document module, the analysis execution function module is connected with the script coding document module, the control script module is connected with the control protocol document module and the script coding tool module, the binary instruction file module is connected with the analysis execution function module, the script coding tool module is connected with the script coding document module and the binary instruction file module,

the control protocol document module is used for naming all universal liquid path components by English shorthand and storing the English shorthand of the operation mode, the operation parameters and the parameter number of each component in the control protocol document;

the script coding document module is used for making a regulation on a binary coding mode of a statement in the control protocol document;

the script coding tool module is used for reading the control script line by line and coding the control script into a binary instruction file;

the analysis execution function module is used for decoding the binary instruction file according to the script coding document module and selecting and calling a corresponding function and executing the function;

the control script module is used for decomposing the whole control flow into specific control steps according to the script grammar in the control protocol document, compiling the name, declaration and code parts of the control script, and sequentially writing the control steps into the script according to a set format and a set time sequence;

and the binary instruction file module is used for transmitting the binary instruction file into the target machine for the analysis and execution of the analysis and execution function module.

10. The system according to claim 9, wherein the script coding tool module has a real-time debugging unit for writing a script, generating, saving and downloading the binary command file to a target machine, and sending a command to the target machine to parse the binary command file and execute the binary command file.

Background

Blood analyzers, specific protein analyzers, and biochemical analyzers are important analyzers frequently used in clinical examinations, and analyze blood or other body fluids to measure various biochemical indicators, and perform comprehensive analysis in combination with other clinical data, thereby helping to diagnose diseases, evaluate organ functions, determine future treatment criteria, and the like.

When functions are added, modified and deleted, the traditional instrument control software needs to be recompiled after modifying codes in a development tool to generate a target machine executable program, and the target machine executable program is downloaded through the tool to run. During development and actual operation of the instrument, instrument fluid path components such as valves, pumps and the like need to be controlled. In the research and development process, non-software personnel such as a liquid path development engineer are required to debug, parameters are told to the software developer, the software developer rebuilds and compiles the software, the software is updated to a target machine so that the liquid path development engineer can debug the software again, and inconvenience is brought to subsequent real-time debugging and operation parameter updating of instrument liquid path components.

Disclosure of Invention

The invention aims to provide a liquid path control language system with script analysis and a construction method thereof, which improve the convenience of subsequent real-time debugging and operation parameter updating of instrument liquid path components.

In order to achieve the above object, in a first aspect, the present invention provides a method for constructing a liquid path control language system with script parsing, including:

acquiring basic information of a liquid path component, defining syntax of a control statement, and acquiring a control protocol document;

making a regulation on the binary file coding mode of the control protocol document statement to obtain a script coding document;

obtaining a script coding tool according to the script coding document;

according to the script coding document, coding in a target machine to obtain a function for analyzing and executing a binary instruction file;

decomposing the whole control flow into specific control steps according to the control protocol document, and compiling a control script;

coding the control script according to the script coding tool to generate a binary instruction file;

and transmitting the binary instruction file into a target machine, and completing construction when the binary instruction file is operated to meet set conditions.

The obtaining of the basic information of the liquid path component, defining the syntax of the control statement, and obtaining the control protocol document includes:

based on a general use habit, naming each general liquid path component by English shorthand, forming a control protocol document by English shorthand of an operation mode of each component, operation parameters and the number of the parameters, and defining a writing mode of name, declaration and code according to the control protocol document, wherein the control protocol document is grammar of a liquid path control language.

Wherein, the method for specifying the binary file coding mode of the control protocol document statement to obtain the script coding document comprises the following steps:

and defining the binary file coding mode of the statement in the control protocol document to obtain a script coding document, wherein the script coding document comprises the format of the instruction, the binary coding mode of each instruction and the storage format.

Obtaining a script coding tool according to the script coding document, wherein the obtaining of the script coding tool comprises:

and reading and generating binary instructions corresponding to each line of sentences line by line according to the specification of the script coding document, and assembling the binary instructions into a binary instruction file.

According to the script coding document, a function for analyzing and executing the binary instruction file is obtained in the target machine coding, and the method comprises the following steps:

and based on the setting of the developed new system, decoding the binary instruction file according to the script coding document, realizing a corresponding functional function, and calling the corresponding functional function according to the result of decoding the binary instruction file during operation.

According to the control protocol document, decomposing the whole control flow into specific control steps, and compiling a control script, wherein the steps comprise:

and decomposing the whole control flow into specific control steps according to the script grammar in the control protocol document, compiling the name, declaration and code parts of the control script, and sequentially writing the control steps into the script according to a specified format to form the control script.

The encoding of the control script according to the script encoding tool to generate a binary instruction file includes:

and coding the control script by using the script coding tool to obtain a binary instruction file, and corresponding the file number in the maintained program name document, the name defined in the script file and the name of the generated binary instruction file one by one.

The method comprises the following steps of transmitting the binary instruction file into a target machine, and completing construction when the binary instruction file is operated to meet set conditions, wherein the construction comprises the following steps:

the binary instruction file is transmitted into a target machine, and the binary instruction file is analyzed and executed by utilizing the analysis execution function until the target machine runs to meet a set target and a new system does not need to be developed, so that the construction is completed;

if the target machine does not conform to the set target in operation, rewriting the control script until the operation conforms to the set target;

if the operation of the target machine meets the set target but a new system needs to be developed, the target machine is recoded to realize the analysis and execution of the function until the operation meets the set target and the new system does not need to be developed.

In a second aspect, the present invention provides a fluid path control language system with script parsing, the fluid path control language system with script parsing includes a control protocol document module, a script coding tool module, a parsing execution function module, a control script module and a binary instruction file module, the control protocol document module is connected to the script coding document module, the parsing execution function module is connected to the script coding document module, the control script module is connected to the control protocol document module and the script coding tool module, the binary instruction file module is connected to the parsing execution function module, the script coding tool module is connected to the script coding document module and the binary instruction file module,

the control protocol document module is used for naming all universal liquid path components by English shorthand and storing the English shorthand of the operation mode, the operation parameters and the parameter number of each component in the control protocol document;

the script coding document module is used for making a regulation on a binary coding mode of a statement in the control protocol document;

the script coding tool module is used for reading the control script line by line and coding the control script into a binary instruction file;

the analysis execution function module is used for decoding the binary instruction file according to the script coding document module and selecting and calling a corresponding function and executing the function;

the control script module is used for decomposing the whole control flow into specific control steps according to the script grammar in the control protocol document, compiling the name, declaration and code parts of the control script, and sequentially writing the control steps into the script according to a set format and a set time sequence;

and the binary instruction file module is used for transmitting the binary instruction file into the target machine for the analysis and execution of the analysis and execution function module.

The script coding tool module is provided with a real-time debugging unit and is used for compiling scripts, generating, storing and downloading the binary instruction file to a target machine, and sending an instruction to enable the target machine to analyze and execute the binary instruction file.

The invention relates to a liquid path control language system with script analysis and a construction method thereof, wherein the liquid path control language system with script analysis comprises a control protocol document module, a script coding workpiece module, an analysis execution function module, a control script module and a binary instruction file module, the control protocol document module is connected with the script coding document module, the analysis execution function module is connected with the script coding document module, the control script module is connected with the control protocol document module and the script coding tool module, the binary instruction file module is connected with the analysis execution function module, the script coding tool module is connected with the script coding document module and the binary instruction file module, and based on the universal use habit, naming each universal liquid path component by English shorthand, defining control statement grammar of English shorthand, operating parameter and parameter number of operating mode of each component, forming a control protocol document, making specification to binary coding mode in the control protocol document, obtaining script coding document, developing script coding tool according to script coding document, generating binary instruction file according to script coding tool, developing analysis executing function according to the script coding document, decomposing the whole control flow into concrete control steps according to script grammar in the control protocol document, forming control script, coding the control script by the script coding tool to obtain binary instruction file, transmitting the binary instruction file to target machine, analyzing the executing function and executing the binary instruction file, and when the operation meets the set conditions, the construction is completed, and the convenience of subsequent real-time debugging and operation parameter updating of instrument liquid path parts is improved.

Drawings

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

FIG. 1 is a schematic step diagram of a method for constructing a liquid path control language system with script parsing according to the present invention.

FIG. 2 is a flow chart diagram of a method for constructing a liquid path control language system with script parsing according to the present invention.

Fig. 3 is a schematic structural diagram of a fluid control language system with script parsing according to the present invention.

FIG. 4 is a system framework diagram of a fluid control language system with script parsing according to the present invention.

The system comprises a 1-control protocol document module, a 2-script coding document module, a 3-analysis execution function module, a 4-control script module, a 5-binary instruction file module, a 6-script coding tool module and a 7-real-time debugging unit.

Detailed Description

Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.

Referring to fig. 1 and fig. 2, the present invention provides a method for constructing a liquid path control language system with script parsing, including:

s101, obtaining basic information of the liquid path component, defining syntax of a control statement, and obtaining a control protocol document.

Specifically, based on a general use habit, naming each general liquid path component by English shorthand, and forming a control protocol document by using the information of the English shorthand, the operation parameters, the parameter number and the like of the operation mode of each component, wherein the document is the grammar of the liquid path control language, and the document also specifies the compiling mode of a control script statement; the liquid path developer can write a control script according to the document, needs to have a global planning on the currently used liquid path components, needs to contain all current components and functions, and considers the possibility of expanding new components.

The syntax of the control protocol document defines three parts of the implementation script: name, declaration, code. The name is the unique number of the program, the function loading the binary instruction file in the target machine needs to judge whether the first parameter transmitted by the function is the same as the name, and if the first parameter is different from the name, the function returns an error. The method has the advantages that the method is similar to the effect of other programming language header files, other scripts can be contained in the script, and if the current script contains other scripts, the method is equivalent to copying codes of other scripts to the current script, so that the reuse of the scripts can be facilitated; meanwhile, the method can be used for declaring but not limited to information including version numbers and the like, and maintenance personnel can conveniently consult the information. The code part is similar to code segments of other programming languages, and each operation step is described in detail through a script instruction according to time sequence. The code part comprises parameter setting, a stepping motor instruction, an electromagnetic valve instruction, a pump operation instruction, delay operation, system calling, a predefined instruction and the like. The following is a detailed description:

the parameter setting instruction includes: the LOAD loading instruction is used for acquiring a parameter in the target machine, and the first parameter represents the variable name of the parameter; the STORE saving instruction is used for informing the target machine of persisting the parameter, the first parameter is a parameter value, and the second parameter is a variable name of the parameter;

the step motor instruction is used for controlling the step motor, the first parameter is the number of the step motor, the second parameter represents whether the step motor needs to be started or stopped, if the second parameter represents that the step motor stops, the following parameter does not need to be used, if the second parameter represents that the step motor starts, the following parameter is continuously used, the third parameter represents the moving direction of the step motor, the step motor can rotate forwards and backwards, the fourth parameter represents the moving frequency of the step motor, and the fifth parameter represents the moving step number of the step motor;

the electromagnetic valve instruction is used for controlling the opening and closing of the electromagnetic valve, the first parameter represents the number of the electromagnetic valve, and the second parameter represents the opening and closing;

a pump control command is used for controlling the opening and closing of the pump, the first parameter represents a pump number, and the second parameter represents the opening and closing;

the time delay operation is used for time delay and is matched with a stepping motor instruction, an electromagnetic valve instruction and a pump control instruction for use, for example, after the pump is started, the time delay instruction is used for time delay, then the pump is closed, the purpose of conveying a section of liquid can be achieved, and a first parameter of the time delay operation is time delay duration which can be expressed by microseconds;

sixthly, the system calling instruction is used for calling the function with the corresponding number of the target machine, the first parameter represents the function number, and a plurality of parameters can be appointed according to different actual requirements. For example, the instruction can be used for calling a function for acquiring an ADC sampling result in the operation process of the liquid path component, the target machine can store handles of the functions in an array manner, search the function handles by numbering when calling, and then transfer parameters to call the function;

and seventhly, predefining instructions similar to other macro definition behaviors which become languages, wherein the first parameter is the name of the variable, and the second parameter is the value of the variable. A fixed value can be predefined for a variable, and the value in the script is replaced by a variable name, so that the writing and the maintenance of developers are facilitated, for example, for a system call instruction, a first parameter function number can be replaced by the variable name defined by a predefined instruction;

other instructions can be designed, and the method is not limited to the current use mode. For example, a buzzer switch command, an LED switch command, etc. can be designed, and similar design ideas are covered in the present invention.

S102, making a regulation on the binary file coding mode of the control protocol document statement to obtain a script coding document.

Specifically, a binary file coding mode of a statement in the control protocol document is specified, so as to obtain a script coding document, where the script coding document includes a binary coding mode and a storage mode of each instruction included in the control protocol document, and the script coding document may specify that each line of the control script is stored as a fixed instruction length, for example, 12 bytes are used to represent one instruction, where the first byte is used to represent an instruction type, for example, 0x01 represents a parameter setting instruction, 0x02 represents a stepping motor instruction, and so on; in the next 10 bytes, every two bytes are used for representing a parameter, and the number of bytes can be set according to actual needs; the last byte is fixed to 0x0D to indicate the end of the instruction.

S103, obtaining a script coding tool according to the script coding document.

Specifically, according to the specification of the script coding document, binary instructions corresponding to each line of sentences are read and generated line by line, and the binary instructions are assembled into a binary instruction file, wherein the script coding document is used for guiding the coding implementation of a script coding tool, and aims to analyze and code a control script into a specific binary instruction file. The script coding tool software is not a part of the target machine software system, but is an external tool, and the generated binary instruction file needs to be transmitted to the target machine when in use.

The software developer can develop the script coding tool software according to the script coding document by adopting the following method:

reading control scripts written by liquid path developers line by line, and processing line by line. If the declaration includes other script files, reading the other script files, and performing priority processing;

when processing one line, dividing the line character string into multiple parameters according to blank space, the first parameter representing instruction type, the later parameter representing instruction parameter, according to script coding document, converting these parameters into binary representation and storing into the corresponding byte of instruction and writing into binary instruction file, if the instruction parameter obtains variable name and is the same as the variable name defined by predefined instruction, replacing it with the actual parameter corresponding to variable name in predefined instruction. The predefined instructions need not be converted as separate instructions, i.e. the actual formed binary instruction file will not contain the predefined instructions;

the beginning of the formed binary instruction file document can contain information such as name, version number and the like;

fourthly, the binary instruction file is stored in a computer running script coding tool software for standby use;

and fifthly, maintaining a document, and enabling the serial number of the binary instruction file, the name defined in the control script file and the name of the generated binary instruction file to correspond to each other so as to facilitate batch downloading to the target machine.

And S104, according to the script coding document, coding the script coding document in a target machine to obtain a function for analyzing and executing the binary instruction file.

Specifically, based on the setting of a new system to be developed, the binary instruction file is analyzed according to the script coding document code, the instruction analysis module executes the instruction string obtained after analysis, and the corresponding execution logic code is simultaneously coded and realized to obtain the execution function module, so that the system can operate the corresponding liquid path component according to the logic and the control flow in the control script. Software developers can independently realize the binary instruction analysis and execution process, and independent of the main program, the binary instruction file text read by the main program is transmitted to the analysis execution process for analysis and execution through inter-process communication. The analysis execution process specifies an analysis instruction according to the script coding document, and according to the description in the script coding document, the analyzed instruction string can be but is not limited to be stored by an array, and then the corresponding function of the execution function module is called. For example, if the judgment instruction is an operation instruction for a valve, a pump, and a motor, the driver of the corresponding component may be implemented first, an interface function corresponding to the parameter is reserved, and the execution function module directly calls the interface function to implement the purpose of controlling the component. If the analyzed command is a delay command, a usleep () function of the linux system can be called to realize delay, and the single chip microcomputer system can write a cyclic function according to the MCU main frequency to realize delay. And if the analyzed data is a parameter instruction, sequentially storing the parameter instruction into the parameter list array according to the structural body of the number, the parameter name and the parameter value, acquiring a corresponding value according to the parameter number, and conveniently reading and writing the data.

And S105, decomposing the whole control flow into specific control steps according to the control protocol document, and writing a control script.

Specifically, according to the syntax of the control script in the control protocol document, the overall control flow is decomposed into specific control steps, the name, declaration and code parts of the control script are written, and the control steps are sequentially written into the script according to a specified format and a time sequence to form the control script, wherein the specified format can be an actual control step in a format such as an instruction identifier and a parameter list.

And S106, coding the control script according to the script coding tool to generate a binary instruction file.

Specifically, the script coding tool is used for reading the control script, coding the control script to obtain a binary instruction file, and corresponding file numbers in the maintained program name document, names defined in the script file and names of the generated binary instruction file one by one, so that the control script is conveniently downloaded to the target machine in batches.

And S107, transmitting the binary instruction file into a target machine, and completing construction when the binary instruction file is operated to meet set conditions.

Specifically, the binary instruction file is transmitted into a target machine, the binary instruction file is analyzed and executed by using the analysis execution function until the operation of the target machine meets a set target and a new system does not need to be developed, the construction is completed, and if the operation of a liquid path component of the target machine does not meet the set target, the control script is rewritten until the operation of the liquid path component meets the set target; and if the operation of the target machine meets the set target but a new system needs to be developed, coding the target machine system again to realize the analysis and execution of the function until the operation meets the set target and the new system does not need to be developed. The transmission of the binary instruction file can be but is not limited to transmission modes such as a network port, a serial port and a USB interface, and after construction is completed, when a new instrument is subsequently developed, a software system and an analysis execution function running in the instrument do not need to be changed, so that the convenience of subsequent debugging is improved. The writing grammar of the control script is simple, and the learning cost of the liquid path developer can be reduced. The daily debugging instrument of the liquid path developer does not need to contact the software developer to change and upgrade software, can be operated by self to reduce the development time cost, improve the convenience, more conveniently upgrade the parameters of the liquid path control part of the sold instrument and debug the instrument after maintenance, does not need to change software codes again, and reduces the maintenance cost.

The specific flow is shown in fig. 2: naming each universal liquid path component by English shorthand, compiling a control protocol document according to the information of the English shorthand, operation parameters, parameter number and the like of the operation mode of each component, defining the grammar of a control statement, compiling a script coding document according to the control protocol document, developing a script coding tool according to the script coding document, then judging whether a new system needs to be continuously developed, if so, continuously developing the new system, realizing analysis and execution function functions according to the script coding document in a target machine, analyzing instructions by the function functions, executing corresponding functions according to the analyzed result, compiling a control script according to the control protocol document, coding the control script by using the script coding tool to obtain a binary instruction file, then transmitting the binary instruction file into the target machine, and observing the operation effect, and if the operation effect does not accord with the preset target, rewriting the control script until the operation effect accords with the preset target, and then finishing construction after a new system does not need to be developed continuously, so that the convenience of subsequent real-time debugging and operation parameter updating of the instrument liquid path component is improved.

Referring to fig. 3 and fig. 4, the present invention provides a liquid path control language system with script parsing, where the liquid path control language system with script parsing includes a control protocol document module 1, a script coding document module 2, a script coding tool module 6, a parsing execution function module 3, a control script module 4, and a binary instruction file module 5, the control protocol document module 1 is connected to the script coding document module 2, the parsing execution function module 3 is connected to the script coding document module 2, the control script module 4 is connected to the control protocol document module 1 and the script coding tool module 6, the binary instruction file module 5 is connected to the parsing execution function module 3, the script coding tool module 6 is connected to the script coding document module 2 and the binary instruction module 5,

the control protocol document module 1 is used for naming all universal liquid path components by English shorthand, and storing the English shorthand of the operation mode of each component, the operation parameters and the number of the parameters in a control protocol document;

the script coding document module 2 is used for making a specification on a binary coding mode of a statement in the control protocol document;

the script coding tool module 6 is used for reading the control script line by line and coding the control script into a binary instruction file;

the analysis execution function module 3 is used for decoding the binary instruction file according to the script coding document module, and selecting and calling a corresponding function and executing the function;

the control script module 4 is configured to decompose the overall control flow into specific control steps according to the script syntax in the control protocol document, write the name, declaration and code portions of the control script, and write the control steps into the script in sequence according to a set format and a set time sequence;

and the binary instruction file module 5 is used for transmitting the binary instruction file into the target machine for the analysis and execution of the analysis and execution function module.

In this embodiment, the liquid path control language system with script parsing includes a control protocol document module 1, a script coding document module 2, a script coding tool module 6, a parsing execution function module 3, a control script module 4 and a binary instruction file module 5, wherein the control protocol document module 1 is connected to the script coding document module 2, the parsing execution function module 3 is connected to the script coding document module 2, the control script module 4 is connected to the control protocol document module 1 and the script coding tool module 6, the binary instruction file module 5 is connected to the parsing execution function module 3, the script coding tool module 6 is connected to the script coding document module 2 and the binary instruction module 5, and firstly, on a desktop computer or a notebook computer, a software developer names each universal liquid path component in the control protocol document module 1 by using English shorthand according to the English shorthand provided by a liquid path operator, saves the English shorthand, the operation parameters and the parameter number of the operation mode of each component in a control protocol document, analyzes the grammar in the control protocol document to obtain a script coding document or a binary instruction file generating tool, and is used for segmenting an instruction according to the control protocol document module 1 and the script coding document module 2, analyzing an instruction string obtained after segmentation, and selecting a corresponding function in the analysis coding function module 3 to realize a corresponding instruction function; and decomposing the whole control flow into specific control steps in the control script module 4 according to the script syntax in the control protocol document, compiling the name, declaration and code part of the control script, writing the control steps into the script in sequence according to the set format and time sequence, coding the control script by using the script coding document module 2 to obtain a binary instruction file, then transmitting and storing the binary instruction file in a target machine through a corresponding transmission interface by using a transmission interface, analyzing and running the binary instruction file according to the instruction sent by the script coding document module 2, simultaneously calling the corresponding function to drive the corresponding program, and further adjusting the corresponding functional component according to the information corresponding to the control protocol document, as shown in fig. 4, the new instrument does not need to be changed in the subsequent development, the convenience of the subsequent debugging is improved, the learning cost of liquid path developers can be reduced, the grammar is simple, and the processes are executed according to the time sequence and accord with the natural thinking habit; the daily debugging instrument of the liquid path developer does not need to contact the software developer to change and upgrade software, the daily debugging instrument can be operated by self, the development time cost is reduced, the convenience is improved, the daily debugging instrument of the liquid path developer is more convenient for the liquid path control part of the sold instrument to be upgraded and debugged after being maintained, the software code does not need to be changed again, and the maintenance cost is reduced.

Further, the script coding tool module 6 has a real-time debugging unit 7, and is configured to compile a script, generate, store, and download the binary instruction file to a target machine, and send an instruction to allow the target machine to parse the binary instruction file and run.

In this embodiment, the script coding tool module 6 has a real-time debugging unit 7, a text editing box in the real-time debugging unit 7 may be used to write a script, and at the same time, the script coding document module 2 may be called, and the binary instruction file may be generated and stored to a target machine, and the binary instruction file may also be downloaded to the target machine by using transmission methods such as a network port, a serial port, a USB interface, and the like, and at the same time, an instruction is sent to allow the target machine to analyze and run the binary instruction file.

The invention relates to a liquid path control language system with script analysis and a construction method thereof, the liquid path control language system with script analysis comprises a control protocol document module 1, a script coding document module 2, a script coding tool module 6, an analysis execution function module 3, a control script module 4 and a binary instruction file module 5, wherein the control protocol document module 1 is connected with the script coding document module 2, the analysis execution function module 3 is connected with the script coding document module 2, the control script module 4 is connected with the control protocol document module 1 and the script coding tool module 6, the binary instruction file module 5 is connected with the analysis execution function module 3, the script coding tool module 6 is connected with the script coding document module 2 and the binary instruction module 5, based on the general use habit, each general liquid path component is named by English shorthand, and the English shorthand, the operation parameters and the number of the parameters of the operation mode of each component form a control protocol document, parsing the grammar in the control protocol document to obtain a script coding document, developing a script coding tool according to the script coding document, a binary instruction file is generated according to the script coding tool, a function is developed, analyzed and executed according to the script coding document, decomposing the whole control flow into specific control steps according to the script grammar in the control protocol document to form a control script, coding the control script by using the script coding tool to obtain a binary instruction file, transmitting the binary instruction file into a target machine, and when the operation meets the set conditions, the construction is completed, and the convenience of subsequent real-time debugging and operation parameter updating of instrument liquid path parts is improved.

While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:模块关联赋值方法、装置、计算机设备及可读存储介质

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!