WHILE
- Used to execute a list of statements while a condition is true. The statements are
only executed if the condition is already true. The following example only sets output 0 on
when input 0 is greater than 100, and keeps it on until input 0 is less than or equal to 100.
Example:
main ()
{
while (read_uaf(input,0,0)>100);
{
write_uaf(output,0,0,on);
}
}
OPERATORS
- Symbols used to execute mathematical operations and determine whether a
particular condition exists.
+ Adds two values
- Subtracts two values
* Multiplies two values
/ Divides two values
% Finds the remainder of a division
|| Checks if one condition or another exists
&& Checks if one condition and another exists
ASSIGNMENT
- Symbol used to assign a numeric value.
= assigns a new value to a variable
COMPARATORS
- Symbols used to compare numeric values to each other
< Less than
> Greater than
== Is equal to
!= Is not equal to
<= Less than or equal to
>= Greater than or equal to
COMMENTS
- Text used to add notes to a program. Typically used to briefly explain what
the program or statement is doing. They may be used freely to make a program easier to
understand. Comments are ignored by the compiler.
Note
: Do not use the characters “*” or “/” within the body of a comment.
/* Begin comment
*/ End comment
16-6
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: ......