CN110825030B - Numerical control system online monitoring method - Google Patents
Numerical control system online monitoring method Download PDFInfo
- Publication number
- CN110825030B CN110825030B CN201911206410.0A CN201911206410A CN110825030B CN 110825030 B CN110825030 B CN 110825030B CN 201911206410 A CN201911206410 A CN 201911206410A CN 110825030 B CN110825030 B CN 110825030B
- Authority
- CN
- China
- Prior art keywords
- numerical control
- variable data
- control system
- time
- data
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
- G05B19/406—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by monitoring or safety
- G05B19/4065—Monitoring tool breakage, life or condition
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/37—Measurements
- G05B2219/37616—Use same monitoring tools to monitor tool and workpiece
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Manufacturing & Machinery (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Numerical Control (AREA)
Abstract
The invention discloses an online monitoring method of a numerical control system, which comprises the following steps: s1, searching the variable data item, verifying whether the ID of the variable data item exists in the numerical control system, and if so, verifying the correctness of the ID; s2, acquiring the correct variable data item with the ID from the numerical control system; s3, calculating the accurate time for acquiring the variable data items each time; s4, drawing a curve graph of the acquired variable data items along with time change; and S5, storing the acquired variable data items into a table according to the sampling frequency. According to the numerical control system online monitoring method, numerical control machine data are acquired through a dynamic data interchange (DDE) technology, and processing process data can be efficiently acquired in real time; the processing process signal can be dynamically displayed in the process of data acquisition, so that the real-time monitoring of the processing trend is facilitated, and the processing real-time state is accurately controlled; by storing the data in EXCEL at the acquisition frequency, long-term retention of the data and further processing and analysis of the data can be facilitated.
Description
Technical Field
The invention belongs to the technical field of numerical control, and particularly relates to an online monitoring method for a numerical control system.
Background
With the rapid development of the aviation and aerospace industries in China, intelligent manufacturing becomes a necessary trend for the development of the manufacturing industry. The numerical control machine tool is used as key equipment of a modern manufacturing system, and the strength of the function and the performance of the numerical control machine tool are important indexes for measuring the national manufacturing level and the industrial modernization degree. The machine tool can generate a large amount of process data in the machining process, and intelligent manufacturing is mainly used for state sensing, analysis and decision optimization based on the information by processing, analyzing and mining the data, so that the data is the basis of intelligent decision, and reasonable collection and analysis of relevant data of machine tool machining are the key for realizing intelligent decision and optimization of the machine tool. For example, the Siemens 840Dsl numerical control system, however, the processing process data of the existing numerical control system is obtained by measuring through the additional related measuring equipment on the machine tool, the development difficulty is large, the collected data is limited, and the online monitoring of the numerical control system is not facilitated.
Disclosure of Invention
The invention aims to provide an online monitoring method for a numerical control system, which aims to solve the problems in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
an online monitoring method for a numerical control system comprises the following steps:
s1, searching the variable data item, verifying whether the ID of the variable data item exists in the numerical control system, and if so, verifying the correctness of the ID;
s2, acquiring the correct variable data item with the ID from the numerical control system;
s3, calculating the accurate time for acquiring the variable data items each time;
s4, drawing a curve graph of the acquired variable data items along with time change;
and S5, storing the acquired variable data items into a table according to the sampling frequency.
Further, in S1, the variable data item includes: NC program name, part number, part machining start time, part machining end time, cutting time, spindle rotation speed, feed rate, machine tool coordinates, and tool number.
Further, in S2, variable data items in the numerical control system are obtained through a dynamic data exchange technique.
Further, in S3, two API functions are used using the high performance frequency notation: the QueryPerformancefrequency and the QueryPerformancecounter, one function obtains the oscillation frequency of the high-performance frequency counter, the other function obtains the oscillation times of the system frequency counter, the QueryPerformancecounter function is called respectively at the beginning and the end of acquiring the variable data items to obtain the oscillation time interval, and then the oscillation frequency is divided to calculate the accurate time of acquiring the variable data items each time.
Further, in S4, a Queue is defined for dynamic mapping of variable data items.
Further, in S5, the variable data items are stored in the EXCEL in real time according to the collection frequency, and are automatically rewound by the collection frequency.
The invention has the following beneficial effects:
1. according to the numerical control system online monitoring method, numerical control machine data are acquired through a dynamic data interchange (DDE) technology, and processing process data can be efficiently acquired in real time;
2. according to the numerical control system online monitoring method, the machining process signal can be dynamically displayed in the data acquisition process, so that the real-time monitoring of the machining trend is facilitated, and the machining real-time state is accurately controlled;
3. according to the online monitoring method of the numerical control system, data are stored in the EXCEL according to the acquisition frequency, so that the data can be favorably preserved for a long time and further processed and analyzed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic diagram of the online monitoring method of the numerical control system according to the present invention;
FIG. 2 is a schematic diagram of a DDE data acquisition client and a server establishing a session according to the present invention.
Detailed Description
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The following detailed description is exemplary in nature and is intended to provide further details of the invention. Unless otherwise defined, all technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention.
An online monitoring method for a numerical control system comprises the following steps:
s1, searching the variable data item, verifying whether the ID of the variable data item exists in the numerical control system, and if so, verifying the correctness of the ID;
s2, acquiring the correct variable data item with the ID from the numerical control system;
s3, calculating the accurate time for acquiring the variable data items each time;
s4, drawing a curve graph of the acquired variable data items along with time change;
and S5, storing the acquired variable data items into a table according to the sampling frequency.
Further, in S1, the variable data item includes: NC program name, part number, part machining start time, part machining end time, cutting time, spindle rotation speed, feed rate, machine tool coordinates, and tool number.
Further, in S2, variable data items in the numerical control system are obtained through a dynamic data exchange technique.
Further, in S3, two API functions are used using the high performance frequency notation: the QueryPerformancefrequency and the QueryPerformancecounter, one function obtains the oscillation frequency of the high-performance frequency counter, the other function obtains the oscillation times of the system frequency counter, the QueryPerformancecounter function is called respectively at the beginning and the end of acquiring the variable data items to obtain the oscillation time interval, and then the oscillation frequency is divided to calculate the accurate time of acquiring the variable data items each time.
Further, in S4, a Queue is defined for dynamic mapping of variable data items.
Further, in S5, the variable data items are stored in the EXCEL in real time according to the collection frequency, and are automatically rewound by the collection frequency.
In the following, the present invention will be further explained and explained with reference to the embodiments.
As shown in fig. 1 and 2, the online monitoring method of the numerical control system of the present invention has the following specific implementation:
the method comprises the following steps: variable testing
The DDE technology adopted by the invention reads the value of the numerical control system variable, and in order to ensure the correct operation of the monitoring system and the accuracy of the collected data, the ID of the related variable data Item (Item) searched on the Siemens numerical control system variable manual must be further tested and confirmed. The DDE client program is adopted for testing, the state value of the variable is read by inputting the ID of the variable data Item (Item), and the access is realized in a subscription mode (when the state data is changed, the client is immediately informed to refresh the data). Observing the change condition of the state data through the operation of the machine tool so as to verify the correctness of the ID of the variable Item; the variable data items include: NC program name, part number, part machining start time, part machining end time, cutting time, spindle rotation speed, feed rate, machine tool coordinates, and tool number.
Step two: data acquisition module development
The data collected in the processing process is set up on the basis of a four-axis numerical control processing center of Yonghua YHVT 850Z.
The content of the DDE session uses three-level tree-type naming, identifying the data units passed by the DDE by Application name (Application), Topic (Topic) and data Item (Item). Application has data exchange capabilities provided to other programs, with siemens 840Dsl providing an Application program name "NCDDE"; similar to a directory, Topic is a parameter for establishing session connection, and a parameter for acquiring siemens 840Dsl numerical control system data is 'NCU 840 Dsl'; the data Item (Item) is data for specific communication, written according to the data content as needed. The data acquisition software development process based on the DDE technology comprises the following steps:
(1) development data acquisition client
The data acquisition client can be an application program developed by Visual Basic language, and can also be a client application developed by high-level programming language such as C + +, and the like. The application program should contain communication Topic (Topic) and data Item (Item), and the DDE server can support more than one data Item. The client application has the functions of dynamically displaying data and saving data.
(2) Running DDE servers and clients
The DDE server is to run ahead of the client to wait for the client to make a connection request. The DDE server registers the three major elements necessary for session establishment with the operating system in advance: program object (Application): the name of the executing program of the server; communication Topic (Topic): all DDE server programs at least support one communication theme, and can also create a plurality of communication themes simultaneously to achieve the purpose of data exchange; data Item (Item): is the specific data that needs to be communicated.
(3) The client sends a request, and the server responds to the client
DDE client program sends connection request to server, and sends out handle of client window; the server immediately receives the request sent by the client, checks the object and the theme of the client program, establishes the connection with the client program if the object and the theme are consistent with the registered object and does not send a message if the object and the theme are inconsistent with the registered object, so that the client program waits for timeout and the connection fails.
Step three: high precision timing module development
The most common timing module in VB is a Timer control, timing precision can be modified by setting an Interval attribute of the Timer control, the timing precision can reach 1ms theoretically, however, the timing precision can be obtained through experimental verification, when the timing precision reaches below 10ms, the timing precision of the Timer becomes very poor.
Step four: image display module development
The plot is drawn using the PictureBox control to VB and the line-drawing functions line (x1, y1) - (x2, y 2). And the PictureBox control is used as an image display area, a line function is used for connecting the previous data point with the next data point to draw a curve, the PictureBox default coordinate system is started from the upper left corner, the origin of the modified coordinate system is the middle left of the image frame, and the drawing of a line is started. For input data, defining a Queue for dynamic drawing of the data, wherein the Queue is a first-in first-out Queue, and can realize dynamic stack-in and stack-out and realize data rolling.
Step five: data storage module development
The VB is provided with an Excel interface, Microsoft Excel16.0 Object Library and Microsoft Office 16.0Object Library check boxes are referenced in a VB6.0 menu, Excel objects are defined in the declaration process of the general objects, data are written into a table by using an array, the creation of the Excel objects is realized in a program, the created Excel workbook file is opened, a new Excel workbook file is created, the workbook is closed, the contents of the table are emptied, and the objects are released.
It will be appreciated by those skilled in the art that the invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The embodiments disclosed above are therefore to be considered in all respects as illustrative and not restrictive. All changes which come within the scope of or equivalence to the invention are intended to be embraced therein.
Claims (4)
1. An online monitoring method for a numerical control system is characterized by comprising the following steps:
s1, searching the variable data item, verifying whether the ID of the variable data item exists in the numerical control system, and if so, verifying the correctness of the ID;
s2, acquiring the correct variable data item with the ID from the numerical control system;
s3, calculating the accurate time for acquiring the variable data items each time;
s4, defining a Queue, and drawing a curve graph of the acquired variable data items along with time change;
and S5, storing the acquired variable data items into a table according to the sampling frequency, and automatically wrapping the variable data items according to the acquisition frequency.
2. The online monitoring method for the numerical control system according to claim 1, wherein in S1, the variable data items comprise: NC program name, part number, part machining start time, part machining end time, cutting time, spindle rotation speed, feed rate, machine tool coordinates, and tool number.
3. The online monitoring method for numerical control systems according to claim 1, wherein in S2, variable data items in the numerical control system are obtained by a dynamic data exchange technique.
4. The online monitoring method for numerical control system according to claim 1, wherein in S3, using high performance frequency notation, two API functions are used: the QueryPerformancefrequency and the QueryPerformancecounter, one function obtains the oscillation frequency of the high-performance frequency counter, the other function obtains the oscillation times of the system frequency counter, the QueryPerformancecounter function is called respectively at the beginning and the end of acquiring the variable data items to obtain the oscillation time interval, and then the oscillation frequency is divided to calculate the accurate time of acquiring the variable data items each time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206410.0A CN110825030B (en) | 2019-11-29 | 2019-11-29 | Numerical control system online monitoring method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206410.0A CN110825030B (en) | 2019-11-29 | 2019-11-29 | Numerical control system online monitoring method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110825030A CN110825030A (en) | 2020-02-21 |
CN110825030B true CN110825030B (en) | 2021-03-30 |
Family
ID=69543541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911206410.0A Expired - Fee Related CN110825030B (en) | 2019-11-29 | 2019-11-29 | Numerical control system online monitoring method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110825030B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114328131B (en) * | 2022-03-09 | 2022-05-27 | 深圳市佳贤通信设备有限公司 | Function time consumption monitoring method based on clock period record |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6298377B1 (en) * | 1998-06-01 | 2001-10-02 | Metso Field Systems Oy | Field device management system |
CN102789197A (en) * | 2011-05-19 | 2012-11-21 | 大连光洋科技工程有限公司 | Expression system of machining information of numerical control machine tool |
CN103076764A (en) * | 2013-01-16 | 2013-05-01 | 同济大学 | RFID (Radio Frequency Identification Device) technology-based dynamic tool management method of Siemens 840D numerical control system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202183034U (en) * | 2011-07-27 | 2012-04-04 | 上海理工大学 | Numerical control machine fault communication device |
CN103676781B (en) * | 2013-12-25 | 2016-07-06 | 上海交通大学 | A kind of error dynamic compensation system based on Siemens's 840D secondary interface |
CN109765841A (en) * | 2019-01-09 | 2019-05-17 | 西北工业大学 | The space-time mapping method of online monitoring data and part Working position |
-
2019
- 2019-11-29 CN CN201911206410.0A patent/CN110825030B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6298377B1 (en) * | 1998-06-01 | 2001-10-02 | Metso Field Systems Oy | Field device management system |
CN102789197A (en) * | 2011-05-19 | 2012-11-21 | 大连光洋科技工程有限公司 | Expression system of machining information of numerical control machine tool |
CN103076764A (en) * | 2013-01-16 | 2013-05-01 | 同济大学 | RFID (Radio Frequency Identification Device) technology-based dynamic tool management method of Siemens 840D numerical control system |
Also Published As
Publication number | Publication date |
---|---|
CN110825030A (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107256265B (en) | A kind of search-engine results data visualization methods of exhibiting and system | |
CN109918370B (en) | WEB-based development method and system for configurable form application front end | |
CN112506759B (en) | Automatic test method and device for servo system control software and storage medium | |
CN102520619A (en) | General-purpose satellite remote sensing simulator | |
CN110222124A (en) | Multidimensional data processing method and system based on OLAP | |
CN107944005B (en) | Data display method and device | |
CN106780149A (en) | A kind of equipment real-time monitoring system based on timed task scheduling | |
CN110825030B (en) | Numerical control system online monitoring method | |
CN110765195A (en) | Data analysis method and device, storage medium and electronic equipment | |
CN115857361B (en) | Optimized control method and system for beer fermentation | |
CN104866425A (en) | Database pressure testing method | |
CN111639016A (en) | Big data log analysis method and device and computer storage medium | |
CN117540343B (en) | Data fusion method and system | |
CN111427784A (en) | Data acquisition method, device, equipment and storage medium | |
CN112487025A (en) | Data query method and device, electronic equipment and storage medium | |
CN109951376B (en) | Instant messaging software information acquisition method, device, system and storage medium | |
CN112027111A (en) | Real-time acquisition and display method and system for aircraft bus data | |
KR20000015619A (en) | Apparatus and method for generating a web document automatically | |
CN115757481A (en) | Data migration method, device, equipment and storage medium | |
CN109100440A (en) | On-line chromatograph control analysis system and its application method based on network server | |
CN112406748B (en) | Vehicle data acquisition method and device and vehicle diagnosis system | |
CN114780654A (en) | Processing method for modular construction of multi-source main and auxiliary entity structure | |
CN112286777A (en) | PC equipment parameter data quality inspection method, system and server | |
CN110334430B (en) | Automatic labeling method, system, equipment and storage medium for cable bracket in drawing | |
CN113342820A (en) | Method for storing big data of energy storage industrial equipment |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210330 Termination date: 20211129 |
|
CF01 | Termination of patent right due to non-payment of annual fee |