Configuration interface functions
SetOutput(outputno, cadence, [cutoff])
Use this function to directly control an output.
Parameter
Range
Description
outputno
1 – 40, required
Which output to control.
cadence
0 – 7, required
0 = off
1 = on
2 = 100ms on, 900ms off
3 = 1s on, 9s off
4 = 2s on, 59s off
5 = 100ms on, 100ms off (5Hz blink)
6 = 500ms on, 500ms off (1Hz blink)
7 = 1s on, 1s off (0.5Hz blink)
cutoff
0 – 65535, optional.
Defaults to 0 (infinite)
Number of 1/10
th
seconds to run the cadence. When the cutoff
time expires the output will be turned off.
This function does not return a value.
Example: Turn on output 2 for 10 seconds:
SetOutput(2, 1, 100);
// cutoff 100 is 10 seconds
GetOutputState(outputno)
Read the current status of an output
Parameter
Range
Description
outputno
1 – 40, required
Which output to check
The return value is 1 if the output is active (on) and 0 if the output is inactive
(off).
Example: Check the status of output 8
if(GetOutputState(8))
// code to run if output is on
Page 92 of 121
Содержание AAC
Страница 1: ...ezeio user manual Manual version 170314 ezeio models AAC AAF Page 1 of 121 ...
Страница 72: ...Page 72 of 121 ...