论文部分内容阅读
在单板机应用于工业控制时,为了充分发挥单板机的功能,可以对生产过程中的某些环节进行计数并以十进制数显示出来。这往往给生产带来很大方便。本文介绍的就是单板机控制塑料包装机时对产品进行计数并显示的一个子程序。并在 TP801单板机上调试通过。一、设计思想当用 CPU 完成某些功能,如顺序控制时,假设每完成一个周期(如包装机每完成一次下料)须要计数器加1并显示出来。设要显示的最小数是0,最大数是四位数9999。(当然对单板机而言最大数可以是六位
In the single-chip computer used in industrial control, in order to give full play to the function of the single-board machine, you can count some aspects of the production process and displayed in decimal. This often brings great convenience to production. This article describes a single-chip control of plastic packaging machine to count the product and display a subroutine. And in the TP801 single board machine debugging through. First, the design idea When using the CPU to perform certain functions, such as sequential control, it is assumed that every time a cycle is completed (eg, the packing machine completes the blanking), the counter is incremented by 1 and displayed. Set to display the minimum number is 0, the maximum number is four-digit 9999. (Of course, the maximum number of single board machine can be six