The invention provides a visualized
robot program compiling method. The method includes that (1) a
servo control system is adopted to unlock a
servo motor for controlling joints of a
robot,
programming personnel directly adjust the joints of the
robot from initial positions to a required position state, and then the
servo control system locks the servo motor again; and (2) the
servo control system is adopted to detect pulse information of the servo motor when the servo motor passively rotates in the moving process of the joints, and then transmits the pulse information to a program compiling
system, and the program compiling
system converts the pulse information into corresponding data of position changes of the joints of the robot. The data of the position changes of the joints are used as program data of
movement control of the joints of the robot. Through adoption of the visualized robot program compiling method, the joints of the robot can be directly adjusted. The data of the position changes of the joints can be obtained through the servo motor of the joints and the
servo control system for controlling the servo motor and then converted into the program data through the program compiling system. The visualized robot program compiling method greatly reduces the difficulty in robot program compiling, eliminates
branch circulation, judgment and other logic processes in a former program, reduces complexity of the program, and enables the program compiling to be simpler, more convenient and faster.