System and method for driving a step motor
AssigneesHONG FU JIN PRECISION INDUSTRY (ShenZhen) CO., LTD., Hon Hai Precision Industry Co., Ltd.
InventorsCHIH-KUANG CHANG, WEI-QI SUN
Life of this patent
Estimating the term…
Abstract
A system for driving a step motor is provided. The system receives a data packet from a computer, wherein the data packet comprises a header data and a main data. An identification of the main data is determined according to the header data. A selected magnification level of a lens module connected with the step motor is converted into drive signals for driving rotation of the step motor upon the condition that the identification of the main data is a numerical zoom value corresponding to the selected magnification level.
Claims20
A system for driving a step motor for controlling a lens module in an image measuring machine, the system comprising:
- a first data packet receiving module configured for receiving a first data packet from a computer, wherein the first data packet comprises a header data and a main data, wherein the header data defines an identification of the main data, and wherein the main data defines a numerical zoom value corresponding to a selected magnification level of the lens module;
- a MCU determining module configured for determining the identification of the main data in the first data packet according to the header data;
- a converting module configured for converting the selected magnification level of the lens module into drive signals to drive rotation of the step motor, upon the condition that the identification of the main data is the numerical zoom value corresponding to the selected magnification level of the lens module;
- and
- at least one processor configured for executing the first data packet receiving module, the MCU determining module, and the converting module.
A computer-based method for driving a step motor for controlling a lens module in an image measuring machine, the method comprising:
- receiving a first data packet from a computer, wherein the first data packet comprises a header data and a main data, wherein the header data defines an identification of the main data, and wherein the main data defines a numerical zoom value corresponding to a selected magnification level of the lens module;
- determining the identification of the main data in the first data packet according to the header data of the first data packet;
- and
- converting the selected magnification level of the lens module into drive signals for driving rotation of the step motor, upon the condition that the identification of the main data is the numerical zoom value corresponding to the selected magnification level of the lens module.
A storage medium having stored thereon instructions that, when executed by a processor or a computing device, causing the processor or the computing device to perform a method for driving a step motor for controlling a lens module in an image measuring machine, the method comprising:
- receiving a first data packet from a computer, wherein the first data packet comprises a header data and a main data, wherein the header data defines an identification of the main data, and wherein the main data defines a numerical zoom value corresponding to a selected magnification level of the lens module;
- determining the identification of the main data in the first data packet according to the header data of the first data packet;
- and
- converting the selected magnification level of the lens module into drive signals for driving rotation of the step motor, upon the condition that the identification of the main data is the numerical zoom value corresponding to the selected magnification level of the lens module.
Dependencies are inferred from the claim text.