CN104601374B - Network failure processing method and device for Digit Control Machine Tool - Google Patents

Network failure processing method and device for Digit Control Machine Tool Download PDF

Info

Publication number
CN104601374B
CN104601374B CN201510004973.7A CN201510004973A CN104601374B CN 104601374 B CN104601374 B CN 104601374B CN 201510004973 A CN201510004973 A CN 201510004973A CN 104601374 B CN104601374 B CN 104601374B
Authority
CN
China
Prior art keywords
machine tool
control machine
digit control
journal file
predetermined directory
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
CN201510004973.7A
Other languages
Chinese (zh)
Other versions
CN104601374A (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.)
Caxa Technology Co Ltd
Original Assignee
Caxa Technology 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 Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN201510004973.7A priority Critical patent/CN104601374B/en
Publication of CN104601374A publication Critical patent/CN104601374A/en
Application granted granted Critical
Publication of CN104601374B publication Critical patent/CN104601374B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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]

Abstract

The invention discloses a kind of network failure processing method and device for Digit Control Machine Tool.This method includes judging whether the communication network of Digit Control Machine Tool breaks down;If it is judged that communication network breaks down, the daily record data of Digit Control Machine Tool is converted into journal file, and journal file is stored under the predetermined directory of Digit Control Machine Tool collection client;Whether the failure of monitoring communication network is recovered;If monitoring the fault recovery of communication network, Digit Control Machine Tool is gathered to the predetermined directory that the journal file under the predetermined directory of client is sent to Digit Control Machine Tool acquisition server end;The journal file under the predetermined directory at Digit Control Machine Tool acquisition server end is read, the journal file under the predetermined directory at Digit Control Machine Tool acquisition server end is reduced into daily record data;Daily record data is stored in presetting database.By the present invention, solves the problems, such as the data processing after prior art network fault recovery to server build-up of pressure.

Description

Network failure processing method and device for Digit Control Machine Tool
Technical field
The present invention relates to network technique field, in particular to a kind of dealing with network breakdown side for Digit Control Machine Tool Method and device.
Background technology
With mass producing, sharing arrival with the application data epoch, the value of data is more and more prominent.Prior art Grab sample can has been no longer rely on it and has analyzed more data, it might even be possible to which processing is related to some special phenomenon owns Data., can not with regard to that can obtain over by going deep into the acquisition data of level and using comprehensive data, partial data and system data The convenient and business opportunity reached, and the integrality of data just plays vital effect.Keep the integrality of data can be more Each link of whole goods batch is held exactly, improves production efficiency.
Due to some cause specifics, such as factory's maintenance either internal structure adjustment, the network of manufacturing works may There is short-term or long-term interruption, or even that network stops a week being present, but numerical control device during suspension Still normal work, if monitoring software is without suspension data processing during suspension, it will cause the work of numerical control device to believe Breath can not count on factory's whole work period in time, cause the skew of statistical indicator, the analysis for equipment performance will Shortage of data is caused, so as to influence the accuracy of overall data analysis.
In order to ensure the integrality and accuracy of numerical control device data in factory's whole work period, prior art proposes The data suspension continuous transmission method of mass data collection.Fig. 1 is the distributed number according to the data suspension continuous transmission method of prior art Product structure and data flow schematic diagram in control system, as shown in figure 1, suspension refers to that Data-Link 1 is broken (because in distributed number Control in system product internal mechanism, if Data-Link 2 is broken, system can break Data-Link 1 automatically, so being uniformly attributed to Processing data chain 1).When Data-Link 1 is broken, data of the Digit Control Machine Tool during suspension can temporally be stored in Digit Control Machine Tool and adopt Collect client.The connection recovery situation of circularly monitoring Data-Link 1, when the connection of Data-Link 1 recovers, it is stored in Digit Control Machine Tool and adopts The data of collection client can be transferred to the assigned catalogue at Digit Control Machine Tool acquisition server end, then Digit Control Machine Tool acquisition server end By the real time data after suspension data and connection, together write into Databasce, progress are handled in next step for meeting.Network in the prior art After connection recovers, Digit Control Machine Tool acquisition server end needs to handle the real time data after suspension data and connection simultaneously, can cause The problem of short time Data-Link is excessive.In addition, for suspension data and real time data while write into Databasce, to database performance Propose higher requirement.
The problem of for the data processing after prior art network fault recovery to server build-up of pressure, not yet carry at present Go out effective solution.
The content of the invention
It is a primary object of the present invention to provide a kind of network failure processing method and device for Digit Control Machine Tool, with solution The problem of certainly data processing after prior art network fault recovery is to server build-up of pressure.
To achieve these goals, according to an aspect of the invention, there is provided a kind of network event for Digit Control Machine Tool Hinder processing method.
The network failure processing method for being used for Digit Control Machine Tool includes:Judge whether the communication network of Digit Control Machine Tool occurs event Barrier, wherein, Digit Control Machine Tool collection client and Digit Control Machine Tool acquisition server end are communicated by communication network;If it is determined that Go out communication network to break down, the daily record data of Digit Control Machine Tool is converted into journal file, and journal file is stored in numerical control Under the predetermined directory of lathe collection client;Whether the failure of monitoring communication network is recovered;If monitor the event of communication network Barrier recovers, and journal file Digit Control Machine Tool gathered under the predetermined directory of client is sent to Digit Control Machine Tool acquisition server end Predetermined directory;The journal file under the predetermined directory at Digit Control Machine Tool acquisition server end is read, by Digit Control Machine Tool acquisition server Journal file under the predetermined directory at end is reduced into daily record data;Daily record data is stored in presetting database.
Further, the daily record data of Digit Control Machine Tool is converted into journal file includes:Obtain the daily record number of Digit Control Machine Tool According to;The duplicate data in daily record data is deleted, obtains the daily record data after duplicate removal;Daily record data after duplicate removal is changed into daily record File.
Further, judge Digit Control Machine Tool communication network whether break down including:Obtain preset time;Judge timing Whether the time reaches preset time;Often judge that timing time reaches a preset time, execution once judges Digit Control Machine Tool Whether communication network breaks down.
Further, it is sent to Digit Control Machine Tool and adopts Digit Control Machine Tool to be gathered to the journal file under the predetermined directory of client After the predetermined directory for collecting server end, the network failure processing method for being used for Digit Control Machine Tool also includes:Judge Digit Control Machine Tool Gather whether the journal file under the predetermined directory of client is all sent to numerical control machine before communication network breaks down The predetermined directory at bed acquisition server end;If it is judged that the journal file under the predetermined directory of Digit Control Machine Tool collection client exists Communication network is all sent to the predetermined directory at Digit Control Machine Tool acquisition server end before breaking down, delete Digit Control Machine Tool and adopt Collect the journal file under the predetermined directory of client;If it is judged that the daily record under the predetermined directory of Digit Control Machine Tool collection client File fails all to be sent to the predetermined directory at Digit Control Machine Tool acquisition server end, record before communication network breaks down The journal file not sent;When monitoring the fault recovery of communication network, the journal file not sent is sent to numerical control machine The predetermined directory at bed acquisition server end.
Further, after daily record data is stored in presetting database, this is used for the network failure of Digit Control Machine Tool Processing method also includes:Index to be counted is determined in the daily record data stored from presetting database;Travel through in presetting database The daily record data of storage, treat statistical indicator and carry out accumulation calculating, obtain the statistical result of index to be counted;Export finger to be counted Target statistical result.
Further, after journal file is stored under the predetermined directory of Digit Control Machine Tool collection client, this is used for The network failure processing method of Digit Control Machine Tool also includes:In the predetermined directory for obtaining the Digit Control Machine Tool collection client pre-set The default storage time of journal file;Judging the storage time of journal file in the predetermined directory of Digit Control Machine Tool collection client is It is no to exceed default storage time;If it is judged that Digit Control Machine Tool collection client predetermined directory in journal file storage time More than default storage time, Digit Control Machine Tool is gathered to the journal file in the predetermined directory of client more than default storage time and deleted Remove.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of network event for Digit Control Machine Tool Hinder processing unit.
The dealing with network breakdown device for being used for Digit Control Machine Tool includes:First judge module, for judging Digit Control Machine Tool Whether communication network breaks down, wherein, Digit Control Machine Tool collection client and Digit Control Machine Tool acquisition server end pass through communication network Network is communicated;Conversion module, for when judging that communication network breaks down, the daily record data of Digit Control Machine Tool to be converted into Journal file, and journal file is stored under the predetermined directory of Digit Control Machine Tool collection client;Monitoring modular is logical for monitoring Whether the failure of communication network is recovered;First sending module, for when monitoring the fault recovery of communication network, by Digit Control Machine Tool Gather the predetermined directory that the journal file under the predetermined directory of client is sent to Digit Control Machine Tool acquisition server end;Reduce mould Block, the journal file under predetermined directory for reading Digit Control Machine Tool acquisition server end, by Digit Control Machine Tool acquisition server end Predetermined directory under journal file be reduced into daily record data;Memory module, for daily record data to be stored in into presetting database In.
Further, conversion module includes:First acquisition module, for obtaining the daily record data of Digit Control Machine Tool;First deletes Except module, for deleting the duplicate data in daily record data, the daily record data after duplicate removal is obtained;First conversion submodule, is used for Daily record data after duplicate removal is changed into journal file.
Further, the first judge module includes:Second acquisition module, for obtaining preset time;First judges submodule Block, for judging whether timing time reaches preset time;Execution module, for often judging that timing time reaches once default Time, execution once judge whether the communication network of Digit Control Machine Tool breaks down.
Further, the dealing with network breakdown device for being used for Digit Control Machine Tool also includes:Second judge module, for judging Whether the journal file under the predetermined directory of Digit Control Machine Tool collection client is all sent before communication network breaks down To the predetermined directory at Digit Control Machine Tool acquisition server end;Second removing module, judge that Digit Control Machine Tool gathers client for working as Predetermined directory under journal file Digit Control Machine Tool acquisition server end is all sent to before communication network breaks down Predetermined directory when, delete Digit Control Machine Tool collection client predetermined directory under journal file;Logging modle, for when judgement The journal file gone out under the predetermined directory of Digit Control Machine Tool collection client fails all to be sent out before communication network breaks down When delivering to the predetermined directory at Digit Control Machine Tool acquisition server end, the journal file not sent is recorded;Second sending module, for working as When monitoring the fault recovery of communication network, the journal file not sent is sent into presetting to Digit Control Machine Tool acquisition server end Catalogue.
Further, the dealing with network breakdown device for being used for Digit Control Machine Tool also includes:Determining module, for from present count According to determining index to be counted in the daily record data stored in storehouse;Accumulator module, for traveling through the daily record stored in presetting database Data, treat statistical indicator and carry out accumulation calculating, obtain the statistical result of index to be counted;Output module, wait to unite for exporting Count the statistical result of index.
Further, the dealing with network breakdown device for being used for Digit Control Machine Tool also includes:3rd acquisition module, for obtaining The default storage time of journal file in the predetermined directory of the Digit Control Machine Tool collection client pre-set;3rd judge module, Whether the storage time of journal file exceedes default storage time in predetermined directory for judging Digit Control Machine Tool collection client; 3rd removing module, for exceeding when the storage time of journal file in the predetermined directory for judging Digit Control Machine Tool collection client During default storage time, Digit Control Machine Tool is gathered to the journal file in the predetermined directory of client more than default storage time and deleted Remove.
By the present invention, whether broken down using the communication network for judging Digit Control Machine Tool, wherein, Digit Control Machine Tool collection visitor Family end and Digit Control Machine Tool acquisition server end are communicated by communication network;If it is judged that communication network breaks down, will The daily record data of Digit Control Machine Tool is converted into journal file, and journal file is stored in the default mesh of Digit Control Machine Tool collection client Under record;Whether the failure of monitoring communication network is recovered;If monitoring the fault recovery of communication network, Digit Control Machine Tool is gathered into visitor Journal file under the predetermined directory at family end is sent to the predetermined directory at Digit Control Machine Tool acquisition server end;Digit Control Machine Tool is read to adopt Collect the journal file under the predetermined directory of server end, by the journal file under the predetermined directory at Digit Control Machine Tool acquisition server end It is reduced into daily record data;Daily record data is stored in presetting database, solves the number after prior art network fault recovery The problem of according to processing to server build-up of pressure.The present invention is carried out by gathering the suspension data that client stores to Digit Control Machine Tool Processing, and the daily record data of Digit Control Machine Tool collection client storage is converted into journal file, by suspension in the form of file transmits Data and real time data are sent to Digit Control Machine Tool acquisition server end, and Digit Control Machine Tool acquisition server end is by suspension data and in real time Data carry journal file and are reduced into suspension data and real time data, read suspension data and real time data using program, reduce The EMS memory occupation at Digit Control Machine Tool acquisition server end, improves data transmission efficiency, while has reached to slow down and Digit Control Machine Tool is adopted Collect the effect of the data pressure of server end.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is product structure and data flow in the DNC system according to the data suspension continuous transmission method of prior art To schematic diagram;
Fig. 2 is the flow chart according to the first embodiment of the network failure processing method for Digit Control Machine Tool of the present invention;
Fig. 3 is the flow chart according to the second embodiment of the network failure processing method for Digit Control Machine Tool of the present invention;
Fig. 4 is that the DNC for the network failure processing method for being used for Digit Control Machine Tool according to the support of the present invention gathers system System structure chart;And
Fig. 5 is the schematic diagram of the dealing with network breakdown device for Digit Control Machine Tool according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
The present invention is intended to provide a kind of network failure processing method and device for Digit Control Machine Tool.
Fig. 2 is the flow chart according to the first embodiment of the network failure processing method for Digit Control Machine Tool of the present invention. As shown in Fig. 2 the network failure processing method for being used for Digit Control Machine Tool includes steps S202 to step S212:
Step S202, judges whether the communication network of Digit Control Machine Tool breaks down.
Digit Control Machine Tool collection client and numerical control machine in the network failure processing method for Digit Control Machine Tool of the embodiment Bed acquisition server end is communicated by communication network.Wherein, the communication network can be cable network or wireless Network.The reason for communication network of Digit Control Machine Tool breaks down is probably overhaul of the equipments, or enterprises system architecture is entered Row adjustment etc..Preferably, the network failure processing method for Digit Control Machine Tool of the embodiment is sentenced by the way of cycle detection Whether the communication network of disconnected Digit Control Machine Tool breaks down, and specifically, the communication network of Digit Control Machine Tool is judged in a manner of cycle detection Network whether break down including:Obtain preset time;Judge whether timing time reaches preset time;Often judge timing time Reach a preset time, execution once judges whether the communication network of Digit Control Machine Tool breaks down.Wherein, preset time according to Whether the specific demand of enterprises can arbitrarily be set, for example occur every the communication network of the Numerically controlled machine of detection in 5 seconds Failure.Preferably, after communication network breaks down, the failure of the communication network is also judged by the way of cycle detection is It is no to be recovered, such as, whether the failure every the communication network of detection in 3 seconds is restored, i.e. Digit Control Machine Tool collection visitor Whether family end and Digit Control Machine Tool acquisition server end recover to connect.The dealing with network breakdown side for Digit Control Machine Tool of the embodiment Method is judged whether the communication network of Digit Control Machine Tool breaks down to improve by the way of cycle detection and judges communication network The accuracy rate of failure, be advantageous to timely and effectively carry out fault restoration to communication network.
Step S204, if it is judged that communication network breaks down, the daily record data of Digit Control Machine Tool is converted into daily record text Part, and journal file is stored under the predetermined directory of Digit Control Machine Tool collection client.
When judging that communication network breaks down, Digit Control Machine Tool gathers client by can not be the production number of Digit Control Machine Tool According to transmission to Digit Control Machine Tool acquisition server end.During communication network breaks down, Digit Control Machine Tool gathers client by numerical control The creation data of lathe is stored in units of the time.Wherein it is possible in units of day, can also be in units of hour.Should Digit Control Machine Tool collection client is preferably deposited in units of day in the network failure processing method for Digit Control Machine Tool of embodiment Store up the creation data of Digit Control Machine Tool.Preferably, the embodiment can also be by number for the network failure processing method of Digit Control Machine Tool Control the creation data subset of lathe, a point parameter is stored.The journal file that stores can be with Digit Control Machine Tool collection client It it is one or multiple.
Preferably, daily record number of the network failure processing method for Digit Control Machine Tool of the embodiment in storage Digit Control Machine Tool According to when, the daily record data of Digit Control Machine Tool can be converted into journal file, specifically, the daily record data of Digit Control Machine Tool is converted into day Will file includes:Obtain the daily record data of Digit Control Machine Tool;The duplicate data in daily record data is deleted, obtains the daily record number after duplicate removal According to;Daily record data after duplicate removal is changed into journal file.The network failure processing method for Digit Control Machine Tool of the embodiment The daily record data of Digit Control Machine Tool is converted into journal file, and by the journal file after conversion using day as unit subset, point ginseng Number is stored, and advantageously reduces the data volume in transmitting procedure, is reduced to Digit Control Machine Tool acquisition server end and database Pressure, it is effectively improved data transmission efficiency.
Preferably, after journal file is stored under the predetermined directory of Digit Control Machine Tool collection client, the embodiment The network failure processing method for Digit Control Machine Tool also include:Obtain the Digit Control Machine Tool pre-set and gather the default of client The default storage time of journal file in catalogue;Judge the storage of journal file in the predetermined directory of Digit Control Machine Tool collection client Whether the time exceedes default storage time;If it is judged that journal file is deposited in the predetermined directory of Digit Control Machine Tool collection client The time is stored up more than default storage time, Digit Control Machine Tool is gathered into the daily record for exceeding default storage time in the predetermined directory of client File is deleted.Wherein, preset storage time and predetermined directory is configured according to user's request.The embodiment is used for numerical control machine Creation data when Digit Control Machine Tool collection client breaks down to communication network in the network failure processing method of bed carries out pipe Reason, according to user's request can arbitrarily set Digit Control Machine Tool collection client in address data memory, time data memory with And processing method to past data etc., be so advantageous to save the memory space that Digit Control Machine Tool gathers client, it is ensured that the number The creation data file of the Digit Control Machine Tool stored in control lathe collection client memory space is the newest life of the Digit Control Machine Tool Data file is produced, improves the real-time of the creation data of Digit Control Machine Tool in Digit Control Machine Tool collection client.
Whether step S206, the failure for monitoring communication network are recovered.
When communication network breaks down, the data at Digit Control Machine Tool collection client and Digit Control Machine Tool acquisition server end pass Contribute is interrupted.During communication network failure, maintenance personal can repair to the failure of communication network, the use of the embodiment Whether the failure that communication network is judged by the way of cycle detection in the network failure processing method of Digit Control Machine Tool is restored, Be advantageous to send to Digit Control Machine Tool to gather by the suspension data during communication network failure and real time data now in time to take It is engaged in device end, improving the real-time of data transfer, while also improve data transmission efficiency.
Step S208, if monitoring the fault recovery of communication network, Digit Control Machine Tool is gathered to the predetermined directory of client Under journal file be sent to the predetermined directory at Digit Control Machine Tool acquisition server end.
When the fault recovery of communication network, Digit Control Machine Tool gathers client and sends the journal file under its predetermined directory To the predetermined directory at Digit Control Machine Tool acquisition server end.Wherein, the journal file sent is included by the production during suspension Journal file that data are transformed and the journal file that the creation data at moment is transformed is recovered by communication network failure, i.e., Digit Control Machine Tool collection client sends suspension data and real time data to Digit Control Machine Tool acquisition server in the form of specific file End.
Preferably, the journal file under the predetermined directory of Digit Control Machine Tool collection client is being sent to Digit Control Machine Tool collection After the predetermined directory of server end, the network failure processing method for Digit Control Machine Tool of the embodiment also includes:Judge number Whether the journal file under the predetermined directory of control lathe collection client is all sent to before communication network breaks down The predetermined directory at Digit Control Machine Tool acquisition server end;If it is judged that the daily record under the predetermined directory of Digit Control Machine Tool collection client File is all sent to the predetermined directory at Digit Control Machine Tool acquisition server end before communication network breaks down, and deletes numerical control Journal file under the predetermined directory of lathe collection client;If it is judged that under the predetermined directory of Digit Control Machine Tool collection client Journal file fail all to be sent to the default mesh at Digit Control Machine Tool acquisition server end before communication network breaks down Record, record the journal file not sent;When monitoring the fault recovery of communication network, by the journal file not sent send to The predetermined directory at Digit Control Machine Tool acquisition server end.
There can be the suspension data stored in Digit Control Machine Tool collection client in actual production process and real time data is also All send to Digit Control Machine Tool acquisition server end, the situation that communication network breaks down again, for secondary situation, Digit Control Machine Tool Collection client can record the process that journal file is sent when communication network breaks down again, that is, record communication network and send out again The sequence number of the journal file sent during raw failure.When the fault recovery of communication network, Digit Control Machine Tool collection client will The journal file recorded when communication network broke down from last time proceeds by transmission, during last time communication network breaks down Journal file be transmitted in Digit Control Machine Tool acquisition server end after, start to send during this communication network failure by The journal file of suspension data conversion.The Digit Control Machine Tool collection client storage only before next communication network breaks down When whole journal files are by transmission Digit Control Machine Tool acquisition server end, Digit Control Machine Tool collection client, which can just delete, to be locally stored Journal file.The mechanism is effectively guaranteed the integrality of Digit Control Machine Tool creation data, while deletes Digit Control Machine Tool collection client The local journal file in end is advantageous to save the local memory space of Digit Control Machine Tool collection client.
Step S210, the journal file under the predetermined directory at Digit Control Machine Tool acquisition server end is read, Digit Control Machine Tool is adopted The journal file collected under the predetermined directory of server end is reduced into daily record data.
Preferably, Digit Control Machine Tool acquisition server end in the network failure processing method for Digit Control Machine Tool of the embodiment Journal file corresponding to the Digit Control Machine Tool creation data that Digit Control Machine Tool collection client is sent is stored into hard disk.Numerical control machine The journal file received is converted into the creation data of Digit Control Machine Tool by bed acquisition server end successively, and numerical control is read using program The creation data of the Digit Control Machine Tool stored in the hard disk of lathe acquisition server end, and by the creation data of the Digit Control Machine Tool read It is temporarily stored in the internal memory at Digit Control Machine Tool acquisition server end.When whole daily records text in the hard disk at Digit Control Machine Tool acquisition server end When the creation data of Digit Control Machine Tool corresponding to part is read into the internal memory at Digit Control Machine Tool acquisition server end, it will be kept in internal memory Whole Digit Control Machine Tools creation data write into Databasce in, while delete in internal memory keep in Digit Control Machine Tool creation data. Journal file corresponding to the creation data for the network failure processing method Digit Control Machine Tool of Digit Control Machine Tool of the embodiment stores Into the hard disk at Digit Control Machine Tool acquisition server end, then kept in into internal memory by way of program reading, write by internal memory Database, the memory space at Digit Control Machine Tool acquisition server end is so saved, improve Digit Control Machine Tool acquisition server end Systematic function, and then improve the effect of data-handling efficiency.
Step S212, daily record data is stored in presetting database.
Preferably, after daily record data is stored in presetting database, the net for Digit Control Machine Tool of the embodiment Network fault handling method also includes:Index to be counted is determined in the daily record data stored from presetting database;Travel through present count According to the daily record data stored in storehouse, treat statistical indicator and carry out accumulation calculating, obtain the statistical result of index to be counted;Output is treated The statistical result of statistical indicator.The network failure processing method for Digit Control Machine Tool of the embodiment is by the production number of Digit Control Machine Tool According to storing into presetting database, it is easy to subsequently carry out statistical analysis to the creation data of Digit Control Machine Tool, in a manner of visual The statistic analysis result of the creation data of Digit Control Machine Tool is shown, more intuitively.
The network failure processing method use for Digit Control Machine Tool of the embodiment judges that the communication network of Digit Control Machine Tool is It is no to break down, wherein, Digit Control Machine Tool collection client and Digit Control Machine Tool acquisition server end are communicated by communication network; If it is judged that communication network breaks down, the daily record data of Digit Control Machine Tool is converted into journal file, and journal file is deposited Store up under the predetermined directory of Digit Control Machine Tool collection client;Whether the failure of monitoring communication network is recovered;If monitor to communicate The fault recovery of network, Digit Control Machine Tool is gathered to the journal file under the predetermined directory of client and is sent to Digit Control Machine Tool collection clothes The predetermined directory at business device end;The journal file under the predetermined directory at Digit Control Machine Tool acquisition server end is read, Digit Control Machine Tool is adopted The journal file collected under the predetermined directory of server end is reduced into daily record data;Daily record data is stored in presetting database, The data processing after prior art network fault recovery is solved the problems, such as to server build-up of pressure, ensure that Digit Control Machine Tool The integrality of creation data, while reached the effect for slowing down mass data pressure to caused by Digit Control Machine Tool acquisition server end Fruit.
Fig. 3 be according to the present invention the network failure processing method for Digit Control Machine Tool second embodiment flow chart, Fig. 4 is the DNC acquisition system structure for the network failure processing method for being used for Digit Control Machine Tool according to the support of the present invention Figure, the network failure processing method for Digit Control Machine Tool of the embodiment can apply in system architecture as shown in Figure 4.Its In, as shown in figure 3, the network failure processing method for being used for Digit Control Machine Tool includes steps S302 to step S312:
Step S302, in Digit Control Machine Tool running, Digit Control Machine Tool collection client is periodically gathering numerical control machine The creation data information of bed, then perform step S304;
Step S304, in periodically the creation data information process of Digit Control Machine Tool is gathered, regularly detect numerical control machine The break-make situation of the communication network of bed, that is, judge whether communication network breaks down.If it is judged that event does not occur for communication network Barrier, perform step S306;If it is judged that communication network breaks down, step S308 is performed;
Step S306, when the communication network of Digit Control Machine Tool does not break down, Digit Control Machine Tool collection client will collect The creation data of Digit Control Machine Tool send to Digit Control Machine Tool acquisition server end, then perform step S314;
Step S308, when the communication network of Digit Control Machine Tool breaks down, Digit Control Machine Tool gathers client in units of day Subset, divide creation data during parameter storage Digit Control Machine Tool suspension, then perform step S310;
Whether step S310, the failure for detecting the communication network of Digit Control Machine Tool are recovered, wherein, the embodiment is used for numerical control Whether the failure that the network failure processing method of lathe detects communication network by the way of cycle detection is recovered, if it is judged that The fault recovery of communication network, perform step S312;If it is judged that the failure of communication network is not restored, step is continued executing with Rapid S308;
Step S312, the suspension data of Digit Control Machine Tool collection client storage and real time data are sent in the form of a file To Digit Control Machine Tool acquisition server end, wherein, Digit Control Machine Tool gathers client storage during suspension data are communication network failure Digit Control Machine Tool creation data, then perform step S314;
Step S314, by the creation data write into Databasce of Digit Control Machine Tool.
The network failure processing method for Digit Control Machine Tool of the embodiment is using Digit Control Machine Tool collection client periodicity Ground gathers the creation data information of Digit Control Machine Tool, and timing detects the break-make situation of communication network, when detecting communication network failure When, Digit Control Machine Tool collection client can be under user-defined storage catalogue daily, subset, during dividing parameter storage suspension Creation data, after Digit Control Machine Tool collection client detects network disaster recovery, Digit Control Machine Tool is gathered into the disconnected of client Network data file is transferred under the storage catalogue that Digit Control Machine Tool acquisition server end is specified, and Digit Control Machine Tool is deleted after end of transmission and is adopted Collect the local data file of client.The creation data received can be write data successively by Digit Control Machine Tool acquisition server end Storehouse, the creation data at Digit Control Machine Tool acquisition server end is deleted after write-in.Lead to the embodiment is used for Digit Control Machine Tool Network failure processing method, solve the data processing after prior art network fault recovery and server build-up of pressure asked Topic.
As can be seen from the above description, the network failure processing method for Digit Control Machine Tool of the embodiment of the present invention Following technique effect is reached:Embodiments of the invention ensure that the communication network of Digit Control Machine Tool break down during production number According to integrality, solve the problems, such as the data processing after prior art network fault recovery to server build-up of pressure, slow down A large amount of creation datas pressure to caused by Digit Control Machine Tool acquisition server end, given birth to for digital factory statistical analysis Digit Control Machine Tool Production data improve necessary data and supported, also provide complete data branch to excavate the operating potential of Digit Control Machine Tool comprehensively Hold.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not The order being same as herein performs shown or described step.
The embodiment of the present invention additionally provides a kind of dealing with network breakdown device for Digit Control Machine Tool.It should be noted that The dealing with network breakdown device for being used for Digit Control Machine Tool can be used for the network for Digit Control Machine Tool for performing the embodiment of the present invention Fault handling method.
Fig. 5 is the schematic diagram of the dealing with network breakdown device for Digit Control Machine Tool according to embodiments of the present invention.Such as Fig. 5 institutes Show, the dealing with network breakdown device for being used for Digit Control Machine Tool includes:First judge module 10, conversion module 20, monitoring modular 30, First sending module 40, recovery module 50 and memory module 60.
First judge module 10, for judging whether the communication network of Digit Control Machine Tool breaks down, wherein, Digit Control Machine Tool is adopted Collection client and Digit Control Machine Tool acquisition server end are communicated by communication network.
Preferably, the first judge module 10 includes:Second acquisition module, for obtaining preset time;First judges submodule Block, for judging whether timing time reaches preset time;Execution module, for often judging that timing time reaches once default Time, execution once judge whether the communication network of Digit Control Machine Tool breaks down.
Conversion module 20, for when judging that communication network breaks down, the daily record data of Digit Control Machine Tool to be converted into Journal file, and journal file is stored under the predetermined directory of Digit Control Machine Tool collection client.
Preferably, conversion module 20 includes:First acquisition module, for obtaining the daily record data of Digit Control Machine Tool;First deletes Except module, for deleting the duplicate data in daily record data, the daily record data after duplicate removal is obtained;First conversion submodule, is used for Daily record data after duplicate removal is changed into journal file.
Preferably, the dealing with network breakdown device for Digit Control Machine Tool of the embodiment also includes:3rd acquisition module, use The default storage time of journal file in the predetermined directory for obtaining the Digit Control Machine Tool pre-set collection client;3rd judges Module, whether the storage time of journal file exceedes default storage in the predetermined directory for judging Digit Control Machine Tool collection client Time;3rd removing module, for when the storage of journal file in the predetermined directory for judging Digit Control Machine Tool collection client Between when exceeding default storage time, the daily record text of default storage time will be exceeded in the predetermined directory of Digit Control Machine Tool collection client Part is deleted.
Whether monitoring modular 30, the failure for monitoring communication network are recovered.
First sending module 40, for when monitoring the fault recovery of communication network, Digit Control Machine Tool to be gathered into client Predetermined directory under journal file be sent to the predetermined directory at Digit Control Machine Tool acquisition server end.
Preferably, the dealing with network breakdown device for Digit Control Machine Tool of the embodiment also includes:Second judge module, use In judge Digit Control Machine Tool collection client predetermined directory under journal file before communication network breaks down whether all It is sent to the predetermined directory at Digit Control Machine Tool acquisition server end;Second removing module, judge that Digit Control Machine Tool gathers for working as Journal file under the predetermined directory of client is all sent to Digit Control Machine Tool collection clothes before communication network breaks down During the predetermined directory at business device end, the journal file under the predetermined directory of Digit Control Machine Tool collection client is deleted;Logging modle, it is used for When judge Digit Control Machine Tool collection client predetermined directory under journal file fail before communication network breaks down entirely When portion is sent to the predetermined directory at Digit Control Machine Tool acquisition server end, the journal file not sent is recorded;Second sending module, For when monitoring the fault recovery of communication network, the journal file not sent to be sent to Digit Control Machine Tool acquisition server end Predetermined directory.
Recovery module 50, the journal file under predetermined directory for reading Digit Control Machine Tool acquisition server end, by numerical control Journal file under the predetermined directory at lathe acquisition server end is reduced into daily record data.
Memory module 60, for daily record data to be stored in presetting database.
Preferably, the dealing with network breakdown device for Digit Control Machine Tool of the embodiment also includes:Determining module, for from Index to be counted is determined in the daily record data stored in presetting database;Accumulator module, stored for traveling through in presetting database Daily record data, treat statistical indicator carry out accumulation calculating, obtain the statistical result of index to be counted;Output module, for defeated Go out the statistical result of index to be counted.
The dealing with network breakdown device for Digit Control Machine Tool of the embodiment includes the first judge module 10, conversion module 20, monitoring modular 30, the first sending module 40, recovery module 50 and memory module 60.Numerical control machine is used for by the embodiment The dealing with network breakdown device of bed solves the data processing after prior art network fault recovery to server build-up of pressure Problem, reach guarantee Digit Control Machine Tool creation data integrality, slow down a large amount of creation datas to Digit Control Machine Tool acquisition server end The effect of build-up of pressure.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (12)

  1. A kind of 1. network failure processing method for Digit Control Machine Tool, it is characterised in that including:
    Judge whether the communication network of Digit Control Machine Tool breaks down, wherein, Digit Control Machine Tool collection client and Digit Control Machine Tool collection Server end is communicated by the communication network;
    If it is judged that the communication network breaks down, the daily record data of the Digit Control Machine Tool is converted into journal file, and The journal file is stored under the predetermined directory of the Digit Control Machine Tool collection client;
    Whether the failure for monitoring the communication network is recovered;
    If monitoring the fault recovery of the communication network, the Digit Control Machine Tool is gathered to the day under the predetermined directory of client Will file is sent to the predetermined directory at the Digit Control Machine Tool acquisition server end;
    The journal file under the predetermined directory at the Digit Control Machine Tool acquisition server end is read, the Digit Control Machine Tool is gathered and serviced Journal file under the predetermined directory at device end is reduced into daily record data;And
    The daily record data is stored in presetting database.
  2. 2. the network failure processing method according to claim 1 for Digit Control Machine Tool, it is characterised in that by the numerical control The daily record data of lathe, which is converted into journal file, to be included:
    Obtain the daily record data of the Digit Control Machine Tool;
    The duplicate data in the daily record data is deleted, obtains the daily record data after duplicate removal;And
    Daily record data after the duplicate removal is changed into the journal file.
  3. 3. the network failure processing method according to claim 1 for Digit Control Machine Tool, it is characterised in that judge numerical control machine Bed communication network whether break down including:
    Obtain preset time;
    Judge whether timing time reaches the preset time;And
    Often judge that the timing time reaches once the preset time, perform the communication network for once judging the Digit Control Machine Tool Whether network breaks down.
  4. 4. the network failure processing method according to claim 3 for Digit Control Machine Tool, it is characterised in that by the number Journal file under the predetermined directory of control lathe collection client is sent to the default mesh at the Digit Control Machine Tool acquisition server end After record, methods described also includes:
    Judge that the journal file under the predetermined directory of the Digit Control Machine Tool collection client breaks down it in the communication network The preceding predetermined directory for whether being all sent to the Digit Control Machine Tool acquisition server end;
    If it is judged that the journal file under the predetermined directory of the Digit Control Machine Tool collection client occurs in the communication network The predetermined directory at the Digit Control Machine Tool acquisition server end is all sent to before failure, deletes the Digit Control Machine Tool collection visitor Journal file under the predetermined directory at family end;
    If it is judged that the journal file under the predetermined directory of the Digit Control Machine Tool collection client occurs in the communication network Fail whole predetermined directories for being sent to the Digit Control Machine Tool acquisition server end before failure, record the daily record text not sent Part;And
    When monitoring the fault recovery of the communication network, the journal file not sent is sent to the Digit Control Machine Tool The predetermined directory at acquisition server end.
  5. 5. the network failure processing method according to claim 1 for Digit Control Machine Tool, it is characterised in that by the day After will data storage is in presetting database, methods described also includes:
    Index to be counted is determined in the daily record data stored from the presetting database;
    The daily record data stored in the presetting database is traveled through, accumulation calculating is carried out to the index to be counted, obtained described The statistical result of index to be counted;And
    Export the statistical result of the index to be counted.
  6. 6. the network failure processing method according to claim 1 for Digit Control Machine Tool, it is characterised in that by the day After will file is stored under the predetermined directory of the Digit Control Machine Tool collection client, methods described also includes:
    Obtain the default storage time of journal file in the predetermined directory of the Digit Control Machine Tool collection client pre-set;
    Judge whether the storage time of journal file in the predetermined directory of the Digit Control Machine Tool collection client exceedes described preset Storage time;And
    If it is judged that the storage time of journal file is more than described pre- in the predetermined directory of the Digit Control Machine Tool collection client If storage time, the Digit Control Machine Tool is gathered to the journal file for exceeding the default storage time in the predetermined directory of client Delete.
  7. A kind of 7. dealing with network breakdown device for Digit Control Machine Tool, it is characterised in that including:
    First judge module, for judging whether the communication network of Digit Control Machine Tool breaks down, wherein, Digit Control Machine Tool collection client End and Digit Control Machine Tool acquisition server end are communicated by the communication network;
    Conversion module, for when judging that the communication network breaks down, the daily record data of the Digit Control Machine Tool to be changed It is stored in into journal file, and by the journal file under the predetermined directory that the Digit Control Machine Tool gathers client;
    Whether monitoring modular, the failure for monitoring the communication network are recovered;
    First sending module, for when monitoring the fault recovery of the communication network, the Digit Control Machine Tool to be gathered into client Journal file under the predetermined directory at end is sent to the predetermined directory at the Digit Control Machine Tool acquisition server end;
    Recovery module, the journal file under predetermined directory for reading the Digit Control Machine Tool acquisition server end, by the number Journal file under the predetermined directory at control lathe acquisition server end is reduced into daily record data;And
    Memory module, for the daily record data to be stored in presetting database.
  8. 8. the dealing with network breakdown device according to claim 7 for Digit Control Machine Tool, it is characterised in that the conversion mould Block includes:
    First acquisition module, for obtaining the daily record data of the Digit Control Machine Tool;
    First removing module, for deleting the duplicate data in the daily record data, obtain the daily record data after duplicate removal;And
    First conversion submodule, for the daily record data after the duplicate removal to be changed into the journal file.
  9. 9. the dealing with network breakdown device according to claim 7 for Digit Control Machine Tool, it is characterised in that described first sentences Disconnected module includes:
    Second acquisition module, for obtaining preset time;
    First judging submodule, for judging whether timing time reaches the preset time;And
    Execution module, for often judging that the timing time reaches once the preset time, execution once judges the number Whether the communication network of control lathe breaks down.
  10. 10. the dealing with network breakdown device according to claim 9 for Digit Control Machine Tool, it is characterised in that described device Also include:
    Second judge module, the journal file under predetermined directory for judging the Digit Control Machine Tool collection client is described logical Whether communication network breaks down all is sent to the predetermined directory at the Digit Control Machine Tool acquisition server end before;
    Second removing module, for working as the journal file under the predetermined directory for judging the Digit Control Machine Tool collection client in institute State before communication network breaks down all when being sent to the predetermined directory at the Digit Control Machine Tool acquisition server end, delete institute State the journal file under the predetermined directory of Digit Control Machine Tool collection client;
    Logging modle, for working as the journal file under the predetermined directory for judging the Digit Control Machine Tool collection client described logical When communication network fails all to be sent to the predetermined directory at the Digit Control Machine Tool acquisition server end before breaking down, record is not The journal file of transmission;And
    Second sending module, for when monitoring the fault recovery of the communication network, by the journal file not sent Send to the predetermined directory at the Digit Control Machine Tool acquisition server end.
  11. 11. the dealing with network breakdown device according to claim 7 for Digit Control Machine Tool, it is characterised in that described device Also include:
    Determining module, for determining index to be counted in the daily record data that is stored from the presetting database;
    Accumulator module, for traveling through the daily record data stored in the presetting database, the index to be counted is added up Calculate, obtain the statistical result of the index to be counted;And
    Output module, for exporting the statistical result of the index to be counted.
  12. 12. the dealing with network breakdown device according to claim 7 for Digit Control Machine Tool, it is characterised in that described device Also include:
    3rd acquisition module, journal file in the predetermined directory of client is gathered for obtaining the Digit Control Machine Tool pre-set Default storage time;
    3rd judge module, the storage time of journal file in the predetermined directory for judging Digit Control Machine Tool collection client Whether the default storage time is exceeded;And
    3rd removing module, for when the storage of journal file in the predetermined directory for judging the Digit Control Machine Tool collection client When time exceedes the default storage time, the Digit Control Machine Tool is gathered in the predetermined directory of client and deposited more than described preset The journal file for storing up the time is deleted.
CN201510004973.7A 2015-01-05 2015-01-05 Network failure processing method and device for Digit Control Machine Tool Active CN104601374B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510004973.7A CN104601374B (en) 2015-01-05 2015-01-05 Network failure processing method and device for Digit Control Machine Tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510004973.7A CN104601374B (en) 2015-01-05 2015-01-05 Network failure processing method and device for Digit Control Machine Tool

Publications (2)

Publication Number Publication Date
CN104601374A CN104601374A (en) 2015-05-06
CN104601374B true CN104601374B (en) 2018-02-02

Family

ID=53126899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510004973.7A Active CN104601374B (en) 2015-01-05 2015-01-05 Network failure processing method and device for Digit Control Machine Tool

Country Status (1)

Country Link
CN (1) CN104601374B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105116842B (en) * 2015-07-13 2018-05-11 华中科技大学 A kind of fault data visualization analytic method based on digital control system daily record
CN106201844B (en) * 2016-06-29 2019-01-01 北京智能管家科技有限公司 A kind of log collecting method and device
CN109858731A (en) * 2018-12-11 2019-06-07 许继集团有限公司 Distribution main station system, historical data storage method and system
CN111131378A (en) * 2019-10-31 2020-05-08 国电南瑞科技股份有限公司 Method and system for supplementing and acquiring real-time data after communication recovery
CN114073340A (en) * 2020-08-14 2022-02-22 深圳市国科瑞芯科技有限公司 Atomization type electronic cigarette system, information processing method and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350834A (en) * 2008-07-21 2009-01-21 深圳市高正软件有限公司 Information acquisition system capable of asynchronously implementing information acquisition and information transmission
CN101826984A (en) * 2010-04-08 2010-09-08 中兴通讯股份有限公司 Log information processing method and device thereof
EP2530619A1 (en) * 2011-05-30 2012-12-05 Samsung Electronics Co., Ltd. Apparatus and method for performing encryption and decryption of data in portable terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350834A (en) * 2008-07-21 2009-01-21 深圳市高正软件有限公司 Information acquisition system capable of asynchronously implementing information acquisition and information transmission
CN101826984A (en) * 2010-04-08 2010-09-08 中兴通讯股份有限公司 Log information processing method and device thereof
EP2530619A1 (en) * 2011-05-30 2012-12-05 Samsung Electronics Co., Ltd. Apparatus and method for performing encryption and decryption of data in portable terminal

Also Published As

Publication number Publication date
CN104601374A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
CN104601374B (en) Network failure processing method and device for Digit Control Machine Tool
CN106557991B (en) Voltage monitoring data platform
CN105427193B (en) A kind of big data analysis device and method based on distributed time series data service
CN110674189B (en) Method for monitoring secondary state and positioning fault of intelligent substation
CN106844171A (en) Mass operation and maintenance implementation method
CN103699063B (en) The harvester of off-line data and method in a kind of Manufacturing Executive System MES
CN109460339B (en) Log streaming computing system
CN106528341B (en) Automation disaster tolerance system based on Greenplum database
CN101197621A (en) Method and system for remote diagnosing and locating failure of network management system
CN102810091A (en) Monitoring data management method and system
CN101883009A (en) Method, system and network management device for automatically acquiring reliability data
CN112118174A (en) Software defined data gateway
CN106992886A (en) A kind of log analysis method and device based on distributed storage
CN108599992A (en) A kind of data processing system and method
CN103020169A (en) Effectiveness and uniqueness processing method for electric data
CN105763384A (en) Operation guarantee system of bank card switching center
CN103744901A (en) Intelligent substation double-host history data synchronously-storing system and device
CN116389223B (en) Artificial intelligence visual early warning system and method based on big data
CN113487170A (en) Full link monitoring system with layered technical architecture
CN101631330B (en) Method and device for collecting and processing performance data
CN112308731A (en) Cloud computing method and system for multitask concurrent processing of acquisition system
CN116775632A (en) Near-real-time cleaning data execution method based on vehicle-mounted terminal acquisition data
CN106709016A (en) Service bus-based data exchange method
CN103268353B (en) Grid alarm auto response system and grid alarm automatic response method
CN110399095A (en) A kind of statistical method and device of memory space

Legal Events

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