At present,the method of measuring the working length of the three-phase electrode in the smelting electric furnace generally adopts the manual measurement method,but the manual measurement method cannot realize the real-time monitoring of the three-phase electrode and has a large error.Therefore,an electrode length measuring device for smelting electric furnace based on ultrasonic technology is designed,which can complete the noncontact real-time measurement of the three-phase electrode.As the core of the electrode length measurement system of smelting electric furnace,the main controller of the device controls the operation of the whole system and monitors the state of the system,which plays a very important role in the real-time measurement of the three-phase electrode length of smelting electric furnace.Combined with the functional requirements and performance requirements of the main controller of the electrode length measurement system of the smelting electric furnace,this paper elaborates the design and implementation of the main controller of the electrode length measurement system of the smelting electric furnace from three aspects: hardware design,software design and joint debugging of software and hardware.The hardware circuit design includes the main control module,power supply module,I/O port expansion module,motor control module,display module,DIP switch module,etc.with MSP430F5359 as the core.And design the system software,first of all,the entire system data mining,the master and slave CPU storage reasonable allocation.Secondly,build a software scheduling framework that combines main scheduling and interrupt system to reasonably allocate tasks.Then the I2 C bus is used to expand 48 inputs and 48 outputs to solve the problem of insufficient I / O of the main controller.Then,the software design of the motor control module is completed,and the sensor input signal combined with the timing method is used to control the running state of the motor and the positioning of the zoom device to realize the zoom task of the system.Finally,the I/O port expansion module,communication module and motor control module are jointly debugged with software and hardware,and the results show that the functional modules of the main controller work stably and reliably,which fully meet the system design requirements. |