CN105425733A - Method for communications between numerical control machine tool and absolute grating ruler and drive - Google Patents

Method for communications between numerical control machine tool and absolute grating ruler and drive Download PDF

Info

Publication number
CN105425733A
CN105425733A CN201510973334.1A CN201510973334A CN105425733A CN 105425733 A CN105425733 A CN 105425733A CN 201510973334 A CN201510973334 A CN 201510973334A CN 105425733 A CN105425733 A CN 105425733A
Authority
CN
China
Prior art keywords
processing unit
absolute position
absolute
grating scale
driver
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.)
Granted
Application number
CN201510973334.1A
Other languages
Chinese (zh)
Other versions
CN105425733B (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.)
SHANGHAI LYNUC NUMERICAL CONTROL TECHNOLOGY CO.,LTD.
Original Assignee
SHANGHAI LYNUC CNC 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 SHANGHAI LYNUC CNC TECHNOLOGY Co Ltd filed Critical SHANGHAI LYNUC CNC TECHNOLOGY Co Ltd
Priority to CN201510973334.1A priority Critical patent/CN105425733B/en
Publication of CN105425733A publication Critical patent/CN105425733A/en
Application granted granted Critical
Publication of CN105425733B publication Critical patent/CN105425733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/414Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
    • G05B19/4141Structure 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
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34024Fpga 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 a method for communications between a numerical control machine tool and an absolute grating ruler and a drive, wherein the numerical control machine tool comprises the absolute grating ruler, a conversion card and the drive, and the conversion card comprises a processing unit, an input interface and an output interface; the absolute grating ruler is used to receive a request instruction sent by the processing unit and send an absolute potion signal to the processing unit via the input interface according to the request instruction, and the absolute position signal is used to represent an absolute position of the absolute grating ruler; the processing unit is used to convert the absolute position signal into an absolute position value through a communication protocol and store the value in a register of the processing unit; and the processing unit is also used to convert the absolute position value in the register into a pulse signal and output the pulse signal via the output interface to the drive. The method for the communications between the numerical control machine tool and the absolute grating ruler and the drive solves the problem that some drives cannot realize compatible utilization of communication protocols of various types of absolute grating rulers, so that the drive which cannot realize the compatible utilization can directly match and use the various types of absolute grating rulers.

Description

Numerically-controlled machine and the means of communication between absolute grating scale and driver
Technical field
The present invention relates to a kind of numerically-controlled machine and the means of communication between absolute grating scale and driver.
Background technology
Along with the development of processing industry, the demand of numerically-controlled machine is also in continuous lifting, and processing industry more and more focuses on high speed and high precision.Absolute grating scale then plays decisive role in this requirement of high precision, and the precision of absolute grating scale directly can affect machining precision.
At present, for the driver of some numerically-controlled machines, can not the compatible communications protocol using all kinds of absolute grating scale, therefore directly cannot mate some drivers and use all kinds of absolute grating scale.
Summary of the invention
The technical problem to be solved in the present invention is that driver in order to overcome some numerically-controlled machines in prior art can not the compatible communications protocol using all kinds of absolute grating scale, therefore directly cannot mate the defect using all kinds of absolute grating scale to some drivers, a kind of numerically-controlled machine and the means of communication between absolute grating scale and driver are provided.
The present invention solves above-mentioned technical matters by following technical proposals:
A kind of numerically-controlled machine, its feature is, described numerically-controlled machine comprises absolute grating scale, transition card and driver, and described transition card comprises processing unit, input interface and output interface;
Described absolute grating scale is electrically connected with described processing unit by described input interface, and described driver is electrically connected with described processing unit by described output interface;
The request instruction that described absolute grating scale sends for receiving described processing unit, and according to described request instruction, absolute position signal being sent to described processing unit by described input interface, described absolute position signal is for characterizing the absolute position of described absolute grating scale;
Described processing unit is used for converting described absolute position signal to absolute position values by communications protocol, and is saved to the register of described processing unit;
Described processing unit also for converting the absolute position values in described register to pulse signal, and exports described driver to by described output interface.
Preferably, described absolute position signal comprises the initial absolute position signal of the initial absolute position for characterizing described absolute grating scale.
Preferably, described absolute grating scale also for receiving a request instruction every a sampling period, and sends an absolute position signal to described processing unit according to each request instruction;
Described processing unit is used for the absolute position values that the absolute position signal that adjacent two sampling periods receive converts to carry out difference operation, and difference is saved to described register;
Described processing unit also for converting the difference in described register to pulse signal, and exports described driver to.
In this programme, can using the RQ cycle of described communications protocol as the described sampling period.
Preferably, described processing unit is FPGA (FieldProgrammableGateArray, field programmable gate array) chip.
Preferably, described communications protocol is Feedat2.0 agreement (FagorFeedat2.0 agreement, a kind of communications protocol being applicable to Fagor absolute grating scale that Fagor company releases).
Preferably, described pulse signal is AB phase pulse signal.
Preferably, described input interface and described output interface are serial line interface.
In this programme, described input interface and described output interface are remaining serial line interface in transition card, can select other interfaces remaining in described transition card according to actual conditions, thus the surplus resources of transition card described in reasonable employment, save cost, and easy to use.
Means of communication between absolute grating scale and driver, its feature is, the described means of communication utilize numerically-controlled machine described above to realize, and the described means of communication comprise the following steps:
S 1, described absolute grating scale receives the request instruction that described processing unit sends, and according to described request instruction, absolute position signal is sent to described processing unit by described input interface;
S 2, described processing unit converts absolute position signal to absolute position values by described communications protocol, and is saved to described register;
S 3, described processing unit converts the absolute position values in described register to pulse signal, and exports described driver to by described output interface.
Preferably, in step S 1before, the described means of communication are further comprising the steps of:
S 0, the wait one that powers on of described transition card presets the stand-by period.
In this programme, the time sequencing that described transition card powers on generally can early than described driver, if the pulse signal after conversion is directly sent to described driver by described transition card, described driver there will be the incomplete situation of the pulse signal received, therefore need on described processing unit, set one and preset the stand-by period, to make the incomplete situation of pulse signal preventing described driver from receiving.
Preferably, in step S 1in, described absolute grating scale receives a request instruction every a sampling period, and sends an absolute position signal to described processing unit according to each request instruction;
In step S 3afterwards, the described means of communication are further comprising the steps of:
S 4, the absolute position values that the absolute position signal that adjacent two sampling periods receive converts to carries out difference operation, and difference is saved to described register by described processing unit;
S 5, described processing unit converts the difference in described register to pulse signal, and exports described driver to.
On the basis meeting this area general knowledge, above-mentioned each optimum condition, can combination in any, obtains the preferred embodiments of the invention.
Positive progressive effect of the present invention is:
The invention solves some drivers cannot the compatible problem using the communications protocol of all kinds of absolute grating scale, thus make also cannot directly to mate all kinds of absolute grating scale of use by the compatible driver used, ensure that good versatility between driver and absolute grating scale.The present invention utilizes existing transition card in numerically-controlled machine, without the need to adding miscellaneous part, thus saves cost, and easy to use.
Accompanying drawing explanation
Fig. 1 is the structural representation of the numerically-controlled machine of present pre-ferred embodiments.
Fig. 2 is the process flow diagram of the means of communication between the absolute grating scale of present pre-ferred embodiments and driver.
Embodiment
Lift preferred embodiment below, and come by reference to the accompanying drawings clearlyer intactly the present invention to be described.
As shown in Figure 1, the numerically-controlled machine 1 that the present embodiment provides comprises absolute grating scale 2, transition card 3 and driver 4, and transition card 3 comprises 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, and processing unit 7 selects fpga chip.
In the present embodiment, Panasonic A5 series of driver directly cannot receive the absolute position values that Feedat2.0 agreement exports, and therefore Panasonic A5 series of driver directly cannot be mated use with Fagor absolute grating scale.
Absolute grating scale 2 is electrically connected with processing unit 7 by input interface 5, and driver 4 is electrically connected with processing unit 7 by output interface 6;
Wherein, input interface 5 and output interface 6 are remaining serial line interface in transition card 3, but are not limited in serial line interface, other interfaces remaining in transition card 3 can be selected according to actual conditions, thus the surplus resources of reasonable employment transition card 3, save cost, and easy to use.
The request instruction that absolute grating scale 2 sends for receiving processing unit 7, and according to described request instruction, absolute position signal is sent to processing unit 7 by input interface 5, described absolute position signal is for characterizing the absolute position of absolute grating scale 2;
Wherein, described absolute position signal comprises the initial absolute position signal of the initial absolute position for characterizing absolute grating scale 2.
Processing unit 7 for converting described absolute position signal to absolute position values by Feedat2.0 agreement, and is saved in the register of 32 of processing unit 7;
Processing unit 7 also for converting the absolute position values in described register to AB phase pulse signal, and exports driver 4 to by output interface 6.
Absolute grating scale 2 also for receiving a request instruction every a sampling period, and sends an absolute position signal to processing unit 7 according to each request instruction, and using the RQ cycle of Feedat2.0 agreement as the described sampling period;
The absolute position values that processing unit 7 converts to for the absolute position signal received in adjacent two sampling periods carries out difference operation, and difference is saved in described register;
Processing unit 7 also for converting the difference in described register to AB phase pulse signal, and exports driver 4 to.
As shown in Figure 2, the present embodiment also provides the means of communication between a kind of absolute grating scale and driver, and the described means of communication utilize numerically-controlled machine 1 described above to realize, and the described means of communication comprise the following steps.
101, the stand-by period is preset in transition card 3 wait one that powers on.
The time sequencing that transition card 3 powers on generally can early than driver 4, if the pulse signal after conversion is directly sent to driver 4 by transition card 3, driver 4 there will be the incomplete situation of the pulse signal received, therefore need on processing unit 7, set one and preset the stand-by period, to make the incomplete situation of pulse signal preventing driver 4 from receiving.
The described default stand-by period is 2 seconds, and therefore transition card to carry out the wait in 2 seconds according to the counting of processing unit 7 after powering on, and the described default stand-by period also can adjust according to actual conditions accordingly.
102, absolute grating scale 2 receives the request instruction of processing unit 7, and according to request instruction, initial absolute position signal is sent to processing unit 7 by input interface 5;
After absolute grating scale 2 sends initial absolute position signal, receive a request instruction every a sampling period, and send an absolute position signal to processing unit 7 according to each request instruction.
103, processing unit 7 converts initial absolute position signal to initial absolute position values by Feedat2.0 agreement, and is saved to described register.
104, processing unit 7 converts the initial absolute position values in described register to AB phase pulse signal, and exports driver 4 to by output interface 6.
105, the absolute position values that the absolute position signal that adjacent two sampling periods receive converts to is carried out difference operation by processing unit 7, and difference is saved to described register.
106, processing unit 7 converts the difference in described register to AB phase pulse signal, and exports driver 4 to by output interface 6.
In the present embodiment, because the frequency of operation of processing unit 7 is limited, the transition card 3 initial absolute position values obtained that powers on cannot all convert AB phase pulse signal to and export within a sampling period, needing to be divided into several sampling periods exports, therefore need when numerically-controlled machine 1 is started shooting to ensure that absolute grating scale 2 does not have obvious variation, thus reduce error as far as possible.
The present embodiment solves Panasonic A5 series of driver cannot the compatible problem using the Feedat2.0 agreement of Fagor absolute grating scale, thus realizes Panasonic A5 series of driver and use with mating between Fagor absolute grating scale.The present embodiment utilizes existing transition card 3 in numerically-controlled machine 1, without the need to adding miscellaneous part, thus saves cost, and easy to use.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that this only illustrates, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these embodiments, but these change and amendment all falls into protection scope of the present invention.

Claims (10)

1. a numerically-controlled machine, is characterized in that, described numerically-controlled machine comprises absolute grating scale, transition card and driver, and described transition card comprises processing unit, input interface and output interface;
Described absolute grating scale is electrically connected with described processing unit by described input interface, and described driver is electrically connected with described processing unit by described output interface;
The request instruction that described absolute grating scale sends for receiving described processing unit, and according to described request instruction, absolute position signal being sent to described processing unit by described input interface, described absolute position signal is for characterizing the absolute position of described absolute grating scale;
Described processing unit is used for converting described absolute position signal to absolute position values by communications protocol, and is saved to the register of described processing unit;
Described processing unit also for converting the absolute position values in described register to pulse signal, and exports described driver to by described output interface.
2. numerically-controlled machine as claimed in claim 1, it is characterized in that, described absolute position signal comprises the initial absolute position signal of the initial absolute position for characterizing described absolute grating scale.
3. numerically-controlled machine as claimed in claim 2, is characterized in that, described absolute grating scale also for receiving a request instruction every a sampling period, and sends an absolute position signal to described processing unit according to each request instruction;
Described processing unit is used for the absolute position values that the absolute position signal that adjacent two sampling periods receive converts to carry out difference operation, and difference is saved to described register;
Described processing unit also for converting the difference in described register to pulse signal, and exports described driver to.
4. numerically-controlled machine as claimed in claim 1, it is characterized in that, described processing unit is fpga chip.
5. numerically-controlled machine as claimed in claim 1, it is characterized in that, described communications protocol is Feedat2.0 agreement.
6. numerically-controlled machine as claimed in claim 1, it is characterized in that, described pulse signal is AB phase pulse signal.
7. numerically-controlled machine as claimed in claim 1, it is characterized in that, described input interface and described output interface are serial line interface.
8. the means of communication between absolute grating scale and driver, is characterized in that, the described means of communication utilize as the numerically-controlled machine in claim 1 ~ 7 as described in any one realizes, and the described means of communication comprise the following steps:
S 1, described absolute grating scale receives the request instruction that described processing unit sends, and according to described request instruction, absolute position signal is sent to described processing unit by described input interface;
S 2, described processing unit converts absolute position signal to absolute position values by described communications protocol, and is saved to described register;
S 3, described processing unit converts the absolute position values in described register to pulse signal, and exports described driver to by described output interface.
9. the means of communication as claimed in claim 8, is characterized in that, in step S 1before, the described means of communication are further comprising the steps of:
S 0, the wait one that powers on of described transition card presets the stand-by period.
10. the means of communication as claimed in claim 8, is characterized in that, in step S 1in, described absolute grating scale receives a request instruction every a sampling period, and sends an absolute position signal to described processing unit according to each request instruction;
In step S 3afterwards, the described means of communication are further comprising the steps of:
S 4, the absolute position values that the absolute position signal that adjacent two sampling periods receive converts to carries out difference operation, and difference is saved to described register by described processing unit;
S 5, described processing unit converts the difference in described register to pulse signal, and exports described driver to.
CN201510973334.1A 2015-12-21 2015-12-21 The means of communication between numerically-controlled machine tool and absolute grating scale and driver Active CN105425733B (en)

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 true CN105425733A (en) 2016-03-23
CN105425733B 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 (6)

* Cited by examiner, † Cited by third party
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
CN104158452A (en) * 2013-05-13 2014-11-19 大连普传科技股份有限公司 AC servo permanent magnetic driver

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
CN104158452A (en) * 2013-05-13 2014-11-19 大连普传科技股份有限公司 AC servo permanent magnetic driver
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
CN105425733B (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN103176450B (en) Servo drive and servo-control system
CN103744356A (en) Intelligent dynamically-configurable controller of tool based on DSP (Digital Signal Processor)/FPGA (Field Programmable Gate Array) and control method
US8626319B2 (en) Modular energy load management
CN104808584A (en) Multi-information online detection system for machine tool multi-source energy consumption system
CN106598034B (en) Drive and control of electric machine strategy test macro and method
CN102279816A (en) LCD (liquid crystal display) automatic identification method and device
CN107565861A (en) Multi-Axis Stepper Motor Control System based on STM32 control L6470H drivers
CN103776366A (en) Exciting-resolving integrated device of sine-cosine resolver
CN103777566B (en) Lathe zero point power-off keeping method based on simple nc system 808D
CN104518716A (en) Closed loop control system for miniature direct current motor and control method for system
CN103838183A (en) Numerical control system and output control method thereof
CN104898474A (en) MCU-based multichannel uniform servo pulse generation method
CN105425733A (en) Method for communications between numerical control machine tool and absolute grating ruler and drive
CN210867555U (en) Control equipment and control system of servo motor
CN107430392A (en) For the configuration apparatus and method for the Automation Elements for configuring and/or parameterizing automated system
CN202394095U (en) Wireless numerical control equipment controller
CN102152168B (en) Corner cutting control method in cutting processing system
CN108681286B (en) Wire cutting equipment control device and method based on FPGA
CN204705884U (en) Deep hole lead plug processing real-time monitoring system
CN101794135B (en) Method for achieving tapping and punching functions in numerical control system
CN106227100A (en) A kind of frequency converter control system for the in good time communication of steel skeleton composite production line
CN204730867U (en) Drawworks sensor check system
CN201319067Y (en) Radar micro-wave module universal controller
KR102134691B1 (en) Modbus to echonet lite protocol converter
CN103821798B (en) A kind of control method of hoisting machinery many devices action simultaneously

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