In this paper,we describe the research and development of the dome/slit control system for the 85cm telescope at the Xinglong Observatory,National Astronomical Observatories(NAOC) The system is based on the programmable logical controller(PLC) and Modbus protocol.