Maths Error Messages - Honeywell X Series User Manual

Hide thumbs Also See for X Series:
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. Refer to Application Note
43-TV-07-32 on your CD or web site for a list of scripting error messages.
284
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-30 Iss.6 GLO Aug 07 UK

Advertisement

Table of Contents
loading

This manual is also suitable for:

Multitrend sxMinitrend qxEztrend qxe

Table of Contents