Design of the timing controller for automatic magnetizing system