【正文】
Time()_init()。這樣就完成切割包裝帶的工作。為了解決這個問題,我們使用光電耦合器來驅動繼電器。系統(tǒng)不能識別的高低電壓之間的過渡,因而 不能輸出理想的脈沖到 L297。 繼電器 一 個 中繼被稱為一個開 關 , 它關閉 時可 在特殊條件下打開。它是一種半導體芯片,集成了 CPU, ROM, RAM, I / O接口,定時器 /計數(shù)器,中斷系統(tǒng)和其他一些部件 3 3 于一身 ,構成了一個完整的數(shù)字計算機。如果某些對象被傳遞,紅外線被中斷,它會立即輸出一個負脈沖。它帶來了深刻的變化, 通過 設計 、 制造和包裝機械的控制和改變 更快速地開發(fā) 。在改革開放之初,許多食品機械和 包裝機械被介紹到中國,極大地促進了行業(yè) 發(fā)展 。要達到這個目的,步進電機是由一個單片微型計算機( SCM)式STC89C516RD+的控制。例如 , 有高速自動包裝機的機電一體化, 容易操作的 多功能包裝機 和 高生產(chǎn)率 的 自動包裝機。 因此 ,該行業(yè)在中國 不僅要推進 , 還 應進一步提高。 當發(fā)光二極管 發(fā) 光,這意味著相應的端口輸出高電平。步進電機可以作為一個特殊的電機,用于控制其他機器 。 L297 是步進電機 的 一個專用控制器。因此,在軟件編程的過程中,應該做的唯一一件事就是從單片機的 口產(chǎn)生高低電平交替的脈 沖。 IRLZ44N 是增強型NMOS器件。然后單片機輸出的信號給步進電機驅動器芯片的三個控制端口: CLK( ), CW( ), HALF( ),以此來控制步進電機的工作。大多數(shù)匯編語言代碼生成非常緊湊,易于理解。 P1^1=1。為了便于實驗,單片機的三個輸出端口: , , , 應連接到 L297再連接到三個發(fā)光二極管,如圖 6,光發(fā)光二極管以發(fā)光來判斷輸出高電壓。值得注意的是,在實踐中,輸出電壓被下拉是因為負載低且不穩(wěn)定,因此,電壓跟隨器和光電耦合器在這里是為了防干擾。 Relay 1 INTRODUCTION During the 1950s to 1970s, with the rapid development of electronics and synthetic chemicals, the packaging machinery has been influenced a lot, and there were a series of new packaging technology and equipment based on synthetic materials as packing materials. For example, there were highspeed automated packaging machines of electromechanical integration, multifunctional packaging machines which are easy to operate and automatic packaging machines with high productivity. Those machines made the packaging machinery industry promising in the machinery manufacturing ind ustry. Although there were already some packaging machinery factories as early as the mid 1950s in China, the productivity is very low. At the beginning of the reform and opening 8 up, a number of food machines and packaging machines have been introduced to China, which promoted the industry greatly. During the late 1980s, the rapid development of the national economy had a great demand for packaging machines. And at the same time, a lot of traditional factories for agricultural machinery production, began the production of packaging machinery. At the end of 1997, the number of packaging machinery factories has increased to more than 1,600, and there are about 75 research institutes engaging in research and development of packaging machinery. What’s more there are approximately more than 21 colleges and universities concerning packaging machinery professionally. However, the industry in China does not advance enough and it should be further improved. In the future the packaging machinery has a growing tendency for the application of microputer and electromechanical integration. A plete mechatronics system is a system to integrate multidisciplines such as machinery, puters microelectronics and sensors. It brings profound changes to the design, manufacturing and control of packaging machinery and changes the situation of the order to develop more quickly, something should be done to improve the level of packaging machinery, electromechanical integration, product reliability and stability, and thus the modern packaging industry will be improved. In this work, we simulate the control process of packaging assembly line based on stepper motor which is operated by SCM. First we introduce the overall design of hardware circuit and the main connection of hardware, and then describe the softwa