Patent ID: 8116888

Claim:
A parameter setting method for setting parameter for a programmable logic controller (PLC), the parameter setting method comprising: determining whether an XML document exists in the document module of the PLC via a main program module; if not, reading inherent names and scale values of the parameters of the PLC via the main program module; if yes, determining whether the preset names and scale values of the parameters exist in the XML document via the main program module, if not, go to reading inherent names and scale values of the parameters of the PLC via the main program module; if yes, reading names and scale values of the parameters from the XML document and storing them in the parameter storage module, and outputting a control signal to the interface display module via the main program module; receiving the control signal from the main program module and controlling the display interface to display the names and scale values of the parameters according to the control signal, and determining whether a value needed to be set in a selected parameter be within the scale value of the selected parameter via the interface display module; if yes, selecting the parameter name and setting the value of the needed parameter via the display interface; and if not, revising the scale value of the parameter in the XML document, go to reading names and scale values from the XML document and storing them in the parameter storage module, and outputting a control signal to the interface display module via the main program module.