CN102621933B - Method for realizing processing control by reading external machine tool control command in numerical control system - Google Patents

Method for realizing processing control by reading external machine tool control command in numerical control system Download PDF

Info

Publication number
CN102621933B
CN102621933B CN201210123028.5A CN201210123028A CN102621933B CN 102621933 B CN102621933 B CN 102621933B CN 201210123028 A CN201210123028 A CN 201210123028A CN 102621933 B CN102621933 B CN 102621933B
Authority
CN
China
Prior art keywords
machine
tool control
control
order
outside
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.)
Active
Application number
CN201210123028.5A
Other languages
Chinese (zh)
Other versions
CN102621933A (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.)
Shanghai Weihong Electronic Technology Ltd
Original Assignee
Shanghai Weihong Electronic Technology 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 Shanghai Weihong Electronic Technology Ltd filed Critical Shanghai Weihong Electronic Technology Ltd
Priority to CN201210123028.5A priority Critical patent/CN102621933B/en
Publication of CN102621933A publication Critical patent/CN102621933A/en
Application granted granted Critical
Publication of CN102621933B publication Critical patent/CN102621933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

The invention relates to a method for realizing processing control by reading an external machine tool control command in a numerical control system. The method comprises the following steps of: storing an external machine tool control command of the system as an external machine tool control command set file; after the system receives a processing command, judging whether the processing command applies a system internal machine tool control command or external command by using a resolver, directly calling the internal machine tool control command for performing processing control if the internal command is applied, and calling a corresponding machine tool control command in the external machine tool control command set file through a message routing mechanism by using the resolver if the external command is applied; and after the command is resolved, performing processing control according to the control command to realize processing control over the external machine tool control command of the system, so that repeated development of the control command can be eliminated, and the application efficiency of the numerical control system is increased greatly; and moreover, the method has a simple and convenient process, stable and reliable working performance and wide application range.

Description

In digital control system, read the method that outside Machine-Tool Control order realizes machining control
Technical field
The present invention relates to Computerized Numerical Control technology field, the particularly processing control method technical field of numerically-controlled machine, specifically refers to a kind of method that reads outside Machine-Tool Control order in digital control system and realize machining control.
Background technology
Manufacturing industry is the basic industry of national economy, and the height of manufacturing level is the important symbol of weighing an industrial development degree of country, and the height of numerical control machine tool technique level, direct relation the height of national manufacturing industry level.
In the prior art, conventionally can utilize digital control system to cut accordingly or welding etc., utilize lathe to carry out high-pressure water-jet cutting machine operation; or during other cutting engraving; sometimes need some distinctive work flows to control, for example, return workpiece initial point, returning to mechanical reference point etc.The digital control system control command that this type of is conventional, due to the difference of mechanical property, place industry difference, or the special requirement of some product processing, its mode of motion used also can be thereupon different, conventionally, can not adopt single control command to go above-mentioned machining control.Even same numerically-controlled machine, the needed work flow of different manufacturers etc. may be all not identical.Therefore, just need to need to again develop for the difference processing of similar control command, that just needs a large amount of manpowers, financial resources, and this method is obviously uneconomical.Now just in the urgent need to a kind of, on the basis of original system control command, improve, be able to control easily the function of various work flows.
Summary of the invention
The object of the invention is to have overcome above-mentioned shortcoming of the prior art, a kind of also control command of calling system outside that reads in digital control system is provided, thereby can to the difference processing of similar control command, need to carry out effective machining control by calling external command realization, removed the manpower of overlapping development control command from, material resources and time, significantly improved the application efficiency of digital control system, and process is simple and convenient, stable and reliable working performance, the scope of application realizes the method for machining control comparatively widely in digital control system by the Machine-Tool Control order of reading system outside.
In order to realize above-mentioned object, the method that realizes machining control by the Machine-Tool Control order of reading system outside in digital control system of the present invention comprises the following steps:
(1) according to user's operation, described digital control system is an outside Machine-Tool Control command set file by the Machine-Tool Control demanded storage of this system outside;
(2) described digital control system starts, initialization system kernel, and operational system master routine, and described system master routine operation has resolver;
(3) according to user's operation, described digital control system receives processing instruction;
(4) described digital control system master routine is sent to described resolver by described processing instruction by Message routing mechanism;
(5) the processing application of instruction described in described resolver judgement is the outside Machine-Tool Control order of the order of internal system Machine-Tool Control or system, if internal system Machine-Tool Control order, enter step (6), if the outside Machine-Tool Control order of system, enters step (7);
(6) machining control is carried out in the inner Machine-Tool Control order of the direct calling system of described digital control system;
(7) described resolver calls corresponding Machine-Tool Control order in described outside Machine-Tool Control command set file according to described processing instruction by Message routing mechanism;
(8) the Machine-Tool Control order of the system outside described in described resolver resolves, and the steering order obtaining after resolving is sent to digital control system;
(9) digital control system described in is carried out the control command obtaining and is carried out machining control.
Should in digital control system, by the Machine-Tool Control order of reading system outside, realize in the method for machining control, described outside Machine-Tool Control command set file is the outside Machine-Tool Control command history file that comprises multiple subprogram segments.
Should in digital control system, by the Machine-Tool Control order of reading system outside, realize in the method for machining control, described each subprogram segment all has subroutine opening flag and end of subroutine sign.
Should in digital control system, by the Machine-Tool Control order of reading system outside, realize in the method for machining control, described step (4) specifically comprises the following steps:
(41) digital control system is sent to described resolver by described processing instruction by Message routing mechanism;
(42) the described resolver function corresponding with it according to described processing instruction calls;
(43) described resolver obtains the subroutine name in function.
Should in digital control system, by the Machine-Tool Control order of reading system outside, realize in the method for machining control, what described resolver judged described processing application of instruction is the order of internal system Machine-Tool Control or the order of internal system Machine-Tool Control, be specially: resolver judges in the inner Machine-Tool Control order of digital control system whether have the steering order corresponding with described subroutine name, if have, it is the order of internal system Machine-Tool Control, if nothing is the outside Machine-Tool Control order of system.
Should in digital control system, by the Machine-Tool Control order of reading system outside, realize in the method for machining control, described resolver calls corresponding Machine-Tool Control order in described outside Machine-Tool Control command set file according to described processing instruction by Message routing mechanism, is specially: described resolver calls the corresponding subprogram segment of the subroutine name with described in described outside Machine-Tool Control command set file by Message routing mechanism.
Should in digital control system, by the Machine-Tool Control order of reading system outside, realize in the method for machining control, described processing instruction comprises main shaft enabled instruction, returning to mechanical reference point instruction and mobile main shaft instruction.
Adopted the method that realizes machining control in digital control system by the Machine-Tool Control order of reading system outside, its Machine-Tool Control demanded storage by this system outside is an outside Machine-Tool Control command set file; In digital control system, receive after processing instruction, what first by resolver, judge described processing application of instruction is the outside Machine-Tool Control order of the order of internal system Machine-Tool Control or system, if internal system Machine-Tool Control order, directly machining control is carried out in the inner Machine-Tool Control order of calling system, if the outside Machine-Tool Control order of system, resolver calls corresponding Machine-Tool Control order in described outside Machine-Tool Control command set file by Message routing mechanism; And after the Machine-Tool Control order of this system outside of resolver resolves, by digital control system, according to this steering order, carry out machining control, with this, realized the machining control of the Machine-Tool Control order based on system outside.Thereby can remove human and material resources and the time of overlapping development control command in prior art from, and then significantly improved the application efficiency of digital control system, and the method that realizes machining control in digital control system by the Machine-Tool Control order of reading system outside of the present invention, its process is simple and convenient, stable and reliable working performance, the scope of application is also comparatively extensive.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps that realizes the method for machining control in digital control system by the Machine-Tool Control order of reading system outside of the present invention.
Embodiment
In order more clearly to understand technology contents of the present invention, especially exemplified by following examples, describe in detail.
Referring to shown in Fig. 1, is the flow chart of steps that realizes the method for machining control in digital control system by the Machine-Tool Control order of reading system outside of the present invention.
In one embodiment, the method that should be in digital control system realizes machining control by the Machine-Tool Control order of reading system outside comprises the following steps:
(1) according to user's operation, described digital control system is an outside Machine-Tool Control command set file by the Machine-Tool Control demanded storage of this system outside;
(2) described digital control system starts, initialization system kernel, and operational system master routine, and described system master routine operation has resolver;
(3) according to user's operation, described digital control system receives processing instruction, and this processing instruction can be main shaft enabled instruction, returning to mechanical reference point instruction or mobile main shaft instruction etc.;
(4) described digital control system master routine is sent to described resolver by described processing instruction by Message routing mechanism;
(5) the processing application of instruction described in described resolver judgement is the outside Machine-Tool Control order of the order of internal system Machine-Tool Control or system, if internal system Machine-Tool Control order, enter step (6), if the outside Machine-Tool Control order of system, enters step (7);
(6) machining control is carried out in the inner Machine-Tool Control order of the direct calling system of described digital control system;
(7) described resolver calls corresponding Machine-Tool Control order in described outside Machine-Tool Control command set file according to described processing instruction by Message routing mechanism;
(8) the Machine-Tool Control order of the system outside described in described resolver resolves, and the steering order obtaining after resolving is sent to digital control system;
(9) digital control system described in is carried out the control command obtaining and is carried out machining control.
In one, more preferably in embodiment, described outside Machine-Tool Control command set file is the outside Machine-Tool Control command history file that comprises multiple subprogram segments, and described each subprogram segment all has subroutine opening flag and end of subroutine sign.
In a kind of further preferred embodiment, described step (4) specifically comprises the following steps:
(41) digital control system is sent to described resolver by described processing instruction by Message routing mechanism;
(42) the described resolver function corresponding with it according to described processing instruction calls;
(43) described resolver obtains the subroutine name in function.
In the preferred embodiment of one, what the resolver described in step (5) judged described processing application of instruction is the order of internal system Machine-Tool Control or the order of internal system Machine-Tool Control, be specially: resolver judges in the inner Machine-Tool Control order of digital control system whether have the steering order corresponding with described subroutine name, if have, it is the order of internal system Machine-Tool Control, if nothing is the outside Machine-Tool Control order of system.
In the preferred embodiment of another kind, resolver described in step (7) calls corresponding Machine-Tool Control order in described outside Machine-Tool Control command set file according to described processing instruction by Message routing mechanism, is specially: described resolver calls the corresponding subprogram segment of the subroutine name with described in described outside Machine-Tool Control command set file by Message routing mechanism.
In actual applications, by the auxiliary control program of corresponding machine tool motion operation, unified being put in Public.dat (subroutine) file, when carrying out lathe action, calls corresponding subroutine by master routine, completes relevant action.Actual application comprises the following steps:
1, program startup is written into Public.dat (subroutine) file;
2, system starts, and kernel initialization is waited for and being accepted from the relevant subprogram segment of the message call at interface;
3, for example, when user clicks corresponding machine operation button or the specific work flow of some clients (: the operations such as main shaft startup, returning to mechanical reference point, mobile main shaft), by Message routing mechanism, message is sent to resolver;
5, receive message, by the corresponding subroutine of message call;
5, by resolving, the instruction in subroutine is resolved, complete the control to digital control system.
Particularly, when cnc system software starts, in main thread, " Public.dat " file is written into, wherein " Public.dat " file is all outer bevel collection of programs, user may be because client's difference causes the action unification that control mode is different to be put in subroutine by some, as " returning to mechanical reference point ", " work flow control of client " etc., " Public.dat " every cross-talk program has its subroutine opening flag and end of subroutine sign.Then user operates, as clicked " returning to mechanical reference point " push-botton operation, as processing starts needed work flow control, in process, more needed controls are inserted, action of process finishing etc., all can call its relevant subroutine control according to its message or ad hoc fashion.When client has carried out after associative operation, system can be according to its corresponding function of message call, and in by this function, given subroutine name calls relevant subroutine, controls digital control system and does relevant action.
Adopted the method that realizes machining control in digital control system by the Machine-Tool Control order of reading system outside, its Machine-Tool Control demanded storage by this system outside is an outside Machine-Tool Control command set file; In digital control system, receive after processing instruction, what first by resolver, judge described processing application of instruction is the outside Machine-Tool Control order of the order of internal system Machine-Tool Control or system, if internal system Machine-Tool Control order, directly machining control is carried out in the inner Machine-Tool Control order of calling system, if the outside Machine-Tool Control order of system, resolver calls corresponding Machine-Tool Control order in described outside Machine-Tool Control command set file by Message routing mechanism; And after the Machine-Tool Control order of this system outside of resolver resolves, by digital control system, according to this steering order, carry out machining control, with this, realized the machining control of the Machine-Tool Control order based on system outside.Thereby can remove human and material resources and the time of overlapping development control command in prior art from, and then significantly improved the application efficiency of digital control system, and the method that realizes machining control in digital control system by the Machine-Tool Control order of reading system outside of the present invention, its process is simple and convenient, stable and reliable working performance, the scope of application is also comparatively extensive.
In this instructions, the present invention is described with reference to its specific embodiment.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (4)

1. a method that realizes machining control in digital control system by the Machine-Tool Control order of reading system outside, is characterized in that, described method comprises the following steps:
(1) according to user's operation, described digital control system is an outside Machine-Tool Control command set file by the Machine-Tool Control demanded storage of this system outside;
(2) described digital control system starts, initialization system kernel, and operational system master routine, and described system master routine operation has resolver;
(3) according to user's operation, described digital control system receives processing instruction;
(4) described digital control system master routine is sent to described resolver by described processing instruction by Message routing mechanism;
(5) the processing application of instruction described in described resolver judgement is the outside Machine-Tool Control order of the order of internal system Machine-Tool Control or system, if internal system Machine-Tool Control order, execution step (6), if the outside Machine-Tool Control order of system, execution step (7)~(9);
(6) machining control is carried out in the inner Machine-Tool Control order of the direct calling system of described digital control system;
(7) described resolver calls corresponding Machine-Tool Control order in described outside Machine-Tool Control command set file according to described processing instruction by Message routing mechanism;
(8) the Machine-Tool Control order of the system outside described in described resolver resolves, and the control command obtaining after resolving is sent to digital control system;
(9) digital control system described in is carried out the control command obtaining and is carried out machining control;
Described outside Machine-Tool Control command set file is the outside Machine-Tool Control command history file that comprises multiple subprogram segments;
Described step (4) specifically comprises the following steps:
(41) digital control system is sent to described resolver by described processing instruction by Message routing mechanism;
(42) the described resolver function corresponding with it according to described processing instruction calls;
(43) described resolver obtains the subroutine name in function;
What described resolver judged described processing application of instruction is the outside Machine-Tool Control order of the order of internal system Machine-Tool Control or system, is specially:
Resolver judges in the inner Machine-Tool Control order of digital control system whether have the control command corresponding with described subroutine name, if having, is the order of internal system Machine-Tool Control, if nothing is the outside Machine-Tool Control order of system.
2. the method that realizes machining control in digital control system by the Machine-Tool Control order of reading system outside according to claim 1, is characterized in that, described each subprogram segment all has subroutine opening flag and end of subroutine sign.
3. the method that realizes machining control in digital control system by the Machine-Tool Control order of reading system outside according to claim 1, it is characterized in that, described resolver calls corresponding Machine-Tool Control order in described outside Machine-Tool Control command set file according to described processing instruction by Message routing mechanism, is specially:
Described resolver calls the corresponding subprogram segment of the subroutine name with described in described outside Machine-Tool Control command set file by Message routing mechanism.
4. according to the method that realizes machining control in digital control system by the Machine-Tool Control order of reading system outside described in any one in claims 1 to 3, it is characterized in that, described processing instruction comprises main shaft enabled instruction, returning to mechanical reference point instruction and mobile main shaft instruction.
CN201210123028.5A 2012-04-24 2012-04-24 Method for realizing processing control by reading external machine tool control command in numerical control system Active CN102621933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210123028.5A CN102621933B (en) 2012-04-24 2012-04-24 Method for realizing processing control by reading external machine tool control command in numerical control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210123028.5A CN102621933B (en) 2012-04-24 2012-04-24 Method for realizing processing control by reading external machine tool control command in numerical control system

Publications (2)

Publication Number Publication Date
CN102621933A CN102621933A (en) 2012-08-01
CN102621933B true CN102621933B (en) 2014-04-16

Family

ID=46561900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210123028.5A Active CN102621933B (en) 2012-04-24 2012-04-24 Method for realizing processing control by reading external machine tool control command in numerical control system

Country Status (1)

Country Link
CN (1) CN102621933B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103129016B (en) * 2013-02-28 2015-02-25 上海维宏电子科技股份有限公司 Control method of numerical control system of bag-sewing machine for realizing high-speed process without needle dragging
CN104907932B (en) * 2015-05-12 2017-08-29 上海维宏电子科技股份有限公司 The method that procedure is handled is realized by dialog mode parameter in numerically control grinder system
CN109426579A (en) 2017-08-28 2019-03-05 西门子公司 The interruption restoration methods of machine tooling file and the lathe for being applicable in this method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0553621B1 (en) * 1992-01-30 1998-05-13 Traub Drehmaschinen GmbH Programmable computer control for a machine tool
CN1936747A (en) * 2006-10-17 2007-03-28 哈尔滨工业大学 Edition-translation type numerical-control system and edition-translation and operation control method of same
CN101226388A (en) * 2008-02-01 2008-07-23 哈尔滨工业大学 Open type software numerical control system
CN101533263A (en) * 2009-02-17 2009-09-16 固高科技(深圳)有限公司 Computer programmable autocontrol system and control method thereof
CN101609321A (en) * 2009-07-24 2009-12-23 上海奈凯电子科技有限公司 A kind of method of utilizing subroutine call to realize machine tool motion control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0553621B1 (en) * 1992-01-30 1998-05-13 Traub Drehmaschinen GmbH Programmable computer control for a machine tool
CN1936747A (en) * 2006-10-17 2007-03-28 哈尔滨工业大学 Edition-translation type numerical-control system and edition-translation and operation control method of same
CN101226388A (en) * 2008-02-01 2008-07-23 哈尔滨工业大学 Open type software numerical control system
CN101533263A (en) * 2009-02-17 2009-09-16 固高科技(深圳)有限公司 Computer programmable autocontrol system and control method thereof
CN101609321A (en) * 2009-07-24 2009-12-23 上海奈凯电子科技有限公司 A kind of method of utilizing subroutine call to realize machine tool motion control

Also Published As

Publication number Publication date
CN102621933A (en) 2012-08-01

Similar Documents

Publication Publication Date Title
CN107786730B (en) Task management method and terminal
CN102621933B (en) Method for realizing processing control by reading external machine tool control command in numerical control system
CN112508763B (en) Laser processing method, laser processing apparatus, and storage medium
CN105302072A (en) Numerical control machine tool processing method capable of eliminating height position difference
CN104281096A (en) Construction method of numerical-control code compiler
CN104907932A (en) Method for achieving machining program processing through conversational parameters in computer numerical control grinding machine system
KR20100068535A (en) Experience-based nc-programming based on machining features
CN104777784B (en) Digital control system for numerically-controlled machine tool
CN103034742A (en) Method for generating devices rapidly
CN105159232A (en) Method and apparatus for processing technological documents
CN202572009U (en) Central coordinate offset compensation system for horizontal type four-shaft linkage processing
CN205673882U (en) A kind of thin-walled parts auxiliary supports clamping device
CN111684374B (en) Numerical control machining method, numerical control machine tool, and computer storage medium
CN101859124B (en) Program control method of pentahedron of numerical control plano milling machine
CN104308370A (en) Quick circular arc cutting method
CN113741348B (en) Machine tool machining system and storage medium
CN103116319B (en) The method that process tool selects control is automatically realized in digital control system
CN113867270B (en) Tool retracting mode capable of being used for five-axis numerical control machine tool
CN101673102B (en) Method for controlling port by PLC in numerically-controlled machine tool system
CN102779036B (en) For the Software tool of automatic technology
CN113238746A (en) Hybrid programming control method, device, equipment and storage medium
CN1936746A (en) Inlaid numerical control system G code interpretative device based on ARM
CN103197595B (en) Machining control method for achieving automatic alternation of tool numbers beyond range in numerical control system
CN104741935A (en) Universal workpiece coordinate system conversion method for rotating table of numerically-controlled machine tool
CN110502862B (en) Auxiliary CAS thickening method and device

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