CN103294008B - Single channel and multichannel method for handover control in a kind of digital control system - Google Patents

Single channel and multichannel method for handover control in a kind of digital control system Download PDF

Info

Publication number
CN103294008B
CN103294008B CN201310246945.7A CN201310246945A CN103294008B CN 103294008 B CN103294008 B CN 103294008B CN 201310246945 A CN201310246945 A CN 201310246945A CN 103294008 B CN103294008 B CN 103294008B
Authority
CN
China
Prior art keywords
hyperchannel
decoding
data
control
single channel
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
CN201310246945.7A
Other languages
Chinese (zh)
Other versions
CN103294008A (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.)
GUANGZHOU NUMERICAL CONTROL AND INFORMATION TECHNOLOGY Co Ltd
Original Assignee
GUANGZHOU NUMERICAL CONTROL AND INFORMATION TECHNOLOGY 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 GUANGZHOU NUMERICAL CONTROL AND INFORMATION TECHNOLOGY Co Ltd filed Critical GUANGZHOU NUMERICAL CONTROL AND INFORMATION TECHNOLOGY Co Ltd
Priority to CN201310246945.7A priority Critical patent/CN103294008B/en
Publication of CN103294008A publication Critical patent/CN103294008A/en
Application granted granted Critical
Publication of CN103294008B publication Critical patent/CN103294008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses single channel and multichannel method for handover control in a kind of digital control system, comprise the following steps: be provided with some to hyperchannel identifier and hyperchannel full stop in CNC parts program, CNC parts program between often pair adopts multi-way contral, decoding is carried out to it, after decoding completes, decoding data is filled in the data buffer of respective channel; The buffered data of each passage reads by order, carries out the preparation before interpolation; After the preliminary work of all passages completes, then the taking-up of the data of each passage is carried out the amount of exercise that namely interpolation calculates each axle by order, exports this amount of exercise to exterior mechanical control device; CNC parts program not between paired hyperchannel identifier and hyperchannel full stop adopts single channel control; Finally judge input CNC parts program whether decoding is complete, if not, repeat above-mentioned steps, if complete, exit control.The present invention can realize arbitrarily switching list, multi-way contral, and usable range is wide, cost is low.

Description

Single channel and multichannel method for handover control in a kind of digital control system
Technical field
The present invention relates to numerical controlled machinery and control research field, particularly single channel and multichannel method for handover control in a kind of digital control system.
Background technology
Numeric Control Technology is the technology controlled mechanical motion and process by numerical information, it is the basic technology of the modern manufacturing industry traditional Machine Manufacturing Technology, computer technology, modern control technology and sensing detection technology are integrated in one, and has the features such as high precision, high-level efficiency, flexible automation.The application of Numeric Control Technology not only brings revolutionary change to traditional manufacture, manufacturing industry is made to become industrialized symbol, and along with the development of Numeric Control Technology and the expansion of application, play a part more and more important to the development of some important industries of national economy.
Along with machine industry constantly increases part variation and the Composite demand of processing technology, become the important technology feature of Numeric Control Technology towards the multiaxis of Compound Machining, multi-way contral.In digital control system, so-called single channel can only run a program at synchronization exactly, flow process as shown in Figure 1, control method comprises a master routine, preprocessing tasks module and several runs task module, interrupt module, idiographic flow: when after the parts program triggering single channel track, present procedure operation enters preprocessing tasks module and carries out decoding, then the data after decoding are delivered to runs task module, the preparation before interpolation is carried out in the initialization carrying out data, real-time control module is started according to the data that systematic analysis obtains, real-time control module carries out data interpolation according to the operational mode of runs task module, and export each axle service data.
And hyperchannel essence is parallel processing, it can make multiple program run at synchronization simultaneously or run respectively, is independent of each other.But existing multichannel technology, as shown in Figure 2, the task program part in its software component elements all needs to increase the individual identical task process of n, and the priority of each task is different.General flow is: after selecting the program of certain several passage, operating system enters into the preprocessing tasks decoding of respective channel according to passage preprocessing tasks priority level, data after decoding deliver to operation task, operation task enters according to priority level height, initialization process is carried out to data and starts real-time control module function, real-time control module function order carries out interpolation to the data of each passage, exports the service data of each channel axis.
And this kind of multi-channel method needs each passage to increase a set of task process, more pressure and the difficulty adding digital control system scheduling of task quantity; Simultaneously each passage must have the cutter complement certificate of a set of correspondence, warning message, parameter and G, F signal etc., this also just adds the workload of stability of amendment software code, testing software framework, cause construction cycle, validation test cycle long, simultaneously binary channels control technology is all generally realize in high-grade digital control system, has that usable range is narrow, high in cost of production shortcoming.
Therefore, how in less change software code situation, to realize multi-way contral fast and become the problem that has actual application value.
Summary of the invention
Fundamental purpose of the present invention is that the shortcoming overcoming prior art is with not enough, single channel and multichannel method for handover control in a kind of digital control system are provided, the method is based on the secondary development that single channel numerical control structure is carried out, single channel and multichannel random switching control can be realized fast, and do not need to increase hardware cost.
Object of the present invention is realized by following technical scheme: single channel and multichannel method for handover control in a kind of digital control system, and the method comprises the following steps:
(1) for input, not yet carry out decoding, the CNC parts program that comprises several passage running orbits, be introduced into preprocessing tasks and start decoding, be provided with some to hyperchannel identifier and hyperchannel full stop in CNC parts program, once there is hyperchannel identifier in decode procedure, then thinking current is multi-way contral, enters step (2); If no, then think single channel control, enter step (5);
(2) decoding is carried out to all CNC parts programs after this hyperchannel identifier and its between first hyperchannel full stop, to be decoded complete after, decoding data is filled in the data buffer of respective channel, then enters step (3);
(3) start hyperchannel scheduling controlling i.e. order the buffered data of each passage is read, carry out the preparation before interpolation: distribute the total amount of movement of each axle, data assignment interpolation used or clearing; Then step (4) is entered;
(4) after the preliminary work of all passages completes, then the taking-up of the data of each passage is carried out interpolation by order, namely calculates the amount of exercise of each axle, exports this amount of exercise to exterior mechanical control device; Then step (6) is entered;
(5) single pass control: by before this hyperchannel identifier, the CNC parts program of not yet decoding carries out decoding, decoding data is filled in data buffer, decoding data is read when running, carry out the preparation before interpolation, then carry out interpolation, export the amount of exercise of each axle to exterior mechanical control device; Then step (6) is entered;
(6) judge input CNC parts program whether decoding is complete, if not, get back to step (1), if complete, exit control.
Preferably, the hyperchannel identifier in described CNC parts program and hyperchannel full stop automatically generate when automatically generating the program of multi-way contral.Such as automatically can generate in editor's hyperchannel program guide, also can manually input in certain reality.
Preferably, in described step (2) and (5), data buffer area when data buffer area during multi-way contral and single channel control is diverse location.Be convenient to like this switch at any time.
Compared with prior art, tool has the following advantages and beneficial effect in the present invention:
1, control method of the present invention implements on the hardware and software platform that relies at single-channel control, and it is open to carry out secondary, shortens exploitation and the cycle of test, can realize arbitrarily switching list, multi-way contral, and usable range is wide, cost is low.
2, need to increase a set of task process compared to each passage in existing multi-channel method, task quantity is more, and the task quantity wanted required for the present invention is few, decreases the pressure of digital control system scheduling, reduces the instability that software may occur.
Accompanying drawing explanation
Fig. 1 is single-channel control process flow diagram in prior art.
Fig. 2 is multi-way contral method flow diagram in prior art.
Fig. 3 is the inventive method process flow diagram.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited thereto.
Embodiment 1
As shown in Figure 3, single channel and multichannel method for handover control in a kind of digital control system, comprise the following steps:
(1) for input, not yet carry out decoding, the CNC parts program that comprises several passage running orbits, be introduced into preprocessing tasks and start decoding, be provided with some to hyperchannel identifier and hyperchannel full stop in CNC parts program, once there is hyperchannel identifier in decode procedure, then thinking current is multi-way contral, enters step (2); If no, then think single channel control, enter step (5);
(2) decoding is carried out to all CNC parts programs after this hyperchannel identifier and its between first hyperchannel full stop, to be decoded complete after, decoding data is filled in the data buffer of respective channel, then enters step (3);
(3) start hyperchannel scheduling controlling i.e. order the buffered data of each passage is read, carry out the preparation before interpolation: distribute the total amount of movement of each axle, data assignment interpolation used or clearing; Then step (4) is entered;
(4) after the preliminary work of all passages completes, then the taking-up of the data of each passage is carried out the amount of exercise that namely interpolation calculates each axle by order, exports this amount of exercise to exterior mechanical control device; Then step (6) is entered;
(5) single pass control: by before this hyperchannel identifier, the CNC parts program of not yet decoding carries out decoding, decoding data is filled in data buffer, decoding data is read when running, carry out the preparation before interpolation, then carry out interpolation, export the amount of exercise of each axle to exterior mechanical control device; Then step (6) is entered;
(6) judge input CNC parts program whether decoding is complete, if not, get back to step (1), if complete, exit control.
Described CNC parts program can be artificial programming, also can be automatic generation, in order to be more convenient for accelerating program speed, reduce human error, the present embodiment automatically generates the program of multi-way contral wherein, the program generated, wherein containing hyperchannel identifier and hyperchannel full stop, is automatically generate when automatically generating the program of multi-way contral.
In the present embodiment, data buffer area when data buffer area during multi-way contral and single channel control is diverse location.Be convenient to like this switch at any time.
Because only have program to be that user can at will revise in existing digital control system, content in other operation interface, if cutter benefit, warning, parameter etc. are fixing, and these fixing operation interface display when these operation interfaces of single channel control and multi-way contral are different, and be mend to show cutter with single channel in the present embodiment, warning, parameter etc.Reason is as follows:
1, standard single pass software only has a set of cutter complement certificate, the interfaces such as warning message, and the interface such as each passage of standard Multichannel software has the cutter complement certificate of a set of correspondence, warning, such user just knows the interface of current operation which passage corresponding very much, amendment and search operation simple and clear.But which increase software code amount and occupy hardware memory space.
2, according to standard Multichannel software, each passage will increase the cutter complement certificate of a set of correspondence, the information such as warning.If when program is switched to single channel, and multichannel cutter complement certificate, the display interface of each passages such as warning still exists, and may cause confusion like this when single channel control for searching of information such as parameter, cutter benefit, warnings.
3, standard single pass software is adopted to be used for showing the information such as cutter benefit, warning, the information processings such as multichannel cutter benefit, warning following (mending data instance with cutter to illustrate): by the cutter complement of all axles according to the interface that is placed on according to numeric order, set up cutter complement according to this after, the cutter information of mending according to the axle used calling single channel or multi-way contral, can join in the middle of corresponding axis information by software.Which reduce software code amount, and can realize sharing with single pass.
Above-described embodiment is the present invention's preferably embodiment; but embodiments of the present invention are not restricted to the described embodiments; change, the modification done under other any does not deviate from Spirit Essence of the present invention and principle, substitute, combine, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.

Claims (3)

1. single channel and a multichannel method for handover control in digital control system, is characterized in that, comprise the following steps:
(1) for input, not yet carry out decoding, the CNC parts program that comprises several passage running orbits, be introduced into preprocessing tasks and start decoding, be provided with some to hyperchannel identifier and hyperchannel full stop in CNC parts program, once there is hyperchannel identifier in decode procedure, then thinking current is multi-way contral, enters step (2); If no, then think single channel control, carry out step (5);
(2) decoding is carried out to all CNC parts programs after this hyperchannel identifier and its between first hyperchannel full stop, to be decoded complete after, decoding data is filled in the data buffer of respective channel, then enters step (3);
(3) start hyperchannel scheduling controlling i.e. order the buffered data of each passage is read, carry out the preparation before interpolation: distribute the total amount of movement of each axle, data assignment interpolation used or clearing; Then step (4) is entered;
(4) after the preliminary work of all passages completes, then the taking-up of the data of each passage is carried out the amount of exercise that namely interpolation calculates each axle by order, exports this amount of exercise to exterior mechanical control device; Then step (6) is entered;
(5) single pass control: by before this hyperchannel identifier, the CNC parts program of not yet decoding carries out decoding, decoding data is filled in data buffer, decoding data is read when running, carry out the preparation before interpolation, then carry out interpolation, export the amount of exercise of each axle to exterior mechanical control device; Then step (6) is entered;
(6) judge input CNC parts program whether decoding is complete, if not, get back to step (1), if complete, exit control.
2. single channel and multichannel method for handover control in digital control system according to claim 1, is characterized in that, the hyperchannel identifier in described CNC parts program and hyperchannel full stop automatically generate when automatically generating the program of multi-way contral.
3. single channel and multichannel method for handover control in digital control system according to claim 1, it is characterized in that, in described step (2) and (5), data buffer area when data buffer area during multi-way contral and single channel control is diverse location.
CN201310246945.7A 2013-06-19 2013-06-19 Single channel and multichannel method for handover control in a kind of digital control system Active CN103294008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310246945.7A CN103294008B (en) 2013-06-19 2013-06-19 Single channel and multichannel method for handover control in a kind of digital control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310246945.7A CN103294008B (en) 2013-06-19 2013-06-19 Single channel and multichannel method for handover control in a kind of digital control system

Publications (2)

Publication Number Publication Date
CN103294008A CN103294008A (en) 2013-09-11
CN103294008B true CN103294008B (en) 2015-10-28

Family

ID=49095075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310246945.7A Active CN103294008B (en) 2013-06-19 2013-06-19 Single channel and multichannel method for handover control in a kind of digital control system

Country Status (1)

Country Link
CN (1) CN103294008B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486037B (en) * 2014-12-12 2018-02-13 东莞市奥普特自动化科技有限公司 A kind of multi-functional communication means
CN112327759B (en) * 2020-10-21 2021-12-28 苏州谷夫道自动化科技有限公司 Method and system for synchronizing channels of multi-channel numerical control system
CN113110304A (en) * 2021-03-13 2021-07-13 无锡信捷电气股份有限公司 Multi-channel sport

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2013804C1 (en) * 1991-04-03 1994-05-30 Харьковское приборостроительное конструкторское бюро "Авиаконтроль" Multichannel priority device
CN1350365A (en) * 2000-12-11 2002-05-22 武汉大学 Multichannel digital automatic gain control method and controller
CN1624612A (en) * 2004-12-02 2005-06-08 齐放 Modularization built-in digital control system
CN2783386Y (en) * 2004-12-02 2006-05-24 齐放 Modularized embedded type digital control system
CN201335969Y (en) * 2008-11-07 2009-10-28 湖北三环锻压设备有限公司 Multi-axis control system based on biaxial numerical control system of guillotine shear

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2013804C1 (en) * 1991-04-03 1994-05-30 Харьковское приборостроительное конструкторское бюро "Авиаконтроль" Multichannel priority device
CN1350365A (en) * 2000-12-11 2002-05-22 武汉大学 Multichannel digital automatic gain control method and controller
CN1624612A (en) * 2004-12-02 2005-06-08 齐放 Modularization built-in digital control system
CN2783386Y (en) * 2004-12-02 2006-05-24 齐放 Modularized embedded type digital control system
CN201335969Y (en) * 2008-11-07 2009-10-28 湖北三环锻压设备有限公司 Multi-axis control system based on biaxial numerical control system of guillotine shear

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
siemens840D在多轴多通道数控机床中常用功能的开发应用;胡国清;《制造技术与机床》;20041102(第11期);第107-111页 *
数控机床精加工程序译码方法的研究;谭斌;《产业与科技论坛》;20120430;第11卷(第8期);第87-88页 *

Also Published As

Publication number Publication date
CN103294008A (en) 2013-09-11

Similar Documents

Publication Publication Date Title
CN100465838C (en) New style open type numerical control system realizing method based on multiple CPU parallel processing technology
CN103294008B (en) Single channel and multichannel method for handover control in a kind of digital control system
Cook et al. An exact rational mixed-integer programming solver
CN105808799A (en) Universal test software in RTX (Real-Time eXecutive) environment and test method for universal test software
Safaieh et al. A novel methodology for cross-technology interoperability in CNC machining
CN103941650A (en) Logic and movement integrated controller
CN101853205A (en) Method and apparatus for monitoring the running of program
Xu et al. Research and development of open CNC system based on PC and motion controller
Yusof et al. New technique for the interpretation of ISO 14649 and 6983 based on open CNC technology
CN101776879A (en) Method for returning to mechanical reference point in numerical control machine tool system
CN102081378A (en) Method and device for converting universal code based on macroprogram
CN110244688A (en) Meter bus panel automatic generation method and its system based on LabVIEW
CN104238438A (en) PLC universal platform and design method thereof
CN107664982A (en) A kind of method optimized using smooth cutting power as target to cutter path
CN102354154B (en) Real-time kernel chip of open numerical control system
CN101866373A (en) Execution monitor for electronic design automation
Bayrak et al. Comparison of a transformed Matlab/Simulink model into the programming language CFC on different IEC 61131-3 PLC environments
CN102004666A (en) Large-scale computer operation scheduling equipment and system
CN113741411B (en) Generation method and system of global variable point product file of distributed control system
Pritschow et al. Open system architecture for drives
CN103163828A (en) Control method and control system of pulse width modulation (PWM) signals and numerical control laser processing machine tool
US9927787B2 (en) Method and system for managing distributed computing in automation systems
CN102478819A (en) Novel method for implementing breakpoint continuous work in numeric control machine tool system
CN102298343B (en) Approximate uniform acceleration control technology of servo motor of automatic hosiery machine
CN101639680B (en) Method for realizing accurate breakpoint succession in numerical control machine system

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