CN113672234B - Intelligent progress monitoring method and system for numerical control equipment - Google Patents

Intelligent progress monitoring method and system for numerical control equipment Download PDF

Info

Publication number
CN113672234B
CN113672234B CN202110842394.5A CN202110842394A CN113672234B CN 113672234 B CN113672234 B CN 113672234B CN 202110842394 A CN202110842394 A CN 202110842394A CN 113672234 B CN113672234 B CN 113672234B
Authority
CN
China
Prior art keywords
progress
instruction
processing control
processing
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110842394.5A
Other languages
Chinese (zh)
Other versions
CN113672234A (en
Inventor
刘海龙
庄会云
韩朋
杨松
王长彬
胡鸿志
张希望
刘宏宇
蔡泽帅
王斌
王佳乐
姜岩
郭诗辰
伏靖
张喜军
王爱国
史全良
孙浩天
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Machinery Construction Group Co ltd
Original Assignee
Beijing Machinery Construction Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Machinery Construction Group Co ltd filed Critical Beijing Machinery Construction Group Co ltd
Priority to CN202110842394.5A priority Critical patent/CN113672234B/en
Publication of CN113672234A publication Critical patent/CN113672234A/en
Application granted granted Critical
Publication of CN113672234B publication Critical patent/CN113672234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/425Lexical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Factory Administration (AREA)

Abstract

The invention provides an intelligent progress monitoring method and system for numerical control equipment, comprising the following steps: the control instruction output port of the numerical control equipment is connected with an intelligent terminal in series or in parallel; the intelligent terminal comprises a processing control instruction reading module and a 5G module; the machining control instruction reading module is used for reading machining control instructions from the numerical control equipment; identifying the processing control instruction, and decompiling and restoring the processing control instruction into a source code; the execution progress of the numerical control equipment is obtained, the execution progress is transmitted to a big data platform in real time by utilizing a 5G module, and the processing progress of the numerical control equipment is obtained and displayed; the invention can realize that the whole progress monitoring process is completely free from manual intervention and is automatically completed by the intelligent terminal; the progress situation can be transmitted to a related display terminal, a big data platform and the like in real time, and a manager can control the progress situation at any time; radically avoiding the situation of counterfeiting; the efficiency and accuracy of progress statistics are improved.

Description

Intelligent progress monitoring method and system for numerical control equipment
Technical Field
The invention relates to the technical field of industrial informatization management, in particular to an intelligent progress monitoring method and system for numerical control equipment.
Background
The numerical control equipment adopts a computer to realize the digital program control technology, and the technology uses the computer to execute the motion trail of the equipment and the operation time sequence logic control function of the peripheral equipment according to the control program stored in advance. Because the computer is adopted to replace the original numerical control device formed by a hardware logic circuit, the realization of various control functions such as storage, processing, operation, logic judgment and the like of the input operation instruction can be completed through computer software, and the microcomputerized instruction generated by processing is transmitted to a servo driving device to drive a motor or a hydraulic executing element to drive equipment to run.
At present, the processing progress of the numerical control equipment is counted by manpower, and the following problems exist in the manual counting of the processing progress:
1) And the report is completely dependent on manual statistics.
2) There are situations in which reporting is not timely and counterfeiting is easy.
3) The real-time progress situation can not be mastered in time.
4) All devices cannot be uniformly controlled, i.e. cannot be remotely controlled through a big data platform.
Therefore, the invention provides an intelligent progress monitoring method and system for numerical control equipment, which are used for solving the problems.
Disclosure of Invention
The invention provides an intelligent progress monitoring method for numerical control equipment, which can realize that the whole progress monitoring process is completely free from manual intervention and is automatically completed by an intelligent terminal; the progress situation can be transmitted to a related display terminal, a big data platform and the like in real time, and a manager can control the progress situation at any time; radically avoiding the situation of counterfeiting; the efficiency and accuracy of progress statistics are improved.
The invention provides an intelligent progress monitoring method for numerical control equipment, which comprises the following steps:
step 1: reading a processing control instruction from numerical control equipment;
step 2: identifying the processing control instruction, and decompiling and restoring the processing control instruction into a source code;
step 3: analyzing the source code to obtain the execution progress of the source code;
step 4: and based on the big data platform, according to the execution progress, the processing progress of the numerical control equipment is obtained and displayed.
In one possible implementation of this method,
in step 1, reading a processing control instruction from a numerical control device includes:
acquiring processing control parameters of the numerical control equipment and acquiring identification of the processing control parameters;
acquiring processing control codes matched with the identifiers from a plurality of processing control code databases stored in advance based on the identifiers;
based on a preset rule database, performing lexical and grammatical analysis on the processing control code, and judging whether illegal characters or grammatical errors exist in the processing control code;
if yes, indicating that analysis is not passed, acquiring error attributes, and correcting the processing control code based on the error attributes until analysis is passed;
otherwise, indicating that the analysis is passed;
under the condition that the analysis passes, an analysis result is obtained, an abstract syntax tree is generated based on the analysis result, and compiling and executing are carried out on the abstract syntax tree to obtain a processing control instruction.
In one possible implementation of this method,
in step 2, identifying the processing control instruction includes:
acquiring a process and a receiving address for receiving the processing control instruction, monitoring process data corresponding to the process, and acquiring the process data corresponding to the receiving address from the process data;
analyzing the process data corresponding to the receiving address to obtain a corresponding running track;
judging the matching degree of the running track and a preset running track,
if the matching degree meets a preset matching requirement, the processing control instruction is successfully identified;
otherwise, indicating that the processing control instruction has risk, and not identifying the processing control instruction.
In one possible implementation of this method,
in step 2, decompiling the processing control instruction into source code includes:
analyzing the processing control instruction to obtain a decomposition priority of the processing control instruction, wherein the decomposition priority comprises a first priority and a second priority;
determining a first decomposition dimension of the process control instruction based on the first priority;
performing first decomposition on the processing control instruction based on the first decomposition dimension to obtain a first processing control sub-instruction;
performing abnormal decomposition judgment on the first processing control sub-instruction, obtaining a second processing control sub-instruction with abnormal decomposition, and determining a second decomposition dimension based on the second priority;
decomposing the second processing control sub-instruction based on the second decomposition dimension to obtain a third processing control sub-instruction;
logically ordering the first processing control sub-instruction and the third processing control sub-instruction to generate a sequence of sequential sub-instructions;
extracting a current shaping variable corresponding to the sequence sub-instruction sequence, carrying out corresponding addition and subtraction operation on the shaping variable according to the influence of the current shaping variable on a decompiler to obtain a target shaping variable, and replacing the current shaping variable of the sequence sub-instruction sequence with the target shaping variable;
acquiring current codes of the instructions in the sequence sub-instruction sequences in sequence, compiling the current codes based on preset compiling rules, and obtaining codes to be compiled, wherein the codes have unique mapping relation with the current codes and have the same logic codes;
acquiring attribute information of a source code, calculating the similarity between the attribute information and standard attribute information, screening target attribute information with the similarity being greater than preset similarity, and obtaining a target attribute data packet based on the target attribute information;
the target attribute data packet is sent to the sequence sub-instruction sequence for analysis and comparison, response information is obtained, and decompilation rules are generated based on the response information;
and decompiling the code to be compiled based on the decompiling rule to obtain a source code.
In one possible implementation of this method,
in step 3, analyzing the source code, and analyzing the source code to obtain the execution progress of the source code includes:
acquiring function information and variable information in the source code, and respectively setting corresponding first identifiers for the function information and the variable information;
analyzing the source code to obtain a morpheme, determining function information or variable information corresponding to the morpheme based on the information of the morpheme, and setting a prefix identifier corresponding to the first identifier for the morpheme to obtain a code with the prefix identifier;
analyzing the code with the prefix identifier to generate log information;
and extracting execution characteristic data from the log information, and obtaining the execution progress of the source code based on the execution characteristic data.
In one possible implementation of this method,
in step 3, after obtaining the execution progress of the source code, the method further includes: and encrypting and transmitting the execution progress to a big data platform, wherein the execution progress is as follows:
generating a random number string by using a random number generator;
calculating uncorrelated indexes of two adjacent random numbers in the random number string according to the following formula based on the random number string;
wherein D (n, n+1) represents an uncorrelated index, W, between the nth random number and the (n+1) th random number in the random number string 0 A confidence factor representing the random number generator, wherein the confidence factor is (0.85,0.99), T (N) represents a variable value of an nth random number in the random number string, T (n+1) represents a variable value of an (n+1) th random number in the random number string, T (i) represents a variable value of an (i) th random number in the random number string, N represents the number of random numbers in the random number string, and 1 is less than or equal to N<n+1≤N;
Judging whether the uncorrelated indexes of any two adjacent random numbers in the random number string meet the uncorrelated requirement or not;
if yes, the random number generator is utilized to generate a random number string with a preset length as an encryption key;
otherwise, parameter adjustment is carried out on the random number generator until the uncorrelation indexes of any two adjacent random numbers in the random number generator meet the uncorrelation requirement;
and in the transmission process of transmitting the execution progress to the big data platform, the encryption key is utilized for encryption transmission.
In one possible implementation of this method,
in step 4, according to the execution progress, obtaining the processing progress of the numerical control device includes:
acquiring target tasks of the numerical control equipment, distributing the target tasks according to a preset distribution rule, acquiring a plurality of sub-target tasks and execution time thereof, and converting the sub-target tasks into source codes;
acquiring a current sub-target task and current execution time corresponding to the execution progress of the source code;
calculating the processing progress of the numerical control equipment according to the following formula based on the processing progress of the sub-target task;
wherein P represents the processing progress of the numerical control equipment, T b Indicating the end time of completing the target task, T a Represents the time of starting the target task, m represents the number of sub-target tasks completed, T j Indicating the execution time of the j-th sub-target task, T Q Representing the current execution time of the current sub-target task, T n Representing the time required for completing the current sub-target task, e representing a natural constant, a value of 2.72, delta representing the distribution factor of the preset distribution rule, a value of (0.7,0.9), τ 0 Representing the number of the plurality of sub-target tasks and being greater than m.
In one possible implementation of this method,
in step 4, after obtaining the processing progress of the numerical control device, the method further includes: judging the progress deviation of the processing progress, and carrying out corresponding alarm processing, wherein the process is as follows:
based on the work progress, calculating the progress deviation of the processing progress according to the following formula:
wherein ρ represents the progress deviation of the processing progress, T f Representing the preset time for completing the target task, M representing the workload for completing the target task, T representing the man-hour for completing the target task,representing production efficiency management indexes of the numerical control equipment;
judging positive and negative values of the progress deviation;
if the progress deviation is negative or the value is 0, the processing progress meets the preset processing requirement;
otherwise, the processing progress is indicated not to meet the preset processing requirement, and alarm reminding is carried out.
An intelligent progress monitoring system for a numerical control device, comprising:
the numerical control equipment instruction output port is used for sending a processing control instruction;
the intelligent terminal is connected with the instruction output port of the numerical control equipment in series or in parallel and comprises a processing control instruction reading module and a 5G module;
the processing control instruction reading module is used for reading a processing control instruction from the instruction output port of the numerical control equipment, identifying the processing control instruction, and decompiling and restoring the processing control instruction into a source code; analyzing the source code to obtain the execution progress of the numerical control equipment;
the 5G module is used for transmitting the execution progress to a big data platform in real time;
and the big data platform is used for obtaining the processing progress of the numerical control equipment according to the execution progress and displaying the processing progress.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
FIG. 1 is a flowchart of an intelligent progress monitoring method for a numerical control device according to an embodiment of the present invention;
FIG. 2 is a block diagram of a smart terminal in an embodiment of the present invention;
FIG. 3 is a transmission direction diagram of control commands in a serial mode according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an intelligent progress monitoring method in a serial mode according to an embodiment of the present invention;
FIG. 5 is a transmission direction diagram of a lower control command in parallel mode according to an embodiment of the present invention;
fig. 6 is a flowchart of an intelligent progress monitoring method in parallel mode according to an embodiment of the present invention.
Fig. 7 is a block diagram of an intelligent progress monitoring system for a numerical control device according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Example 1
An embodiment of the present invention provides an intelligent progress monitoring method for a numerical control device, as shown in fig. 1, including:
step 1: reading a processing control instruction from numerical control equipment;
step 2: identifying the processing control instruction, and decompiling and restoring the processing control instruction into a source code;
step 3: analyzing the source code to obtain the execution progress of the source code;
step 4: and based on the big data platform, according to the execution progress, the processing progress of the numerical control equipment is obtained and displayed.
In this embodiment, the core technology of the scheme is to connect an intelligent terminal in series or in parallel with a control instruction output port of the numerical control device, and as shown in fig. 2, the intelligent terminal includes a "read processing control instruction module" and a "5G module".
When the numerical control device starts to operate, the intelligent terminal starts synchronously, as shown in fig. 3, the serial mode is suitable for the numerical control device needing feedback control instructions, as shown in fig. 4, in the serial mode, when the numerical control device control terminal is running a source code, a machining control instruction is sent to a numerical control device machine tool, the instruction is firstly transmitted to a 'read machining control instruction module' of the intelligent terminal, the module transmits the machining control instruction to the numerical control device machine tool, and the machine tool starts to operate according to the instruction. Meanwhile, the module recognizes the instruction, decompiles and restores the source code, and further forms processing progress information. Then the information is transmitted to a 5G module, and the 5G module wirelessly transmits the execution progress information of the source code to a big data platform in real time
As shown in fig. 5, the parallel mode is suitable for a numerical control device requiring feedback control instructions, and as shown in fig. 6, in the parallel mode, when a numerical control device control terminal runs a source code, a machining control instruction is simultaneously sent to a numerical control device machine tool and a machining control instruction reading module. The machine tool starts to operate according to the instruction. Meanwhile, the module recognizes the instruction, decompiles and restores the source code, and further forms processing progress information. And then the source code execution progress information is transmitted to a 5G module in real time, the 5G module wirelessly transmits the source code execution progress information to a big data platform, wherein the read processing control instruction module recognizes a source code starting statement, a processing task is considered to be started, the read processing control instruction module recognizes a source code ending statement, the processing task is considered to be finished, and the source code execution progress is calculated and then displayed on a display terminal in proper forms such as a graph, a percentage and the like.
The beneficial effects of above-mentioned design scheme are: the whole progress monitoring process is completely free from manual intervention, and is automatically completed by the intelligent terminal; the progress situation can be transmitted to a related display terminal, a big data platform and the like in real time, and a manager can control the progress situation at any time; radically avoiding the situation of counterfeiting; the efficiency and accuracy of progress statistics are improved.
Example 2
Based on embodiment 1, the embodiment of the invention provides an intelligent progress monitoring method for a numerical control device, and in step 1, reading a processing control instruction from the numerical control device includes:
acquiring processing control parameters of the numerical control equipment and acquiring identification of the processing control parameters;
acquiring processing control codes matched with the identifiers from a plurality of processing control code databases stored in advance based on the identifiers;
based on a preset rule database, performing lexical and grammatical analysis on the processing control code, and judging whether illegal characters or grammatical errors exist in the processing control code;
if yes, indicating that analysis is not passed, acquiring error attributes, and correcting the processing control code based on the error attributes until analysis is passed;
otherwise, indicating that the analysis is passed;
under the condition that the analysis passes, an analysis result is obtained, an abstract syntax tree is generated based on the analysis result, and compiling and executing are carried out on the abstract syntax tree to obtain a processing control instruction.
In this embodiment, the process control parameter is related to a state of the control device.
In this embodiment, the error attributes include error types such as presence of illegal characters, presence of grammar error lamps, error locations such as illegal character locations, grammar error locations, etc.
The beneficial effects of above-mentioned design scheme are: by reading the processing control instruction from the numerical control equipment and analyzing and correcting the processing control code, the accuracy of the acquired processing control instruction is ensured, and the accuracy of the processing progress is ensured.
Example 3
Based on embodiment 1, the embodiment of the present invention provides an intelligent progress monitoring method for a numerical control device, and in step 2, identifying the processing control instruction includes:
acquiring a process and a receiving address for receiving the processing control instruction, monitoring process data corresponding to the process, and acquiring the process data corresponding to the receiving address from the process data;
analyzing the process data corresponding to the receiving address to obtain a corresponding running track;
judging the matching degree of the running track and a preset running track,
if the matching degree meets a preset matching requirement, the processing control instruction is successfully identified;
otherwise, indicating that the processing control instruction has risk, and not identifying the processing control instruction.
In this embodiment, the process data includes a transmission path of the process control instruction.
In this embodiment, the moving track is a transmission path of the processing control instruction in a transmission process.
The beneficial effects of above-mentioned design scheme are: the processing control instruction is identified by judging the running track of the processing control instruction, so that the acquired processing control instruction is prevented from being invaded and modified, the authenticity of the processing control instruction is ensured, the situation of counterfeiting is avoided, and the accuracy of processing progress statistics is provided.
Example 4
Based on embodiment 1, the embodiment of the present invention provides an intelligent progress monitoring method for a numerical control device, in step 2, decompiling and restoring the processing control instruction into a source code includes:
analyzing the processing control instruction to obtain a decomposition priority of the processing control instruction, wherein the decomposition priority comprises a first priority and a second priority;
determining a first decomposition dimension of the process control instruction based on the first priority;
performing first decomposition on the processing control instruction based on the first decomposition dimension to obtain a first processing control sub-instruction;
performing abnormal decomposition judgment on the first processing control sub-instruction, obtaining a second processing control sub-instruction with abnormal decomposition, and determining a second decomposition dimension based on the second priority;
decomposing the second processing control sub-instruction based on the second decomposition dimension to obtain a third processing control sub-instruction;
logically ordering the first processing control sub-instruction and the third processing control sub-instruction to generate a sequence of sequential sub-instructions;
extracting a current shaping variable corresponding to the sequence sub-instruction sequence, carrying out corresponding addition and subtraction operation on the shaping variable according to the influence of the current shaping variable on a decompiler to obtain a target shaping variable, and replacing the current shaping variable of the sequence sub-instruction sequence with the target shaping variable;
acquiring current codes of the instructions in the sequence sub-instruction sequences in sequence, compiling the current codes based on preset compiling rules, and obtaining codes to be compiled, wherein the codes have unique mapping relation with the current codes and have the same logic codes;
acquiring attribute information of a source code, calculating the similarity between the attribute information and standard attribute information, screening target attribute information with the similarity being greater than preset similarity, and obtaining a target attribute data packet based on the target attribute information;
the target attribute data packet is sent to the sequence sub-instruction sequence for analysis and comparison, response information is obtained, and decompilation rules are generated based on the response information;
and decompiling the code to be compiled based on the decompiling rule to obtain a source code.
In this embodiment, the second decomposition dimension is greater than the first decomposition dimension.
In this embodiment, the second process control sub-instruction having an abnormality resolution is specifically an abnormality resolution complement.
In this embodiment, the processing control instruction is decomposed and sequenced, and then decompiled is performed on the sequence of sequential sub-instructions after decomposition and sequencing, so that decompiled efficiency is improved.
In this embodiment, the current shaping variable represents an offset between the value of the entry ESP register and the value of the exit ESP register in the decompiler, and by adjusting the current shaping variable, parameters and neither variables in the function execution process in the instruction can be accurately identified, so as to provide more accurate information for the decompilation process, thereby improving the accuracy and readability of decompilation.
In this embodiment, the attribute information of the source code includes a format of the source code, writing rules, and the like.
In this embodiment, the response information is information related to decompilation of the sequential sub-instruction sequence obtained by the sequential sub-instruction sequence based on the target attribute data packet.
The beneficial effects of above-mentioned design scheme are: the processing control instructions are decomposed and sequenced to obtain a sequence sub-instruction sequence, decompilation is carried out after decomposition, decompilation efficiency is improved, more accurate information is provided for the decompilation process by adjusting the current shaping variable corresponding to the sequence sub-instruction sequence, and therefore decompilation accuracy and readability are improved, subsequent analysis efficiency of source codes is improved, and processing progress is convenient to obtain.
Example 5
Based on embodiment 1, the intelligent progress monitoring method for a numerical control device according to claim 1, in step 3, the analyzing the source code, and obtaining the execution progress of the source code includes:
acquiring function information and variable information in the source code, and respectively setting corresponding first identifiers for the function information and the variable information;
analyzing the source code to obtain a morpheme, determining function information or variable information corresponding to the morpheme based on the information of the morpheme, and setting a prefix identifier corresponding to the first identifier for the morpheme to obtain a code with the prefix identifier;
analyzing the code with the prefix identifier to generate log information;
and extracting execution characteristic data from the log information, and obtaining the execution progress of the source code based on the execution characteristic data.
In this embodiment, the function information of the source code includes a system function and a custom function, and the variable information of the source code includes a system variable and a lexical variable.
In this embodiment, a prefix identifier is set for the morpheme, so that the type of the morpheme in the source code can be clarified, and the efficiency and accuracy of code analysis are improved.
The beneficial effects of above-mentioned design scheme are: by analyzing the source code, the execution progress of the source code is intelligently obtained, and the whole progress monitoring process is completely free from manual intervention, so that the situation of counterfeiting is completely eradicated; the efficiency and accuracy of progress statistics are improved.
Example 6
Based on embodiment 1, the embodiment of the present invention provides an intelligent progress monitoring method for a numerical control device, in step 3, after obtaining the execution progress of the source code, the method further includes: and encrypting and transmitting the execution progress to a big data platform, wherein the execution progress is as follows:
generating a random number string by using a random number generator;
calculating uncorrelated indexes of two adjacent random numbers in the random number string according to the following formula based on the random number string;
wherein D (n, n+1) represents an uncorrelated index, W, between the nth random number and the (n+1) th random number in the random number string 0 A confidence factor representing the random number generator, wherein the confidence factor is (0.85,0.99), T (N) represents a variable value of an nth random number in the random number string, T (n+1) represents a variable value of an (n+1) th random number in the random number string, T (i) represents a variable value of an (i) th random number in the random number string, N represents the number of random numbers in the random number string, and 1 is less than or equal to N<n+1≤N;
Judging whether the uncorrelated indexes of any two adjacent random numbers in the random number string meet the uncorrelated requirement or not;
if yes, the random number generator is utilized to generate a random number string with a preset length as an encryption key;
otherwise, parameter adjustment is carried out on the random number generator until the uncorrelation indexes of any two adjacent random numbers in the random number generator meet the uncorrelation requirement;
and in the transmission process of transmitting the execution progress to the big data platform, the encryption key is utilized for encryption transmission.
The beneficial effects of above-mentioned design scheme are: by generating the uncorrelated indexes of two adjacent random numbers in the random number string for the random number generator, the uncorrelation of the encryption key generated by the random number generator is ensured, the cracking difficulty of the encryption key is improved, and the safety of the transmission of the execution progress to a big data platform is ensured, so that the accuracy of acquiring the processing progress is ensured.
Example 7
Based on embodiment 1, the embodiment of the present invention provides an intelligent progress monitoring method for a numerical control device, in step 4, according to the execution progress, the obtaining the processing progress of the numerical control device includes:
acquiring target tasks of the numerical control equipment, distributing the target tasks according to a preset distribution rule, acquiring a plurality of sub-target tasks and execution time thereof, and converting the sub-target tasks into source codes;
acquiring a current sub-target task and current execution time corresponding to the execution progress of the source code;
calculating the processing progress of the numerical control equipment according to the following formula based on the processing progress of the sub-target task;
wherein P represents the processing progress of the numerical control equipment, T b Indicating the end time of completing the target task, T a Represents the time of starting the target task, m represents the number of sub-target tasks completed, T j Indicating the execution time of the j-th sub-target task, T Q Representing the current execution time of the current sub-target task, T n Representing the time required for completing the current sub-target task, e representing a natural constant, a value of 2.72, delta representing the distribution factor of the preset distribution rule, a value of (0.7,0.9), τ 0 Representing the number of the plurality of sub-target tasks and being greater than m.
In this embodiment, the distribution factor of the preset distribution rule is related to the distribution precision, and the higher the distribution precision, the larger the distribution factor.
In this embodiment, the current sub-target task is the m+1st ongoing sub-target task, and the previous m sub-target tasks are completed sub-target tasks.
The beneficial effects of above-mentioned design scheme are: the processing progress of the numerical control equipment is obtained according to the execution progress of the source code, the target tasks passing through the numerical control equipment are distributed in the process of obtaining the processing progress, and the processing progress is determined according to the execution time and the completion degree of the sub-target tasks, so that the obtained processing progress is more accurate.
Example 8
Based on embodiment 7, the embodiment of the invention provides an intelligent progress monitoring method for a numerical control device, and in step 4, after obtaining the processing progress of the numerical control device, the method further comprises: judging the progress deviation of the processing progress, and carrying out corresponding alarm processing, wherein the process is as follows:
based on the work progress, calculating the progress deviation of the processing progress according to the following formula:
wherein ρ represents the progress deviation of the processing progress, T f Representing the preset time for completing the target task, M representing the workload for completing the target task, T representing the man-hour for completing the target task,representing production efficiency management indexes of the numerical control equipment;
judging positive and negative values of the progress deviation;
if the progress deviation is negative or the value is 0, the processing progress meets the preset processing requirement;
otherwise, the processing progress is indicated not to meet the preset processing requirement, and alarm reminding is carried out.
In this embodiment, the man-hour amount of the target task is the amount of the target task completed in one hour.
The beneficial effects of above-mentioned design scheme are: and by judging the progress deviation of the processing progress and carrying out corresponding alarm processing, the management personnel can know the progress at any time.
Example 9
An intelligent progress monitoring system for a numerical control device, as shown in fig. 7, comprises:
the numerical control equipment instruction output port is used for sending a processing control instruction;
the intelligent terminal is connected with the instruction output port of the numerical control equipment in series or in parallel and comprises a processing control instruction reading module and a 5G module;
the processing control instruction reading module is used for reading a processing control instruction from the instruction output port of the numerical control equipment, identifying the processing control instruction, and decompiling and restoring the processing control instruction into a source code; analyzing the source code to obtain the execution progress of the numerical control equipment;
the 5G module is used for transmitting the execution progress to a big data platform in real time;
and the big data platform is used for obtaining the processing progress of the numerical control equipment according to the execution progress and displaying the processing progress.
In this embodiment, the series mode is applied to a numerical control apparatus requiring a feedback control instruction, and the parallel mode is applied to a numerical control apparatus requiring no feedback control instruction.
The working principle and the beneficial effects of the above technical solution are described in the method claims, and are not repeated here.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (6)

1. An intelligent progress monitoring method for numerical control equipment is characterized by comprising the following steps:
step 1: reading a processing control instruction from numerical control equipment;
step 2: identifying the processing control instruction, and decompiling and restoring the processing control instruction into a source code;
step 3: analyzing the source code to obtain the execution progress of the source code;
step 4: based on a big data platform, according to the execution progress, the processing progress of the numerical control equipment is obtained and displayed;
in step 2, identifying the processing control instruction includes:
acquiring a process and a receiving address for receiving the processing control instruction, monitoring process data corresponding to the process, and acquiring the process data corresponding to the receiving address from the process data;
analyzing the process data corresponding to the receiving address to obtain a corresponding running track;
judging the matching degree of the running track and a preset running track,
if the matching degree meets a preset matching requirement, the processing control instruction is successfully identified;
otherwise, indicating that the processing control instruction has risk, and not identifying the processing control instruction;
in step 2, decompiling the processing control instruction into source code includes:
analyzing the processing control instruction to obtain a decomposition priority of the processing control instruction, wherein the decomposition priority comprises a first priority and a second priority;
determining a first decomposition dimension of the process control instruction based on the first priority;
performing first decomposition on the processing control instruction based on the first decomposition dimension to obtain a first processing control sub-instruction;
performing abnormal decomposition judgment on the first processing control sub-instruction, obtaining a second processing control sub-instruction with abnormal decomposition, and determining a second decomposition dimension based on the second priority;
decomposing the second processing control sub-instruction based on the second decomposition dimension to obtain a third processing control sub-instruction;
logically ordering the first processing control sub-instruction and the third processing control sub-instruction to generate a sequence of sequential sub-instructions;
extracting a current shaping variable corresponding to the sequence sub-instruction sequence, carrying out corresponding addition and subtraction operation on the shaping variable according to the influence of the current shaping variable on a decompiler to obtain a target shaping variable, and replacing the current shaping variable of the sequence sub-instruction sequence with the target shaping variable;
acquiring current codes of instructions in the sequence sub-instruction sequences according to the sequence, and compiling the current codes based on preset compiling rules to obtain codes to be compiled, wherein the codes have unique mapping relation with the current codes and have the same logic codes;
acquiring attribute information of a source code, calculating the similarity between the attribute information and standard attribute information, screening target attribute information with the similarity being greater than preset similarity, and obtaining a target attribute data packet based on the target attribute information;
the target attribute data packet is sent to the sequence sub-instruction sequence for analysis and comparison, response information is obtained, and decompilation rules are generated based on the response information;
decompiling the code to be compiled based on the decompiling rule to obtain a source code;
in step 3, analyzing the source code to obtain the execution progress of the source code includes:
acquiring function information and variable information in the source code, and respectively setting corresponding first identifiers for the function information and the variable information;
analyzing the source code to obtain a morpheme, determining function information or variable information corresponding to the morpheme based on the information of the morpheme, and setting a prefix identifier corresponding to the first identifier for the morpheme to obtain a code with the prefix identifier;
analyzing the code with the prefix identifier to generate log information;
and extracting execution characteristic data from the log information, and obtaining the execution progress of the source code based on the execution characteristic data.
2. The intelligent progress monitoring method for a numerical control apparatus according to claim 1, wherein in step 1, reading a process control instruction from the numerical control apparatus comprises:
acquiring processing control parameters of the numerical control equipment and acquiring identification of the processing control parameters;
acquiring processing control codes matched with the identifiers from a plurality of processing control code databases stored in advance based on the identifiers;
based on a preset rule database, performing lexical and grammatical analysis on the processing control code, and judging whether illegal characters or grammatical errors exist in the processing control code;
if yes, indicating that analysis is not passed, acquiring error attributes, and correcting the processing control code based on the error attributes until analysis is passed;
otherwise, indicating that the analysis is passed;
under the condition that the analysis passes, an analysis result is obtained, an abstract syntax tree is generated based on the analysis result, and compiling and executing are carried out on the abstract syntax tree to obtain a processing control instruction.
3. The intelligent progress monitoring method for a numerical control device according to claim 1, wherein in step 3, after obtaining the execution progress of the source code, further comprises: and encrypting and transmitting the execution progress to a big data platform, wherein the execution progress is as follows:
generating a random number string by using a random number generator;
calculating uncorrelated indexes of two adjacent random numbers in the random number string according to the following formula based on the random number string;
wherein D (n, n+1) represents an uncorrelated index, W, between the nth random number and the (n+1) th random number in the random number string 0 A confidence factor representing the random number generator, wherein the confidence factor is (0.85,0.99), T (N) represents a variable value of an nth random number in the random number string, T (n+1) represents a variable value of an (n+1) th random number in the random number string, T (i) represents a variable value of an (i) th random number in the random number string, N represents the number of random numbers in the random number string, and 1 is less than or equal to N<n+1≤N;
Judging whether the uncorrelated indexes of any two adjacent random numbers in the random number string meet the uncorrelated requirement or not;
if yes, the random number generator is utilized to generate a random number string with a preset length as an encryption key;
otherwise, parameter adjustment is carried out on the random number generator until the uncorrelation indexes of any two adjacent random numbers in the random number generator meet the uncorrelation requirement;
and in the transmission process of transmitting the execution progress to the big data platform, the encryption key is utilized for encryption transmission.
4. The intelligent progress monitoring method for a numerical control device according to claim 1, wherein in step 4, obtaining the processing progress of the numerical control device according to the execution progress comprises:
acquiring target tasks of the numerical control equipment, distributing the target tasks according to a preset distribution rule, acquiring a plurality of sub-target tasks and execution time thereof, and converting the sub-target tasks into source codes;
acquiring a current sub-target task and current execution time corresponding to the execution progress of the source code;
calculating the processing progress of the numerical control equipment according to the following formula based on the processing progress of the sub-target task;
wherein P represents the processing progress of the numerical control equipment, T b Indicating the end time of completing the target task, T a Represents the time of starting the target task, m represents the number of sub-target tasks completed, T j Indicating the execution time of the j-th sub-target task, T Q Representing the current execution time of the current sub-target task, T n Representing the time required for completing the current sub-target task, e representing a natural constant, a value of 2.72, delta representing the distribution factor of the preset distribution ruleThe value is (0.7,0.9), τ 0 Representing the number of the plurality of sub-target tasks and being greater than m.
5. The intelligent progress monitoring method for a numerical control device according to claim 4, wherein in step 4, after obtaining the processing progress of the numerical control device, the method further comprises: judging the progress deviation of the processing progress, and carrying out corresponding alarm processing, wherein the process is as follows:
calculating the progress deviation of the processing progress based on the processing progress according to the following formula:
wherein ρ represents the progress deviation of the processing progress, T f Representing the preset time for completing the target task, M representing the workload for completing the target task, T representing the man-hour for completing the target task,representing production efficiency management indexes of the numerical control equipment;
judging positive and negative values of the progress deviation;
if the progress deviation is negative or the value is 0, the processing progress meets the preset processing requirement;
otherwise, the processing progress is indicated not to meet the preset processing requirement, and alarm reminding is carried out.
6. An intelligent progress monitoring system for a numerical control device, comprising:
the numerical control equipment instruction output port is used for sending a processing control instruction;
the intelligent terminal is connected with the instruction output port of the numerical control equipment in series or in parallel and comprises a processing control instruction reading module and a 5G module;
the processing control instruction reading module is used for reading a processing control instruction from the instruction output port of the numerical control equipment, identifying the processing control instruction, and decompiling and restoring the processing control instruction into a source code; analyzing the source code to obtain the execution progress of the source code;
the 5G module is used for transmitting the execution progress to a big data platform in real time;
the big data platform is used for obtaining the processing progress of the numerical control equipment according to the execution progress and displaying the processing progress;
identifying the process control instruction includes:
acquiring a process and a receiving address for receiving the processing control instruction, monitoring process data corresponding to the process, and acquiring the process data corresponding to the receiving address from the process data;
analyzing the process data corresponding to the receiving address to obtain a corresponding running track;
judging the matching degree of the running track and a preset running track,
if the matching degree meets a preset matching requirement, the processing control instruction is successfully identified;
otherwise, indicating that the processing control instruction has risk, and not identifying the processing control instruction;
decompilation of the process control instructions into source code includes:
analyzing the processing control instruction to obtain a decomposition priority of the processing control instruction, wherein the decomposition priority comprises a first priority and a second priority;
determining a first decomposition dimension of the process control instruction based on the first priority;
performing first decomposition on the processing control instruction based on the first decomposition dimension to obtain a first processing control sub-instruction;
performing abnormal decomposition judgment on the first processing control sub-instruction, obtaining a second processing control sub-instruction with abnormal decomposition, and determining a second decomposition dimension based on the second priority;
decomposing the second processing control sub-instruction based on the second decomposition dimension to obtain a third processing control sub-instruction;
logically ordering the first processing control sub-instruction and the third processing control sub-instruction to generate a sequence of sequential sub-instructions;
extracting a current shaping variable corresponding to the sequence sub-instruction sequence, carrying out corresponding addition and subtraction operation on the shaping variable according to the influence of the current shaping variable on a decompiler to obtain a target shaping variable, and replacing the current shaping variable of the sequence sub-instruction sequence with the target shaping variable;
acquiring current codes of instructions in the sequence sub-instruction sequences according to the sequence, and compiling the current codes based on preset compiling rules to obtain codes to be compiled, wherein the codes have unique mapping relation with the current codes and have the same logic codes;
acquiring attribute information of a source code, calculating the similarity between the attribute information and standard attribute information, screening target attribute information with the similarity being greater than preset similarity, and obtaining a target attribute data packet based on the target attribute information;
the target attribute data packet is sent to the sequence sub-instruction sequence for analysis and comparison, response information is obtained, and decompilation rules are generated based on the response information;
decompiling the code to be compiled based on the decompiling rule to obtain a source code;
analyzing the source code to obtain the execution progress of the source code comprises the following steps:
acquiring function information and variable information in the source code, and respectively setting corresponding first identifiers for the function information and the variable information;
analyzing the source code to obtain a morpheme, determining function information or variable information corresponding to the morpheme based on the information of the morpheme, and setting a prefix identifier corresponding to the first identifier for the morpheme to obtain a code with the prefix identifier;
analyzing the code with the prefix identifier to generate log information;
and extracting execution characteristic data from the log information, and obtaining the execution progress of the source code based on the execution characteristic data.
CN202110842394.5A 2021-07-26 2021-07-26 Intelligent progress monitoring method and system for numerical control equipment Active CN113672234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110842394.5A CN113672234B (en) 2021-07-26 2021-07-26 Intelligent progress monitoring method and system for numerical control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110842394.5A CN113672234B (en) 2021-07-26 2021-07-26 Intelligent progress monitoring method and system for numerical control equipment

Publications (2)

Publication Number Publication Date
CN113672234A CN113672234A (en) 2021-11-19
CN113672234B true CN113672234B (en) 2024-02-09

Family

ID=78540103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110842394.5A Active CN113672234B (en) 2021-07-26 2021-07-26 Intelligent progress monitoring method and system for numerical control equipment

Country Status (1)

Country Link
CN (1) CN113672234B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117252348B (en) * 2023-11-17 2024-05-03 青岛鹏锐机械有限公司 Intelligent management system for hardware fitting production and processing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916185A (en) * 2010-08-27 2010-12-15 上海交通大学 Automatic parallelization acceleration method of serial programs running under multi-core platform
CN110909358A (en) * 2019-10-22 2020-03-24 上海安智信息科技有限公司 Shaping vulnerability detection method based on dynamic and static analysis
CN112015628A (en) * 2020-09-01 2020-12-01 北京物资学院 Intelligent contract function level dynamic monitoring and analyzing system and implementation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916185A (en) * 2010-08-27 2010-12-15 上海交通大学 Automatic parallelization acceleration method of serial programs running under multi-core platform
CN110909358A (en) * 2019-10-22 2020-03-24 上海安智信息科技有限公司 Shaping vulnerability detection method based on dynamic and static analysis
CN112015628A (en) * 2020-09-01 2020-12-01 北京物资学院 Intelligent contract function level dynamic monitoring and analyzing system and implementation method

Also Published As

Publication number Publication date
CN113672234A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
US20070006128A1 (en) Method for evaluating dynamic expressions
CN109933645B (en) Information query method, device, computer equipment and storage medium
CN113064586B (en) Code completion method based on abstract syntax tree augmented graph model
EP3462268A1 (en) Classification modeling for monitoring, diagnostics optimization and control
US8346773B2 (en) Product classification system
CN112380240A (en) Data query method, device and equipment based on semantic recognition and storage medium
CN113672234B (en) Intelligent progress monitoring method and system for numerical control equipment
CN110096503A (en) A kind of analysis method and system of three coordinate measuring point data of white body
CN117390933B (en) Process data tracing method and system for lubricating oil preparation
Wilch et al. Towards automatic generation of functionality semantics to improve PLC software modularization
Krupalija et al. New graphical software tool for creating cause-effect graph specifications
CN113609216A (en) Block chain-based product quality diagnosis method, device, equipment and storage medium
CN110221900B (en) Automatic completion method and device for Dockerfile base mirror image version information
CN113377962B (en) Intelligent process simulation method based on image recognition and natural language processing
CN112668899B (en) Contract risk identification method and device based on artificial intelligence
CN115017187A (en) Data query method, device, equipment and storage medium
CN114880590A (en) Multi-language website currency automatic conversion system and method thereof
CN114021544A (en) Intelligent extraction and verification method and system for product contract elements
CN115169164B (en) Information processing method, device and equipment of industrial model
CN115904499B (en) Dangerous situation awareness real-time early warning system and method based on artificial intelligence
CN118396250A (en) Method, device, equipment and storage medium for generating production and production instruction
CN118246775B (en) Coal mine index management configuration method and system
CN116823293B (en) Electronic contract tracing and checking method and system
CN114418456B (en) Machine learning progress control method based on working conditions and related device
CN118070892B (en) Intelligent input method and system based on knowledge base

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant