A method, apparatus, and storage medium for generating function diagrams (FDM) for a DCS
system include: converting a Point of Unit (POU) configured in a controller project into an
XML file; obtaining function block symbols created and labeled with pins in a graphical editing
software interface; wherein the function block symbols correspond one-to-one with the function blocks in the
XML file; after the function diagram is generated, real-
time data of the pins on the corresponding function blocks is obtained from the DCS
system using the graphical editing
software and the pin labels, and displayed on the pins of the corresponding function block symbols; obtaining the input and output connection relationships of each component from the obtained
XML file; and based on the obtained function block symbols, the input and output connection relationships of each component, performing logical connections between the components in the POU to generate the function diagram corresponding to the POU. This embodiment enables intuitive
visualization of
control logic, significantly improving the efficiency of
system status understanding and fault location speed.