Maths Error Messages - Siemens SIREC D200 Manual

Display recorders
Hide thumbs Also See for SIREC D200:
Table of Contents

Advertisement

Example 4
This is an example of how commenting can be used in scripts.
you can use the standard C++ commenting, inline comments use \\
for example
if ( A1 > 10 )
{
}
or for block (single or multiline commenting the /* to open and */ to close, these are C style
comments and work as follows
if ( A1 > 10 )
{
}
for single line or
if( A1 > 10 )
{
}
these are also useful for commenting out code to try different things, for example
if( A1 > 10 )
{
}
/*
else
{
}
*/
return A1;
Here the else statement is "commented out" so it won't be included but can easily be re-in-
troduced if required.

Maths Error Messages

When the Maths functionality is processing through the scrips you have written it will carry
out Syntax and other checks. When it comes across operations, functions, brackets, etc.
not expected or permitted it will report an error. However, the fault being reported may be
on a previous line caused by the missing or incorrect function.
246
Full Maths & Script Processing
Commenting in Scripts
return 9;
// If A1 greater then 10 return 9
return 9;
/* If A1 greater then 10 return 9 */
/* if A1 is greater then 10 then return 9
*/
return 9;
return 9;
return 20;
43-TV-25-35 GLO Iss.4 Dec 06 UK
A5E01001767-04

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sirec d300Sirec d400

Table of Contents