The invention discloses an MLC controller based on a hardware PID
algorithm and a control method thereof, the MLC controller comprises an FPGA control module, the FPGA control module integration comprises a parallel hardware
PID controller array, the parallel hardware
PID controller array is composed of N independent hardware PID controllers, each hardware
PID controller correspondingly controls one leaf of a multi-leaf
collimator, N is a positive integer greater than 1, and the FPGA control module integration comprises an FPGA control module, the
encoder interface array is used for reading position
encoder data of N blades of the multi-blade
collimator in parallel and sending the position
encoder data to the corresponding hardware PID controllers; the PWM
signal generation module array is used for generating N paths of
PWM signals to drive corresponding blade motors according to the control signals output by the parallel hardware PID controller array; the
data cache analysis module is used for receiving a target track instruction of an upper computer and sending a parameter instruction to the parallel hardware PID controller array; wherein each hardware PID controller in the parallel hardware PID controller array independently runs in parallel based on a global
clock signal.