The invention discloses a numerical-control
machine tool
servo adjustment method based on the TCP / IP protocol, and the method comprises the following steps: S1, starting a numerical-
control system, building a
network communication thread, initializing a network
server, binding a port and an IP, and waiting for a request from a
client for connection; S2, enabling the numerical-
control system to await the
client to transmit various command data packages after the
client is connected with the numerical-
control system; S3, enabling a user to be able to check
servo parameters, upload the
servo parameters, collect the servo data of a numerical-control
machine tool and analyze and display a servo waveform on
software after the client is connected with the numerical-control
system, thereby achieving the purposes of collecting and displaying of the servo waveform of the servo parameters of the numerical-control
machine tool at a
software interface of the client while carrying out the
fine tuning of the servo parameters. According to the invention, a computer is used for analyzing the servo data, so the method is accurate and quick in operation, and is convenient for operation. The servo data of the numerical-control
machine tool in a
machining process is drawn into a real-
time curve. The user can observe the servo data and draw the curve of the data while adjusting the servo parameters, thereby enabling the operator to know the
impact on a motor from the servo parameters of a numerical-control
system more easily.