Disclosed is a system for controlling terminal equipment comprising at least one terminal equipment, a gateway and a method for adding new terminal equipment. The terminal equipment uses a communication protocol. The gateway is coupled to the terminal equipment for generating a constructive command corresponding to at least one terminal equipment having a diversity of communication formats. The gateway has a read API, a write API, a command generating unit and a configuration file. The configuration file comprises read-write commands for the terminal equipment. The gateway generates the constructive command corresponding to the terminal equipment according to the configuration file. The communication generating unit of the gateway uses the constructive command to control or access the terminal equipment through the read API or the write API. Accordingly, terminal equipment can be easily added for being controlled by the gateway.