CN108803494A - The display methods of digital control system M codes - Google Patents

The display methods of digital control system M codes Download PDF

Info

Publication number
CN108803494A
CN108803494A CN201810377184.1A CN201810377184A CN108803494A CN 108803494 A CN108803494 A CN 108803494A CN 201810377184 A CN201810377184 A CN 201810377184A CN 108803494 A CN108803494 A CN 108803494A
Authority
CN
China
Prior art keywords
codes
paragraph
control system
digital control
programs
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810377184.1A
Other languages
Chinese (zh)
Inventor
陈虎
白彦庆
蒋文彬
林猛
方跃炽
李梦莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kede Holding Co Ltd
Dalian Kede Numerical Control Co Ltd
Original Assignee
Kede Holding 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 Kede Holding Co Ltd filed Critical Kede Holding Co Ltd
Priority to CN201810377184.1A priority Critical patent/CN108803494A/en
Publication of CN108803494A publication Critical patent/CN108803494A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/406Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by monitoring or safety
    • G05B19/4068Verifying part programme on screen, by drawing or other means

Abstract

The invention discloses a kind of display methods of digital control system M codes, include the following steps:S1, NC programs are obtained;S2, parsing NC programs show the M codes in M codes display area when being resolved in one section of NC program code containing M codes paragraph by paragraph.M codes display area in the step S2 is located at the regions HMI of digital control system.It is parsed paragraph by paragraph in step S2 in NC program process and highlights the M codes of real time parsing.The M codes obtained by NC programs are parsed in step S2 paragraph by paragraph, is arranged in order and is shown in grid by rear and first sequence with the time.It is limited in grid, after the grid is shown completely, then there are the M codes of real time parsing to need to show, the M codes shown at first can be cancelled display.The case where present invention can be M codes with eye-catching, and understandable mode is shown, and can determine that whether lathe executive condition is correct, the M codes that can also remind the current lathe of operator to execute.

Description

The display methods of digital control system M codes
Technical field
The present invention relates to digital control system HMI interface displays fields, more specifically to a kind of digital control system M codes Display methods.
Background technology
Numerically-controlled machine tool can ensure that processing is accurate, production efficiency is high, the preparatory period is short, save special technological equipment, need Dependent instruction is accurately used in NC programs, wherein miscellaneous function command M code is in the trend of control parts program, Yi Jiji The switch motion of the various miscellaneous functions of bed is just particularly important.The M codes of miscellaneous function are for from NC programs to PLC program Transmit the coding line of information.Miscellaneous function coding line can be accessed global variable as PLC and be transmitted to PLC program by NC programs.It is logical The meaning of normal M codes is determined by PLC.Small part M codes are that digital control system is pre-defined, and user must not use.Numerical control system The processing program of system will all stop the movement instruction to before M codes when running to M codes, waits for PLC to receive M codes and permits Perhaps nc program continues to execute, so in actual processing, the M codes executed to machine tooling are examined closely, observed just It is particularly important, accurately shows that M codes can determine that whether lathe executive condition is correct, can also remind operator, current machine It the case where M codes that bed executes, corrects a mistake promptly, prevents mistake program from continuing.Therefore a kind of digital control system interface is designed Can M codes with eye-catching, understandable mode show be we realize main target.Because system interface needs to be shown Content is more, and a region individually is stored in the display of M codes, and when we execute the program of corresponding NC, operator is according to M The executive condition of code can determine whether lathe executes correct, this has very important meaning to scene processing.
Invention content
The present invention provides a kind of display methods of digital control system M codes to solve the above-mentioned problems, can it is intuitive, eye-catching, The replacement of real-time display M codes can understand the operation shape condition of lathe in time.
In order to achieve the above object, the present invention provides a kind of display methods of digital control system M codes, including walk as follows Suddenly:
S1, NC programs are obtained;
S2, paragraph by paragraph parsing NC programs, when being resolved in one section of NC program code containing M codes, by the M codes in M Code display area is shown.
The display methods of above-mentioned digital control system M codes, under preferred embodiment, in the step S2, M codes display area Positioned at the regions HMI of digital control system.
Under preferred embodiment, NC program process is parsed in the step S2 paragraph by paragraph for the display methods of above-mentioned digital control system M codes It is middle to highlight the M codes of real time parsing.
The display methods of above-mentioned digital control system M codes under preferred embodiment, parses obtained by NC programs paragraph by paragraph in the step S2 M codes, be arranged in order and be shown in grid by rear and first sequence with the time, first row shows real time parsing on the left of the first row M codes.
The display methods of above-mentioned digital control system M codes, it is limited in grid under preferred embodiment, when the grid After display is full, then there are the M codes of real time parsing to need to show, the M codes shown at first can be cancelled display.
M code situations in the NC program segments that the present invention is executed according to today's numerical control system, system interface carry out real-time update The M codes for showing the program segment now executed, are shown on corresponding M code-groups region.And working as in program segment has new M codes to go out Now, it will be shown in grid according to being arranged in order by rear and first sequence, first row is nearest one forever on the left of the first row The M codes of secondary execution, and the last M codes executed highlight, background color is green.
Just whether the present invention can be M codes with eye-catching, and understandable mode is shown, and can determine that lathe executive condition Really, it the case where M codes that can also remind the current lathe of operator to execute, corrects a mistake promptly, prevents mistake program from continuing.
Description of the drawings
Fig. 1 is schematic layout pattern of the M codes display area on the entire interfaces HMI;
Fig. 2 is the flow chart under one embodiment of the present invention;
Fig. 3 is M code update display order figures.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without the implementation that should be illustrated here Example is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the model of the disclosure It encloses and is completely communicated to those skilled in the art.
The flow chart being illustrated in figure 2 under one embodiment of the present invention, a kind of display of digital control system M codes of the present invention Method includes the following steps:
S1, NC programs are obtained;
Digital control system can select to execute local NC programs by program file or program editing function creates NC programs to obtain Take corresponding NC programs.The NC programs obtained in step S1 in the present embodiment are as shown in Fig. 2, include five sections in NC programs, respectively For:
N10, G204;
N20, G28Z0;
N30, G01A0.0F5000;
N40, G216;
N50, T2M006.
S2, paragraph by paragraph parsing NC programs, when being resolved in one section of NC program code containing M codes, by the M codes in M Code display area is shown.
As shown in Figure 1, in the step S2, M codes display area is located at the regions HMI of digital control system.
Specially:Digital control system single hop parses NC programs, and whether judgement single hop NC programs include M codes, are not resolved to such as There are M codes, then parse next section of NC program.If being resolved to certain single hop program contains M codes, the M codes are shown in M codes Show that region is shown.In the present embodiment, M codes M600 is contained in wherein N50 sections.When being resolved to N50 sections, it is resolved to M600 is shown in M codes display area.
It is parsed paragraph by paragraph in the step S2 in NC program process and highlights the M codes of real time parsing.It is described here Highlight, the background color that specially M codes are shown be green.
The M codes obtained by NC programs are parsed in the step S2 paragraph by paragraph, are arranged in order by rear and first sequence with the time aobvious It is shown in grid, first row shows the M codes of real time parsing on the left of the first row.
In the present embodiment, be arranged in order by rear and first sequence with the time be shown in grid, in particular to:The M The grid arrangement window that code display area is the 2*10 being shown on the HMI of digital control system.It is shown as shown in Figure 1 for M codes Schematic layout pattern of the region on the entire interfaces HMI.The M codes M600 being resolved in N50 sections is shown in grid arrangement window The first row on the left of first row position, and background color be green.
" be arranged in order and be shown in grid by rear and first sequence with the time " described above specifically refers to:When solving again When analysing in another section of NC program containing M codes, the M codes being resolved to again are highlighted on M codes display area On the left of the first row on the position of first row, the M codes that the last time is resolved to can be shown in the right for the M codes being resolved to again.
It, can be by being sequentially updated display, newest M from right to left when continuous multiple M codes are resolved to Code is highlighted on always on the left of the first row of M codes display area on the position of first row, and background color is Green.
As shown in figure 3, it is limited in grid, after the grid is shown completely, then there are the M codes of real time parsing to need It shows, the M codes shown at first can be cancelled display.
After given one NC program of digital control system, digital control system can carry out NC programs the deciphering of one-part form, be resolved to If M codes in program segment send new M generations different from the upper M codes of No. 1 position (the first row first row) display of HMI Code is updated display to HMI.Meanwhile the background color of the M codes is green.For showing the code regions M only most on HMI The nearly M code background colors once executed are shown in green, and positioned at the position of the first row of M codes display area left side first row It sets.
M code update display order figures are illustrated in figure 3, if digital control system executes NC program segments, in this section of program M codes it is different from the M codes in last time program segment, then interface is updated, and the sequence according to sequencing from right to left Display.
Digital control system reserved M codes display area show after expiring, when there is new M codes to need to show again, right end Display can be cancelled by being exactly the M codes shown at first, and newest M codes can be shown in most starting end, i.e., first on the left of the first row On the position of row.
Specially:M codes first row (No. 1) position on the left of the first row always that digital control system the last time executes, the back of the body Scape color is always green, and last M codes are there are (No. 2) at secondary series on the left of the first row, and so on, when processing When M code updates 20 times, the second row the tenth is classified as the M codes executed for the first time, when M codes prepare update the 21st time, most end The M codes at end will be deleted, and second from the bottom time newer M codes appear on No. 20 positions of least significant end (the second row the tenth row).
When M codes change in NC program segments, for showing that the region of M codes can be the M in new procedures section on HMI Code is shown on the position of the region 1, and former No. 1 position M code is shown in No. 2 positions, and so on.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Any one skilled in the art in the technical scope of present disclosure, according to the technique and scheme of the present invention and its Inventive concept is subject to equivalent substitution or change, should be covered by the protection scope of the present invention.

Claims (5)

1. a kind of display methods of digital control system M codes, which is characterized in that include the following steps:
S1, NC programs are obtained;
S2, paragraph by paragraph parsing NC programs, when being resolved in one section of NC program code containing M codes, by the M codes in M codes Display area is shown.
2. the display methods of digital control system M codes according to claim 1, which is characterized in that in the step S2, the M Code display area is located at the regions HMI of digital control system.
3. the display methods of digital control system M codes according to claim 1 or claim 2, which is characterized in that in the step S2 paragraph by paragraph The M codes of real time parsing are highlighted in parsing NC program process.
4. the display methods of digital control system M codes according to claim 3, which is characterized in that solved paragraph by paragraph in the step S2 The M codes obtained by NC programs are analysed, is arranged in order and is shown in grid by rear and first sequence with the time, first row on the left of the first row Show the M codes of real time parsing.
5. the display methods of digital control system M codes according to claim 4, which is characterized in that it is limited in grid, After the grid is shown completely, then there are the M codes of real time parsing to need to show, the M codes shown at first can be cancelled display.
CN201810377184.1A 2018-04-25 2018-04-25 The display methods of digital control system M codes Pending CN108803494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810377184.1A CN108803494A (en) 2018-04-25 2018-04-25 The display methods of digital control system M codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810377184.1A CN108803494A (en) 2018-04-25 2018-04-25 The display methods of digital control system M codes

Publications (1)

Publication Number Publication Date
CN108803494A true CN108803494A (en) 2018-11-13

Family

ID=64093868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810377184.1A Pending CN108803494A (en) 2018-04-25 2018-04-25 The display methods of digital control system M codes

Country Status (1)

Country Link
CN (1) CN108803494A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4890234A (en) * 1986-05-15 1989-12-26 Fanuc Ltd. NC data modification method
JPH05100730A (en) * 1991-10-03 1993-04-23 Yaskawa Electric Corp Programming device for motion controller
JPH0619525A (en) * 1992-07-01 1994-01-28 Fanuc Ltd Auxiliary function monitor method for numerical controller
CN101206467A (en) * 2006-12-22 2008-06-25 南京理工大学 Universal numerical control code analysis method
CN102854831A (en) * 2011-06-29 2013-01-02 株式会社捷太格特 Block execution sequence display system
CN104238454A (en) * 2013-06-20 2014-12-24 发那科株式会社 Numerical control unit having screen display switching function following NC program
CN106471430A (en) * 2014-09-03 2017-03-01 山崎马扎克公司 Processor editor's auxiliary device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4890234A (en) * 1986-05-15 1989-12-26 Fanuc Ltd. NC data modification method
JPH05100730A (en) * 1991-10-03 1993-04-23 Yaskawa Electric Corp Programming device for motion controller
JPH0619525A (en) * 1992-07-01 1994-01-28 Fanuc Ltd Auxiliary function monitor method for numerical controller
CN101206467A (en) * 2006-12-22 2008-06-25 南京理工大学 Universal numerical control code analysis method
CN102854831A (en) * 2011-06-29 2013-01-02 株式会社捷太格特 Block execution sequence display system
CN104238454A (en) * 2013-06-20 2014-12-24 发那科株式会社 Numerical control unit having screen display switching function following NC program
CN106471430A (en) * 2014-09-03 2017-03-01 山崎马扎克公司 Processor editor's auxiliary device

Similar Documents

Publication Publication Date Title
US5177420A (en) Method of and apparatus for generating control program
US5555179A (en) Control method and control apparatus of factory automation system
DE112010005023B4 (en) USE OF A PROGRAM CREATION SUPPORT DEVICE FOR CREATE PROGRAMS FOR EQUIPMENT TO BE CONTROLLED
US7603183B1 (en) Editor device and recorded medium on which editor program is recorded
KR101558832B1 (en) Sequence-program debugging assistance apparatus
US9921560B2 (en) Control device, control system, tool device, and collection instruction program
EP1189123B1 (en) Automatic programming and simulation apparatus
US20070244582A1 (en) System for Operating an Installation by Editing Graphic Objects
EP3203334B1 (en) Control device for machine tool
KR101627488B1 (en) Engineering tool, program editing device, and program editing system
US6795748B2 (en) Input method for programming industrial controllers
US20140245256A1 (en) Method and program editor for creating and processing a program for an industrial automation arrangement
US8200362B2 (en) Numerically controlling apparatus with stop point setting and removing means
US10222783B2 (en) Numerical control device, NC machining device, and NC machining method
KR20120085420A (en) Cutting shape input apparatus and method using interactive program in computer numarical control machine tools
KR890002435B1 (en) A numerical control method
US8165863B2 (en) Visualization method for electrical machine operation models based on mechanical machine operation models
CN108803494A (en) The display methods of digital control system M codes
CN111475159B (en) Method, device and storage medium for automatically generating program
US11036617B2 (en) Sequence program processor used for tracing of sequence program
CN111309298B (en) System for realizing processing tool path programming based on custom format file in numerical control system and processing method thereof
JPH0545963B2 (en)
US20220229416A1 (en) Control system, analysis method, and program
JP2537424B2 (en) Control program generator
CA3137626C (en) Computer-implemented method for the computer-aided generation of an executable control program for controlling and/or regulating a technical process

Legal Events

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

Application publication date: 20181113

RJ01 Rejection of invention patent application after publication