Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Grating subdividing and direction judging method

A grating and grating sensor technology, which is applied in the direction of using optical devices to transmit sensing components, program control devices, etc., can solve the problems of long CPU working time, poor real-time calculation results, and large CPU processing tasks, achieving high real-time performance, The effect of shortening processing calculation time and reducing working time

Inactive Publication Date: 2014-06-25
UNIV OF SHANGHAI FOR SCI & TECH
View PDF2 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Using the hardware subdivision method to subdivide the grating is currently the most widely used method, but this method usually requires additional hardware circuits, so the cost is high
[0004] However, the current software subdivision method requires a microprocessor (CPU) to monitor and scan the grating signal output by the grating sensor in real time, resulting in a large processing task for the CPU, which takes up a long working time of the CPU, and the real-time performance of the calculation results poor

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Grating subdividing and direction judging method
  • Grating subdividing and direction judging method
  • Grating subdividing and direction judging method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The specific implementation form of the raster subdivision and direction determination method involved in the present invention will be further described below in conjunction with the accompanying drawings.

[0026]

[0027] In this embodiment, double interrupts (rising edge and falling edge triggering) are used to perform four subdivision, direction determination and counting on the quadrature square wave signal output by the grating.

[0028] The grating sensor outputs a square wave signal A (also known as A phase signal) and a square wave signal B (also known as B phase signal) with a phase difference of 90°, and the pulse number of the two phase signals of A and B represents the displacement of the grating , using the phase relationship between the A and B two-phase signals, that is, whether the A-phase signal is ahead or behind the B-phase signal to mark the forward and reverse movement of the grating. The two-phase signals of A and B are respectively connected t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a grating subdividing and direction judging method. A microprocessor is adopted for grating subdividing and direction judging, related square signals are output by a grating sensor, the grating sensor respectively outputs the square signals A and the square signals B, the phase difference of the square signals A and the square signals B is 90 degrees, the square signals A and the square signals B are connected with two interrupt input ports of the microprocessor respectively, and rising edge interrupt and falling edge interrupt are arranged in the microprocessor set with an interrupt service program. When the square signals A enter an interrupt state, the interrupt service program reads the state of the square signals B and judges the xor value of state values of the square signals A and the square signals B; when the square signals B enter an interrupt state, the interrupt service program reads the state of the square signals A and judges the xor value of the state values of the square signals A and the square signals B. According to the grating subdividing and direction judging method, the output square signals A and the square signals B are subdivided into four parts in the mode of double interrupt (rising edge triggering and falling edge triggering), the processing and calculating time of the interrupt service program is greatly shortened, calculation efficiency is improved, and the grating subdividing and direction judging method is high in real-time performance, good in stability and high in interference-resisting capacity.

Description

technical field [0001] The invention relates to a raster subdivision and direction judgment method, in particular to a method for subdividing and judging a raster by using a software method based on double interrupts of rising and falling edges. Background technique [0002] The existing grating subdivision and direction determination methods mainly include optical subdivision method, mechanical subdivision method, hardware subdivision method and microprocessor software subdivision method. [0003] Using hardware subdivision method to subdivide the grating is a method that is widely used at present, but this method usually requires additional hardware circuits, so the cost is relatively high. [0004] However, the current software subdivision method requires a microprocessor (CPU) to monitor and scan the grating signal output by the grating sensor in real time, resulting in a large processing task for the CPU, which takes up a long working time of the CPU, and the real-time ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G01D5/36
Inventor 蔡锦达齐建虹黄帅许鹏程
Owner UNIV OF SHANGHAI FOR SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products