CR series collaborative robots are used to load and unload CNC machine tools in the production line. The end of the robot arm is equipped with a pneumatic three-jaw gripper, interacting with the IO signal of the finishing lathe. It is used to perform the automation of the workpiece, from material transportation to the automatic picking, precise material change on the lathe fixture, and control the lathe to start processing and complete the loading and unloading. Using the CR robot, IO is used to interact with the signal between the lathe and the feeding chain. After the feeding chain receives the material, it is accurately picked onto the lathe processing fixture for the lathe to start processing. When the processing is completed,the operator takes it out and puts it back into the loading and unloading area.