| With the release of the German Industry 4.0 and China Manufacturing 2025 strategy,the aim is to achieve intelligent upgrading of the production industry and the integration of big data with the Internet,which puts higher requirements on the control equipment at the core of the manufacturing industry and its related technologies.Traditional industrial field control equipment PLC cannot meet the mission of intelligent manufacturing because of its shortcomings,high requirements for users,high cost and insufficient hardware performance.The embedded programmable controller combines embedded technology,traditional programmable logic controller technology and soft PLC technology to achieve a breakthrough in traditional PLC.This thesis develops a general-purpose embedded programmable controller and gives an overall design scheme in terms of hardware and software.On the basis of the overall design scheme,the specific design and design details of the hardware scheme are summarized;then the specific design of the software is implemented to realize the parameter detection application of the ship power distribution system;in order to improve the power quality of the ship,the intelligent PID control algorithm is designed in the CPU module.It is applied to the closed-loop control of diesel generators to improve the power quality of regional distribution systems from electric energy sources.The main research work of the thesis is as follows:(1)With the LPC2294 microprocessor as the core,the embedded programmable controller is modularized by the backplane bus power supply.Detailed analysis of user requirements and hardware and software design requirements,including operating environment requirements,processor performance requirements,storage requirements,operating system requirements,external interface requirements,measurement accuracy requirements,etc.,based on this,an embedded programmable controller is given.The overall design of the software and hardware.(2)Based on the overall design of the embedded programmable controller,the hardware design is specifically developed.Firstly,the embedded programmable controller data acquisition system is designed as a whole.According to the specific application functions of the ship power distribution system,the overall structure design and system function modular design of the embedded programmable controller;The overall design ofthe controller is developed.According to the characteristics of the parameters to be detected in the ship’s power distribution system,each part of the functional circuit is designed and tested for communication circuit.The specific circuit design includes power circuit design,reset monitoring circuit design,system clock circuit design,Digital input and output circuit design,analog acquisition circuit design,temperature signal acquisition circuit design,serial communication interface circuit design,CAN communication interface circuit design;finally summarize the interference sources in the ship power distribution system,and summarize the interference for these,Hardware anti-jamming technology used in the design process.(3)Based on the overall design of the embedded programmable controller,the software development of the device development system and the operating system are carried out.The development system adopts the third-party mature software NApro,according to the structural composition of the ship’s regional distribution system,designing and developing the user software framework in the system,and analyzing the power parameter and temperature parameter program of the ship’s power distribution area in the user’s ladder program design of the development system.The development process records the test results and compares them with the results of the multi-function table test;the operating system involves hardware driver design,operating system porting and application layer software development;the hardware driver design includes serial port driver,SPI driver,CAN Driver,A/D conversion driver and temperature conversion driver;detailed analysis ofμC/OS-II operating system file composition and migration conditions,on the basis of system migration file writing;application software layer mainly involves user tasks Create and schedule,according to the characteristics of the ship’s power distribution to be tested,some data acquisition application layer is targeted.(4)Based on the incremental PID speed control function of the embedded programmable controller,the RBF neural network algorithm is introduced to improve the control structure of the RBF-PID speed control system,and the nonlinear speed regulation of the diesel generator of the ship power station is realized.control.Firstly,mathematical modeling of the diesel generator in the ship’s regional distribution system is carried out,and the RBF neural network is combined with the PID speed control function.Then the structure of the speed control system is improved,and the row is introduced based on the three input parameters of the conventional speed control system.The gas manifold temperature T,the exhaust manifold pressure P and the input speed r(k),the output speed y(k),and the rotational speed deviation e(k)together constitute the input of the RBF network,andthe)identification result is calculated by the RBF network,combined with the gradient descent method.Calculate the increment of proportional,integral and differential,and realize the parameter tuning optimization of PID controller.Finally,the simulation and result analysis of diesel generator speed control system in ship area distribution. |