Practice teaching is conducive to improving students’ability of development and design, enhancing students’ practical ability and interest in learning. Single-chip computer and programmable control technology are professional skills that students majoring in electrical automation should master, and they have strong practicality. Therefore, the integration of the two disciplines will enhance the coherence of knowledge. Taking the flowing light project as an example, two control schemes are adopted under the same task to realize the control task, improve students’vocational skills and provide practical and innovative talents for the society. With the steady development of education in our country, colleges and universities send a large number of graduates to the society every year, and the employment problem has attracted the attention of the whole society. From a macro point of view, the groups with more difficult employment are concentrated in the graduates of secondary and higher vocational colleges. Therefore, the vocational education reform oriented to employment and social needs should be further deepened. Single-chip computer technology and programmable control technology are compulsory courses for communication, electrical, automation and other specialties.
They involve a wide range of knowledge and require the combination of software and hardware.
The practical teaching part is an important support point for students to master the above two technologies. Therefore, it is necessary to make students master single-chip computer technology and programmable control in Task-driven mode. The two control methods of technology can deeply grasp the connection and difference between the two technologies, make students sublimate theory from practice, cultivate students’ability to analyze and solve problems, and become comprehensive and applied talents. Most of the traditional pipelining lamp controllers are implemented by hardware circuits.
The disadvantages of the traditional pipelining lamp controllers are that the display effect is single and the changeability is poor. Therefore, using single chip computer and programmable logic controller (PLC) as controllers has the advantages of simplifying hardware circuits, being easy to change and realizing more control functions. Task: The output port controls 8 indicator lights (only one light is lit at any time). After pressing the start button, the indicator lights are turned on in turn from one second to the left in a time interval. Press stop switch indicator to turn off. According to the task requirements, 80C51 is selected as the control core, P0 is connected to the output driver circuit, 8 small lights are connected by common anode. When the output signal is 1, the small lights are illuminated. The value of P1 port is continuously modified by shift instruction and delay program, so that 8 small lights are turned on from right to left. According to the task requirement, when the output port is 1, the small lamp is lit, and the initial value of QB.0 is assigned to 2# at the output port. The control function of eight pipeline lamps is realized by shift instruction. The eight pipeline lamps of QB.0 at the output port are lit in turn by left shift. The time is set for 1s by timer and the cycle from right to left is realized. The program control analysis chart is shown in Figure 1. 。 The small lamp from right to left is a working process, which can realize the control of the small lamp’s cyclic lighting by calling the cyclic shift instruction. According to the task requirements and the analysis process, the single-chip flow lamp program can be compiled.
According to task analysis and flow chart, task implementation is started. Programming elements are defined and I/O assignment and function list are written. According to the task requirement, a ladder diagram for the pipeline lamp display of cyclic shift instruction is designed. Under the supervision of teachers, the debugging and overhaul of the MCU and PLC practice process are completed in the laboratory by electrification, and the control task of the pipeline lamp project is realized. The design and analysis of the above-mentioned program can help students better understand the connection and difference between the two controllers, lay a foundation for students’curriculum design and practical engineering application. Change control tasks to enhance students’divergent thinking and ability to analyze and deal with problems independently. In short, thermostatic element the integrated teaching of SCM and programmable controller is helpful to enhance students’macro and overall awareness of problem analysis, design and development ability, professional ability and professional ability.