24 Function blocks and program structure
Program structure
Main program
In the example project, the main program is named PLC_PRG. The main program includes
a call to PRG_Drive1 (see below). If there are multiple drives, add a program for each
additional drive (see
PRG_Drive1 program
PRG_Drive1 contains the function blocks for the drive. The image below shows the main
components of PRG_Drive1 (FB_COM, FB_BASIC_CONTROL and speed reference) and
their functions.
Adding another drive
on page 17).