The invention relates to a
program control X-
ray diffractometer which is structurally characterized in that a conventional X-
ray generating device and a
goniometer are arranged in a shell; the
drive shaft of the
goniometer is connected with the transmission shaft of a
servo motor; the
signal output / input end of the
servo motor is connected with a
program control device; and an amplification board, a high-
voltage board, a power board, an isolating board and an S7-200 PLC (
Programmable Logic Controller) are arranged in the shell of the
program control device wherein the port PORTO of the PLC is connected with a computer. Since the PLC is installed and triplex non-interfering isolating protection is adopted, the performance of the
diffractometer is more superior, the
fault rate is extremely low, and the service life of the complete
machine is prolonged. An integrated motor is adopted as the motor for controlling the
goniometer; a high-resolution magnetic
encoder can automatically correct a very small movement
position error by a high-precision full-
closed loop vector drive
servo system to ensure the degree of accuracy of the measuring result of the
diffractometer. A recording unit realizes man-
machine interaction, has complete protection function, and convenient and visualized operation and brings convenience for operators to use and judge fault information and the like. The diffractometer is suitable for the test, analysis and research work of the microscopic structure of matter.