CN108326382A - The control method of electric spark shaping mill - Google Patents

The control method of electric spark shaping mill Download PDF

Info

Publication number
CN108326382A
CN108326382A CN201810077957.4A CN201810077957A CN108326382A CN 108326382 A CN108326382 A CN 108326382A CN 201810077957 A CN201810077957 A CN 201810077957A CN 108326382 A CN108326382 A CN 108326382A
Authority
CN
China
Prior art keywords
data
electric spark
module
shaping mill
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.)
Pending
Application number
CN201810077957.4A
Other languages
Chinese (zh)
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.)
Shaanxi University of Science and Technology
Original Assignee
Shaanxi University of Science and Technology
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 Shaanxi University of Science and Technology filed Critical Shaanxi University of Science and Technology
Priority to CN201810077957.4A priority Critical patent/CN108326382A/en
Publication of CN108326382A publication Critical patent/CN108326382A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23HWORKING OF METAL BY THE ACTION OF A HIGH CONCENTRATION OF ELECTRIC CURRENT ON A WORKPIECE USING AN ELECTRODE WHICH TAKES THE PLACE OF A TOOL; SUCH WORKING COMBINED WITH OTHER FORMS OF WORKING OF METAL
    • B23H1/00Electrical discharge machining, i.e. removing metal with a series of rapidly recurring electrical discharges between an electrode and a workpiece in the presence of a fluid dielectric
    • B23H1/02Electric circuits specially adapted therefor, e.g. power supply, control, preventing short circuits or other abnormal discharges

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention discloses a kind of control methods of electric spark shaping mill; it include mainly initialization, etc. power down protection interruptions to be triggered, interpolation cycle Interruption, timing scan interrupt and receive interruption; the present invention only needs a control method that can control all execution systems; the complexity for reducing program improves the working efficiency of electric spark shaping mill.

Description

The control method of electric spark shaping mill
Technical field
The invention belongs to electromachining equipment fields, are related to a kind of control method of electric spark shaping mill.
Background technology
Electric spark shaping mill needs to use master control system and multiple execution systems, is needed between system and system into line number According to exchange, data volume is very big, and the electric spark shaping mill of the prior art mainly uses traditional data exchange control method, i.e., Point-to-point communication mode is carried out, i.e., each execution system is required to individually control, so each execution system has been required for one A control module and control method, in this way control are got up comparatively laborious, and each execution system is also needed to through respective communication Channel transfers data to primary module, and in this way because communications conduit is various, primary module can only be carried out with polling mode, so main mould Block receives the real-time for handling data and reliability is poor, and efficiency is also low.
Invention content
The object of the present invention is to provide a kind of control methods of electric spark shaping mill.
The technical solution adopted in the present invention is that a kind of control method of electric spark shaping mill, this method is according to following step It is rapid to implement:
Step 1:It is fixed to initialize memory variable, CAN bus port, Three-axis drive module, timing scan device and interpolation cycle When device, open power down protection interrupt and start sending and receiving for CAN bus;
Step 2:Interruption is interrupted and received etc. power down protection to be triggered interruption, interpolation cycle Interruption, timing scan;
Step 3:If four kinds interrupt when occurring the same time, sequence is that power down protection interrupts, in interpolation cycle timing Interruption is received in breaking and connecting, timing scan is interrupted;If four kinds of interruptions do not trigger, return to step 2 continues waiting for;
Step 4:Power down protection down trigger closes every other task, then checks data and memory in memory In data it is whether identical, shut down if identical;If it is different, shutting down after then being preserved the data in memory;
Step 5:Interpolation cycle Interruption triggers, and primary module detects the operating status of the current each axis of electric spark shaping mill, It carries out locus interpolation and sends data to Three-axis drive module, Three-axis drive module continues driving electricity according to the data received The operation of three axis of electrospark machine, and primary module also sends data to display module, and then display module receives data and will The interpolation component of each axis is shown on display terminal, is then back to step (2) and is continued waiting for;
Step 6:Timing scan down trigger, key-press module scanning button simultaneously extract key assignments, and key-press module checks whether there is Data need to be sent to primary module, have, and are sent to primary module after frame processed, there is no data to need to be sent to master if detecting When module, then return to step 2 continues waiting for;
Step 7:Down trigger is received, the data sended over from CAN bus or numerical control cartridge module is received, data is protected It is stored in buffering area, subsequently into next step;
Step 8:It is extracted out of buffering area after data are parsed and carries out corresponding processing again, until not counted in buffering area According to return to step 2 continues waiting for later.
If power-down conditions occur for electric spark shaping mill, electric spark shaping mill main control module receives power-off signal, then falls Electric protection down trigger.
If the interpolation cycle timer fixed time cycle is then, the triggering of interpolation cycle Interruption.
If the timing scan device fixed time cycle is then, timing scan down trigger.
If electric spark shaping mill main control module receives the data passed over from CAN bus or numerical control cartridge module When, receive down trigger.
Present invention has the advantages that:The present invention electric spark shaping mill control method, use a control module with Control method controls the operation of all execution systems of entire electric spark shaping mill, reduces the complexity of program, improves electricity The working efficiency of electrospark machine, and now all of execution system by CAN bus come with primary module unicom, CAN is total The data communication of line has reliability, real-time and flexibility outstanding, therefore primary module receives and processes data also and has reliably Property, real-time and flexibility.
Description of the 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.
Specific implementation mode
The following describes the present invention in detail with reference to the accompanying drawings and specific embodiments.
A kind of control method of electric spark shaping mill of the present invention, as shown in Figure 1, this method is specifically real according to the following steps It applies:
Step 1:It is fixed to initialize memory variable, CAN bus port, Three-axis drive module, timing scan device and interpolation cycle When device, open power down protection interrupt and start sending and receiving for CAN bus;
Step 2:Interruption is interrupted and received etc. power down protection to be triggered interruption, interpolation cycle Interruption, timing scan;
Step 3:If power-down conditions occur for electric spark shaping mill, electric spark shaping mill main control module receives power down letter Number, then power down protection down trigger, enters step 4;If the interpolation cycle timer fixed time cycle is then, interpolation cycle is fixed When down trigger, enter step 5;If the timing scan device fixed time cycle is then, timing scan down trigger, then enter step Rapid 6;If electric spark shaping mill main control module receives the data passed over from CAN bus or numerical control cartridge module, Down trigger is received, enters step 7;If four kinds interrupt when occurring the same time, sequence is power down protection interruption, interpolation week Phase Interruption receives interruption, timing scan interruption;If four kinds of interruptions do not trigger, return to step 2 continues waiting for;
Step 4:Power down protection down trigger closes every other task;
Step 5:Interpolation cycle Interruption triggers, and primary module detects the operating status of the current each axis of electric spark shaping mill, It carries out locus interpolation and sends data to Three-axis drive module, Three-axis drive module continues driving electricity according to the data received The operation of three axis of electrospark machine,
Step 2 is then back to continue waiting for;
Step 6:Timing scan down trigger, key-press module scanning button simultaneously extract key assignments, and key-press module checks whether there is Data need to be sent to primary module, have, and are sent to primary module after frame processed, there is no data to need to be sent to master if detecting When module, then return to step 2 continues waiting for;
Step 7:Down trigger is received, the data sended over from CAN bus or numerical control cartridge module is received, data is protected It is stored in buffering area, subsequently into next step;
Step 8:It is extracted out of buffering area after data are parsed and carries out corresponding processing again, until not counted in buffering area According to return to step 2 continues waiting for later.
As shown in Fig. 2, primary module with connect respectively with memory and CAN bus, Three-axis drive module and key-press module It is connected with primary module.
Initialization timing scanner and interpolation cycle timer refer to that the period of the two is set to 3ms and 5ms.
Power-down conditions refer to that electric spark shaping mill cannot grow up because of power-off, dead electricity or can't meet the quality requirement for electricity Work.
Memory is located in primary module, and reservoir is located at outside primary module.
Interpolation cycle also corresponds to a timing cycle, when this period then, interpolation cycle Interruption is triggered, main Module can detect the operating status of the current each axis of electric spark shaping mill, and this period is very short, so being equivalent to Primary module is detecting the operating status of each axis of electric spark shaping mill in real time, and sends data to display module, and display module connects Receive data to be simultaneously shown on display terminal, and because running orbit has an error, need parameter further according to setting with it is specific Computational methods calculate the intermediate point of the position that the current position of each axis and needs reach and determine the running orbit of each axis, i.e. track Then interpolation controls Three-axis drive module, three axis is allowed to continue on calculated track operation.
The timing scan device period is very short, generally 3ms, so being equivalent to key-press module in real time scan and extracting Key assignments, when people has actuation of keys, key-press module can scan and extract key assignments, and then key-press module can detect data needs It is sent to primary module, primary module then will be sent to after data frame, here sending is sent by CAN bus.
The specific embodiment of the control method of electric spark shaping mill of the present invention:When people are on electric control cabinet of electric spark forming machine Key zone button after, the timing scan device period after this then, timing scan interruption be triggered, key-press module can be swept Button is retouched, key assignments is then extracted, then key-press module will be sent to main mould after these key assignments data frames by CAN bus Block receives so CAN bus has data transfer to primary module at this time and interrupts and can be triggered, then primary module can receive total from CAN The data that line sends over, later can be by these data buffer zones, because what key-press module sent is usually parameter Variation, is stored in buffering area, and then primary module is again from going interior extraction data to be parsed and carried out corresponding processing, such as this The parameter change on side just needs that Three-axis drive module will be sent to by CAN bus after data processing, allows electric spark shaping mill On three-axis moving track make corresponding variation.
Present invention has the advantages that:The present invention electric spark shaping mill control method, use a control module with Control method controls the operation of all execution systems of entire electric spark shaping mill, reduces the complexity of program, improves electricity The working efficiency of electrospark machine, and now all of execution system by CAN bus come with primary module unicom, CAN is total The data communication of line has reliability, real-time and flexibility outstanding, therefore primary module receives and processes data also and has reliably Property, real-time and flexibility.

Claims (5)

1. a kind of control method of electric spark shaping mill, which is characterized in that this method is implemented according to the following steps:
Step 1:Memory variable, CAN bus port, Three-axis drive module, timing scan device and interpolation cycle timer are initialized, Power down protection is opened to interrupt and start sending and receiving for CAN bus;
Step 2:Interruption is interrupted and received etc. power down protection to be triggered interruption, interpolation cycle Interruption, timing scan;
Step 3:If four kinds interrupt when occurring the same time, priority orders are power down protection interruption, interpolation cycle timing It interrupts, receive interruption, timing scan is interrupted;If four kinds of interruptions do not trigger, return to step 2 continues waiting for;
Step 4:Power down protection down trigger closes every other task, then checks in the data and memory in memory Whether data are identical, shut down if identical;If it is different, shutting down after then being preserved the data in memory;
Step 5:Interpolation cycle Interruption triggers, and primary module detects the operating status of the current each axis of electric spark shaping mill, carries out Locus interpolation and Three-axis drive module is sent data to, Three-axis drive module continues to drive electric spark according to the data received The operation of three axis of molding machine, is then back to step 2 and continues waiting for;
Step 6:Timing scan down trigger, key-press module scanning button simultaneously extract key assignments, and key-press module checks whether there is data It needs to be sent to primary module, have, be sent to primary module after frame processed, there is no data to need to be sent to primary module if detecting When, then return to step 2 continues waiting for;
Step 7:Down trigger is received, the data sended over from CAN bus or numerical control cartridge module is received, stores data into In buffering area, subsequently into next step;
Step 8:Extracted out of buffering area after data are parsed and carry out corresponding processing again, until in buffering area without data, Return to step 2 continues waiting for later.
2. the control method of electric spark shaping mill according to claim 1, step 3 are specially:If electric spark shaping mill Power-down conditions occur, electric spark shaping mill main control module receives power-off signal, then power down protection down trigger.
3. the control method of electric spark shaping mill according to claim 1, which is characterized in that step 3 be specially:If inserting Mend the cycle timer fixed time cycle then, then interpolation cycle Interruption triggers.
4. the control method of electric spark shaping mill according to claim 1, which is characterized in that step 3 be specially:If fixed When the scanner fixed time cycle then, then timing scan down trigger.
5. the control method of electric spark shaping mill according to claim 1, which is characterized in that step 3 be specially:If electric When electrospark machine main control module receives the data passed over from CAN bus or numerical control cartridge module, receives and interrupt Triggering.
CN201810077957.4A 2018-01-26 2018-01-26 The control method of electric spark shaping mill Pending CN108326382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810077957.4A CN108326382A (en) 2018-01-26 2018-01-26 The control method of electric spark shaping mill

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810077957.4A CN108326382A (en) 2018-01-26 2018-01-26 The control method of electric spark shaping mill

Publications (1)

Publication Number Publication Date
CN108326382A true CN108326382A (en) 2018-07-27

Family

ID=62926608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810077957.4A Pending CN108326382A (en) 2018-01-26 2018-01-26 The control method of electric spark shaping mill

Country Status (1)

Country Link
CN (1) CN108326382A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN102632308A (en) * 2012-03-22 2012-08-15 江苏省艾格森数控设备制造有限公司 Control method of electric discharge machining (EDM) machine
CN102632309A (en) * 2012-03-23 2012-08-15 江苏省艾格森数控设备制造有限公司 Control method of movement control module of electrosparking machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN102632308A (en) * 2012-03-22 2012-08-15 江苏省艾格森数控设备制造有限公司 Control method of electric discharge machining (EDM) machine
CN102632309A (en) * 2012-03-23 2012-08-15 江苏省艾格森数控设备制造有限公司 Control method of movement control module of electrosparking machine

Similar Documents

Publication Publication Date Title
CN105573192B (en) For the input module of industrial control unit (ICU)
CN110417930A (en) A kind of auto-allocation method of serial device mailing address
CN1823275A (en) Method and apparatus for smoothing current consumption in an integrated circuit
CN102724092A (en) Profibus-DP communication protocol redundancy master station
CN104750567B (en) A kind of watchdog reset method based on FPGA
CN108279595B (en) For controlling the method, apparatus and equipment unit of equipment set state
CN108326382A (en) The control method of electric spark shaping mill
CN101639685B (en) Assembly control method, assembly control system and assembly control equipment
CN104597827A (en) Smart electric control execution system supporting loop redundancy control and control method thereof
CN107229591A (en) Multi-serial communication method and device
CN102632308B (en) Control method of electric discharge machining (EDM) machine
CN101136756B (en) Electric self-checking method, system and BMC chip on network long-range control host machine
CN106154877A (en) A kind of control device and progress control method thereof
CN202309678U (en) Circuit for preventing pulse data counting omission and used for power-load management terminal
CN202997704U (en) Distribution network terminal having anti-misoperation function
CN206317552U (en) Regeneration chip
CN103942510A (en) Wiegand signal reading and converting device
CN207124638U (en) A kind of more host communication systems based on Modbus agreements
CN108646596A (en) Based on DTMF along wire module output control system and implementation method
EP1210654B1 (en) Agile mode for modbus network protocol
CN102571391B (en) Method and system for status synchronization of protection switching protocol
CN102843126B (en) Circuit for preventing counting omission of pulse data in power load management terminal
CN101635617B (en) Method and system for determining primary/standby state in communication apparatus
CN110413480A (en) Processing method and processing device for robot operating status
CN111126277A (en) Power failure alarm signal identification method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180727