Automated control system shut down the coal mill as designed after detecting a high temp at the mill outlet. An error in the programming logic associated with the inlet air damper caused the damper to not fully open, stopping cool air from entering the mill. During the restart of the mill a loud noise was heard within it. There was no damage to the mill and there were no injuries.