CN102632308A - Control method of electric discharge machining (EDM) machine - Google Patents

Control method of electric discharge machining (EDM) machine Download PDF

Info

Publication number
CN102632308A
CN102632308A CN2012100770229A CN201210077022A CN102632308A CN 102632308 A CN102632308 A CN 102632308A CN 2012100770229 A CN2012100770229 A CN 2012100770229A CN 201210077022 A CN201210077022 A CN 201210077022A CN 102632308 A CN102632308 A CN 102632308A
Authority
CN
China
Prior art keywords
data
module
electric spark
spark shaping
control method
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.)
Granted
Application number
CN2012100770229A
Other languages
Chinese (zh)
Other versions
CN102632308B (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.)
JIANGSU EXCELLENT NUMERICAL CONTROL EQUIPMENT MANUFACTURING Co Ltd
Original Assignee
JIANGSU EXCELLENT NUMERICAL CONTROL EQUIPMENT MANUFACTURING 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 JIANGSU EXCELLENT NUMERICAL CONTROL EQUIPMENT MANUFACTURING Co Ltd filed Critical JIANGSU EXCELLENT NUMERICAL CONTROL EQUIPMENT MANUFACTURING Co Ltd
Priority to CN 201210077022 priority Critical patent/CN102632308B/en
Publication of CN102632308A publication Critical patent/CN102632308A/en
Application granted granted Critical
Publication of CN102632308B publication Critical patent/CN102632308B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

The control method of electric spark shaping mill
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 carry out exchanges data between system and the system, and data volume is very big; And the electric spark shaping mill of prior art mainly adopts the traditional data switching control method; Promptly carry out point-to-point communication mode, promptly each executive system all needs control separately, so each executive system all needs a control module and control method; Control is got up more loaded down with trivial details like this; And each executive system also need be sent to primary module with data through communications conduit separately, because communications conduit is various, primary module can only carry out with polling mode like this; So it is relatively poor that primary module receives the 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 lets 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 scheme that the present invention adopted 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, electric spark shaping mill main control module receives power-off signal, then the power down protection down trigger gets into step (4); If fixed time cycle of interpolation cycle timer then, then interpolation cycle down trigger regularly gets into step (5); If fixed time cycle of timing scan device then, then the timing scan down trigger then gets into step (6); If when electric spark shaping mill main control module receives from the data that CAN bus or numerical control cartridge module pass over, receive down trigger, get into 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 to send to primary module after then making frame; 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, get into 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 now executive systems all come and primary module UNICOM through the CAN bus, 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 present invention is done to further describe, 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, electric spark shaping mill main control module receives power-off signal, then the power down protection down trigger gets into step (4); If fixed time cycle of interpolation cycle timer then, then interpolation cycle down trigger regularly gets into step (5); If fixed time cycle of timing scan device then, then the timing scan down trigger then gets into step (6); If when electric spark shaping mill main control module receives from the data that CAN bus or numerical control cartridge module pass over, receive down trigger, get into 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 to send to primary module after then making frame; 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, get into 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, said primary module be connected with display module, memory and CAN bus respectively, said display terminal links to each other with display module, said three driver modules all link to each other with primary module with key-press module.
Described initialization timing scanner of step (1) and interpolation cycle timer are meant this cycle of two are made as 2ms and 4ms respectively.
The described power-down conditions of step (3) is meant 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 be very short, detecting each running status of electric spark shaping mill in real time so be equivalent to primary module, and sending 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 the parameter and the specific computing method of setting is again confirmed the running orbit of each, i.e. track interpolation; Control three driver modules then, let three continuation along the track operation that calculates.
The timing scan device cycle is very short in the step (6); Be generally 2ms, thus 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, with sending to primary module after the data system frame, here sends and sends through the CAN bus then.
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 interrupted being triggered, and key-press module can scan button; Extract key assignments then; Key-press module sends to primary module with after these key assignments data system frames through the CAN bus then, so this moment, the CAN bus had data passes to arrive primary module, receiving interruption can be triggered; Primary module can receive the data that send over from the CAN bus then; Can these data according to priority be kept at respectively in the buffering area of corresponding different priority afterwards, because key-press module sends 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 data again in go and resolves and carry out corresponding processing, just need data be sent to three driver modules through the CAN bus afterwards such as the parameter change here, lets 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, electric spark shaping mill main control module receives power-off signal, then the power down protection down trigger gets into step (4); If fixed time cycle of interpolation cycle timer then, then interpolation cycle down trigger regularly gets into step (5); If fixed time cycle of timing scan device then, then the timing scan down trigger then gets into step (6); If when electric spark shaping mill main control module receives from the data that CAN bus or numerical control cartridge module pass over, receive down trigger, get into 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 to send to primary module after then making frame; 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, get into 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.
CN 201210077022 2012-03-22 2012-03-22 Control method of electric discharge machining (EDM) machine Expired - Fee Related CN102632308B (en)

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 true CN102632308A (en) 2012-08-15
CN102632308B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108326382A (en) * 2018-01-26 2018-07-27 陕西科技大学 The control method of electric spark shaping mill
CN108581103A (en) * 2018-04-08 2018-09-28 清华大学 A kind of five axis four-axle linkage wire cutting motion control method of slow wire feeding
CN110303209A (en) * 2019-07-02 2019-10-08 东莞市迪蒙数控机械有限公司 A kind of electric spark shaping mill manipulation process automation control method

Citations (6)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108326382A (en) * 2018-01-26 2018-07-27 陕西科技大学 The control method of electric spark shaping mill
CN108581103A (en) * 2018-04-08 2018-09-28 清华大学 A kind of five axis four-axle linkage wire cutting motion control method of slow wire feeding
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
CN110303209A (en) * 2019-07-02 2019-10-08 东莞市迪蒙数控机械有限公司 A kind of electric spark shaping mill manipulation process automation control method

Also Published As

Publication number Publication date
CN102632308B (en) 2013-08-28

Similar Documents

Publication Publication Date Title
CN103455005B (en) Controller redundancy and switching method
CN102386970A (en) Optical network unit (ONU) device of EPON (Ethernet Passive Optical Network) system and protection switching method for same
CN102632308B (en) Control method of electric discharge machining (EDM) machine
CN101369932A (en) Data collection apparatus adopting double standby links and use method thereof
CN106254097A (en) A kind of ATS system two-shipper arbitration system judged based on third party and method
CN108400652B (en) Wireless communication-based power station switching control system and power station
CN101115033A (en) Conversation inceptive protocol gateway master-slave conversion system and method
CN101997727B (en) Device for seamless switching of host and standby of communication management machine and method thereof
CN104714406A (en) Redundancy switching method of input and output module
CN102097856A (en) Spare power automatic switching programmable logic control method for plant supply of power station
CN102681649A (en) Device and method for prolonging battery endurance abilities of all kinds of intelligent equipment
CN105681131B (en) Main preparation system and its parallel output method
CN103701716A (en) SV direct sampling and GOOSE message same-port transmitting method
CN102866698B (en) Human machine interface (HMI) redundant communication method for distributed control system controller
CN105977925B (en) A kind of adaptive bus protection implementation method that should have main frame and off host pattern
CN203930440U (en) Machine control equipment and drive unit thereof
CN109560612A (en) A kind of intelligent power distribution cabinet system
Lu et al. Talk to transformers: An empirical study of device communications for the freedm system
CN202512907U (en) Overhaul interface of DCS (data communication system) of nuclear power station
CN207424602U (en) Wired and wireless supervisory control system applied to more motor monitorings
CN102819252B (en) Method for realizing multi-redundancy of process control station in distributed control system
CN203151364U (en) Multi-thyristor synchronous optical pulse triggering circuit
CN212623704U (en) Intelligent power supply control system based on mobile phone APP
CN103441509A (en) Reactive power compensation cabinet and control method
CN203376605U (en) Numerical control machine tool robot real-time operation monitoring system

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