CN104147711A - Method for improving leaf position detection accuracy of multi-leaf collimator - Google Patents
Method for improving leaf position detection accuracy of multi-leaf collimator Download PDFInfo
- Publication number
- CN104147711A CN104147711A CN201410429847.1A CN201410429847A CN104147711A CN 104147711 A CN104147711 A CN 104147711A CN 201410429847 A CN201410429847 A CN 201410429847A CN 104147711 A CN104147711 A CN 104147711A
- Authority
- CN
- China
- Prior art keywords
- mutually
- phase
- chip microcomputer
- rising edge
- incremental encoder
- 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
Links
Abstract
The invention provides a method for improving the leaf position detection accuracy of a multi-leaf collimator. The method sequentially comprises the following steps that (a), the phase A of an incremental encoder is connected with an external interrupt interface of a single-chip microcomputer, and the phase B of the incremental encoder is connected with an I/O interface of the single-chip microcomputer; (b), when an interrupt happens, the single-chip microcomputer judges that the phase A is located on the rising edge or the falling edge when in the interrupt position and detects that a signal of the phase B is in high level or in low level at the moment; (c), if the phase A is located on the rising edge and the phase B is in low level, the single-chip microcomputer judges the forward rotation and one is added to the number of a counter; if the phase A is located on the rising edge and the phase B is in high level, the micro-chip microcomputer judges backward rotation and one is subtracted from the number of the counter; if the phase A is located on the falling edge and the phase B is in high level, the micro-chip microcomputer judges forward rotation and one is added to the number of the counter; if the phase A is located on the falling edge and the phase B is in low level, the micro-chip microcomputer judges backward rotation and one is subtracted from the number of the counter. Accumulated errors of the incremental encoder are effectively avoided in the frequent forward rotation and backward rotation process of a motor, and the leaf position detection accuracy of the multi-leaf collimator is improved.
Description
Technical field
The present invention relates to medical apparatus and instruments control technology field, be specifically related to a kind of method that multi-diaphragm collimator leaf position detects.
Background technology
Multi-diaphragm collimator is a kind of advanced person's stereotaxic radiosurgery armarium, can coordinate linear accelerator or cobalt-60 machine to carry out conformal intensity modulated treatment to tumor, thereby reaching the raising radiotherapy ratio of gains (focuses on the dosage of lonizing radiation in pathological changes to greatest extent, killing off tumor cells, and normal structure around and organ are subject to less or avoid unnecessary irradiation) object.It is one of capital equipment of current oncotherapy.It is, by A, two groups of arrange in opposite directions some of B, high density tungsten alloy blade is substituted to traditional plumbous baffle plate with shielding ray, with motor driven vane and the vane group respectively of corresponding logarithm, detect and control the position of blade by control system, form fast the launched field shape requiring, the corresponding actions of combined treatment machine, reaches conformal or adjusts strong object.
Because the motion of blade has directly affected the distribution of X ray at patient's body, therefore the control of blade movement speed is required to have good acceleration and good dynamic property, require also more and more higher to leaf position control accuracy.Current, leaf position is generally to calculate by the number of rotary encoder (being generally incremental encoder) feedback pulse.Blade control system schematic diagram as shown in Figure 1.
Incremental encoder is directly to utilize photoelectricity transformation principle to export two prescription wave impulse A, B, and 90 ° of A, B two group pulse phase contrasts, by judging that the phase place of A, B phase judges forward and backward and calculates current location.Currently mainly read encoder feedback pulse by software approach.Obviously be, the key point that improves leaf position precision to the accurate counting of encoder output pulse.But in conformal intensity modulated therapeutic process, blade exists the drawback movement that advances frequently, the motor of driven vane exists forward reversal development frequently.There are serious cumulative errors in this method, affects the accurate counting of encoder output pulse.
Summary of the invention
The present invention, in order to overcome the deficiency of above technology, provides a kind of method that improves multi-diaphragm collimator leaf position accuracy of detection.
The present invention overcomes the technical scheme that its technical problem adopts:
The method of this raising multi-diaphragm collimator leaf position accuracy of detection, in turn includes the following steps:
A) A of incremental encoder is connected on mutually to the external interrupt interface of single-chip microcomputer, and down trigger mode is set is that rising edge and trailing edge interrupt, the B of incremental encoder is connected on mutually to the I/O interface of single-chip microcomputer;
B) in the time that the feedback pulse of incremental encoder output occurs to interrupt, when single-chip microcomputer judge interruption position, A is positioned at mutually rising edge or is positioned at trailing edge, by detect B phase now signal be high level or low level;
If c) A is that rising edge and B are mutually when the low level mutually, single-chip microcomputer is judged to be to be rotated in the forward, and enumerator adds 1, if A is that rising edge and B are during mutually for high level mutually, be judged to be reverse rotation, enumerator subtracts 1, if A be mutually trailing edge and B mutually when the high level, be judged to be to be rotated in the forward, enumerator adds 1, if A be mutually trailing edge and B mutually when the low level, be judged to be reverse rotation, enumerator subtracts 1.
The invention has the beneficial effects as follows: judge that by single-chip microcomputer A is mutually for rising edge or trailing edge and to B phase place high level or low level, and after being compared mutually with B, A phase judges rotating, determine again enumerator+1 still-1, therefore effectively avoid in the frequent rotating process of motor, the cumulative error of incremental encoder, has improved multi-diaphragm collimator leaf position accuracy of detection.
Brief description of the drawings
Fig. 1 is multi-leaf collimator control system schematic diagram;
Fig. 2 is encoder A, B phase waveform figure;
Fig. 3 is encoder and single-chip microcomputer syndeton schematic diagram.
Detailed description of the invention
Below in conjunction with accompanying drawing 2, the present invention will be further described for accompanying drawing 3.
At present, the position feedback of multi-diaphragm collimator blade generally adopts the feedback pulse of incremental encoder to obtain as calculated.Usual way is: in the time that A occurs rising edge mutually, if now B is low level, being forward, is reversion during for high level.Recording the number of A phase rising edge, is exactly the umber of pulse of encoder feedback.But in rotating process frequently, there are serious cumulative errors in this method.As shown in Figure 2, for " edge " of same pulse, forward is rising edge, is trailing edge, as shown in Figure 3 when reversion.Suppose that motor is in forward rotation, oscillogram is seen from left to right.If now motor stops and being parked in the place of mark I, and hypothesis step-by-step counting is now 100.After this, motor reversal, and move to mark II.Now, oscillogram should see from right to left, and trailing edge originally becomes rising edge, and count pulse will subtract 1 and become 99.And if then just forwarding mark I to from mark II, count pulse does not change, then is inverted to mark II from mark I, and count pulse will subtract 1 and become 98.So accumulation is gone down, and the cumulative errors of system constantly increase, thereby cannot correctly reflect the actual position of blade.
The method of this raising multi-diaphragm collimator leaf position accuracy of detection, in turn include the following steps: the external interrupt interface that a) A of incremental encoder is connected on mutually to single-chip microcomputer, and down trigger mode is set is that rising edge and trailing edge interrupt, the B of incremental encoder is connected on mutually to the I/O interface of single-chip microcomputer; B) in the time that the feedback pulse of incremental encoder output occurs to interrupt, when single-chip microcomputer judge interruption position, A is positioned at mutually rising edge or is positioned at trailing edge, by detect B phase now signal be high level or low level;
If c) A is that rising edge and B are mutually when the low level mutually, single-chip microcomputer is judged to be to be rotated in the forward, and enumerator adds 1, if A is that rising edge and B are during mutually for high level mutually, be judged to be reverse rotation, enumerator subtracts 1, if A be mutually trailing edge and B mutually when the high level, be judged to be to be rotated in the forward, enumerator adds 1, if A be mutually trailing edge and B mutually when the low level, be judged to be reverse rotation, enumerator subtracts 1.Judge that by single-chip microcomputer A is mutually for rising edge or trailing edge and to B phase place high level or low level, and after being compared mutually with B, A phase judges rotating, determine again enumerator+1 still-1, therefore effectively avoid in the frequent rotating process of motor, the cumulative error of incremental encoder, has improved multi-diaphragm collimator leaf position accuracy of detection.
Claims (1)
1. a method that improves multi-diaphragm collimator leaf position accuracy of detection, is characterized in that: in turn include the following steps:
A) A of incremental encoder is connected on mutually to the external interrupt interface of single-chip microcomputer, and down trigger mode is set is that rising edge and trailing edge interrupt, the B of incremental encoder is connected on mutually to the I/O interface of single-chip microcomputer;
B) in the time that the feedback pulse of incremental encoder output occurs to interrupt, when single-chip microcomputer judge interruption position, A is positioned at mutually rising edge or is positioned at trailing edge, by detect B phase now signal be high level or low level;
If c) A is that rising edge and B are mutually when the low level mutually, single-chip microcomputer is judged to be to be rotated in the forward, and enumerator adds 1, if A is that rising edge and B are during mutually for high level mutually, be judged to be reverse rotation, enumerator subtracts 1, if A be mutually trailing edge and B mutually when the high level, be judged to be to be rotated in the forward, enumerator adds 1, if A be mutually trailing edge and B mutually when the low level, be judged to be reverse rotation, enumerator subtracts 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410429847.1A CN104147711A (en) | 2014-08-28 | 2014-08-28 | Method for improving leaf position detection accuracy of multi-leaf collimator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410429847.1A CN104147711A (en) | 2014-08-28 | 2014-08-28 | Method for improving leaf position detection accuracy of multi-leaf collimator |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104147711A true CN104147711A (en) | 2014-11-19 |
Family
ID=51873463
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410429847.1A Pending CN104147711A (en) | 2014-08-28 | 2014-08-28 | Method for improving leaf position detection accuracy of multi-leaf collimator |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104147711A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106017331A (en) * | 2016-06-27 | 2016-10-12 | 深圳市奥沃医学新技术发展有限公司 | Fiber detection head mounting structure, fiber detection equipment and multi-leaf collimator system |
WO2017132792A1 (en) * | 2016-02-01 | 2017-08-10 | 武汉数码刀医疗有限公司 | Multi-vane collimator and displacement detection system thereof |
CN109945809A (en) * | 2019-02-26 | 2019-06-28 | 清华大学 | A kind of plug-in type position sensing device for multi-leaf optical grating system |
CN110749408A (en) * | 2019-11-09 | 2020-02-04 | 山东理工大学 | Multipoint excitation equipment and method for hundred-meter-level wind power blade fatigue test |
CN113358140A (en) * | 2021-06-02 | 2021-09-07 | 上海亨临光电科技有限公司 | Positive and negative zero offset elimination method and counting method of incremental rotary encoder |
CN113848466A (en) * | 2021-08-02 | 2021-12-28 | 惠州市德赛西威汽车电子股份有限公司 | Detection circuit and detection method for realizing rapid response of knob |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101833690A (en) * | 2009-03-13 | 2010-09-15 | 北京同步科技有限公司 | Simple and reliable counting method for incremental encoder |
CN103575312A (en) * | 2013-11-25 | 2014-02-12 | 济南飞越机电科技有限公司 | Jitter elimination method of incremental photoelectric encoder for photoelectric rotating table |
-
2014
- 2014-08-28 CN CN201410429847.1A patent/CN104147711A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101833690A (en) * | 2009-03-13 | 2010-09-15 | 北京同步科技有限公司 | Simple and reliable counting method for incremental encoder |
CN103575312A (en) * | 2013-11-25 | 2014-02-12 | 济南飞越机电科技有限公司 | Jitter elimination method of incremental photoelectric encoder for photoelectric rotating table |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017132792A1 (en) * | 2016-02-01 | 2017-08-10 | 武汉数码刀医疗有限公司 | Multi-vane collimator and displacement detection system thereof |
CN107429987A (en) * | 2016-02-01 | 2017-12-01 | 武汉数码刀医疗有限公司 | Multi-diaphragm collimator and its displacement detection system |
CN106017331A (en) * | 2016-06-27 | 2016-10-12 | 深圳市奥沃医学新技术发展有限公司 | Fiber detection head mounting structure, fiber detection equipment and multi-leaf collimator system |
CN106017331B (en) * | 2016-06-27 | 2019-04-19 | 深圳市奥沃医学新技术发展有限公司 | Fiber laser arrays head mounting structure, optical fiber measurement equipments and multi-diaphragm collimator system |
CN109945809A (en) * | 2019-02-26 | 2019-06-28 | 清华大学 | A kind of plug-in type position sensing device for multi-leaf optical grating system |
CN110749408A (en) * | 2019-11-09 | 2020-02-04 | 山东理工大学 | Multipoint excitation equipment and method for hundred-meter-level wind power blade fatigue test |
CN113358140A (en) * | 2021-06-02 | 2021-09-07 | 上海亨临光电科技有限公司 | Positive and negative zero offset elimination method and counting method of incremental rotary encoder |
CN113358140B (en) * | 2021-06-02 | 2023-07-14 | 上海亨临光电科技有限公司 | Method for eliminating positive and negative zero-setting deviation of incremental rotary encoder and counting method |
CN113848466A (en) * | 2021-08-02 | 2021-12-28 | 惠州市德赛西威汽车电子股份有限公司 | Detection circuit and detection method for realizing rapid response of knob |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104147711A (en) | Method for improving leaf position detection accuracy of multi-leaf collimator | |
CN106512221B (en) | Multi-diaphragm collimator, the drive system of multi-diaphragm collimator blade and driving method | |
WO2012021530A2 (en) | Method and system for evaluating quality assurance criteria in delivery of a treatment plan | |
US8586942B2 (en) | Beam position monitor and particle beam therapy system | |
CN105534541B (en) | A kind of the rotation speed bearing calibration and correction system of CT machine | |
CN101799337B (en) | Automatic detection method of torque of tooth sockets of permanent magnet synchronous motor | |
CN203874296U (en) | Vane position feedback structure and feedback circuit of automatic multi-vane collimator | |
CN107929955A (en) | Radiotherapy apparatus, multi-leaf optical grating and its blade construction | |
CN104240785A (en) | Anti-collision control method for leaves of multileaf collimator | |
CN103736211A (en) | Method and device for detecting rotating part of radiation therapy equipment | |
Wang et al. | Correlation between gamma passing rate and complexity of IMRT plan due to MLC position errors | |
CN205672359U (en) | A kind of grating blade controller and accelerator therapy device | |
CN104689490A (en) | Zero calibration reset control system and control method of multi-leaf collimator | |
CN108096720A (en) | Multi-diaphragm collimator initial method and radiotherapy system | |
CN106301105A (en) | Based on incremental optical-electricity encoder multipolar dynamo method for detecting magnetic pole position | |
CN108211134A (en) | Multi-diaphragm collimator initial method and radiotherapy system | |
WO2018170730A1 (en) | Multi-leaf collimator and radiotherapy device | |
CN104852743B (en) | Absolute value encoder signal processing apparatus and method | |
CN108272453A (en) | Positioning device, method, system and the magnetic resonance imaging device of patient bed | |
CN105797283B (en) | A kind of grating blade controller and accelerator therapy device | |
WO2008102843A1 (en) | Dynamic tumor radiation treatment apparatus and dynamic tumor radiation treatment program | |
CN116325024A (en) | Magnetoresistive linear positioning detection in radiation therapy systems | |
Tovmasian et al. | Non-standard use of tomotherapy exit imaging detectors for quality assurance procedures | |
CN116325025A (en) | Magnetoresistive rotational position detection in a radiation treatment system | |
CN106933261A (en) | Position following control system and control method based on stepper drive |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141119 |
|
RJ01 | Rejection of invention patent application after publication |