Qi head bar grating machine