CN105425733B - The means of communication between numerically-controlled machine tool and absolute grating scale and driver - Google Patents
The means of communication between numerically-controlled machine tool and absolute grating scale and driver Download PDFInfo
- Publication number
- CN105425733B CN105425733B CN201510973334.1A CN201510973334A CN105425733B CN 105425733 B CN105425733 B CN 105425733B CN 201510973334 A CN201510973334 A CN 201510973334A CN 105425733 B CN105425733 B CN 105425733B
- Authority
- CN
- China
- Prior art keywords
- processing unit
- absolute
- absolute position
- driver
- grating scale
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical 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/414—Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
- G05B19/4141—Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller characterised by a controller or microprocessor per axis
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/34—Director, elements to supervisory
- G05B2219/34024—Fpga fieldprogrammable gate arrays
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Human Computer Interaction (AREA)
- Manufacturing & Machinery (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Numerical Control (AREA)
Abstract
The invention discloses the means of communication between a kind of numerically-controlled machine tool and absolute grating scale and driver, numerically-controlled machine tool includes absolute grating scale, transition card and driver, and transition card includes processing unit, input interface and output interface;Absolute grating scale is used to receive the request instruction of processing unit transmission, and absolute position signal is sent to processing unit by input interface according to request instruction, and absolute position signal is used to characterize the absolute position of absolute grating scale;Processing unit is used to that absolute position signal to be converted into absolute position values by communications protocol and saves to the register of processing unit;Processing unit is also used to the absolute position values in register being converted into pulse signal and be exported by output interface to driver.The present invention solves the problems, such as that some drivers can not be compatible with the communications protocol using all kinds of absolute grating scales, uses all kinds of absolute grating scales to make that the driver used can not be compatible with can also directly match.
Description
Technical field
The present invention relates to the means of communication between a kind of numerically-controlled machine tool and absolute grating scale and driver.
Background technique
With the continuous development of processing industry, the demand of numerically-controlled machine tool is also constantly being promoted, and processing industry is increasingly focused on
At high speed and in high precision.Absolute grating scale then plays decisive role in this requirement of high-precision, absolute grating scale
Precision will have a direct impact on machining accuracy.
Currently, can not be compatible with for the driver of some numerically-controlled machine tools using the logical of all kinds of absolute grating scales
Agreement is interrogated, therefore some drivers can not be matched directly and use all kinds of absolute grating scales.
Summary of the invention
The technical problem to be solved by the present invention is in order to overcome the driver of some numerically-controlled machine tools in the prior art cannot be simultaneous
Hold the communications protocol using all kinds of absolute grating scales, therefore some drivers can not be matched directly and use all kinds of absolute opticals
The defect of grid ruler provides the means of communication between a kind of numerically-controlled machine tool and absolute grating scale and driver.
The present invention is to solve above-mentioned technical problem by following technical proposals:
A kind of numerically-controlled machine tool, it is characterized in that, the numerically-controlled machine tool includes absolute grating scale, transition card and driver,
The transition card includes processing unit, input interface and output interface;
The absolute grating scale is electrically connected by the input interface with the processing unit, and the driver passes through institute
Output interface is stated to be electrically connected with the processing unit;
The absolute grating scale is used to receive the request instruction that the processing unit is sent, and according to the request instruction
Absolute position signal is sent to the processing unit by the input interface, the absolute position signal is described for characterizing
The absolute position of absolute grating scale;
The processing unit is used to that the absolute position signal to be converted into absolute position values by communications protocol, and saves
To the register of the processing unit;
The processing unit is also used to for the absolute position values in the register being converted into pulse signal, and by described
Output interface is exported to the driver.
Preferably, the absolute position signal includes for characterizing the first of the initial absolute position of the absolute grating scale
Beginning absolute position signal.
Preferably, the absolute grating scale is also used to receive a request instruction every a sampling period, and according to every
Secondary request instruction sends an absolute position signal to the processing unit;
The processing unit is used for the absolute position for being converted into the absolute position signal that the two neighboring sampling period receives
It sets value and carries out difference operation, and difference is saved to the register;
The processing unit is also used to for the difference in the register being converted into pulse signal, and exports to the driving
Device.
In the present solution, can be using the RQ cycle of the communications protocol as the sampling period.
Preferably, the processing unit is FPGA (Field Programmable Gate Array, field programmable gate
Array) chip.
Preferably, the communications protocol is that (Fagor Feedat2.0 agreement, Fagor company release Feedat2.0 agreement
A kind of communications protocol suitable for Fagor absolute grating scale).
Preferably, the pulse signal is AB phase pulse signal.
Preferably, the input interface and the output interface are serial line interface.
It, can root in the present solution, the input interface and the output interface are remaining serial line interface in transition card
Other remaining interfaces in the transition card are selected according to actual conditions, thus the surplus resources of transition card described in reasonable employment,
Cost is saved, and easy to use.
A kind of means of communication between absolute grating scale and driver, it is characterized in that, the means of communication are using such as
Above-mentioned numerically-controlled machine tool realizes, the means of communication the following steps are included:
S1, the absolute grating scale receive the request instruction that the processing unit is sent, and according to the request instruction
Absolute position signal is sent to the processing unit by the input interface;
S2, absolute position signal by the communications protocol is converted into absolute position values, and saved by the processing unit
To the register;
S3, the processing unit absolute position values in the register are converted into pulse signal, and by described defeated
Outgoing interface is exported to the driver.
Preferably, in step S1Before, the means of communication are further comprising the steps of:
S0, the transition card powers on and waits a default waiting time.
In the present solution, the time sequencing that the transition card powers on generally can be earlier than the driver, if the conversion
Pulse signal after conversion is sent directly to the driver by card, and it is endless that the driver will appear the pulse signal received
Whole situation, it is therefore desirable to a default waiting time is set on the processing unit, so that preventing the driver from receiving
The incomplete situation of the pulse signal arrived.
Preferably, in step S1In, the absolute grating scale receives a request instruction, and root every a sampling period
An absolute position signal is sent to the processing unit according to each request instruction;
In step S3Later, the means of communication are further comprising the steps of:
S4, the processing unit absolute position that is converted into the absolute position signal that the two neighboring sampling period receives
Value carries out difference operation, and difference is saved to the register;
S5, the difference in the register is converted into pulse signal, and exported to the driver by the processing unit.
On the basis of common knowledge of the art, above-mentioned each optimum condition, can any combination to get each preferable reality of the present invention
Example.
The positive effect of the present invention is that:
The present invention solves the problems, such as that some drivers can not be compatible with the communications protocol using all kinds of absolute grating scales, from
And make that the driver used can not be compatible with can also directly match and use all kinds of absolute grating scales, it ensure that driver and absolute type
Preferable versatility between grating scale.The present invention is using existing transition card in numerically-controlled machine tool, without adding other component, thus
Cost is saved, and easy to use.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the numerically-controlled machine tool of present pre-ferred embodiments.
Fig. 2 is the flow chart of the means of communication between the absolute grating scale and driver of present pre-ferred embodiments.
Specific embodiment
A preferred embodiment is named, and completely illustrates the present invention in conjunction with attached drawing to become apparent from.
As shown in Figure 1, numerically-controlled machine tool 1 provided in this embodiment includes absolute grating scale 2, transition card 3 and driver 4,
Transition card 3 includes processing unit 7, input interface 5 and output interface 6;
Wherein, absolute grating scale 2 selects Fagor absolute grating scale, and driver 4 selects Panasonic A5 series of driver,
Processing unit 7 selects fpga chip.
In the present embodiment, Panasonic A5 series of driver can not directly receive the absolute position of Feedat2.0 agreement output
Value, therefore Panasonic's A5 series of driver can not directly be matched use with Fagor absolute grating scale.
Absolute grating scale 2 is electrically connected by input interface 5 with processing unit 7, and driver 4 passes through output interface 6 and place
Unit 7 is managed to be electrically connected;
Wherein, input interface 5 and output interface 6 are remaining serial line interface in transition card 3, it is not limited to serially
Interface can select other remaining interfaces in transition card 3 according to the actual situation, thus the remaining money of reasonable employment transition card 3
Cost is saved in source, and easy to use.
Absolute grating scale 2 is used to receive the request instruction of the transmission of processing unit 7, and will be absolute according to the request instruction
Position signal is sent to processing unit 7 by input interface 5, and the absolute position signal is for characterizing absolute grating scale 2
Absolute position;
Wherein, the absolute position signal includes for characterizing the initial exhausted of the initial absolute position of absolute grating scale 2
To position signal.
Processing unit 7 is used to that the absolute position signal to be converted into absolute position values by Feedat2.0 agreement, and protects
It deposits to 32 of processing unit 7 registers;
Processing unit 7 is also used to for the absolute position values in the register being converted into AB phase pulse signal, and by defeated
Outgoing interface 6 is exported to driver 4.
Absolute grating scale 2 is also used to receive a request instruction every a sampling period, and according to each request instruction
An absolute position signal is sent to processing unit 7, and using the RQ cycle of Feedat2.0 agreement as the sampling period;
Processing unit 7 is used for the absolute position values for being converted into the absolute position signal that the two neighboring sampling period receives
Difference operation is carried out, and difference is saved to the register;
Processing unit 7 is also used to for the difference in the register being converted into AB phase pulse signal, and exports to driver
4。
As shown in Fig. 2, the present embodiment also provides the means of communication between a kind of absolute grating scale and driver, it is described logical
Communication method realizes that the means of communication include the following steps using such as above-mentioned numerically-controlled machine tool 1.
101, transition card 3, which powers on, waits a default waiting time.
The time sequencing that transition card 3 powers on generally can be earlier than driver 4, if transition card 3 is by the pulse signal after conversion
It is sent directly to driver 4, driver 4 will appear the incomplete situation of the pulse signal received, it is therefore desirable to single in processing
A default waiting time is set in member 7, so that the incomplete situation of the pulse signal for preventing driver 4 from receiving.
Default waiting time is 2 seconds, thus transition card power on after carried out 2 seconds according to the counting of processing unit 7
It waits, the default waiting time can also be adjusted correspondingly according to the actual situation.
102, absolute grating scale 2 receives the request instruction of processing unit 7, and according to request instruction by initial absolute position
Signal is sent to processing unit 7 by input interface 5;
After absolute grating scale 2 sends initial absolute position signal, a request instruction is received every a sampling period, and
An absolute position signal is sent to processing unit 7 according to each request instruction.
103, initial absolute position signal is converted into initial absolute position values by Feedat2.0 agreement by processing unit 7,
And it saves to the register.
104, the initial absolute position values in the register are converted into AB phase pulse signal by processing unit 7, and are passed through
Output interface 6 is exported to driver 4.
105, the absolute position values that the absolute position signal that the two neighboring sampling period receives is converted by processing unit 7
Difference operation is carried out, and difference is saved to the register.
106, the difference in the register is converted into AB phase pulse signal by processing unit 7, and defeated by output interface 6
Out to driver 4.
In the present embodiment, since the working frequency of processing unit 7 is limited, transition card 3 powers on the initial absolute position of acquirement
AB phase pulse signal can not be wholly converted into and be exported within a sampling period by setting value, and it is next to need to be divided into several sampling periods
Output, therefore need to guarantee that absolute grating scale 2 not have apparent variation when the booting of numerically-controlled machine tool 1, to reduce as far as possible
Error.
The present embodiment solves Panasonic's A5 series of driver and can not be compatible with using Fagor absolute grating scale
The problem of Feedat2.0 agreement, to realize that the matching between Panasonic's A5 series of driver and Fagor absolute grating scale makes
With.The present embodiment is using existing transition card 3 in numerically-controlled machine tool 1, without adding other component, to save cost, and uses
It is convenient.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that this is only
For example, protection scope of the present invention is to be defined by the appended claims.Those skilled in the art without departing substantially from
Under the premise of the principle and substance of the present invention, many changes and modifications may be made, but these change and
Modification each falls within protection scope of the present invention.
Claims (8)
1. a kind of numerically-controlled machine tool, which is characterized in that the numerically-controlled machine tool includes absolute grating scale, transition card and driver, institute
Stating transition card includes processing unit, input interface and output interface;
The absolute grating scale is electrically connected by the input interface with the processing unit, and the driver passes through described defeated
Outgoing interface is electrically connected with the processing unit;
The absolute grating scale is used to receive the request instruction that the processing unit is sent, and will be exhausted according to the request instruction
The processing unit is sent to by the input interface to position signal, the absolute position signal is described absolute for characterizing
The absolute position of formula grating scale;
The processing unit is used to that the absolute position signal to be converted into absolute position values by communications protocol, and saves to institute
State the register of processing unit;
The processing unit is also used to for the absolute position values in the register to be converted into pulse signal, and passes through the output
Interface is exported to the driver;
The absolute position signal includes the initial absolute position for characterizing the initial absolute position of the absolute grating scale
Signal;
The absolute grating scale is also used to receive a request instruction every a sampling period, and is sent out according to each request instruction
Send an absolute position signal to the processing unit;
The processing unit is used for the absolute position values for being converted into the absolute position signal that the two neighboring sampling period receives
Difference operation is carried out, and difference is saved to the register;
The processing unit is also used to for the difference in the register being converted into pulse signal, and exports to the driver.
2. numerically-controlled machine tool as described in claim 1, which is characterized in that the processing unit is fpga chip.
3. numerically-controlled machine tool as described in claim 1, which is characterized in that the communications protocol is Feedat2.0 agreement.
4. numerically-controlled machine tool as described in claim 1, which is characterized in that the pulse signal is AB phase pulse signal.
5. numerically-controlled machine tool as described in claim 1, which is characterized in that the input interface and the output interface are serial
Interface.
6. the means of communication between a kind of absolute grating scale and driver, which is characterized in that the means of communication are utilized as weighed
Benefit require any one of 1~5 described in numerically-controlled machine tool realize, the means of communication the following steps are included:
S1, the absolute grating scale receive the request instruction that the processing unit is sent, and will be absolute according to the request instruction
Position signal is sent to the processing unit by the input interface;
S2, absolute position signal by the communications protocol is converted into absolute position values, and saved to described by the processing unit
Register;
S3, the absolute position values in the register are converted into pulse signal, and pass through the output interface by the processing unit
It exports to the driver.
7. the means of communication as claimed in claim 6, which is characterized in that in step S1Before, the means of communication further include following
Step:
S0, the transition card powers on and waits a default waiting time.
8. the means of communication as claimed in claim 6, which is characterized in that in step S1In, the absolute grating scale is adopted every one
The sample period receives a request instruction, and sends an absolute position signal to the processing unit according to each request instruction;
In step S3Later, the means of communication are further comprising the steps of:
S4, the processing unit absolute position values that are converted into the absolute position signal that the two neighboring sampling period receives into
Row difference operation, and difference is saved to the register;
S5, the difference in the register is converted into pulse signal, and exported to the driver by the processing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510973334.1A CN105425733B (en) | 2015-12-21 | 2015-12-21 | The means of communication between numerically-controlled machine tool and absolute grating scale and driver |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510973334.1A CN105425733B (en) | 2015-12-21 | 2015-12-21 | The means of communication between numerically-controlled machine tool and absolute grating scale and driver |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105425733A CN105425733A (en) | 2016-03-23 |
CN105425733B true CN105425733B (en) | 2019-03-12 |
Family
ID=55504004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510973334.1A Active CN105425733B (en) | 2015-12-21 | 2015-12-21 | The means of communication between numerically-controlled machine tool and absolute grating scale and driver |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105425733B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10050392A1 (en) * | 2000-10-12 | 2002-04-18 | Heidenhain Gmbh Dr Johannes | Position measurement device converts mutually phase shifted analog sensing signals from scale sensing elements into multi-position amplitude-proportional code word applied to output unit |
EP2058630A1 (en) * | 2007-11-12 | 2009-05-13 | FAGOR, S.Coop. | Readhead for an optoelectronic measuring device |
CN102045345A (en) * | 2010-11-23 | 2011-05-04 | 广州数控设备有限公司 | Method for realizing position sensor interface supporting various sensor communication protocols |
CN103076780A (en) * | 2012-12-28 | 2013-05-01 | 广州数控设备有限公司 | Absolute-type grating control system and control method based on industrial Ethernet bus |
CN103501137A (en) * | 2013-10-10 | 2014-01-08 | 中国科学院上海技术物理研究所 | Rapid and high-precision location information acquiring system for permanent magnet synchronous motor |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104158452A (en) * | 2013-05-13 | 2014-11-19 | 大连普传科技股份有限公司 | AC Servo Permanent Magnet Driver |
-
2015
- 2015-12-21 CN CN201510973334.1A patent/CN105425733B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10050392A1 (en) * | 2000-10-12 | 2002-04-18 | Heidenhain Gmbh Dr Johannes | Position measurement device converts mutually phase shifted analog sensing signals from scale sensing elements into multi-position amplitude-proportional code word applied to output unit |
EP2058630A1 (en) * | 2007-11-12 | 2009-05-13 | FAGOR, S.Coop. | Readhead for an optoelectronic measuring device |
CN102045345A (en) * | 2010-11-23 | 2011-05-04 | 广州数控设备有限公司 | Method for realizing position sensor interface supporting various sensor communication protocols |
CN103076780A (en) * | 2012-12-28 | 2013-05-01 | 广州数控设备有限公司 | Absolute-type grating control system and control method based on industrial Ethernet bus |
CN103501137A (en) * | 2013-10-10 | 2014-01-08 | 中国科学院上海技术物理研究所 | Rapid and high-precision location information acquiring system for permanent magnet synchronous motor |
Also Published As
Publication number | Publication date |
---|---|
CN105425733A (en) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103425106B (en) | The master/slave station control system of a kind of EtherCAT based on Linux and method | |
CN103176450B (en) | Servo drive and servo-control system | |
CN103414547B (en) | A kind of main website controls method, main website and the system of many slave stations | |
CN103744356A (en) | Intelligent dynamically-configurable controller of tool based on DSP (Digital Signal Processor)/FPGA (Field Programmable Gate Array) and control method | |
CN107819456B (en) | High-precision delay generator based on FPGA carry chain | |
CN104572383A (en) | ATE (automatic test equipment)-based MCU (microprogrammed control unit)/SOC (system on chip) test method | |
CN103776366A (en) | Exciting-resolving integrated device of sine-cosine resolver | |
CN102446557B (en) | A kind of a kind of method of chip and chip parallel test | |
CN102393301B (en) | Engine Flexibility Test System | |
CN101666855B (en) | Universal test system and method of integrated circuit | |
CN105425733B (en) | The means of communication between numerically-controlled machine tool and absolute grating scale and driver | |
EP3387543A1 (en) | Spi interface with automatic slave select generation | |
Liu et al. | Multi-functional serial communication interface design based on FPGA | |
CN107181552A (en) | Synchronisation signal transmission method and device, FPGA | |
CN104238412B (en) | Optoelectronic isolation type SPI-like channel based on DSP driving | |
CN101858953A (en) | ARM (Advanced RISC Machines) core chip based automatic test system and method of digital-to-analog converter | |
CN204406391U (en) | A kind of data of optical fiber gyroscope R-T unit based on SPI | |
CN205647467U (en) | Nanosecond level digit synchronization machine based on high -speed serial bus of FPGA | |
CN104182317A (en) | DMI (desktop management interface) bus signal integrity testing method | |
CN102736549A (en) | 24-Bit acquisition module | |
CN104021108A (en) | A communication device based on PROFIBUS-DP protocol | |
CN104102579B (en) | A kind of network measuring system and method based on multinuclear or many-core embeded processor | |
CN208424408U (en) | A kind of aviation ARINC429 bus module circuit | |
CN106405373B (en) | A kind of active test vector matching process | |
CN209946378U (en) | An FPGA System for Processing Doppler Laser Frequency Shifted Signals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Room 5124, building C, 555 Dongchuan Road, Minhang District, Shanghai 200241 Patentee after: SHANGHAI LYNUC NUMERICAL CONTROL TECHNOLOGY CO.,LTD. Address before: 279 Pingfu Road, Xuhui District, Shanghai, 200231 Patentee before: SHANGHAI LYNUC CNC TECHNOLOGY Co.,Ltd. |
|
CP03 | Change of name, title or address |