
246
43-TV-25-35 GLO Iss.4 Dec 06 UK
A5E01001767-04
Full Maths & Script Processing
Example 4
Commenting in Scripts
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 )
{
return 9; // If A1 greater then 10 return 9
}
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 )
{
return 9; /* If A1 greater then 10 return 9 */
}
for single line or
if( A1 > 10 )
{
/* if A1 is greater then 10 then return 9
*/
return 9;
}
these are also useful for commenting out code to try different things, for example
if( A1 > 10 )
{
return 9;
}
/*
else
{
return 20;
}
*/
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.
Содержание SIREC D200
Страница 2: ......
Страница 176: ...170 43 TV 25 35 GLO Iss 4 Dec 06 UK A5E01001767 04 Firmware Credit System ...
Страница 213: ...43 TV 25 35 GLO Iss 4 Dec 06 UK 207 A5E01001767 04 SIREC D400 Recorder 14 15 32 46 50 30 31 35 36 28 55 ...
Страница 214: ...208 43 TV 25 35 GLO Iss 4 Dec 06 UK A5E01001767 04 52 11 23 33 39 5 6 RS485 USB host Ethernet 1 2 3 4 ...
Страница 218: ...212 43 TV 25 35 GLO Iss 4 Dec 06 UK A5E01001767 04 SIREC D200 Recorder 16 5 3 1 4 2 24 49 9 45 19 6 49 ...
Страница 222: ...216 43 TV 25 35 GLO Iss 4 Dec 06 UK A5E01001767 04 ...
Страница 238: ...232 43 TV 25 35 GLO Iss 4 Dec 06 UK A5E01001767 04 ...
Страница 258: ...252 43 TV 25 35 GLO Iss 4 Dec 06 UK A5E01001767 04 ...
Страница 270: ...264 43 TV 25 35 GLO Iss 4 Dec 06 UK A5E01001767 04 ...
Страница 274: ...268 43 TV 25 35 GLO Iss 4 Dec 06 UK A5E01001767 04 Modbus Function Codes ...
Страница 284: ...278 43 TV 25 35 GLO Iss 4 Dec 06 UK A5E01001767 04 ...
Страница 285: ......