Example:
main ()
{
if (read_uaf(input,0,0)>100.0) /*If input 0 on main
board is greater than 100 */
{
write_uaf(output,0,0,on);
/* then set relay
output 0 on the main board to on */
}
}
RESET FUNCTION
- Used to reset (acknowledge) the specified alarm in the SCADA 3000.
Summary:
int reset(x)
int x; alarm number: 0-63
Description
The
reset
function is used for acknowledging any alarm in the unit. The parameter of the func-
tion specifies the alarm number to be acknowledged.
RETURN VALUE - The reset function always returns a zero.
Example:
main ()
{
if (read_uaf(input,0,0)==1) /*If input 0 on main
board is closed */
{
reset (0); /* then acknowledge alarm 0 */
}
}
POWER FUNCTION
- Mathematical function used to raise a value to the specified power.
Summary:
float pow (x,y);
float x:
float y;
Description
The
Power
function is used to raise a value X to the power specified by Y. The X parameter is
the operand and the Y parameter is the exponent.
RETURN VALUE - The Power function returns x raised to the y power.
Example
: The following program will take the square root (1/2 power) of the value
of input 3 on the main board and store it in the variable c.
float a;
float b;
float c;
main()
{
a=read_uaf(input, 0.3);
b=1/2;
c=pow(a,b);
}
16-9
Chapter 16: Programming in C
Содержание Sensaphone SCADA 3000
Страница 1: ...Sensaphone SCADA 3000 User s Manual Version 2 34...
Страница 6: ...vi SCADA 3000 User s Manual...
Страница 10: ...x SCADA 3000 User s Manual...
Страница 30: ...1 6 SCADA 3000 User s Manual...
Страница 48: ...4 6 SCADA 3000 User s Manual...
Страница 70: ...9 8 SCADA 3000 User s Manual...
Страница 122: ...12 8 SCADA 3000 User s Manual...
Страница 190: ...15 30 SCADA 3000 User s Manual...
Страница 211: ...lead 1 lag 0 else lead 0 lag 1 16 21 Chapter 16 Programming in C...
Страница 212: ...16 22 SCADA 3000 User s Manual...
Страница 236: ...21 8 SCADA 3000 User s Manual...
Страница 248: ...22 12 SCADA 3000 User s Manual...
Страница 258: ...23 10 SCADA 3000 User s Manual...
Страница 274: ...25 8 SCADA 3000 User s Manual...
Страница 288: ...27 8 SCADA 3000 User s Manual...
Страница 294: ...28 6 SCADA 3000 User s Manual...
Страница 296: ...A 2 SCADA 3000 User s Manual...
Страница 302: ...D 2 SCADA 3000 User s Manual...
Страница 318: ...I 2 SCADA 3000 User s Manual...
Страница 320: ...J 2 SCADA 3000 User s Manual...
Страница 322: ...K 2 SCADA 3000 User s Manual...
Страница 335: ...Test Log...
Страница 336: ......