Computer engraving machine pulse processing and speed control

by:Transon     2020-04-25
Computer engraving machine, according to a three axis pulse sequence controller sends realize multi-axis linkage of stepper motor. Due to using subdivision drive, improve the precision of the system motion also put forward high request of pulse frequency. After segmentation, when motor pulse frequency up to 20 KHZ, pulse interval must be accurate to 5 Otis, in order to achieve the precise time, we use timer interrupt of DSP to produce pulse signal. TM $320 c32 has two timers, work optional or clock pulse way. Figure 1 is a monitoring program flow chart of each timer includes three registers: GlobalControl, Counter and Period. Each register Period load to produce the pulse count, and start the timer, so every two register Counter clock counts plus one, until the values in the Period, to register an interrupt, send pulse in the interrupt subroutine, and loading the next value, realize the speed control. The flow chart shown in figure 2. Figure 1 computer engraving machine control flow chart of the main program flow chart of figure 2 computer engraving machine timer interrupt engraving machine price information in yifan numerical control net.
Custom message
Chat Online 编辑模式下无法使用
Leave Your Message inputting...