Siemens SIREC D200 Manual page 250

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

Advertisement

if (A3>A2)
{
}
else
{
BLKV1=0;
Return BLKV2;
}
With script above, BLKV (all Variables) are used to maintain values. It should be noted that
BLKV's do not persist over a power removal, and if the application were to require a non-
volatile count, then BLKVn should be substituted with PSTVn.
Example 3
The application described in Examples 2 and 3 is to be extended to totalise the amount of
time that Input 1 is the highest of 1, 2, 3 & 4.
Again scripting can be used to easily solve this requirement.
The Pseudo code is written as
If input 1 is indicated as the current highest value, then display the timer.
If input 1 is not the highest input value, then stop totalising time and return the current timer
value.
We know that in Example 1, the highest value channel number is contained with GLBV1,
and as this is a global variable it is also accessible from this script.
244
Full Maths & Script Processing
if(BLKV1==1)
{
return BLKV2;
}
else
{
BLKV1=1;
BLKV2=BLKV2+1;
Return BLKV2;
}
if (GLBV1==1)
{
Tests if A3 is bigger than A2
If it was then tests if A3 was bigger than A2 last
time period
If it was return with the current change counter
If not then
Set flag to show that A3 has just exceeded A2
Increment the change counter by 1
Return the new change counter total
If A3 is not bigger than A2
Set flag to show A2 is bigger than A3 this time
Return current change counter
Tests if the global variable 1 is equal to channel 1
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