CN103792886B - Work procedure decomposition method for toolroom machine - Google Patents

Work procedure decomposition method for toolroom machine Download PDF

Info

Publication number
CN103792886B
CN103792886B CN201410080138.7A CN201410080138A CN103792886B CN 103792886 B CN103792886 B CN 103792886B CN 201410080138 A CN201410080138 A CN 201410080138A CN 103792886 B CN103792886 B CN 103792886B
Authority
CN
China
Prior art keywords
code
standard
customized
instruction
unit
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
CN201410080138.7A
Other languages
Chinese (zh)
Other versions
CN103792886A (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.)
Syntec Technology Suzhou Co Ltd
Original Assignee
SUZHOU XINDAI NUMERICAL CONTROL EQUIPMENT CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUZHOU XINDAI NUMERICAL CONTROL EQUIPMENT CO Ltd filed Critical SUZHOU XINDAI NUMERICAL CONTROL EQUIPMENT CO Ltd
Priority to CN201410080138.7A priority Critical patent/CN103792886B/en
Publication of CN103792886A publication Critical patent/CN103792886A/en
Application granted granted Critical
Publication of CN103792886B publication Critical patent/CN103792886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Numerical Control (AREA)

Abstract

The present invention relates to the work procedure decomposition method for toolroom machine, for machine operations person according to customized standard G out, M code designed by original standard G, M code, replace and typically utilize standard G, M code with external instruction and customized G, M code of needing Additional definitions, and arrange in pairs or groups customized standard G of a set of interpretation, the method for M code, can effectively save the time write needed for processor, so not only increase the convenience of operation, more improve the efficiency of processing, and then promote processing usefulness and reach preferably system stability.

Description

Work procedure decomposition method for toolroom machine
Technical field
The present invention relates to a kind of decomposition method, particularly relate to a kind of work procedure decomposition method for toolroom machine.
Background technology
General workpiece prototype from the beginning is to finally machining, its work flow is, if the external form of initial workpiece prototype 11 is excessively complicated, must be by the assistance of auxiliary software, such as use CAD to draw 12 to draw out and meet the 3D figure of workpiece actual size and use CAM Design and Machining flow process 13 to design the work flow of complete set according to CAD diagram, its whole flow process includes the selection of process tool, machining path selects, distribution of feed rate etc., last these machining paths are changed into numerical control processor 17 that numerical control device can recognize to make finished workpart 18 through post processing 14 the most again.And if the external form of initial workpiece prototype 11 is simple or has certain rule, processor 15 directly can be directly write by machine operations person in order to accelerate throughput rate or saving development cost, and then Continuous optimization processor 16, obtain last numerical control processor 17 to make finished workpart 18.
nullBut,Use the auxiliary software not only costs of idleness such as CAD or CAM,Also may not be certain there is reasonable efficiency,Must directly be write processor by machine operations person under in this respect,Generally machine operations person can use G、M code or other instruction describe processor,And the operation intuition of the machine operations person that arranges in pairs or groups compiles processor,But the process that reality performs processing often can produce repeated action,Such as when using index dial board to carry out halving hole boring, its processor writes as shown in Figure 2,Machine operations person must intuitively determine when this with latch locking index dial (M11),To guarantee that adding rotary shaft position in man-hour maintains static,Also must intuitively determine when this to unplug latch and unclamp index dial (M10),To carry out the action of rotary shaft location,Therefore in processor, write the most complicated Machining Instruction unclamping (M10) and locking (M11) index dial,In reality application quite inconvenient.
In view of the inconvenience of aforesaid operations and in order to avoid repeating unclamping and locking instruction input of index dial location, there is the experience person can be by G00 and M11 in processor, M10 is packaged into a grand or subprogram, it is rewritten into shown in Fig. 3 and simplifies halving hole Drilling operation program schematic diagram with grand (subprogram) programming, programming is simplified in the way of mastery routine 31 is plus the subprogram 32 of G100, but G100 is only general customized G code and non-standard G code must additionally go to define G100, may will transducer set literary style if procedure of processing have modified, for machine operations person and cannot effectively save the time write needed for processor.
In sum, how in the instruction of original standard G or standard M code, design and meet customized G or customized M code that toolroom machine is suitable for promote programming efficiency, be the critically important production capacity index of machine operations person.
Summary of the invention
It is an object of the invention to the deficiency overcoming prior art to exist, it is provided that a kind of work procedure decomposition method for toolroom machine.
The purpose of the present invention is achieved through the following technical solutions:
For the work procedure decomposition method of toolroom machine, feature is:
Load one of be intended to execution of user and there is the work procedure of plural row processing single-unit instruction;
Line by line read row processing single-unit instruct and is interpreted, and record one of current reading processing single-unit instruct belonging to level be a mastery routine or be a subprogram;
Judge that the processing single-unit read at present instruction has comprised a standard G code or a standard M code the most, if the determination result is YES, then enter standard G code or the interpretation flow process of standard M code and proceed next step, if judged result is no, then enter the interpretation that the processing single-unit beyond standard G code or standard M code instructs;
Judge that the level belonging to processing single-unit instruction of at present reading is mastery routine or as subprogram, this step comprises further:
When processing the level belonging to single-unit instruction and being mastery routine, judge to process the standard G code contained by single-unit instruction or whether standard M code logs on as a customized standard G code or a customized standard M code, if the determination result is YES, then calling loading represent customized standard G code or a subprogram of customized standard M code further, then the processing single-unit starting to read in subprogram line by line instructs and is interpreted, if judged result is no, then carry out general standard G code or the interpretation of M code;And
When processing the level belonging to single-unit instruction and being subprogram, judge that subprogram has been customized standard G code or customized standard M code the most in advance, if the determination result is YES, the standard G code contained by processing single-unit instruction that then will read at present or standard M code carry out general standard G code or the interpretation of M code, if judged result is no, row judges to process the standard G code contained by single-unit instruction or whether standard M code logs on as a customized standard G code or a customized standard M code again, if the determination result is YES, then calling loading represent customized standard G code or a subprogram of customized standard M code further, then the processing single-unit starting to read in subprogram line by line instructs and is interpreted, if judged result is no, then carry out general standard G code or the interpretation of M code;And
Judge to process whether single-unit instruction is an EP (end of program) instruction, when processing single-unit instruction instructs for EP (end of program), instruct or be the EP (end of program) instruction of a subprogram according to the EP (end of program) that level determination procedure END instruction is a mastery routine belonging to processing single-unit instruction.
Further, the above-mentioned work procedure decomposition method for toolroom machine, when the EP (end of program) instruction that EP (end of program) instruction is a subprogram, the mastery routine returning to last layer level the most further continues interpretation.
Further, the above-mentioned work procedure decomposition method for toolroom machine, represent the subroutine pack of customized standard G code or customized standard M code containing the macroprogram meeting logical grammar.
Yet further, the above-mentioned work procedure decomposition method for toolroom machine, after entering the step of the interpretation that the processing single-unit beyond standard G code or standard M code instructs, continues to read time a line processing single-unit and instructs and be interpreted.
Substantive distinguishing features and significantly progress that technical solution of the present invention is prominent are mainly reflected in:
The present invention is directed to machine operations person according to customized standard G out, M code designed by original standard G, M code, replace and typically utilize standard G, M code with external instruction and customized G, M code of needing Additional definitions, and arrange in pairs or groups customized standard G of a set of interpretation, the method for M code, can effectively save the time write needed for processor, so not only increase the convenience of operation, more improve the efficiency of processing, and then promote processing usefulness and reach preferably system stability.
Accompanying drawing explanation
Below in conjunction with the accompanying drawings technical solution of the present invention is described further:
Fig. 1: background technology work flow schematic diagram;
Fig. 2: background technology halving hole Drilling operation program schematic diagram;
Fig. 3: background technology simplifies halving hole Drilling operation program schematic diagram with grand (subprogram) programming;
Fig. 4: the present invention is for the decomposition method flow chart of toolroom machine;
Fig. 5: standard G code of the present invention or the interpretation flow chart of standard M code;
The mastery routine of Fig. 6: the present invention customized standard G code or customized standard M code and grand schematic diagram.
Detailed description of the invention
Such as Fig. 4, for the work procedure decomposition method flow process of toolroom machine, for machine operations person according to customized standard G out designed by original standard G or standard M code or customized standard M code, it is provided that customized standard G of a set of interpretation, the flow process of M code.Comprise the following steps:
Step 40: load the work procedure that user to be performed;Its work procedure has the processing single-unit instruction of plural row, a work procedure loading is available for toolroom machine action and processes operation with execution, subsequently enter step 41;
Step 41: read the work procedure to be performed line by line and proceed by interpretation, and this level belonging to row work procedure recording reading at present is mastery routine or is subprogram, subsequently enters step 42;
Step 42: read in the processing single-unit instruction of single file work procedure;This step mainly reads a wherein processing single-unit instruction of plural number row processing single-unit instruction in work procedure, subsequently enters step 43;
Step 43: judge that the processing single-unit read at present instruction has comprised a standard G code or a standard M code the most, if the determination result is YES, then continue step 44 and enter the interpretation flow process of standard G code or standard M code, if judged result is no, then enters step 45 and carry out the interpretation of the processing single-unit instruction beyond standard G or standard M code;
Step 44: enter standard G code or the interpretation flow process of standard M code;This flow process is primarily directed to the interpretation flow process of the most customized standard G or the offer of standard M code as shown in Figure 5;
Step 45: carry out the interpretation that the processing single-unit beyond standard G or standard M code instructs;Described processing single-unit instructs in addition to standard G or standard M code, also include other processing single-unit instruction or general customized G, M code of non-standard G or non-standard M code, this step has i.e. represented the interpretation of this row after completing, then will read time a line work procedure and proceed interpretation;
Step 46: when reading to this row processing single-unit instruction instructs for EP (end of program), judge that its EP (end of program) instruction system represents mastery routine and terminates or as end of subroutine according to the level belonging to the processing single-unit instruction of this row, if judging, this level belonging to row work procedure is that subprogram i.e. represents its EP (end of program) instruction system and represents the end of subprogram, then need to skip to step 47 and return to the mastery routine continuation interpretation of last layer level, if judging, this level belonging to row work procedure is that mastery routine i.e. represents its EP (end of program) instruction system and represents the end of mastery routine, then skip to final step 48 and judge that explanation completes;
Step 47: return to last layer level;The last layer level of this step indication refers to return to the level of mastery routine, when this row processing single-unit instruction belonging to level be subprogram represent mastery routine not yet complete interpretation, it is necessary to jump back to last layer level continue mastery routine interpretation;
Step 48: explained, i.e. represents mastery routine and has terminated the interpretation of the whole work procedure to be processed.
Such as Fig. 5, the interpretation flow process of standard G code or standard M code, the interpretation flow process provided for the most customized standard G, M code, in above-mentioned flow process, step 44 enters the interpretation flow process of standard G code or standard M code, comprises the steps of further
Step 440: judge that the level belonging to this row read at present processing single-unit instruction is mastery routine or subprogram, when the level belonging to the processing single-unit instruction of this row is mastery routine, then skip to step 441 proceed, and when the level belonging to the processing single-unit instruction of this row is subprogram, then skips to step 442 and proceed;
Step 441: when the level belonging to the processing single-unit instruction of this row is mastery routine, is directly entered step 443 and judges whether this row processing contained standard G code of single-unit instruction or standard M code log on as a customized standard G code or a customized standard M code;
Step 442: when the level belonging to the processing single-unit instruction of this row is subprogram, enters step 446 and continue to judge that subprogram has been customized standard G code or customized standard M code the most;
Step 443: judge to process the standard G code contained by single-unit instruction or whether standard M code logs on as customized standard G code or customized standard M code, if the determination result is YES, then entrance step 445 calls further and is loaded into and represents customized standard G code or a subprogram of customized standard M code, if judged result is no, then skips to step 444 and carry out general standard G code or the interpretation of standard M code;The customized standard G code being loaded in this step or the subprogram of customized standard M code also can be considered a work procedure, the most also need to be interpreted this subprogram further, and its interpretation mode must be interpreted as mastery routine line by line;
Step 444: general standard G code or the interpretation of standard M code;This step i.e. represents standard G code after completing or the interpretation of standard M code terminates, then can skip to step 45 and continue executing with the interpretation carrying out the processing single-unit instruction beyond standard G or standard M code;
Step 445: be loaded into customized standard G code or the subprogram of customized standard M code;The subprogram of described customized standard G code or customized standard M code can also be the macroprogram using and containing logical grammar;
Step 446: judge that subprogram has been customized standard G code or customized standard M code the most, if the determination result is YES, then carry out step 444 and this row read at present processing contained standard G code of single-unit instruction or standard M code are carried out general standard G code or the interpretation of M code, if judged result is no, then can skip to step 443 and continue follow-up judgement.
The decomposition method of toolroom machine it is used for through the present invention, can be for machine operations person according to customized standard G out, M code designed by original standard G, M code, customized standard G of a set of interpretation, the method for M code are provided, the process requirements of various board can be reached, and the easiest on processor is write, the efficiency of processing can be improved.
As a example by the application of index dial, such as Fig. 6, the mastery routine of customized standard G code or customized standard M code and grand schematic diagram, first, standard G code G00 Yu G01 is logged on as customized standard G code, and newly-increased G00 with G01 two is grand, the grandest literary style is such as in the 6th figure 61, shown in 62, it is further assumed that control at present axially has X, Y, Z, C, wherein C represents rotary shaft, using C as decision instruction in grand, represent the grand customized standard G code for rotary shaft positioning instruction of G00 Yu G01 two, whether automatic decision carries out rotary shaft location, if there being the instruction judging C, then descend M11 to carry out locking index dial, if without the instruction judging C, then descend M10 to carry out unclamping index dial.Customized through standard G code G00 with G01, automatically index dial is unclamped when carrying out rotary shaft location, and positioned rear auto lock index dial, thus, machine operations person avoids the need for complicated writing and unclamps (M10) and locking (M11) index dial Machining Instruction when writing processor, processor just can simplify such as the literary style of mastery routine in Fig. 6, if the orientation angle of customized standard G code G00 Yu G01 collocation rotary shaft C read in mastery routine, i.e. can determine that and carry out unclamping and locking action of index dial, therefore can effectively save the time write needed for processor, and production efficiency can be substantially improved.
The present invention may be applied not only in index dial, still can be applicable to all eurypalynous machine tables, such as: discharging processing machine and woodwork cut-off machine, first for discharging processing machine, adding man-hour because electric discharge can accumulate processing bits actual, so cleanup action being backed out again to carry out after the segment distance that must constantly advance, but this action is regular, as long as the good customized standard G code of matching design is grand, just can effectively simplify processor;Additionally, for woodwork cut-off machine, the cutter of general cutting machine is great film, it can only tangentially coordinate G01(straight cuts), G02(clockwise arc cutting), G03(counterclockwise arc cutting) cut, therefore when cutting, the direction of cutter must coordinate rotation, but cutter can not rotate moment, it is necessary to first rotates after griffing and descends cutter again, if therefore the grand instruction rotated of arranging in pairs or groups of G01, G02, G03 can be designed through customized standard G code, also by many for facility on using.
In sum, the present invention is directed to machine operations person according to customized standard G out, M code designed by original standard G, M code, replace and typically utilize standard G, M code with external instruction and customized G, M code of needing Additional definitions, and arrange in pairs or groups customized standard G of a set of interpretation, the method for M code, can effectively save the time write needed for processor, so not only increase the convenience of operation, more improve the efficiency of processing, and then promote processing usefulness and reach preferably system stability.
It is to be understood that: the above is only the preferred embodiment of the present invention; for those skilled in the art; under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (2)

1. for the work procedure decomposition method of toolroom machine, it is characterised in that:
Load the work procedure with the processing single-unit instruction of plural row that user to be performed;
Read row processing single-unit line by line to instruct and be interpreted, and record the level belonging to processing single-unit instruction read at present It is a mastery routine or is a subprogram;
Judge that the processing single-unit read at present instructs and the most comprised a standard G code or a standard M code, if the determination result is YES, Then enter standard G code or the interpretation flow process of standard M code and proceed next step, if judged result is no, then entering standard The interpretation of the processing single-unit instruction beyond G code or standard M code;
Judge that the level belonging to processing single-unit instruction of at present reading is mastery routine or as subprogram, this step comprises further: When processing the level belonging to single-unit instruction and being mastery routine, it is judged that standard G code or standard M code contained by processing single-unit instruction are No log on as a customized standard G code or a customized standard M code, if the determination result is YES, call the most further and be loaded into Represent customized standard G code or a subprogram of customized standard M code, then start the processing single-unit reading in subprogram line by line Instruct and be interpreted, if judged result is no, then carry out general standard G code or the interpretation of M code;
And when processing the level belonging to single-unit instruction and being subprogram, judge in advance subprogram be the most customized standard G code or Customized standard M code, if the determination result is YES, then the standard G code contained by processing single-unit instruction that will read at present or standard M code carries out general standard G code or the interpretation of M code, if judged result is no, then row judges the mark contained by processing single-unit instruction Whether quasi-G code or standard M code log on as a customized standard G code or a customized standard M code, if the determination result is YES, Then calling loading represent customized standard G code or a subprogram of customized standard M code further, then start to read line by line Processing single-unit in subprogram instructs and is interpreted, if judged result is no, then carries out general standard G code or the interpretation of M code ;
And enter the interpretation that the processing single-unit beyond standard G code or standard M code instructs, continue to read time a line processing single-unit and instruct And be interpreted;
And judge to process whether single-unit instruction is an EP (end of program) instruction, when processing single-unit instruction and instructing for EP (end of program), foundation The EP (end of program) that level determination procedure END instruction is a mastery routine belonging to processing single-unit instruction instructs or is the program of a subprogram END instruction;
And when the EP (end of program) instruction that EP (end of program) instruction is a subprogram, the mastery routine returning to last layer level the most further continues Continuous interpretation.
Work procedure decomposition method for toolroom machine the most according to claim 1, it is characterised in that: represent customized standard The subroutine pack of G code or customized standard M code is containing the macroprogram meeting logical grammar.
CN201410080138.7A 2014-03-06 2014-03-06 Work procedure decomposition method for toolroom machine Active CN103792886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410080138.7A CN103792886B (en) 2014-03-06 2014-03-06 Work procedure decomposition method for toolroom machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410080138.7A CN103792886B (en) 2014-03-06 2014-03-06 Work procedure decomposition method for toolroom machine

Publications (2)

Publication Number Publication Date
CN103792886A CN103792886A (en) 2014-05-14
CN103792886B true CN103792886B (en) 2016-08-24

Family

ID=50668677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410080138.7A Active CN103792886B (en) 2014-03-06 2014-03-06 Work procedure decomposition method for toolroom machine

Country Status (1)

Country Link
CN (1) CN103792886B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3192381B2 (en) * 1996-11-20 2001-07-23 本田技研工業株式会社 Copy processing method
JP2000084794A (en) * 1998-09-14 2000-03-28 Makino Milling Mach Co Ltd Machining device
JP2006068901A (en) * 2005-11-16 2006-03-16 Makino Milling Mach Co Ltd Machine tool controller
CN101206473A (en) * 2006-12-20 2008-06-25 仁安资讯科技股份有限公司 Monitoring system for monitoring production of CNC tool machine and method thereof
CN102707671A (en) * 2012-05-29 2012-10-03 苏州新代数控设备有限公司 Processing path optimization method applied to machine tool
CN102654760B (en) * 2012-05-29 2014-06-18 苏州新代数控设备有限公司 Numerical value control method for machine tool

Also Published As

Publication number Publication date
CN103792886A (en) 2014-05-14

Similar Documents

Publication Publication Date Title
CN102667650B (en) Numerical control machine tool
US9962800B2 (en) Tool changer of machine tool
CN101763072A (en) Conversion method and device of numerical control machining code
JP4247264B2 (en) Machine tool controller
CN108027606A (en) Processing resets implementation method, compiler, robot, digital control system and lathe
CN103792886B (en) Work procedure decomposition method for toolroom machine
US10656611B2 (en) Programmable controller
JP5800869B2 (en) Numerical control device with program restart function
CN108829027A (en) Execute program creating method and its device, medium, terminal
TWI496638B (en) Milling complex processing machine and the encoding method of its cutting tools
JPH11170117A (en) Controlling method and device for moving spindle of machine tool
US6988019B2 (en) Machine tool control process and apparatus therefor
JPH04367906A (en) Numerical controller
TWI501059B (en) Machining program interpretation method for machine tool
JP5353747B2 (en) Control program creation device
JP2012198775A (en) Robot programming device and method
CN113641148A (en) Woodworking processing system and multi-surface woodworking processing method thereof
JP2008204410A (en) Numerical control device, control program and storage medium
JP3571093B2 (en) Wire cut electric discharge machining method and apparatus
JP2004348448A (en) Device and method of numerical control for machine tool
JPH01189704A (en) Numerical controller
WO2023002618A1 (en) Screen creation device and computer-readable storage medium
CN201309106Y (en) Dialog window interface system device of inner-outer circular mill
WO2023058085A1 (en) Numerical control device
CN116243656A (en) UG post-processing file secondary development method, readable storage medium and electronic 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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215000 Chunhui Road, Suzhou Industrial Park, Jiangsu Province

Patentee after: New Generation Science and Technology (Suzhou) Co., Ltd.

Address before: 215021 Xinsu Industrial Park, No. 5 Xinghan Street, Suzhou City, Jiangsu Province

Patentee before: Suzhou Xindai Numerical Control Equipment Co., Ltd.