CN102632308B - Control method of electric discharge machining (EDM) machine - Google Patents
Control method of electric discharge machining (EDM) machine Download PDFInfo
- Publication number
- CN102632308B CN102632308B CN 201210077022 CN201210077022A CN102632308B CN 102632308 B CN102632308 B CN 102632308B CN 201210077022 CN201210077022 CN 201210077022 CN 201210077022 A CN201210077022 A CN 201210077022A CN 102632308 B CN102632308 B CN 102632308B
- Authority
- CN
- China
- Prior art keywords
- data
- electric spark
- module
- primary module
- spark shaping
- 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
Landscapes
- Programmable Controllers (AREA)
Abstract
The invention relates to the field of electric discharge machining (EDM) machines and in particular relates to a control method of an EDM machine. The control method mainly comprises the steps of initialization, wait trigger power fail safeguard interruption, interpolation period timer interruption, timer scanning interruption and receiving interruption. According to the invention, all the executive systems can be controlled by requiring only one control method, complexity of a program is reduced, and working efficiency of the EDM machine is improved.
Description
Technical field
The present invention relates to the electric spark shaping mill field, relate in particular to a kind of control method of electric spark shaping mill.
Background technology
The numerical control electric spark make-up machine need use master control system and a plurality of executive system, need to carry out exchanges data between system and the system, data volume is very big, and the electric spark shaping mill of prior art mainly adopts traditional exchanges data control method, namely carry out point-to-point communication mode, be that each executive system all needs independent control, so each executive system needs to have a control module and control method, control is got up more loaded down with trivial details like this, and each executive system also needs the communications conduit by separately that data are sent to primary module, like this because communications conduit is various, primary module can only carry out with polling mode, so it is relatively poor that primary module receives real-time and the reliability of deal with data, and efficient is also low.
Summary of the invention
Technical problem to be solved by this invention is: provide a kind of primary module that allows receive deal with data real-time, good reliability, and the control method of the electric spark shaping mill that efficient is high, and only need this control method just can control all executive systems, reduce the complexity of program, improved the operating efficiency of electric spark shaping mill.
The technical solution adopted in the present invention is: a kind of control method of electric spark shaping mill, and this control method may further comprise the steps:
1), initialization memory variable, CAN bus port, three driver modules, timing scan device and interpolation cycle timers, open reception and transmission that power down protection interrupts and start the CAN bus;
2), wait for that the triggering power down protection interrupts, interpolation cycle regularly interrupts, timing scan is interrupted and reception is interrupted;
3), if electric spark shaping mill generation power-down conditions, the electric spark shaping mill primary module receives power-off signal, then the power down protection down trigger enters step (4); If fixed time cycle of interpolation cycle timer then, then interpolation cycle down trigger regularly enters step (5); If fixed time cycle of timing scan device then, then the timing scan down trigger then enters step (6); If when the electric spark shaping mill primary module receives the data that pass over from CAN bus or numerical control cartridge module, receive down trigger, enter step (7); If wherein two kinds or three kinds or four kinds when occurring at one time of four kinds of interruptions, then priority orders is that power down protection interrupts, interpolation cycle regularly interrupts, receives interruption, the timing scan interruption; If four kinds of interruptions are then returned step (2) and are continued to wait for all less than triggering;
4), the power down protection down trigger, close every other task, check then whether the data in the internal memory identical with data in the memory, if identical then shutdown; If different, shutdown after then the data in the internal memory being preserved;
5), interpolation cycle timing down trigger, primary module detects current each the running status of electric spark shaping mill, carry out the track interpolation and send data to three driver modules, three driver modules continue to drive the operation of three of electric spark shaping mills according to the data that receive, and primary module also sends data to display module, display module receives data and each interpolation component is presented on the display terminal then, returns step (2) then and continues to wait for;
6), timing scan down trigger, key-press module scanning button also extracts key assignments, and whether the key-press module inspection has data need send to primary module, has then to send to primary module after the frame processed, if detect when data need not send to primary module, then return step (2) and continue to wait for;
7), receive down trigger, receive the data that send over from CAN bus or numerical control cartridge module, data based different priority is saved in respectively in the buffering area of corresponding different priorities, enter next step then;
8), extract in the buffering area of different priorities successively according to data priority and to carry out corresponding processing again after data are resolved, in buffering area, do not have data, return step (2) afterwards and continue to wait for.
The control method of a kind of electric spark shaping mill of the present invention compared with prior art, have the following advantages: because adopted a control module and control method to control the operation of whole electric spark shaping mill all executive systems, reduced the complexity of program, improved the operating efficiency of electric spark shaping mill, and all executive system is all come and primary module UNICOM by the CAN bus now, again because the data communication of CAN bus has outstanding reliability, real-time and flexibility, so primary module receives and deal with data also has reliability, real-time and flexibility.
Description of drawings
Fig. 1 is the flow chart of the control method of electric spark shaping mill of the present invention.
Fig. 2 is the connection block diagram of the electric spark shaping mill in the control method of electric spark shaping mill of the present invention.
The specific embodiment
Below in conjunction with accompanying drawing and the specific embodiment the utility model is described further, but the present invention is not limited only to the following specific embodiment.
As shown in Figure 1, a kind of control method of electric spark shaping mill, this control method may further comprise the steps:
1), initialization memory variable, CAN bus port, three driver modules, timing scan device and interpolation cycle timers, open reception and transmission that power down protection interrupts and start the CAN bus;
2), wait for that the triggering power down protection interrupts, interpolation cycle regularly interrupts, timing scan is interrupted and reception is interrupted;
3), if electric spark shaping mill generation power-down conditions, the electric spark shaping mill primary module receives power-off signal, then the power down protection down trigger enters step (4); If fixed time cycle of interpolation cycle timer then, then interpolation cycle down trigger regularly enters step (5); If fixed time cycle of timing scan device then, then the timing scan down trigger then enters step (6); If when the electric spark shaping mill primary module receives the data that pass over from CAN bus or numerical control cartridge module, receive down trigger, enter step (7); If wherein two kinds or three kinds or four kinds when occurring at one time of four kinds of interruptions, then priority orders is that power down protection interrupts, interpolation cycle regularly interrupts, receives interruption, the timing scan interruption; If four kinds of interruptions are then returned step (2) and are continued to wait for all less than triggering;
4), the power down protection down trigger, close every other task, check then whether the data in the internal memory identical with data in the memory, if identical then shutdown; If different, shutdown after then the data in the internal memory being preserved;
5), interpolation cycle timing down trigger, primary module detects current each the running status of electric spark shaping mill, carry out the track interpolation and send data to three driver modules, three driver modules continue to drive the operation of three of electric spark shaping mills according to the data that receive, and primary module also sends data to display module, display module receives data and each interpolation component is presented on the display terminal then, returns step (2) then and continues to wait for;
6), timing scan down trigger, key-press module scanning button also extracts key assignments, and whether the key-press module inspection has data need send to primary module, has then to send to primary module after the frame processed, if detect when data need not send to primary module, then return step (2) and continue to wait for;
7), receive down trigger, receive the data that send over from CAN bus or numerical control cartridge module, data based different priority is saved in respectively in the buffering area of corresponding different priorities, enter next step then;
8), extract in the buffering area of different priorities successively according to data priority and to carry out corresponding processing again after data are resolved, in buffering area, do not have data, return step (2) afterwards and continue to wait for.
As shown in Figure 2, described primary module be connected with display module, memory and CAN bus respectively, described display terminal links to each other with display module, described three driver modules all link to each other with primary module with key-press module.
The described initialization timing scanner of step (1) and interpolation cycle timer refer to this cycle of two is made as 2ms and 4ms respectively.
The described power-down conditions of step (3) refers to that electric spark shaping mill can not be grown up work because of outage, dead electricity or can't meet the quality requirement of electricity.
Internal memory described in the step (4) is provided in a side of in the primary module, and holder is provided in a side of outside the primary module.
The described interpolation cycle of step (5) also is equivalent to a timing cycle, when this cycle then, interpolation cycle regularly interrupts being triggered, primary module can detect current each the running status of electric spark shaping mill, and this cycle extremely lack, in real time detecting each running status of electric spark shaping mill so be equivalent to primary module, and send data to display module, display module receives data and is presented on the display terminal, again because running orbit has error, so the intermediate point that need calculate the position of each current position and needs arrival according to parameter and the specific computing method of setting is again determined the running orbit of each, it is the track interpolation, control three driver modules then, allow three continuation along the track operation that calculates.
The timing scan device cycle extremely lacks in the step (6), be generally 2ms, so be equivalent to key-press module at real time scan and extract key assignments, when the people has actuation of keys, key-press module can scan and extract key assignments, key-press module can detect data and need send to primary module then, will send to primary module after the data frame processed then, here sends to send by the CAN bus.
Data have priority in the step (7), such as the power-off signal data priority that the CAN bus sends over is the highest, and the parameter information priority that the CAN bus sends over is just lower.
The specific embodiment of the control method of electric spark shaping mill of the present invention: after the key zone button of people on the electric spark shaping mill electrical control cubicles, the timing scan device cycle after this then, timing scan interrupts being triggered, key-press module can scan button, extract key assignments then, key-press module sends to primary module with after these key assignments data frame processed by the CAN bus then, so this moment, the CAN bus had data to be delivered to primary module, receiving interruption can be triggered, primary module can receive the data that send over from the CAN bus then, these data according to priority can be kept at respectively afterwards in the buffering area of corresponding different priority, because what key-press module sent generally is the variation of parameter, so priority ratio is lower, so be kept in the buffering area of low priority, then primary module extracts the processing that correspondence was resolved and carried out to data again in going, just need data handle to send to three driver modules by the CAN bus afterwards such as the parameter change here, allow the three-axis moving track on the electric spark shaping mill make corresponding variation.
Claims (1)
1. the control method of an electric spark shaping mill, it is characterized in that: this control method may further comprise the steps:
1), initialization memory variable, CAN bus port, three driver modules, timing scan device and interpolation cycle timers, open reception and transmission that power down protection interrupts and start the CAN bus;
2), wait for that the triggering power down protection interrupts, interpolation cycle regularly interrupts, timing scan is interrupted and reception is interrupted;
3), if electric spark shaping mill generation power-down conditions, the electric spark shaping mill primary module receives power-off signal, then the power down protection down trigger enters step (4); If fixed time cycle of interpolation cycle timer then, then interpolation cycle down trigger regularly enters step (5); If fixed time cycle of timing scan device then, then the timing scan down trigger then enters step (6); If when the electric spark shaping mill primary module receives the data that pass over from CAN bus or numerical control cartridge module, receive down trigger, enter step (7); If wherein two kinds or three kinds or four kinds when occurring at one time of four kinds of interruptions, then priority orders is that power down protection interrupts, interpolation cycle regularly interrupts, receives interruption, the timing scan interruption; If four kinds of interruptions are then returned step (2) and are continued to wait for all less than triggering;
4), the power down protection down trigger, close every other task, check then whether the data in the internal memory identical with data in the memory, if identical then shutdown; If different, shutdown after then the data in the internal memory being preserved;
5), interpolation cycle timing down trigger, primary module detects current each the running status of electric spark shaping mill, carry out the track interpolation and send data to three driver modules, three driver modules continue to drive the operation of three of electric spark shaping mills according to the data that receive, and primary module also sends data to display module, display module receives data and each interpolation component is presented on the display terminal then, returns step (2) then and continues to wait for;
6), timing scan down trigger, key-press module scanning button also extracts key assignments, and whether the key-press module inspection has data need send to primary module, has then to send to primary module after the frame processed, if detect when data need not send to primary module, then return step (2) and continue to wait for;
7), receive down trigger, receive the data that send over from CAN bus or numerical control cartridge module, data based different priority is saved in respectively in the buffering area of corresponding different priorities, enter next step then;
8), extract in the buffering area of different priorities successively according to data priority and to carry out corresponding processing again after data are resolved, in buffering area, do not have data, return step (2) afterwards and continue to wait for.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201210077022 CN102632308B (en) | 2012-03-22 | 2012-03-22 | Control method of electric discharge machining (EDM) machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201210077022 CN102632308B (en) | 2012-03-22 | 2012-03-22 | Control method of electric discharge machining (EDM) machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102632308A CN102632308A (en) | 2012-08-15 |
CN102632308B true CN102632308B (en) | 2013-08-28 |
Family
ID=46616984
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201210077022 Expired - Fee Related CN102632308B (en) | 2012-03-22 | 2012-03-22 | Control method of electric discharge machining (EDM) machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102632308B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108326382A (en) * | 2018-01-26 | 2018-07-27 | 陕西科技大学 | The control method of electric spark shaping mill |
CN108581103B (en) * | 2018-04-08 | 2019-09-27 | 清华大学 | A kind of five axis four-axle linkage wire cutting motion control method of slow wire feeding |
CN110303209B (en) * | 2019-07-02 | 2021-05-28 | 东莞市迪蒙数控机械有限公司 | Automatic control method for control process of electric spark forming machine |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1802634A (en) * | 2003-08-04 | 2006-07-12 | 株式会社日立制作所 | Real-time control system |
JP2008000846A (en) * | 2006-06-22 | 2008-01-10 | Sodick Co Ltd | Electric discharge machining method for cutting wire |
JP2008027261A (en) * | 2006-07-24 | 2008-02-07 | Sodick Co Ltd | Numerically controlled machine tool and interrupt working method |
CN101697068A (en) * | 2009-10-30 | 2010-04-21 | 安徽天健环保车辆部件有限公司 | Vehicle body control system based on CAN bus |
CN101875173A (en) * | 2010-05-21 | 2010-11-03 | 沈阳工业大学 | Gantry type milling and boring machine adopting electromagnet and permanent magnet mixed magnetic pole suspending and control method thereof |
CN201755705U (en) * | 2010-07-30 | 2011-03-09 | 宁波市博虹机械制造开发有限公司 | CAN control system of electric spark forming machine |
-
2012
- 2012-03-22 CN CN 201210077022 patent/CN102632308B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1802634A (en) * | 2003-08-04 | 2006-07-12 | 株式会社日立制作所 | Real-time control system |
JP2008000846A (en) * | 2006-06-22 | 2008-01-10 | Sodick Co Ltd | Electric discharge machining method for cutting wire |
JP2008027261A (en) * | 2006-07-24 | 2008-02-07 | Sodick Co Ltd | Numerically controlled machine tool and interrupt working method |
CN101697068A (en) * | 2009-10-30 | 2010-04-21 | 安徽天健环保车辆部件有限公司 | Vehicle body control system based on CAN bus |
CN101875173A (en) * | 2010-05-21 | 2010-11-03 | 沈阳工业大学 | Gantry type milling and boring machine adopting electromagnet and permanent magnet mixed magnetic pole suspending and control method thereof |
CN201755705U (en) * | 2010-07-30 | 2011-03-09 | 宁波市博虹机械制造开发有限公司 | CAN control system of electric spark forming machine |
Also Published As
Publication number | Publication date |
---|---|
CN102632308A (en) | 2012-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103455005B (en) | Controller redundancy and switching method | |
CN102632308B (en) | Control method of electric discharge machining (EDM) machine | |
CN104143244B (en) | Automatic fire alarm system communication modes and fire alarm automatic alarm system | |
CN106254097A (en) | A kind of ATS system two-shipper arbitration system judged based on third party and method | |
CN105554012A (en) | Communication unit for converting EtherCAT slave station into Canopen master station on basis of DSP (Digital Signal Processor) | |
CN104714406A (en) | Redundancy switching method of input and output module | |
CN102866698B (en) | Human machine interface (HMI) redundant communication method for distributed control system controller | |
CN201374005Y (en) | Belt conveying device automation control system | |
CN105977925B (en) | A kind of adaptive bus protection implementation method that should have main frame and off host pattern | |
CN103941084A (en) | MuCOS (Micro Control Operation System) operating system based intelligent electric meter | |
CN203930440U (en) | Machine control equipment and drive unit thereof | |
CN202424538U (en) | Parallel high-power high-frequency switching power supply system | |
CN1780348B (en) | Power supply controlling method and system for telecommunication system | |
CN207124638U (en) | A kind of more host communication systems based on Modbus agreements | |
CN103176440A (en) | Automatic processing task allocation system for numerically-controlled machine tool | |
CN201955675U (en) | Decentralized control system test box | |
CN203376605U (en) | Numerical control machine tool robot real-time operation monitoring system | |
CN103441509A (en) | Reactive power compensation cabinet and control method | |
CN202995418U (en) | Multiple-power-supply ATS signal processing system based on multiprocessor | |
CN203313211U (en) | Automatic startup and shutdown detection system for router | |
CN201909975U (en) | Feeder Automation (FA) self-healing and reconstruction controller | |
CN201270521Y (en) | Data collection apparatus using dual backup links | |
CN102355344B (en) | Successive frame synchronous extraction device suitable for rate adaptive communication system | |
CN201876725U (en) | Wireless control device for industrial robot | |
CN201584933U (en) | Medium-high voltage magnetic control soft start controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130828 Termination date: 20160322 |
|
CF01 | Termination of patent right due to non-payment of annual fee |