![SEW-Eurodrive IPOS plus Скачать руководство пользователя страница 147](http://html1.mh-extra.com/html/sew-eurodrive/ipos-plus/ipos-plus_manual_1250042147.webp)
Manual – IPOSplus®
147
13
First steps
Compiler – Editor
When you click [Save] another window appears. You create the program structure here.
Defining the program structure
In the "main function" group, mark the "Initialization part" check box. Once you have left
the dialog box by confirming your entry with [OK], the "Main" function is automatically
generated with the initialization part. The source file now has the following content:
/*=============================================
IPOS source file
===============================================*/
#include <constb.h>
#include <iob.h>
/*=============================================
Main function (IPOS initial function)
===============================================*/
main()
{
/*-------------------------------------
Initialization
--------------------------------------*/
/*-------------------------------------
Main program loop
--------------------------------------*/
while(1)
{
}
}
The
#include <constb.h>
command for MOVIDRIVE
®
B inserts the header file,
which defines the arguments for all the system functions.
The
#include <iob.h>
command for MOVIDRIVE
®
B inserts a file containing the
definitions of the digital inputs and outputs. These constants and definitions can be ac-
cessed directly during programming.
482809355
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n