CN103064335A - Function changing method, operation method and motion control card of numerical control system - Google Patents

Function changing method, operation method and motion control card of numerical control system Download PDF

Info

Publication number
CN103064335A
CN103064335A CN2012105927999A CN201210592799A CN103064335A CN 103064335 A CN103064335 A CN 103064335A CN 2012105927999 A CN2012105927999 A CN 2012105927999A CN 201210592799 A CN201210592799 A CN 201210592799A CN 103064335 A CN103064335 A CN 103064335A
Authority
CN
China
Prior art keywords
variable
value
bivariate
numbering
write
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
CN2012105927999A
Other languages
Chinese (zh)
Other versions
CN103064335B (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.)
BEIJING A&E PRECISION MACHINERY Co Ltd
Original Assignee
BEIJING A&E PRECISION MACHINERY 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 BEIJING A&E PRECISION MACHINERY Co Ltd filed Critical BEIJING A&E PRECISION MACHINERY Co Ltd
Priority to CN201210592799.9A priority Critical patent/CN103064335B/en
Publication of CN103064335A publication Critical patent/CN103064335A/en
Application granted granted Critical
Publication of CN103064335B publication Critical patent/CN103064335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention discloses a function changing method, an operation method and a motion control card of a numerical control system. In the function changing method of the numerical control system, a value of a first variable needed for changing the function is obtained by the motion control card and written into a storage area corresponding to the value so that change of the function is achieved. Through the method, expandability of the numerical control system can be improved, and different requirements of more users can be met.

Description

A kind of function variation, operation method and motion control card of digital control system
Technical field
The present invention relates to field of mechanical technique, particularly relate to a kind of function variation, operation method and motion control card of digital control system.
Background technology
Digital control system is the control system of the equipment such as numerically-controlled machine, and it mainly is to realize action control to numerically-controlled machine by the digital command of utilizing numeral, literal and symbol to form, and what control generally is mechanical quantity and the switching values such as position, angle, speed.
Digital control system is the core component of the equipment such as numerically-controlled machine, its function will inevitably change along with user's changes in demand, and change along with the difference of processing work, the demand that constantly changes in order to satisfy the user is necessary to make digital control system to realize secondary development function.The secondary development function of digital control system refers to the user by the mode of software programming, for digital control system increases new function or revises existing capability, does not need any participation of Development of CNC merchant in this process.Therefore, by secondary development function, the user can according to oneself increase in demand or revise the function of digital control system, thereby can increase substantially the extensibility of digital control system.
In the prior art, realize digital control system secondary development function mode normally digital control system provide a large amount of application programming interface for the user, and these application programming interface to be developers of digital control system think in the future the user may need to change or add the place of new function.But, adopt this kind mode to consider from functional perspective open which function is to the user, so that the secondary development function of digital control system has certain limitation, the developer of digital control system can not predictive user all demands, thereby the quantity of the application programming interface that provides also is limited, can not satisfy various users' different demands.
Summary of the invention
The technical matters that the present invention mainly solves provides a kind of function variation, operation method and motion control card of digital control system, can improve the extensibility of digital control system.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of function variation of digital control system is provided, comprises that the motion control card of digital control system obtains the value of the first required variable of change function; The value of the first variable is write in the corresponding stored district of motion control card the change with practical function.
Wherein, the step that the value of the first variable is write in the corresponding stored district of motion control card comprises: numbering and the write operation instruction of obtaining the first variable by the variable read-write interface; In default variable's attribute table, obtain the access limit information of the first variable according to the numbering of the first variable; Judge according to the access limit information of the first variable whether the first variable is read-write, be judged as when being, in default variable's attribute table, obtain the offset address of the first variable according to the numbering of the first variable; According to the write operation instruction value of the first variable is write in memory block corresponding to the offset address of the first variable.
Wherein, obtain in default variable's attribute table according to the numbering of the first variable before the step of offset address of the first variable, comprising: the threshold range that in default variable's attribute table, obtains the first variable according to the numbering of the first variable; Whether the value of judging the first variable is being judged as when being in threshold range, and the numbering of executive basis the first variable is obtained the step of the offset address of the first variable in default variable's attribute table.
Wherein, the motion control card of the digital control system step of obtaining the value of the first required variable of change function comprises: motion control card obtains the required bivariate value of change function; Bivariate value is calculated to obtain the value of the first variable according to the function algorithm of function.
Wherein, the motion control card step of obtaining the required bivariate value of change function comprises: obtain bivariate numbering and read operation instruction by the variable read-write interface; In default variable's attribute table, obtain bivariate access limit information according to bivariate numbering; Judge according to bivariate access limit information whether the second variable is read-write, be judged as when being, in default variable's attribute table, obtain bivariate offset address according to bivariate numbering; Read the value of storing in memory block corresponding to bivariate offset address and then obtain bivariate value according to the read operation instruction.
For solving the problems of the technologies described above, another technical solution used in the present invention is: a kind of operation method of digital control system is provided, comprises that the motion control card of digital control system obtains the value of the first required variable of change function; The value of the first variable is write in the corresponding stored district of motion control card; Motion control card utilizes the motor rotation of value control digital control system of the first variable that the memory block stores with practical function.
Wherein, the step that the value of the first variable is write in the corresponding stored district of motion control card comprises: numbering and the write operation instruction of obtaining the first variable by the variable read-write interface; In default variable's attribute table, obtain the access limit information of the first variable according to the numbering of the first variable; Judge according to the access limit information of the first variable whether the first variable is read-write, be judged as when being, in default variable's attribute table, obtain the offset address of the first variable according to the numbering of the first variable; According to the write operation instruction value of the first variable is write in memory block corresponding to the offset address of the first variable.
Wherein, obtain in default variable's attribute table according to the numbering of the first variable before the step of offset address of the first variable, comprising: the threshold range that in default variable's attribute table, obtains the first variable according to the numbering of the first variable; Whether the value of judging the first variable is being judged as when being in threshold range, and the numbering of executive basis the first variable is obtained the step of the offset address of the first variable in default variable's attribute table.
Wherein, the motion control card of the digital control system step of obtaining the value of the first required variable of change function comprises: motion control card obtains the required bivariate value of change function; Bivariate value is calculated to obtain the value of the first variable according to the function algorithm of function.
Wherein, the motion control card step of obtaining the required bivariate value of change function comprises: obtain bivariate numbering and read operation instruction by the variable read-write interface; In default variable's attribute table, obtain bivariate access limit information according to bivariate numbering; Judge according to bivariate access limit information whether the second variable is read-write, be judged as when being, in default variable's attribute table, obtain bivariate offset address according to bivariate numbering; Read the value of storing in memory block corresponding to bivariate offset address and then obtain bivariate value according to the read operation instruction.
For solving the problems of the technologies described above, another technical scheme that the present invention adopts is: a kind of motion control card of digital control system is provided, comprises: acquisition module, for the value of the first required variable of the function of obtaining the change digital control system; Writing module is used for the value of the first variable is write the corresponding stored district of motion control card with the change of practical function.
Wherein, writing module comprises: the first acquiring unit is used for numbering and the write operation instruction of obtaining the first variable by the variable read-write interface; Second acquisition unit is for the access limit information of obtaining the first variable according to the numbering of the first variable at default variable's attribute table; The first judging unit is used for judging according to the access limit information of the first variable whether the first variable is read-write; The 3rd acquiring unit is used in the first judgment unit judges obtaining the offset address of the first variable according to the numbering of the first variable when being in the variable's attribute table of presetting; Writing unit is for memory block corresponding to offset address that the value of the first variable is write the first variable according to the write operation instruction.
Wherein, writing module also comprises: the 4th acquiring unit, for the threshold range that obtains the first variable according to the numbering of the first variable at default variable's attribute table; The second judging unit is used for judging that the value of the first variable is whether in threshold range; Wherein, the 3rd acquiring unit also is used in the second judgment unit judges obtaining the offset address of the first variable according to the numbering of the first variable when being in the variable's attribute table of presetting.
Wherein, acquisition module comprises: the 5th acquiring unit is used for obtaining the required bivariate value of change function; The 6th acquiring unit is for the value of according to the function algorithm of function bivariate value being calculated to obtain the first variable.
Wherein, the 5th acquiring unit comprises: first obtains subelement, is used for obtaining bivariate numbering and read operation instruction by the variable read-write interface; Second obtains subelement, is used for obtaining bivariate access limit information according to bivariate numbering at default variable's attribute table; Judgment sub-unit is used for judging according to bivariate access limit information whether the second variable is read-write; The 3rd obtains subelement, is used for being judged as when being in judgment sub-unit obtaining bivariate offset address according to bivariate numbering at default variable's attribute table; The 4th obtains subelement, is used for reading the value of storing memory block corresponding to bivariate offset address and then obtaining bivariate value according to the read operation instruction.
The invention has the beneficial effects as follows: the situation that is different from prior art, in the function variation of digital control system of the present invention, the value of the first required variable when digital control system is at first obtained function changed, then the value with this first variable writes in the corresponding memory block, thereby the change of practical function, by the way, when the function of needs change digital control system, only need obtain the value of the first required variable of this function of change, and this value write the change that can realize in the corresponding memory block this function, so that the change of the function of digital control system can not be subject to the restriction of limited functional interface quantity as prior art, can improve the extensibility of digital control system, satisfy the different demands of more users.
Description of drawings
Fig. 1 is the structural representation of digital control system;
Fig. 2 is the process flow diagram of an embodiment of the function variation of digital control system of the present invention;
Fig. 3 is the process flow diagram that among Fig. 2 the value of the first variable is write in the corresponding stored district of motion control card;
Fig. 4 is the process flow diagram that the motion control card of digital control system obtains the value of the first required variable of change function in another embodiment of function variation of digital control system of the present invention;
Fig. 5 is the process flow diagram that motion control card obtains the required bivariate value of change function among Fig. 4;
Fig. 6 is the process flow diagram of an embodiment of the operation method of digital control system of the present invention;
Fig. 7 is the structural representation of motion control card one embodiment of digital control system of the present invention;
Fig. 8 is the structural representation of writing module one embodiment in the motion control card of Fig. 7;
Fig. 9 is in another embodiment of motion control card of digital control system of the present invention, the structural representation of acquisition module.
Embodiment
Consult Fig. 1, Fig. 1 is the structural representation of digital control system.In digital control system, motion control card 104 is connected with host computer (being computing machine) 102 by pci bus 103, the host computer 102 main input and output of being responsible for the user, by the instruction of pci bus 103 host computers with user input, such as motion control instruction or instruction etc. is set sends to motion control card 104.The user inputs instructions to host computer 102 by input equipment 101, host computer 102 with the command of user input to motion control card 104, after motion control card 104 receives the instruction of user's input, instruction to user input is processed the backward driver 105 such as (such as motion planning) and is sent steering order, the final control that realizes driver.Simultaneously, driver 105 can send to motion control card 104 with the status information (such as running status, current location etc.) of oneself, motion control card 104 further sends to host computer 102 with these status informations, by the status information of host computer 102 display drivers 105.
Consult Fig. 2, an embodiment of the function variation of digital control system of the present invention comprises step:
Step 201: the motion control card of digital control system obtains the value of the first required variable of change function.
Describe in conjunction with digital control system shown in Figure 1, the change of digital control system function comprises the increase of digital control system function or modification etc.An at first default variable read-write interface calls for the user in digital control system, can realize that by this variable read-write interface opening is to the read-write of all variablees of user, such as the read-write to variablees such as numerical control system of systems configuration parameter, channel parameters or axle parameters in the digital control system.In the present embodiment, when the user need to increase or revise a function of digital control system, in known increase or revise in the situation of value of the first variable that this function will revise, only need the value of this first variable is inputed in the digital control system by the variable read-write interface.Particularly, the user inputs the value of the first variable in the variable read-write interface by input equipment 101, host computer 102 sends to motion control card 104 with the value of the first variable of user's input by pci bus 103, and this moment, motion control card 104 obtained the value of the first variable.
Step S202: the value of the first variable is write in the corresponding stored district of motion control card the change with practical function.
Motion control card 104 is after the value of obtaining the first variable, the value of the first variable is write in the corresponding memory block, to replace the original value of original the first variable stored in this memory block, thereby utilize the running of the value control motor of the first variable that writes the memory block, and then realize corresponding function change.
Further, consult Fig. 3, the step that the value of the first variable is write in the corresponding stored district of motion control card comprises:
Step S301: numbering and the write operation instruction of obtaining the first variable by the variable read-write interface.
The open memory field that all leaves motion control card 104 to all variablees of user in the digital control system, this memory field is divided into a plurality of memory blocks, and each variable is stored in the memory block in order, shown in table (1):
System configuration parameter
Channel parameters
The axle parameter
.......
Table (1)
Also preset a variable's attribute table in the digital control system, each variable is numbered in order, records the attribute information of each variable in this variable's attribute table, such as information such as the title of variable, data type, maximal value, minimum value, access limits, shown in following table (2)
Table (2) variable's attribute table
In order the value of the first variable to be write in the corresponding memory block, the user needs to input the numbering of the first variable and write operation instruction so that motion control card can be determined and need to carry out write activity to the first variable by the variable read-write interface.Further, the user utilizes input equipment 101 to input numbering and the write operation instruction of the first variable in the variable read-write interface, and host computer 102 sends to motion control card 104 with numbering and the write operation instruction of the first variable of user's input.Motion control card 104 can obtain according to the numbering of the first variable the attribute information of the first variable in the variable's attribute table after the numbering of obtaining the first variable.Wherein, after motion control card 104 obtains the numbering of the first variable, this numbering is analyzed and judged whether this numbering is effective, namely in the variable's attribute table, seek corresponding with it numbering, when recording corresponding numbering in the variable's attribute table, illustrate that the numbering of the first variable that obtains is effective.
Step S302: the access limit information of in default variable's attribute table, obtaining the first variable according to the numbering of the first variable.
When the numbering of the first variable was effective, motion control card 104 obtained the access limit information of the first variable in the variable's attribute table according to this numbering, and access limit information is the numerical value of the access limit shown in the table (2).Wherein, the user type of the numerical value of access limit in order to represent whether corresponding variable can carry out read-write operation and can carry out to relevant variable read-write operation.For example, the numerical value of the access limit that the variable of the numbering 1-4 shown in the table (2) is corresponding is 3, and variable corresponding to expression numbering 1-4 all can carry out read-write operation.
Step S303: judge according to the access limit information of the first variable whether the first variable is read-write.
After obtaining the access limit information of the first variable, motion control card 104 judges according to this access limit information whether the first variable has access limit, when judging that the first variable can be read and write, explanation can write the value of the first variable or read, execution in step S304, when judging that the first variable is not read-write, explanation can not be read and write the value of the first variable, can't change function, at this moment execution in step S306.
Step S304: the offset address that in default variable's attribute table, obtains the first variable according to the numbering of the first variable.
When judging that the first variable has access limit, in variable's attribute table obtain first variable at the offset address of memory field according to the numbering of the first variable this moment, and this offset address refers to the address of the memory block of the value of storage the first variable in the memory field.
Wherein, before the offset address that obtains the first variable, at first in the variable's attribute table, obtain the threshold range of the first variable according to the numbering of the first variable, namely obtain maximal value and the minimum value of the first variable.By table (2) as can be known, comprise maximal value and the minimum value information of variable in the attribute information of each variable, can in the variable's attribute table, obtain this maximal value of numbering corresponding variable and minimum value by the numbering of the first variable.After obtaining the threshold range of the first variable, judge that the value of the first variable is whether in threshold range, between the maximal value and minimum value that namely whether the value of the first variable records in the variable's attribute table, being judged as when being, illustrate that the value of the first variable that obtains is effective, this moment execution in step S304, when the value of judging the first variable is not in threshold range, the value that the first variable that obtains is described is invalid, and execution in step S306 finishes write operation.
Step S305: the value of the first variable is write in memory block corresponding to the offset address of the first variable according to the write operation instruction.
According to the write operation instruction of obtaining in the above-mentioned steps, motion control card 104 can be known to be needed the value of the first variable is carried out write operation.Behind the offset address that obtains the first variable, the value of the first variable is write in memory block corresponding to offset address, with the original value of the first variable of replacing being stored in this memory block, thereby realize the change of corresponding function.
Step S306: finish write operation.
After the value of the first variable that the change function is required writes the respective storage areas of motion control card 104, can realize the change of corresponding function, finish write operation this moment.Perhaps, when dissatisfied value with the first variable writes the condition of respective storage areas, also write operation will be finished, namely corresponding function can't be changed.
In the present embodiment, the variable read-write interface that provides by digital control system, motion control card 104 at first obtains the value of the first required variable of change one function, then the value of this first variable is write in the corresponding memory block to replace the original value of original the first variable stored in memory block, and then realize the change of corresponding function.Therefore, when the user need to add or revise corresponding function, the variable read-write interface that only needs to provide by digital control system will add or revise in the value input motion control card 104 of the first required variable of this function, motion control card 104 obtains after the value of this first variable value with the first variable and writes corresponding memory block replacing original original value, thereby realizes interpolation or the modification of corresponding function.By the way, in prior art, only provide limited functional interface quantity to the user, so that the user can only increase or revise by these limited functional interfaces the mode of corresponding function, the digital control system of present embodiment by the operation such as the value of relevant variable is made amendment to realize the change of corresponding function, so that the change of the function of digital control system is difficult for being restricted, improve the extensibility of digital control system, can satisfy the different demands of more users.
In the above-described embodiment, the user directly inputs the value of the first required variable of a certain function of change so that motion control card 104 directly obtains the value of this first variable and then the change of realization corresponding function, in another embodiment, when the user can't be known the value of required the first variable of this function of change or the currency that need to read the required variable of this function of change in the digital control system when obtaining the value of the first required variable of this function of change, at this moment, consult Fig. 4, the step that the motion control card 104 of digital control system obtains the value of the first required variable of change function comprises:
Step S401: motion control card obtains the required bivariate value of change function.
Motion control card 104 at first needs the required bivariate value of function that changes in the reading system, particularly, consults Fig. 5, comprises following substep:
Substep S501: obtain bivariate numbering and read operation instruction by the variable read-write interface.
The user utilizes input equipment 101 to input the bivariate numbering that this function of change will read in the variable read-write interface, input simultaneously the read operation instruction, host computer 102 sends to motion control card 104 with bivariate numbering and read operation instruction by pci bus 103, after motion control card 104 receives bivariate numbering and read operation instruction, can determine and to read action to bivariate value.
Substep S502: in default variable's attribute table, obtain bivariate access limit information according to bivariate numbering.
Substep S503: judge according to bivariate access limit information whether the second variable is read-write.
When judging that the second variable has access limit, carry out substep S504, when judging that the second variable does not have access limit, can't read bivariate value, carry out substep S506 this moment and finish read operation.
Substep S504: in default variable's attribute table, obtain bivariate offset address according to bivariate numbering.
Substep S505: read the value of storing in memory block corresponding to bivariate offset address and then obtain bivariate value according to the read operation instruction.
Obtain the bivariate numbering of user's input by variable read-write interface motion control card, thereby in the variable's attribute table, obtain corresponding bivariate offset address according to bivariate numbering, and then read the bivariate value of the corresponding storage area stores of this offset address by bivariate offset address.
Substep S506: finish read operation.After reading bivariate value, finish read operation.Perhaps, in the process that reads bivariate value, when not satisfying reading conditions, can't obtain bivariate value, finish read operation this moment.
Step S402: the function algorithm of the function of change calculates to obtain the value of the first variable to bivariate value as required.
After obtaining bivariate value, bivariate value is calculated to obtain the value of the first variable by the function algorithm of the function that will change, and the value of the first variable is write in the motion control card 104 corresponding memory blocks to realize the change of corresponding function.
For example, take the five-shaft interlock function of digital control system as example, when the user need to add five-shaft interlock function, the positional value (i.e. the value of the first variable) that need to write lathe coordinate system to be realizing five-shaft interlock function, then need obtain by the interpolated point positional value (i.e. bivariate value) of workpiece coordinate system for the positional value of lathe coordinate system.Particularly, the user inputs numbering and the read operation instruction of the interpolated point positional value of workpiece coordinate system in the variable read-write interface by input equipment 101, host computer 102 sends to motion control card 104 by pci bus 103 with numbering and the read operation instruction of interpolated point positional value, after motion control card 104 obtains the numbering and read operation instruction of interpolated point positional value, can determine and to carry out read operation to the interpolated point positional value.At this moment, motion control card 104 obtains the access limit information of interpolated point positional value in the variable's attribute table according to the numbering of interpolated point positional value, judge whether and to read and write the interpolated point positional value according to this access limit information, be judged as when being, in the variable's attribute table, obtain the offset address of interpolated point positional value in the memory field according to this numbering, and then read the interpolated point positional value that store this offset address memory block pointed.Motion control card 104 is after obtaining the interpolated point positional value, according to coordinate transformation algorithm the interpolated point positional value is calculated, thereby obtain the positional value of lathe coordinate system, and the positional value of lathe coordinate system is fed back to host computer 102 show, so that the user is known obtaining of the positional value of finishing lathe coordinate system.The user is according to the demonstration result of host computer 102, by numbering and the write operation instruction of input equipment 101 at the positional value of variable read-write interface input lathe coordinate system, host computer 102 sends to motion control card 104 by pci bus 103 with numbering and the write operation instruction of the positional value of lathe coordinate system, thereby motion control card 104 obtains the offset address of the positional value of lathe coordinate system in the variable's attribute table according to this numbering, thereby write in memory block corresponding to this offset address according to the positional value of write operation instruction with lathe coordinate system, to realize five-shaft interlock function.
Certainly, the first variable can be identical variable with the second variable, also can be different variablees, and the concrete function by realizing determines.
Consult Fig. 6, and in conjunction with Fig. 1, in the embodiment of the operation method of digital control system of the present invention, comprise step:
Step S601: the motion control card of digital control system obtains the value of the first required variable of change function.
When needs add or revise a certain function of digital control system, the value of the first required variable of this function is changed in the variable read-write interface input that the user provides in digital control system by input equipment 101, host computer 102 sends to motion control card 104 with the value of the first variable of user's input by pci bus 103, so that motion control card 104 can obtain the value of the first required variable of this function of change.
Step S602: the value of the first variable is write in the corresponding stored district of motion control card.
The digital control system opening is all left in the memory field of motion control card 104 to all variablees of user, and this internal memory goes to be divided into a plurality of memory blocks, and each variable is stored in respectively in the memory block of memory field in order.After motion control card 104 obtains the value of the first variable, the value of the first variable is write the original value of the first original variable of being stored with the replacement memory block in the corresponding memory block of this variable.Concrete ablation process can carry out with reference to above-mentioned embodiment, does not give unnecessary details one by one herein.
Step S603: motion control card utilizes the motor rotation of value control digital control system of the first variable that the memory block stores to realize corresponding function.
The value that motion control card 104 will change the first required variable of this function writes after the corresponding memory block, turns round by the value control motor 105 that calls the first variable of storing the memory block, thereby realizes the corresponding function of digital control system.
In the present embodiment, when user add or when revising a certain function of digital control system, only need input to add or revise the value of the first required variable of this function, motion control card 104 writes the value of the first variable interpolation or the modification that can realize this function behind the corresponding memory block, and after this 104 need of motion control card value of calling the first variable that writes in memory block running of controlling motor 105 can realize corresponding function.By the way, the change of the function of digital control system can not be subject to the restriction of limited functional interface quantity as prior art, can improve the extensibility of digital control system, satisfies the different demands of more users.
In addition, in another embodiment, when the user can't be known the value of the first variable that a certain function of change is required, the value that perhaps needs to read the variable in the digital control system is when obtaining the value of the first variable, at this moment, motion control card 104 need to read the required bivariate value of this function of change in the memory field, and then by the function algorithm of this function bivariate value is calculated to obtain the value of the first variable, and then the value of the first variable is write in the corresponding memory block change with practical function.Reading particularly process can carry out with reference to embodiment shown in Figure 5, for succinct purpose, does not give unnecessary details one by one herein.
Consult Fig. 7, Fig. 7 is the structural representation of an embodiment of the motion control card of digital control system of the present invention.In the present embodiment, motion control card comprises acquisition module 701 and writing module 702.Wherein, acquisition module 701 is for the value of the first required variable of the function of obtaining the change digital control system, writing module 702 writes the corresponding stored district of motion control card for the value of the first variable that acquisition module 701 is obtained, thereby realizes the change of corresponding function.
Further, consult Fig. 8, the writing module 702 of present embodiment also comprises the first acquiring unit 801, second acquisition unit 802, the first judging unit 803, the 3rd acquiring unit 804 and writing unit 805.Particularly, the first acquiring unit is for numbering and the write operation instruction of obtaining the first variable by the variable read-write interface; Second acquisition unit 802 is used for obtaining at default variable's attribute table according to the numbering of the first variable the access limit information of the first variable; The first judging unit 803 is used for judging according to the access limit information of the first variable whether the first variable is read-write; The 3rd acquiring unit 804 is used for obtaining the offset address of the first variable according to the numbering of the first variable in default variable's attribute table when the first judging unit 803 judges that the first variable is read-write; Writing unit 805 is used for according to the write operation instruction that the first acquiring unit 801 obtains the value of the first variable being write the memory block corresponding to offset address of the first variable.And when the first judging unit 803 judges that the first variable is not read-write, illustrate that the first variable does not have access limit, can not be to changing required function, this moment the first judging unit 803 with this judged result to the host computer of digital control system feedback, to show the result that can not read and write the first variable to the user by host computer.
In addition, writing module 702 also comprises the 4th acquiring unit 806 and the second judging unit 807.After the first judging unit 803 judgements the first variable is read-write and before the 3rd acquiring unit 804 obtains the offset address of the first variable, whether the value that also need judge the first variable is effective, this moment the 4th, acquiring unit 806 was used for obtaining at default variable's attribute table according to the numbering of the first variable the threshold range of the first variable, the second judging unit 807 is used for judging that the value of the first variable is whether in the threshold range that the 4th acquiring unit 806 obtains, the value of judging the first variable at the second judging unit 807 this moment is in threshold range the time, and the 3rd acquiring unit 804 obtains the offset address of the first variable.The value of judging the first variable when the second judging unit 807 is not in threshold range the time, the value that the first variable that obtains is described is invalid, can not write in the corresponding memory block and can't carry out the change of corresponding function, this moment, the second judging unit 807 fed back to this judged result the host computer of digital control system, to show the invalid result of value of the first variable to the user by host computer.
In the present embodiment, when the user need to change a certain function of digital control system, only need the value of the first required variable of this function of input change, thereby obtain the value of the first variable at acquisition module 701 after, write in the corresponding memory block to realize the change of this function by the value of writing module 702 with the first variable, the extensibility of digital control system can be improved, so that the change of the function of digital control system is difficult for being restricted, the different demands of more users can be satisfied.
Consult Fig. 9, in another embodiment of the motion control card of digital control system, the acquisition module of motion control card comprises the 5th acquiring unit 901 and the 6th acquiring unit 902.Wherein the 5th acquisition module 901 is used for obtaining the required bivariate value of change function; The 6th acquisition module 902 calculates to obtain the value of the first variable to bivariate value for the function algorithm of the function that changes as required.
Further, the 5th acquiring unit 901 comprises that also first obtains that subelement 9011, second obtains subelement 9012, judgment sub-unit 9013, the 3rd is obtained subelement 9014 and the 4th and obtained subelement 905.Wherein, first obtain subelement 9011 for obtaining bivariate numbering and read operation instruction by the variable read-write interface; Second obtains subelement 9012 is used for obtaining bivariate access limit information according to described bivariate numbering at default variable's attribute table; Judgment sub-unit 9013 is used for judging according to bivariate access limit information whether the second variable is read-write; The 3rd obtains subelement 9014 is used for being judged as when being in judgment sub-unit 9013 and obtains bivariate offset address according to bivariate numbering at default variable's attribute table; The 4th acquiring unit 9015 is used for according to read-write operation instruction and reads the value of storing memory block corresponding to bivariate offset address and then obtain bivariate value.
In the present embodiment, when the user can't be known the value of the first variable that a certain function of change is required, the value that perhaps needs to read the variable in the digital control system is when obtaining the value of the first variable, at this moment, the acquisition module of motion control card need to read the required bivariate value of this function of change in the memory field, and then according to the function algorithm of required function bivariate value is calculated to obtain the value of the first variable.Certainly, the first variable and the second variable can be same variablees, also can be different variablees, particularly by determining according to the function that will change.
The above only is embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (15)

1. the function variation of a digital control system is characterized in that, comprising:
The motion control card of described digital control system obtains the value of the first required variable of the described function of change;
The value of described the first variable is write in the corresponding stored district of motion control card to realize the change of described function.
2. method according to claim 1 is characterized in that,
The step that described value with described the first variable writes in the corresponding stored district of motion control card comprises:
Obtain numbering and the write operation instruction of described the first variable by the variable read-write interface;
In default variable's attribute table, obtain the access limit information of the first variable according to the numbering of described the first variable;
Judge according to the access limit information of described the first variable whether described the first variable is read-write, be judged as when being, in default variable's attribute table, obtain the offset address of the first variable according to the numbering of described the first variable;
According to described write operation instruction the value of described the first variable is write in memory block corresponding to the offset address of the first variable.
3. method according to claim 2 is characterized in that,
Described numbering according to described the first variable is obtained in default variable's attribute table before the step of offset address of the first variable, comprising:
In default variable's attribute table, obtain the threshold range of the first variable according to the numbering of described the first variable;
Whether the value of judging described the first variable is being judged as when being in described threshold range, and the numbering of described the first variable of executive basis is obtained the step of the offset address of the first variable in default variable's attribute table.
4. method according to claim 1 is characterized in that,
The step that the motion control card of described digital control system obtains the value of the first required variable of the described function of change comprises:
Described motion control card obtains the required bivariate value of the described function of change;
Described bivariate value is calculated to obtain the value of described the first variable according to the function algorithm of described function.
5. method according to claim 4 is characterized in that,
The step that described motion control card obtains the required bivariate value of the described function of change comprises:
Obtain described bivariate numbering and read operation instruction by the variable read-write interface;
In default variable's attribute table, obtain bivariate access limit information according to described bivariate numbering;
Judge according to described bivariate access limit information whether described the second variable is read-write, be judged as when being, in default variable's attribute table, obtain bivariate offset address according to described bivariate numbering;
Read the value of storing in memory block corresponding to described bivariate offset address and then obtain bivariate value according to described read operation instruction.
6. the operation method of a digital control system is characterized in that, comprising:
The motion control card of described digital control system obtains the value of the first required variable of change function;
The value of described the first variable is write in the corresponding stored district of motion control card;
Described motion control card utilizes the value of the first variable that described memory block stores to control the motor rotation of described digital control system to realize described function.
7. method according to claim 6 is characterized in that,
The step that described value with described the first variable writes in the corresponding stored district of motion control card comprises:
Obtain numbering and the write operation instruction of described the first variable by the variable read-write interface;
In default variable's attribute table, obtain the access limit information of the first variable according to the numbering of described the first variable;
Judge according to the access limit information of described the first variable whether described the first variable is read-write, be judged as when being, in default variable's attribute table, obtain the offset address of the first variable according to the numbering of described the first variable;
According to described write operation instruction the value of described the first variable is write in memory block corresponding to the offset address of the first variable.
8. method according to claim 7 is characterized in that,
Described numbering according to described the first variable is obtained in default variable's attribute table before the step of offset address of the first variable, comprising:
In default variable's attribute table, obtain the threshold range of the first variable according to the numbering of described the first variable;
Whether the value of judging described the first variable is being judged as when being in described threshold range, and the numbering of described the first variable of executive basis is obtained the step of the offset address of the first variable in default variable's attribute table.
9. method according to claim 6 is characterized in that,
The step that the motion control card of described digital control system obtains the value of the first required variable of change function comprises:
Described motion control card obtains the required bivariate value of change function;
Described bivariate value is calculated to obtain the value of described the first variable according to the function algorithm of described function.
10. method according to claim 9 is characterized in that,
The step that described motion control card obtains the required bivariate value of change function comprises:
Obtain described bivariate numbering and read operation instruction by the variable read-write interface;
In default variable's attribute table, obtain bivariate access limit information according to described bivariate numbering;
Judge according to described bivariate access limit information whether described the second variable is read-write, be judged as when being, in default variable's attribute table, obtain bivariate offset address according to described bivariate numbering;
Read the value of storing in memory block corresponding to described bivariate offset address and then obtain bivariate value according to described read operation instruction.
11. the motion control card of a digital control system is characterized in that, comprising:
Acquisition module is for the value of the first required variable of the function of obtaining the described digital control system of change;
Writing module is used for the value of described the first variable is write the corresponding stored district of motion control card to realize the change of described function.
12. motion control card according to claim 11 is characterized in that,
The said write module comprises:
The first acquiring unit is used for numbering and the write operation instruction of obtaining described the first variable by the variable read-write interface;
Second acquisition unit is for the access limit information of obtaining the first variable according to the numbering of described the first variable at default variable's attribute table;
The first judging unit is used for judging according to the access limit information of described the first variable whether described the first variable is read-write;
The 3rd acquiring unit is used in described the first judgment unit judges obtaining the offset address of the first variable according to the numbering of described the first variable when being in the variable's attribute table of presetting;
Writing unit is for memory block corresponding to offset address that the value of described the first variable is write the first variable according to described write operation instruction.
13. motion control card according to claim 12 is characterized in that,
The said write module also comprises:
The 4th acquiring unit is for the threshold range that obtains the first variable according to the numbering of described the first variable at default variable's attribute table;
The second judging unit is used for judging that the value of described the first variable is whether in described threshold range;
Wherein, described the 3rd acquiring unit also is used in described the second judgment unit judges obtaining the offset address of the first variable according to the numbering of described the first variable when being in the variable's attribute table of presetting.
14. motion control card according to claim 11 is characterized in that,
Described acquisition module comprises:
The 5th acquiring unit is used for obtaining the required bivariate value of the described function of change;
The 6th acquiring unit is for the value of according to the function algorithm of described function described bivariate value being calculated to obtain described the first variable.
15. motion control card according to claim 14 is characterized in that,
Described the 5th acquiring unit comprises:
First obtains subelement, is used for obtaining described bivariate numbering and read operation instruction by the variable read-write interface;
Second obtains subelement, is used for obtaining bivariate access limit information according to described bivariate numbering at default variable's attribute table;
Judgment sub-unit is used for judging according to described bivariate access limit information whether described the second variable is read-write;
The 3rd obtains subelement, is used for being judged as when being in described judgment sub-unit obtaining bivariate offset address according to described bivariate numbering at default variable's attribute table;
The 4th obtains subelement, is used for reading the value of storing memory block corresponding to described bivariate offset address and then obtaining bivariate value according to described read operation instruction.
CN201210592799.9A 2012-12-31 2012-12-31 Function changing method, operation method and motion control card of numerical control system Active CN103064335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210592799.9A CN103064335B (en) 2012-12-31 2012-12-31 Function changing method, operation method and motion control card of numerical control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210592799.9A CN103064335B (en) 2012-12-31 2012-12-31 Function changing method, operation method and motion control card of numerical control system

Publications (2)

Publication Number Publication Date
CN103064335A true CN103064335A (en) 2013-04-24
CN103064335B CN103064335B (en) 2015-05-13

Family

ID=48107002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210592799.9A Active CN103064335B (en) 2012-12-31 2012-12-31 Function changing method, operation method and motion control card of numerical control system

Country Status (1)

Country Link
CN (1) CN103064335B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104678899A (en) * 2015-02-11 2015-06-03 北京配天技术有限公司 Curve velocity planning method and device, as well as numerical control machining path data processing method
CN104937510A (en) * 2014-01-15 2015-09-23 三菱电机株式会社 Numerical control apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1353500A (en) * 2000-11-10 2002-06-12 三垦电气株式会社 Control device and setting method of action parameters
CN1845027A (en) * 2005-04-07 2006-10-11 发那科株式会社 Numerical control system
CN102339031A (en) * 2010-07-27 2012-02-01 深圳市合信自动化技术有限公司 Method and device for calling subprogram and PLC (Programmable Logic Controller) control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1353500A (en) * 2000-11-10 2002-06-12 三垦电气株式会社 Control device and setting method of action parameters
CN1845027A (en) * 2005-04-07 2006-10-11 发那科株式会社 Numerical control system
CN102339031A (en) * 2010-07-27 2012-02-01 深圳市合信自动化技术有限公司 Method and device for calling subprogram and PLC (Programmable Logic Controller) control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104937510A (en) * 2014-01-15 2015-09-23 三菱电机株式会社 Numerical control apparatus
CN104678899A (en) * 2015-02-11 2015-06-03 北京配天技术有限公司 Curve velocity planning method and device, as well as numerical control machining path data processing method
CN104678899B (en) * 2015-02-11 2017-12-15 北京配天技术有限公司 Curve speed planing method, device and its Machining Path data processing method

Also Published As

Publication number Publication date
CN103064335B (en) 2015-05-13

Similar Documents

Publication Publication Date Title
CN101387988B (en) Computer having flash memory and method of operating flash memory
CN100520650C (en) Fuzzy PID control method and execution apparatus of numerical control machine
CN103500516A (en) High-efficiency trace replay method and system based on electronic map
CN109765851A (en) Speed calculation method, device, storage medium and the computer equipment of track movement
CN110928475B (en) Page interaction method, device, equipment and storage medium of intelligent interaction panel
CN111390902A (en) Trajectory planning method, trajectory planning device, equipment and storage medium
CN103744598A (en) Method and equipment for processing message
CN103064335B (en) Function changing method, operation method and motion control card of numerical control system
CN103336670A (en) Method and device for automatic distribution of data blocks based on data temperature
CN102024051A (en) Data updating method for distributed memory database
CN116243658B (en) Numerical control system control method and application
CN103389893A (en) Read-write method and device for configuration register
CN109710547B (en) Buffer memory management design and implementation method in industrial Internet of things
CN110045681B (en) External compensation method for numerical control machine tool position-related errors based on position prediction
CN102091731B (en) Hole shape regulating and controlling system of steel tube empty curving forming unit and control method thereof
CN105404591A (en) Processor system and storer control method for same
US11036206B2 (en) Numerical controller
US11320800B2 (en) Optimization device
JP7409822B2 (en) numerical control device
CN101556556B (en) Data storage method and device
CN101630155B (en) Method for realizing instruction interaction in numerical control machine system
CN201974672U (en) Steel pipe hollow-bending forming machine set pass adjustment control system
CN202387942U (en) Programmable value logic controller for die-casting machine
CN202257196U (en) Numerical control system capable of recording and utilizing operation information
CN101996192A (en) Word stock combining method and 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
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing City, Haidian District information road, building 18, No. 7, digital media building, room two, Room 201

Applicant after: BEIJING PEITIAN TECHNOLOGY CO., LTD.

Address before: 100085 Beijing City, Haidian District information road, building 18, No. 7, digital media building, room two, Room 201

Applicant before: Beijing A&E Precision Machinery Co. Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: BEIJING A+E PRECISION MACHINERY CO. LTD. TO: BEIJING PEITIAN TECHNOLOGY CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20130424

Assignee: Anhui SCBD Robot Technology Co Ltd

Assignor: BEIJING PEITIAN TECHNOLOGY CO., LTD.

Contract record no.: 2016990000487

Denomination of invention: Function changing method, operation method and motion control card of numerical control system

Granted publication date: 20150513

License type: Exclusive License

Record date: 20161125

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model