EasyManua.ls Logo

SEW-Eurodrive IPOS plus - 14 Compiler - Programming

SEW-Eurodrive IPOS plus
384 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Manual – IPOSplus®
175
14
Compiler – Programming
14 Compiler – Programming
The source text of a program written with the IPOS
plus®
Compiler is made up of various
parts. These must first be considered individually
/********************************************
File name: Program_structure.IPC
Date: 04.02.2002
Author: Thomas Ambrus
SEW-EURODRIVE Bruchsal
Technical Documentation
Brief description: Source code program struc-
ture
********************************************/
*/===========================================
IPOS Source File
===========================================*/
#include <const.h>
#include <io.h>
/*===========================================
Main Function (IPOS Entry Function)
===========================================*/
main()
{
/*-------------------------------------
Initialization
--------------------------------------*/
// activate task 2
_SetTask2(T2_START, Monitor); // testing
/*-------------------------------------
Main Loop
--------------------------------------*/
while(1)
{
}
}
/*===========================================
Task2
===========================================*/
Monitor()
{
}
/*===========================================
User function
===========================================*/
Reference_travel()
{
}
Automatic_mode()
{
}
Manual_mode()
{
}
Comment with notes on the program
Program header with pre-processor state-
ments and, if necessary, definition of the
variable
The main function contains the initializa-
tion part and the endless loop for task 1
Initialization part
Endless loop for task 1
Task 2, endless loop is not required
Functions (subprograms) created by the
user, called up from task 1 and task2
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n

Table of Contents