
Manual – IPOSplus®
159
13
Creating a new project
Compiler – Editor
In the next dialog box that appears, give the new source file a name. If you exit the box
by selecting [Save], another dialog box opens.
This dialog box can be used for defining a basic program structure which is displayed
as an empty program template in the Editor window.
Defining the program structure
13.5.2 Defining the program structure
Select the [Initialization part] check box if the main program is to contain an initialization
part in which, for example, variables are initialized.
Also, select the [Add] check box for task 2 / task 3 if a basic structure for task 2 / task 3
is to be created. In this case, it is also possible to enter the function name for task 2 /
task 3 which is then directly adopted in the basic structure. An initialization part is auto-
matically added to the basic structure if a task 2 / task 3 is added. This part contains the
command for starting task 2.
If an interrupt routine is to be programmed, its basic structure can also be created at this
stage. This structure is created by selecting the corresponding [Add] check box. Use the
[Interrupt Source] selection field to select whether it is to be an interrupt for an error,
timer or touch probe. The specified function name is adopted in the basic structure as
the name of the interrupt function. A statement line for activating the interrupt routine is
inserted in the initialization part.
Click the [OK] button to complete the process of selecting the program structure. If you
click the [Cancel] button to complete the selection process, the program displays an
empty editor window without a program structure. This is required, for example, for cre-
ating your own header file.
484387339
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n