n the security monitoring system, in order to realize the multi-angle and different positions of the camera monitoring the camera monitoring, a pan tilt zoom (PTZ) module is used. This paper describes the PELCO-D protocol of PTZ and serial communication firstly. Then it achieves control the of PTZ and lens work based on Windows VC++. Finally, It discusses the main function of the system structure and coding.