Summary of the invention
In view of the above-mentioned problems, the present invention provides a kind of numerical controls including milling head starting opportunity judgment module and judgment step
Duplex head milling machine control method and corresponding control system, this method and system can be based on to workpiece parameter and system parameters
Operation, the accurate best opportunity for determining starting milling head main motion improve the energy of existing equipment to reduce energy consumption when milling head idle running
Source utilization rate.
The present invention is the solution for solving its technical problem and providing are as follows:
A kind of control system of digital-control two-head milling machine, applicable digital-control two-head milling machine include milling stations, are arranged in milling stations
The left milling head and right milling head of two sides, and the compressing rod on milling stations top is set;Milling stations can be in milling stations driving motor
Driving under fed along X-axis;Left milling head and right milling head can be respectively in left milling head positioning motor and right milling head positioning motors
Along Y-axis feed or withdrawing under driving, can also be rotated under the driving of left milling head driving motor and right milling head driving motor or
It is static;Compressing rod can compress under the driving of binder rod driving device or unclamp the workpiece in milling stations, which is characterized in that should
The control system of digital-control two-head milling machine includes following functional module: technological parameter acquisition module, reads parameter input device input
Workpiece parameter and system parameter;Swage module instructs compressing rod to compress workpiece by the control to binder rod driving device
Onto milling stations;Left and right milling head starts opportunity determination module, the workpiece parameter read according to technological parameter acquisition module and is
System parameter determines the specific moment of starting left and right milling head main motion, namely determines that left milling head and/or right milling head start the tool of rotation
The body moment, to reduce the idle running energy consumption of left milling head and right milling head;Left and right milling head Y-axis locating module, by positioning electricity to left milling head
Left milling head and right milling head are navigated to read according to technological parameter acquisition module respectively by the control of machine and right milling head positioning motor
Workpiece parameter and system parameter determine position;Left and right milling head main motion drive module, by left milling head driving motor and
The control of right milling head driving motor, the main fortune for instructing left milling head and right milling head to determine in left and right milling head starting opportunity determination module
Dynamic Startup time rotating forward, reversion or static;Milling stations X-axis feeding module passes through the control to milling stations driving motor, instruction milling
It cuts platform to move along X-axis positive direction or X-axis negative direction, realize the X-axis feeding of workpiece or resets;Inversion module, by binder
The control of rod driving device, instruction compressing rod unclamp the workpiece in milling stations.
Preferably, left milling face detection dress is additionally provided in the two sides of milling stations on the digital-control two-head milling machine that the present invention is applicable in
It sets and/or right milling face detection device, correspondingly, the control system of digital-control two-head milling machine further includes that left milling face detection data connects
Receive module and/or right milling face detection data receiving module;Left and right milling head Y-axis locating module is read according to technological parameter acquisition module
The workpiece parameter and system parameter and left milling face detection data receiving module got and/or right milling face detection data receive
The detection data that module receives determines the specific location of left milling head and right milling head.
Preferably, left milling face detection dress is additionally provided in the two sides of milling stations on the digital-control two-head milling machine that the present invention is applicable in
It sets and/or right milling face detection device, correspondingly, the control system of digital-control two-head milling machine further includes that left milling face detection data connects
Receive module and/or right milling face detection data receiving module;Milling head starting opportunity determination module in left and right is acquired according to technological parameter
The workpiece parameter and system parameter and left milling face detection data receiving module and/or right milling face testing number that module is read
The opportunity for calling left and right milling head main motion drive module is determined according to the detection data that receiving module receives.
Preferably, the parameter input device in digital-control two-head milling machine control system provided by the invention be touch screen and/or
Keyboard, the workpiece parameter that technological parameter acquisition module is read include width, the original length of workpiece after workpiece original width, processing
Length and thickness of workpiece after degree, processing;The system parameter that the technological parameter acquisition module is read include width first the amount of repairing,
Length first reprocess the left knife of light-knife amount, width and reprocess the right knife of light-knife amount, length and reprocess light-knife amount and the left knife of length by the right knife of the amount of repairing, width
Reprocess light-knife amount.
Preferably, the left milling face detection data receiving module in digital-control two-head milling machine control system provided by the invention
And/or the detection data that right milling face detection data receiving module receives includes the width measurement of workpiece and the length of workpiece
Measured value.
It is corresponded with the control system of above-mentioned various digital-control two-head milling machines, another aspect of the present invention also discloses phase
The control method for the digital-control two-head milling machine answered, specifically:
A kind of control method of digital-control two-head milling machine, applicable digital-control two-head milling machine include milling stations, are arranged in milling stations
The left milling head and right milling head of two sides, and the compressing rod on milling stations top is set;Milling stations can be in milling stations driving motor
Driving under fed along X-axis;Left milling head and right milling head can be respectively in left milling head positioning motor and right milling head positioning motors
Along Y-axis feed or withdrawing under driving, can also be rotated under the driving of left milling head driving motor and right milling head driving motor or
It is static;Compressing rod can compress under the driving of binder rod driving device or unclamp the workpiece in the milling stations, and feature exists
In the control method of the digital-control two-head milling machine includes the following steps: technological parameter acquisition step, reads parameter input device input
Workpiece parameter and system parameter;Binder step instructs compressing rod to compress workpiece by the control to binder rod driving device
Onto milling stations;Left and right milling head starts opportunity determination step, the workpiece parameter read according to technological parameter acquisition step and is
System parameter determines the specific moment of starting left and right milling head main motion, namely determines that left milling head and/or right milling head start the tool of rotation
The body moment, to reduce the idle running energy consumption of left milling head and right milling head;Left and right milling head Y-axis positioning step, by positioning electricity to left milling head
Left milling head and right milling head are navigated to read according to technological parameter acquisition step respectively by the control of machine and right milling head positioning motor
Workpiece parameter and system parameter determine position;Left and right milling head main motion actuation step, by left milling head driving motor and
The control of right milling head driving motor, the main fortune for instructing left milling head and right milling head to determine in left and right milling head starting opportunity determination step
Dynamic Startup time rotating forward, reversion or static;Milling stations X-axis feeds step, passes through the control to milling stations driving motor, instruction milling
It cuts platform to move along X-axis positive direction or X-axis negative direction, realize the X-axis feeding of workpiece or resets;Discharge step, by binder
The control of rod driving device, instruction compressing rod unclamp the workpiece in milling stations.
Preferably, left milling face detection dress is additionally provided in the two sides of milling stations on the digital-control two-head milling machine that the present invention is applicable in
It sets and/or right milling face detection device, correspondingly, the control method of digital-control two-head milling machine further includes that left milling face detection data connects
Receive step and/or right milling face detection data receiving step;Left and right milling head Y-axis positioning step is read according to technological parameter acquisition step
The workpiece parameter and system parameter and left milling face detection data receiving step got and/or right milling face detection data receive
The detection data that step receives determines the specific location of left milling head and right milling head.
Preferably, left milling face detection dress is additionally provided in the two sides of milling stations on the digital-control two-head milling machine that the present invention is applicable in
It sets and/or right milling face detection device, correspondingly, the control method of the digital-control two-head milling machine further includes left milling face testing number
According to receiving step and/or right milling face detection data receiving step;The left and right milling head starting opportunity determination step is according to technique
The workpiece parameter and system parameter and left milling face detection data receiving step and/or right milling that parameter acquisition step is read
The detection data that face detection data receiving step receives determines the opportunity for calling left and right milling head main motion actuation step.
Preferably, parameter input device described in digital-control two-head milling machine provided by the invention is touch screen and/or keyboard, work
The workpiece parameter that skill parameter acquisition step is read includes after workpiece original width, processing after width, workpiece original length, processing
Length and thickness of workpiece;The system parameter that the technological parameter acquisition step is read includes that width first first repair by the amount of repairing, length
Amount, the right knife of width reprocess the left knife of light-knife amount, width and reprocess that the right knife of light-knife amount, length reprocesses light-knife amount and the left knife of length reprocesses light-knife
Amount.
Preferably, left milling face detection data receiving step and/or the right side described in digital-control two-head milling machine provided by the invention
The detection data that milling face detection data receiving step receives includes the width measurement of workpiece and the length measurements of workpiece.
The present invention beneficial technical effect compared with prior art:
1, it before starting the main motion of left milling head and right milling head, is controlled first according to workpiece parameter and system parameter
The judgement or calculating on milling head main motion starting opportunity, it is ensured that the Startup time of milling head main motion can either realize stable milling effect
Fruit, and be unlikely to increase the energy consumption of lathe because of prolonged idle running, the energy utilization efficiency of existing lathe is improved, optimization is existing
There is the cost performance of product.
2, in the embodiment that the present invention includes left and right milling face detection data receiving module or receiving step, pass through detection
Comparison and verifying between data and the workpiece parameter and system parameter of parameter input device input, can reduce systematic error,
Further increase the accuracy and reliability of milling head main motion starting opportunity determination module or determination step.
To keep technical solution of the present invention and technical effect clearer, clear, below in conjunction with Figure of description and specifically
Digital-control two-head milling machine control method disclosed by the invention and its control system is described in detail in embodiment.
Specific embodiment
The digital-control two-head milling machine that the present invention is applicable in include milling stations, left milling head, right milling head, compressing rod and all parts or
The driving device of component;Milling stations can feed or reset along X-direction under the driving of milling stations driving motor;Left milling head
It can be respectively under the driving of left milling head positioning motor and right milling head positioning motor along Y-axis feed or withdrawing, also with right milling head
It can be rotated under the driving of left milling head driving motor and right milling head driving motor or static;Compressing rod can drive in compressing rod
The workpiece in milling stations is compressed or unclamped under the driving of device such as oil cylinder or cylinder.Wherein X-direction or Y direction are only used to
It indicates that feed and withdrawing direction of the direction of feed of milling stations with left milling head and right milling head are orthogonal, should not be construed pairs of milling
Cut the limitation of the structure or space layout scheme of platform and/or left and right milling head.
The control method and its corresponding control system of digital-control two-head milling machine provided by the invention are for realizing aforementioned numerical control
The system control function of duplex head milling machine, referring to Fig. 1, the control system of digital-control two-head milling machine disclosed by the invention includes following function
Energy module:
Technological parameter acquisition module reads and stores the workpiece parameter and system parameter of parameter input device input;Parameter
Input equipment can be touch screen and/or keyboard;It can be read using the system function similar to getchar () or scanf () class
The workpiece parameter or system parameter for taking parameter input device to input, can also use direct assignment statement such as width=
The workpiece parameter and system parameter that the assignment statement of txtbox1 class reads or parameter input device is used to input.Workpiece parameter packet
Include after workpiece original width, processing length and thickness of workpiece etc. after width, workpiece original length, processing;System parameter includes
Width first first reprocess the left knife of light-knife amount, width and reprocess the right knife of light-knife amount, length and reprocess light-knife for the amount of repairing, length by the right knife of the amount of repairing, width
Amount, the left knife of length reprocess light-knife amount etc..
Swage module instructs compressing rod that workpiece is pressed in milling stations by the control to binder rod driving device;Pressure
Material rod driving device can be oil cylinder and cylinder, and control unit can be various electric-controlled switch or electric control valve, it is preferred to use electricity
Magnet valve realizes the control of binder rod driving device, example control statement are as follows: valve1=1, valve2=0;Valve3=0,
Vlave4=1.
Left and right milling head starts opportunity determination module, the workpiece parameter read according to technological parameter acquisition module and system ginseng
Number determines the specific moment of starting left and right milling head main motion, namely determines that left milling head and/or right milling head start the tool of milling rotation
The body moment, to reduce the idle running energy consumption of left milling head and right milling head;This module will be according to the specific size of workpiece (such as length, width
Degree, thickness), the concrete specification of milling head, the total feed stroke of milling machine and milling stations along the feed speed of X-axis determine starting left and right
The specific moment of milling head main motion;The algorithm that can be used are as follows: first according to the actual size of workpiece (such as length, width and
Thickness), the total feed stroke of the concrete specification of milling head and milling machine determine that (namely milling head does not contact the bar stroke of current workpiece
Feed distance before to workpiece), the idle running of milling stations is then determined along the feed speed of X-axis further according to bar stroke and milling stations
The time is fed, the Startup time of left and right milling head main motion is finally obtained, it, both can be in the main motion of moment starting left and right milling head
It realizes stable milling effect, and can be avoided milling head idle running energy consumption.Such as it is at the time of starting to feed along X-axis with milling stations
The origin t of time0, the idle running feeding time of milling stations is t1, then the Startup time of left and right milling head main motion is t0+t1。
Left and right milling head Y-axis locating module respectively will by the control to left milling head positioning motor and right milling head positioning motor
The position that left milling head and right milling head navigate to the workpiece parameter read according to technological parameter acquisition module and system parameter determines;
The workpiece parameter and system parameter that this module is read according to technological parameter acquisition module first, determine left milling face and right milling
The specific location (namely Y-axis coordinates of targets point of left and right milling head) in face, for example, according to width after workpiece original width, processing and
Width first the right knife of the amount of repairing, width reprocess the left knife of light-knife amount, width reprocess light-knife amount respectively determine left and right milling head Y-axis coordinates of targets
Point;Or first the right knife of the amount of repairing, length reprocesses the left knife of light-knife amount, length according to length after workpiece original length, processing and length
The Y-axis coordinates of targets point that light-knife amount determines left and right milling head respectively is reprocessed, left milling head positioning motor and the positioning of right milling head are then started
Left milling head and right milling head are moved on its Y-axis coordinates of targets point by motor respectively.Wherein the displacement of left and right milling head passes through a left side
The duration of runs of milling head positioning motor and right milling head positioning motor controls, and the direction of motion of left and right system is positioned by left milling head
The rotation direction of motor and right milling head positioning motor regulates and controls.
Left and right milling head main motion drive module is referred to by the control to left milling head driving motor and right milling head driving motor
Left milling head and right milling head is enabled to rotate forward, reversion or static;This module starts the left and right that opportunity determination module determines according to left and right milling head
The Startup time t of milling head main motion0+t1, left and right milling head is realized by using time delay function such as delay sentence is similar to
The delayed startup of main motion, such as, it is assumed that system is denoted as t at the time of milling stations is started feeding0, then the left milling head of delayed startup drives
The sentence of dynamic motor and right milling head driving motor can be with are as follows:
Xdriver=1;delay t1;Lmillinghead=1, Rmillinghead=1 ...
Milling stations X-axis feeding module instructs milling stations along X-axis positive direction by the control to milling stations driving motor
Or the movement of X-axis negative direction, it realizes the X-axis feeding of workpiece or resets;This module is first according to the total feed stroke of milling machine and milling
The X-axis feed speed for cutting platform calculates milling stations and completes the time required for feeding or complete the time required for resetting, and then refers to
It enables milling stations driving motor forward or reverse, quantitatively realizes milling stations along the feeding or reset of X-axis.
Inversion module instructs compressing rod to unclamp the workpiece in milling stations by the control to binder rod driving device;Binder
Rod driving device can be oil cylinder and cylinder, and control unit can be various electric-controlled switch or electric control valve, it is preferred to use electromagnetism
Valve realizes the control of binder rod driving device, example control statement are as follows: valve1=0, valve2=1;Valve3=1,
Vlave4=0.
Below by taking the milling process of cuboid workpiece as an example, to each functional module in control system provided by the invention
Between cooperation be described in detail, referring to FIG. 2, the control method of CNC milling machine provided by the invention includes following technique step
It is rapid:
Technological parameter acquisition step reads the workpiece parameter and system parameter of parameter input device input;Parameter input is set
It is standby to can be touch screen and/or keyboard;Parameter can be read using the system function similar to getchar () or scanf () class
The workpiece parameter or system parameter of input equipment input, can also be using direct assignment statement such as width=txtbox1 class
The workpiece parameter and system parameter that assignment statement reads and parameter input device is used to input.Workpiece parameter includes the original width of workpiece
Length and thickness of workpiece etc. after width, workpiece original length, processing after degree, processing;System parameter includes the width first amount of repairing, length
Degree first reprocess the left knife of light-knife amount, width and reprocess the right knife of light-knife amount, length and reprocess the left knife of light-knife amount, length and return by the right knife of the amount of repairing, width
Smoothing knife amount etc..
Binder step instructs compressing rod that workpiece is pressed in milling stations by the control to binder rod driving device;Pressure
Material rod driving device can be oil cylinder and cylinder, and control unit can be various electric-controlled switch or electric control valve, it is preferred to use electricity
The control of magnet valve realization binder rod driving device;Example control statement are as follows: valve1=1, valve2=0;Valve3=0,
Vlave4=1.
Left and right milling head starts opportunity determination step, the workpiece parameter read according to technological parameter acquisition step and system ginseng
Number determines the specific moment of starting left and right milling head main motion, namely determine left milling head and/or right milling head start rotation it is specific when
It carves, to reduce the idle running energy consumption of left milling head and right milling head;This step will be according to the specific size of workpiece (such as length, width, thickness
Degree), the concrete specification of milling head, the total feed stroke of milling machine and milling stations along the feed speed of X-axis determine starting left and right milling head
The specific moment of main motion;The algorithm that can be used are as follows: first according to the actual size of workpiece (such as length, width and thickness
Degree), the total feed stroke of the concrete specification of milling head and milling machine determine that (namely milling head is not exposed to the bar stroke of current workpiece
Feed distance before workpiece), then further according to bar stroke and milling stations along the feed speed of X-axis determine the idle running of milling stations into
To the time, the Startup time of left and right milling head main motion is finally obtained.Such as at the time of starting to feed along X-axis using milling stations as when
Between origin t0, the practical feeding time of milling stations is t1, then the Startup time of left and right milling head main motion is t0+t1。
Left and right milling head Y-axis positioning step respectively will by the control to left milling head positioning motor and right milling head positioning motor
The position that left milling head and right milling head navigate to the workpiece parameter read according to technological parameter acquisition step and system parameter determines;
The workpiece parameter and system parameter that this step is read according to technological parameter acquisition module first, determine left milling face and right milling
The specific location (namely Y-axis coordinates of targets point of left and right milling head) in face, for example, according to width after workpiece original width, processing and
Width first the right knife of the amount of repairing, width reprocess the left knife of light-knife amount, width reprocess light-knife amount respectively determine left and right milling head Y-axis coordinates of targets
Point;Or first the right knife of the amount of repairing, length reprocesses the left knife of light-knife amount, length according to length after workpiece original length, processing and length
Reprocess the Y-axis coordinates of targets point that light-knife amount determines left and right milling head respectively;Then start left milling head positioning motor and the positioning of right milling head
Left milling head and right milling head are moved on its Y-axis coordinates of targets point by motor respectively.Wherein the displacement of left and right milling head passes through a left side
The duration of runs of milling head positioning motor and right milling head positioning motor controls, and the direction of motion of left and right system is positioned by left milling head
The rotation direction of motor and right milling head positioning motor regulates and controls.
Left and right milling head main motion actuation step is referred to by the control to left milling head driving motor and right milling head driving motor
The rotating forward of main motion Startup time, the reversion or quiet for enabling left milling head and right milling head determine in left and right milling head starting opportunity determination step
Only;This step starts the Startup time t of the left and right milling head main motion determined in opportunity determination step according to left and right milling head0+t1, lead to
It crosses using the delayed startup for being similar to time delay function such as delay sentence realization left and right milling head main motion, such as, it is assumed that it is
System is denoted as t at the time of milling stations is started feeding0, then the sentence of delayed startup left milling head driving motor and right milling head driving motor
It can be with are as follows:
Xdriver=1;delay t1;Lmillinghead=1, Rmillinghead=1 ...
Milling stations X-axis feeds step, by the control to milling stations driving motor, instructs milling stations along X-axis positive direction
Or the movement of X-axis negative direction, it realizes the X-axis feeding of workpiece or resets;This step is first according to the total feed stroke of milling machine and milling
The X-axis feed speed for cutting platform calculates milling stations and completes the time required for feeding or complete the time required for resetting, and then refers to
It enables milling stations driving motor forward or reverse, quantitatively realizes milling stations along the feeding or reset of X-axis.
Discharge step instructs compressing rod to unclamp the workpiece in milling stations by the control to binder rod driving device;Binder
Rod driving device can be oil cylinder and cylinder, and control unit can be various electric-controlled switch or electric control valve, it is preferred to use electromagnetism
Valve realizes the control of binder rod driving device, example control statement are as follows: valve1=0, valve2=1;Valve3=1,
Vlave4=0.
In an improved embodiment of the invention, it is additionally provided on applicable digital-control two-head milling machine in the two sides of milling stations
Left milling face detection device and right milling face detection device, correspondingly, the control system of digital-control two-head milling machine further includes left milling
Face detection data receiving module and right milling face detection data receiving module (please referring in Fig. 1 shown in dotted portion);Change herein
Into preferred embodiment in, the left and right milling head Y-axis locating module workpiece parameter that is read according to technological parameter acquisition module simultaneously
The detection received with system parameter and left milling face detection data receiving module and right milling face detection data receiving module
Data determine the specific location of left milling head and right milling head.Milling head starting opportunity determination module in left and right is acquired according to technological parameter simultaneously
The workpiece parameter and system parameter and left milling face detection data receiving module and right milling face detection data that module is read
The detection data that receiving module receives determines the opportunity for calling left and right milling head main motion drive module.It is opposite with control system
It answers, the control method of digital-control two-head milling machine further includes left milling face detection data receiving step and the right side in above-mentioned improved embodiment
Milling face detection data receiving step (please refers in Fig. 2 shown in dotted portion);In this improved preferred embodiment, left and right milling
The workpiece parameter and system parameter and left milling face that head Y-axis positioning step is read according to technological parameter acquisition step simultaneously are examined
The detection data that measured data receiving step and right milling face detection data receiving step receive determines left milling head and right milling head
Specific location.The workpiece parameter and be that milling head starting opportunity determination step in left and right is read according to technological parameter acquisition step simultaneously
The detection data that system parameter and left milling face detection data receiving step and right milling face detection data receiving step receive
Determine the opportunity for calling left and right milling head main motion actuation step.
It, can by the comparison and verifying between detection data and the parameter input device workpiece parameter inputted and system parameter
To reduce systematic error, the accuracy of milling head main motion starting opportunity determination module or determination step and reliable is further increased
Property.
Figure of description is combined to elaborate the preferred embodiment of the present invention above, it should explanation, this
The protection scope of invention includes but is not limited to above-described embodiment;Specific structure disclosed in Figure of description is also of the invention
Better embodiment, the technical staff in the field can also develop other embodiments on this basis, any not depart from this
The simple deformation or equivalent replacement of innovation theory, are covered by the present invention, belong to the scope of protection of the present invention.