152
Manual – IPOSplus®
13
First steps
Compiler – Editor
Error messages
during compilation
As syntax errors can occur during programming, an error reporting system has been in-
tegrated in the IPOS
plus®
Compiler. If the program detects an error, it displays the line
in which the error occurs and generates a corresponding error message classifying the
error.
Observe the following example..
Change the FOR loop as follows:
while(1)
{
for (H1 = 0; H1 <= 100)
{
°°// Calculate sum
H2 = H2 + H1;
// Wait 5 s
_Wait( 5000 );
}
}
In this example, the third argument of the FOR loop is missing. When you compile the
system using the
icon, the following message appears:
Error message during compilation
The status ERROR is output as an error has occurred. The line, error classification and
the error code are also displayed. Furthermore, the program line in the source file con-
taining the error is highlighted with a red bar.
Click the [OK] button and then rectify the error. The compilation process must be re-
peated again once you have rectified the error.
Rectify the error by correcting the FOR loop as follows:
while(1)
{
for (H1 = 0; H1 <= 100;H1++)
{
°°// Calculate sum
H2 = H2 + H1;
// Wait 5 s
_Wait( 5000 );
}
}
483692427
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n