The invention relates to the technical field of mobile terminal industrial
control software, in particular to a controller and a control method which are suitable for offline loading of a
configuration graph of a mobile terminal, in-situ obtaining of equipment data and control of equipment, and the controller comprises a driving program and a
Web server. Obtaining an offline file of the
configuration graph through the
server side; accessing the
configuration management interface, obtaining the measuring points and corresponding register addresses, and storing the measuring points and the corresponding register addresses in a
database; a GetPoint Value method provided by the
Web server is called to obtain a numerical value in an equipment register for driving the configuration graphical interface to be refreshed; and the address of the
device register needing to be assigned is transmitted to the device driving program by calling a
SetPoint Value method provided by the
Web server. Through interaction between the drive program integrated in the mobile terminal and the Web
server, the situation that the mining off-line
configuration graph needs to repeatedly adapt to drive programs of different devices and modify codes of the configuration graph per se when the mining off-line configuration graph obtains the required display data is overcome, and the development efficiency is improved.