The application discloses a
data modeling method and
system in controller configuration, the method comprises the following steps: creating a
template library, creating an information table in the
template library according to the basic information required by the controller when being configured; when a new configuration is created, selecting a
template library according to the category and version of the controller, obtaining the information in the information table and loading into the memory; creating a new configuration
library according to the content of the selected template
library,
copying the content of the template
library into the new configuration library; creating an instance table and an instance attribute table in the new configuration library, completing the construction of the configuration library, and the controller can directly load and use the configuration library when being configured; the application adopts the design of using the template library and the configuration library together, uses the basic information to the maximum extent, uses the main library once to place, and improves the configuration efficiency; the instance data table in the configuration library is organized in a
tree structure, the logic is clear, and the
usability is improved.