This application discloses a method, apparatus, device, and storage medium for calling function blocks in industrial control configuration
software, relating to the field of industrial control. The method includes: storing the addresses of local variables of a target function block in the industrial control configuration
software using a target
structure based on preset storage rules, thereby completing the storage of the target function block; obtaining the structure variable corresponding to the target function block and writing values to the structure variable based on configuration logic; converting the target function block into C language to obtain a corresponding .c file, and calling C functions in the .c file so that the .c file generates a controller
executable file through a compilation module, and using the controller
executable file to implement the industrial controller's call to the target function block, thereby completing the corresponding industrial control process. Therefore, this application solves the problems of function block storage and function block calling during the conversion of IEC logic into C language.