The invention discloses an
XML (
Extensible Markup Language) file-based human-computer interface
system applied to a Baifu PLC (
Programmable Logic Controller), which comprises the following steps of: 1, according to an
application object and a development target, establishing an
XML configuration file containing contents such as an interface
layout, a page, a page display form and the like; 2, a driver based on the
XML file format is developed, and the configuration information in the step 1 is loaded and analyzed; step 3, carrying out
secondary packaging on the TwinCAT
Javascript of the Baifu, and mapping the
data information loaded in the step 2 to a TwinCAT
communication interface; 4, developing a webpage driving program by adopting a single-page application mode and a data
driving mode, and rendering and generating an interface by using the configuration information preloaded in the step 2; according to the method, the XML file is adopted to realize interface configuration, so that the difficulty of
interface design is reduced, and the
maintainability of the interface is improved; based on a Web mode and various components provided by the
system, the interface display form is richer, and the sense is more comfortable.