There are C commands other than “if” and “else”, and built-in variables, to access SCADA
3000’s inputs and outputs. Details for these will be covered later.
KeYWORDS
The following is a list of all valid components of the C language within the SCADA 3000.
char
int
float
if
else
for
do
while
Definitions
CHAR
- Used to define a variable as a character. A character can hold a value from -128 to
+127 and must be a whole number. Exceeding this range will cause incorrect results.
Note
: Variables defined as type CHAR will not save memory space within the SCADA 3000.
Example:
char x;
main ()
{
x=12;
}
INT
- Used to define a variable as an integer. An integer can hold a value from -32,768 to
+32,767 and must be a whole number. Exceeding this range will cause incorrect results.
Note
:
Variables defined as type INT will not save memory space within the SCADA 3000.
Example:
int result;
main ()
{
result=17;
}
FLOAT
- Used to define a variable as a floating-point number. A floating-point number is one
that can have a fractional part (i.e., numbers after the decimal point). Floating-point numbers
can also be very large or very small, generally between 10-38 and 10+38. Numbers of this size
can be represented using exponential notation. In exponential notation, the significant digits
of a number are raised to a power of ten. The basic form comprises a signed series of digits
including a decimal point, followed by the letter
E
, and then by a signed exponent to indicate
the power of ten being used.
Examples:
1,987
=
1.987E3
120,000,000 =
1.2E8
.000000314 =
3.14E-7
-0.00000000005 = -5.0E-11
16-4
SCADA 3000 User’s Manual
Summary of Contents for Sensaphone SCADA 3000
Page 1: ...Sensaphone SCADA 3000 User s Manual Version 2 34...
Page 6: ...vi SCADA 3000 User s Manual...
Page 10: ...x SCADA 3000 User s Manual...
Page 30: ...1 6 SCADA 3000 User s Manual...
Page 48: ...4 6 SCADA 3000 User s Manual...
Page 70: ...9 8 SCADA 3000 User s Manual...
Page 122: ...12 8 SCADA 3000 User s Manual...
Page 190: ...15 30 SCADA 3000 User s Manual...
Page 211: ...lead 1 lag 0 else lead 0 lag 1 16 21 Chapter 16 Programming in C...
Page 212: ...16 22 SCADA 3000 User s Manual...
Page 236: ...21 8 SCADA 3000 User s Manual...
Page 248: ...22 12 SCADA 3000 User s Manual...
Page 258: ...23 10 SCADA 3000 User s Manual...
Page 274: ...25 8 SCADA 3000 User s Manual...
Page 288: ...27 8 SCADA 3000 User s Manual...
Page 294: ...28 6 SCADA 3000 User s Manual...
Page 296: ...A 2 SCADA 3000 User s Manual...
Page 302: ...D 2 SCADA 3000 User s Manual...
Page 318: ...I 2 SCADA 3000 User s Manual...
Page 320: ...J 2 SCADA 3000 User s Manual...
Page 322: ...K 2 SCADA 3000 User s Manual...
Page 335: ...Test Log...
Page 336: ......