This paper deals with implementation of control algorithms for various target platforms such as microcontrollers (MCUs) or digital signal processors (DSPs). Our approach is automatic conversion of a function block diagram, which is a declarative description of control algorithm structure, into a target platform source code. The function blocks are implemented as a platform independent library covering wide application range from a simple logic and arithmetic operations to complex motion control blocks. This allows reuse of work and easy transfer from simulation environment to a target device running the real time control algorithm. The proposed approach is demonstrated on the problem of a motor controller development. It allows very easy extension of control algorithms running inside the controller by engineer friendly function block diagram modification.
展开▼