CN109150060B - Resolution adjustment method for electronic device control command and command generation device - Google Patents

Resolution adjustment method for electronic device control command and command generation device Download PDF

Info

Publication number
CN109150060B
CN109150060B CN201710450813.4A CN201710450813A CN109150060B CN 109150060 B CN109150060 B CN 109150060B CN 201710450813 A CN201710450813 A CN 201710450813A CN 109150060 B CN109150060 B CN 109150060B
Authority
CN
China
Prior art keywords
value
resolution
control command
frequency value
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710450813.4A
Other languages
Chinese (zh)
Other versions
CN109150060A (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.)
Teco Electric and Machinery Co Ltd
Original Assignee
Teco Electric and 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 Teco Electric and Machinery Co Ltd filed Critical Teco Electric and Machinery Co Ltd
Priority to CN201710450813.4A priority Critical patent/CN109150060B/en
Publication of CN109150060A publication Critical patent/CN109150060A/en
Application granted granted Critical
Publication of CN109150060B publication Critical patent/CN109150060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P27/00Arrangements or methods for the control of AC motors characterised by the kind of supply voltage
    • H02P27/04Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Feedback Control In General (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

A resolution adjustment method for control command of electronic device and a command generation device are used for adjusting a control command generated by the command generation device. A minimum resolution determination value is established. Then, an operation frequency value corresponding to the command generating device is analyzed, and the control command is received, so that a variation frequency value corresponding to the control command is analyzed. A first resolution value is calculated according to the operation frequency value and the variation frequency value. And judging whether the first resolution value is larger than or equal to the minimum resolution judgment value. If the result is negative, the operation frequency value is increased by a frequency increasing value to be an increasing operation frequency value. And calculating a second resolution value by using the increased operation frequency value and the variable frequency value, and outputting a control command by using the second resolution value when the second resolution value is greater than or equal to the minimum resolution judgment value.

Description

Resolution adjustment method for electronic device control command and command generation device
Technical Field
The present invention relates to a method and an apparatus for adjusting resolution of an electronic device, and more particularly, to a method and an apparatus for adjusting resolution of a control command for adjusting a first resolution to a second resolution according to whether the first resolution is greater than a minimum resolution determination value.
Background
A motor is a device that converts electrical energy into mechanical energy by the magnetic effect of an electric current. Since the eighteenth century that motors were invented, the motor industry began to germinate. By the time of the industrial revolution, the motor industry began to thrive. In order to match with the precise high-tech technology, people have higher and higher requirements on the precision of the rotation of the motor in the era of the vigorous development of the science and technology industry today.
In order to achieve the precision of the rotation of the motor, the minimum requirement of the precision of the rotation of the motor must be achieved by adjusting the resolution of the control command. One first analyzes the control command for controlling the motor by means of an analysis device. The analysis device presents the control command on a display module of the analysis device in a waveform diagram mode, so that a user presents a graph on the display module of the analysis device according to the waveform diagram mode. Then, the user can control a control device for adjusting the resolution of the control instruction to adjust the resolution according to the graph presented on the display module of the analysis device in the form of the oscillogram.
The user must manually observe the waveform of the display module and judge the amplitude of the control command resolution by the control device according to the graph displayed on the display module. Therefore, it is troublesome and troublesome for the user. For the whole control command analysis adjustment work, it takes a long time to adjust the control command resolution.
Disclosure of Invention
The technical problem to be solved by the present invention is to determine the range of the control command resolution adjusted by the control device by the graphics displayed on the display module when the control command resolution is adjusted manually in the prior art, which is troublesome and troublesome for the user. In addition, it takes a long time to adjust the resolution of the control command for the whole control command analysis and adjustment operation, and a method and a device for adjusting the resolution of the control command of the electronic device are provided.
In order to achieve the above object, the present invention provides a method for adjusting resolution of a control command of an electronic device. The resolution adjusting method of the control command is applied to a command generating device and used for adjusting the control command generated by the command generating device. First, a minimum resolution determination value is established. Then, an operation frequency value corresponding to the command generating device is analyzed, and the control command is received, so as to analyze a variation frequency value corresponding to the control command.
Then, a first resolution value is calculated according to the calculation frequency value and the variation frequency value. Then, whether the first resolution value is larger than or equal to the minimum resolution judgment value is judged. Then, if the judgment result is negative, the frequency increasing value is used to increase the operation frequency value to be an increasing operation frequency value. And finally, calculating a second resolution value by using the increased operation frequency value and the variable frequency value, and outputting a control command by using the second resolution value when the second resolution value is greater than or equal to the minimum resolution judgment value.
Based on the above-mentioned necessary technical means, an auxiliary technical means derived from the method for adjusting the resolution of the control command of the electronic device is to output the control command with the first resolution value when the first resolution value is determined to be greater than or equal to the minimum resolution determination value.
Based on the above-mentioned necessary technical means, an auxiliary technical means derived from the resolution adjustment method for the control command of the electronic device is that when a first resolution value is calculated according to the operation frequency value and the variation frequency value, a divider is used to divide the operation frequency value by the variation frequency value to generate the first resolution value.
Based on the above-mentioned necessary technical means, an auxiliary technical means derived from the resolution adjustment method for the control command of the electronic device is that the control command is a sine wave or a square wave.
Based on the above-mentioned necessary technical means, an auxiliary technical means derived from the resolution adjustment method for the control command of the electronic device is that when a second resolution value is calculated by using the increased operation frequency value and the variation frequency value, a divider is used to divide the increased operation frequency value by the variation frequency value to generate the second resolution value.
In order to solve the problems of the prior art, the invention adopts a necessary technical means to provide a command generating device. The command generating device comprises a command generating module, an operation module and a judgment module. The command generating module is used for generating a control command. The operation module is electrically connected to the command generation module, and is used for analyzing an operation frequency value of the control command generated by the command generation module, receiving the control command to analyze a variation frequency value corresponding to the control command, and calculating and transmitting a first resolution value according to the operation frequency value and the variation frequency value. The judging module is electrically connected with the operation module and is provided with a minimum resolution judging value for receiving the first resolution value and judging whether the first resolution value is larger than or equal to the minimum resolution judging value or not, so that a judging signal is transmitted to the operation module when the judging result is negative.
When the operation module receives the judgment signal, the operation module triggers the command generation module to use a frequency increasing value increasing operation frequency value as an increasing operation frequency value, and the increasing operation frequency value and the variable frequency value are used for operation and transmitting a second resolution value, so that when the judgment module judges that the second resolution value is larger than or equal to the minimum resolution judgment value, the command generation module is triggered to use the second resolution value to output the control command.
Based on the above-mentioned necessary technical means, an auxiliary technical means derived from the command generating device is that the control command is a sine wave or a square wave.
Based on the above-mentioned technical means, an auxiliary technical means derived from the command generating device is that the operation module comprises a divider or a multiplier.
In view of the above, in the method for adjusting resolution of a control command of an electronic device and the command generating device provided by the present invention, the first resolution value of the control command is calculated by the operation frequency value and the variation frequency value, and whether the first resolution value is greater than or equal to the minimum resolution determination value is determined. And outputting a control instruction when the first resolution value is judged to be greater than or equal to the minimum resolution judgment value.
When the first resolution value is smaller than the minimum resolution judgment value, the frequency increase value is increased to the operation frequency value to form an increased operation frequency value. And calculating a second resolution value by increasing the operation frequency value and the variation frequency value. And finally, judging whether the second resolution value is greater than or equal to the minimum resolution judgment value, and outputting a control instruction when the second resolution value is greater than or equal to the minimum resolution judgment value.
The invention has the technical effects that:
compared with the prior art, the method for adjusting the resolution of the control command of the electronic device and the command generating device provided by the invention automatically adjust the resolution of the control command by virtue of the command generating module, the operation module and the judgment module of the command generating device. Thus, manual adjustment of the resolution is avoided. Therefore, the burden of a user on performing the control command analysis and adjustment work is reduced, and the time spent on the control command analysis and adjustment work is also reduced.
The invention is described in detail below with reference to the drawings and specific examples, but the invention is not limited thereto.
Drawings
FIG. 1 is a block diagram of a command generating apparatus according to a preferred embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for adjusting resolution of control commands of an electronic device according to a preferred embodiment of the invention;
FIG. 3 is a waveform diagram of a control command with a first resolution according to a preferred embodiment of the present invention; and
FIG. 4 is a waveform diagram of a control command with a second resolution according to a preferred embodiment of the invention.
Wherein the reference numerals
1 Command generating device
11 Command generating Module
12 operation module
121 divider
122 multiplier
13 judging module
131 minimum resolution judgment value
2 electronic device
C control instruction
S judgment signal
V1 first resolution value
V2 second resolution value
Detailed Description
The invention will be described in detail with reference to the following drawings, which are provided for illustration purposes and the like:
referring to fig. 1, fig. 1 is a block diagram of a command generating apparatus according to a preferred embodiment of the invention. As shown in the drawings, the preferred embodiment of the present invention provides a command generating apparatus 1. The command generating device 1 comprises a command generating module 11, an operation module 12 and a judgment module 13. In the present embodiment, the command generating device 1 is a Field Programmable Gate Array (FPGA), but the invention is not limited thereto in other embodiments.
The command generating module 11 is electrically connected to an electronic device 2. The electronic device 2 may be a servo driver or a servo motor, but not limited thereto. The operation module 12 is electrically connected to the command generating module 11 and includes a divider 121 and a multiplier 122. The operation module 12 may be a hardware processor or a software operation program. The hardware processor may be a central processing unit or a microprocessor, and the software operation program may be implemented by program languages such as ASP, C/C + +/C #, JAVA, Python, PHP, Perl, but not limited thereto.
The determining module 13 is electrically connected to the calculating module 12 and has a minimum resolution determining value 131. The determining module 13 may be a central processing unit, a microprocessor or a software determining program, and the software determining program may be implemented by program languages such as ASP, C/C + +/C #, JAVA, Python, PHP, Perl, but not limited thereto.
Referring to fig. 1 to 3, fig. 2 is a flowchart illustrating a method for adjusting resolution of a control command of an electronic device according to a preferred embodiment of the invention; FIG. 3 is a waveform diagram of a control command with a first resolution according to a preferred embodiment of the present invention. As shown in fig. 1-3, a method for adjusting the resolution of a control command of an electronic device is provided in the preferred embodiment of the present invention. The resolution adjustment method of the electronic device control command is applied to the command generating device 1 for adjusting a control command C generated by the command generating module 11 of the command generating device 1. The control command C may be a sine wave or a square wave, but not limited thereto. First, the minimum resolution determination value 131 is established in the determination module 13 (i.e., step S1). In the present embodiment, the minimum resolution determination value 131 is 95, but it is not limited thereto in other embodiments.
Then, the operation module 12 analyzes an operation frequency value corresponding to the command generating device 1, and receives the control command C generated by the command generating module 11, so as to analyze a variation frequency value corresponding to the control command C (i.e., step S2). In the present embodiment, the operation frequency value is 10 times per second, but the invention is not limited thereto in other embodiments. In addition, in the embodiment, the frequency variation value is 1 time per second, but the invention is not limited thereto in other embodiments. That is, the control command C has a variation period of 1 second, so that within 1 second, the variation angle position is changed from the starting point to 1, then decreased from 1 to-1, and finally changed to 0. Since the calculation frequency is 10 times per second, the variation angle position of the control command C is calculated every 0.1 second.
Then, the calculating module 12 calculates a first resolution value V1 according to the calculation frequency value and the variation frequency value (i.e., step S3). The divider 121 divides the operation frequency value by the variation frequency value to generate a first resolution value V1. In the present embodiment, the first resolution value V1 is 10, but it is not limited thereto in other embodiments. Next, the determining module 13 receives the first resolution value V1 and determines whether the first resolution value V1 is greater than or equal to the lowest resolution determination value (i.e., step S4). If the determination result is yes, the trigger command generating module 11 outputs the control command C to the electronic device 2 according to the first resolution value V1.
Referring to fig. 1, fig. 2 and fig. 4 together, fig. 4 is a waveform diagram of a control command with a second resolution according to a preferred embodiment of the invention. As shown in fig. 1-2 and 4, if the determination result is negative, the determining module 13 transmits a determination signal S to the calculating module 12, so that the calculating module 12 increases the calculating frequency value by a frequency increasing value to be an increasing calculating frequency value (step S5). In the present embodiment, the frequency increment is set to 90, but it is not limited thereto in other embodiments.
Since the first resolution value V1 is 10 and the minimum resolution determination value 131 is 95 in the present embodiment, the first resolution value V1 is smaller than the minimum resolution determination value 131. It is added that the broken line of the waveform of the control command C is long, as is apparent from fig. 3, and thus the waveform thereof looks unsmooth because the first resolution value V1 is too low. Therefore, the operation module 12 calculates the increasing operation frequency value as 100.
Finally, the computing module 12 computes a second resolution value V2 by using the increased computing frequency value and the varied frequency value, so that when the second resolution value V2 is greater than or equal to the minimum resolution determination value 131, the trigger command generating module 11 outputs the control command C with the second resolution value V2 (i.e., step S6). The divider 121 divides the increased operation frequency value by the variation frequency value to generate a second resolution value V2.
In the present embodiment, the divider 121 calculates the second resolution value V2 as 100, so the second resolution value V2 is greater than the minimum resolution determination value 131. It should be added that, as is apparent from fig. 4, the waveform of the control command C is smoother because the second resolution value V2 is higher. Thereby, the trigger command generating module 11 outputs the control command C to the electronic device 2 with the second resolution value V2.
In summary, in the method for adjusting resolution of a control command of an electronic device and the command generating device according to the preferred embodiments of the present invention, the operation module is used to calculate the first resolution value of the control command generated by the command generating module. Then, the judgment module judges whether the first resolution value is larger than or equal to the minimum resolution judgment value. When the first resolution value is greater than or equal to the minimum resolution judgment value, a control instruction with the first resolution value is output to the electronic device.
When the first resolution value is smaller than the minimum resolution judgment value, the frequency increasing value is added to the operation frequency value of the control instruction to form an increasing operation frequency value. And the increasing operation frequency value and the variable frequency value are operated to obtain a second resolution value by the operation module. Finally, whether the second resolution value is larger than the minimum resolution judgment value or not is judged by the judgment module, and when the second resolution value is larger than the minimum resolution judgment value, a control instruction with the second resolution is output to the electronic device.
Compared with the prior art, the method for adjusting the resolution of the control command of the electronic device and the command generating device provided by the preferred embodiment of the invention automatically adjust the resolution of the control command by the command generating module, the calculating module and the judging module, so as to adjust the first resolution value lower than the minimum resolution judging value to the second resolution value, and transmit the control command with the second resolution value to the electronic device.
Therefore, the method for adjusting the resolution of the control command of the electronic device and the command generating device provided by the preferred embodiment of the invention automatically adjust the resolution of the control command without manually observing the waveform of the display module and adjusting the resolution. Therefore, the workload of the user is reduced, and the time required for the control command analysis and adjustment operation is shortened.
The present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof, and it should be understood that various changes and modifications can be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method for adjusting the resolution of a control command of an electronic device is applied to a command generating device and used for adjusting the control command generated by the command generating device, and is characterized in that the method for adjusting the resolution of the control command comprises the following steps:
(a) establishing a minimum resolution judgment value;
(b) analyzing an operation frequency value corresponding to the command generating device, receiving the control command and analyzing a variation frequency value corresponding to the control command;
(c) calculating a first resolution value according to the calculation frequency value and the variation frequency value;
(d) judging whether the first resolution value is larger than or equal to the minimum resolution judgment value;
(e) if the judgment result in the step d is negative, increasing the operation frequency value by a frequency increasing value to be an increasing operation frequency value; and
(f) and calculating a second resolution value by using the increased operation frequency value and the variable frequency value, and outputting the control command by using the second resolution value when the second resolution value is greater than or equal to the minimum resolution judgment value.
2. The method as claimed in claim 1, wherein if the determination result in the step d is yes, the control command is outputted with the first resolution value.
3. The method of claim 1, wherein the control command is one of a sine wave and a square wave.
4. The method as claimed in claim 1, wherein in the step c, the first resolution value is generated by dividing the operation frequency value by the variation frequency value by a divider.
5. The method of claim 1, wherein in step f, the second resolution value is generated by dividing the increased operational frequency value by the varied frequency value by a divider.
6. An electronic device control command generating device, comprising:
a command generating module for generating a control command;
the operation module is electrically connected with the command generation module and used for analyzing an operation frequency value of the control command generated by the command generation module, receiving the control command to analyze a variable frequency value corresponding to the control command, and calculating and transmitting a first resolution value according to the operation frequency value and the variable frequency value; and
a judging module, which is electrically connected with the operation module and is provided with a minimum resolution judging value for receiving the first resolution value and judging whether the first resolution value is larger than or equal to the minimum resolution judging value or not, so as to transmit a judging signal to the operation module when the judging result is negative;
when the operation module receives the judgment signal, the command generation module is triggered to increase the operation frequency value by a frequency increase value to be an increase operation frequency value, the increase operation frequency value and the variation frequency value are used for operation, and a second resolution value is transmitted, so that when the judgment module judges that the second resolution value is larger than or equal to the minimum resolution judgment value, the command generation module is triggered to output the control command by the second resolution value.
7. The apparatus according to claim 6, wherein the control command is one of a sine wave and a square wave.
8. The device according to claim 6, wherein the operation module comprises at least one of a divider and a multiplier.
CN201710450813.4A 2017-06-15 2017-06-15 Resolution adjustment method for electronic device control command and command generation device Active CN109150060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710450813.4A CN109150060B (en) 2017-06-15 2017-06-15 Resolution adjustment method for electronic device control command and command generation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710450813.4A CN109150060B (en) 2017-06-15 2017-06-15 Resolution adjustment method for electronic device control command and command generation device

Publications (2)

Publication Number Publication Date
CN109150060A CN109150060A (en) 2019-01-04
CN109150060B true CN109150060B (en) 2020-07-28

Family

ID=64829704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710450813.4A Active CN109150060B (en) 2017-06-15 2017-06-15 Resolution adjustment method for electronic device control command and command generation device

Country Status (1)

Country Link
CN (1) CN109150060B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582973A (en) * 2008-05-13 2009-11-18 佳能株式会社 Image processing apparatus and image processing method
CN101582679A (en) * 2009-06-26 2009-11-18 哈尔滨工业大学 Composite power inverter with linear output and PWM output
CN102467131A (en) * 2010-11-12 2012-05-23 三菱电机株式会社 Servo controller
CN106487313A (en) * 2015-09-02 2017-03-08 东元电机股份有限公司 Frequency conversion servo system and its real-time power distribution method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7659688B2 (en) * 2007-05-03 2010-02-09 Gm Global Technology Operations, Inc. Method and system for resolver alignment in electric motor system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582973A (en) * 2008-05-13 2009-11-18 佳能株式会社 Image processing apparatus and image processing method
CN101582679A (en) * 2009-06-26 2009-11-18 哈尔滨工业大学 Composite power inverter with linear output and PWM output
CN102467131A (en) * 2010-11-12 2012-05-23 三菱电机株式会社 Servo controller
CN106487313A (en) * 2015-09-02 2017-03-08 东元电机股份有限公司 Frequency conversion servo system and its real-time power distribution method

Also Published As

Publication number Publication date
CN109150060A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
EP2590052A3 (en) Voltage scaling system
US20030201745A1 (en) Control parameter automatic adjustment apparatus
US8255177B2 (en) System and method for calibrating oscillograph channels
CN108400743B (en) Control device, control method, and computer storage medium
CN108398896B (en) Control device, control method, and computer-readable storage medium
CN110609639A (en) System and method for controlling actuator drive signal to improve transient response characteristics
CN104753439A (en) PID (piping and instrument diagram) intelligent speed regulating method of electric motor
CN109507871B (en) PID parameter setting method and product for two-wheel balance vehicle body balance control
US9143074B2 (en) Controlling method of synchronous motor
CN109150060B (en) Resolution adjustment method for electronic device control command and command generation device
US20170038755A1 (en) Method of controlling encoder principle axis speed synchronization
US20050034538A1 (en) Method for determining inertia of an electric motor and load
KR20080074852A (en) Processing unit
JP5190754B2 (en) Waveform measuring device
TWI639904B (en) Control command resolution adjustment method and a command generation device
JP6790448B2 (en) Simulation equipment
JP4446068B2 (en) Numerical control device for machine tool and numerical control method for controlling machine tool
CN106618633B (en) Control method and system of ultrasonic equipment
KR101779698B1 (en) Method and apparatus for generating pwm signal
CN109116771B (en) Control command generating method and device
CN220440561U (en) Intelligent phase switch control system
KR20140136170A (en) Senseless control method for motor using inverter
JP3185949B2 (en) Waveform observation device
EP3196596A1 (en) Sensor, sensor system and measuring method
TWI643043B (en) Control command generating method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant