CN108326382A - The control method of electric spark shaping mill - Google Patents
The control method of electric spark shaping mill Download PDFInfo
- 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
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23H—WORKING 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/00—Electrical 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/02—Electric 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
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.
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)
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 |
-
2018
- 2018-01-26 CN CN201810077957.4A patent/CN108326382A/en active Pending
Patent Citations (4)
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 |
---|---|---|
CN1823275B (en) | Method and apparatus for smoothing current consumption in an integrated circuit | |
CN110417930A (en) | A kind of auto-allocation method of serial device mailing address | |
CN106533874B (en) | A kind of permanent magnet synchronous motor data communication system and method based on Modbus rtu protocol | |
CN102724092A (en) | Profibus-DP communication protocol redundancy master station | |
CN101924667B (en) | Modem anomaly detecting and power-off restarting control method based on serial port | |
CN104199338A (en) | Communication control method of RS485 communication circuit | |
CN104597827A (en) | Smart electric control execution system supporting loop redundancy control and control method thereof | |
CN104750567A (en) | Watchdog reset method based on FPGA | |
CN105977925B (en) | A kind of adaptive bus protection implementation method that should have main frame and off host pattern | |
CN108279595B (en) | Method and device for controlling state of equipment unit and equipment unit | |
CN108326382A (en) | The control method of electric spark shaping mill | |
CN101639685B (en) | Assembly control method, assembly control system and assembly control equipment | |
CN103238123B (en) | Locating device and use the PLC system of this locating 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 | |
CN102098174A (en) | Safety communication method and system for power grid monitoring system | |
CN102156899B (en) | Clock management unit of RFID tag chip | |
CN207124638U (en) | A kind of more host communication systems based on Modbus agreements | |
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 | |
CN207424602U (en) | Wired and wireless supervisory control system applied to more motor monitorings | |
CN102780700A (en) | Method and device for realizing baud rate and protocol self-adaption in video monitoring field | |
CN108646596A (en) | Based on DTMF along wire module output control system and implementation method | |
CN107707484B (en) | Packet load sharing device and method based on link identification distinguishing | |
CN104751558B (en) | Banknote tester, currency detecting system and banknote detection method |
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 |