An employee was fixing the sprocket on an infeed rolling bed chain for a CNC machine. He placed a cotter pin on the chain when the machine was activated and his right hand was caught in the infeed bed, resulting in the amputation of three fingers. The employee was hospitalized.