![Ezeio AAC Скачать руководство пользователя страница 94](http://html.mh-extra.com/html/ezeio/aac/aac_user-manual_2458291094.webp)
GetInputCount(inputno)
Reads the counter value from an input.
Parameter
Range
Description
inputno
1 – 40, required
Which input to read from.
The return value is the current counter value for the input.
Example: Read the counter value from input 2 and assign the value to a variable.
mycnt = GetInputCount(2);
SetInputCount(inputno, newcount)
Set an input counter counter to a new value.
Parameter
Range
Description
inputno
1 – 40, required
Which input to set
newcount
0 – 2147483647,
required
New value of the counter
This function does not return a value.
Example: Set the counter of input 5 to 456
SetInputCount(5, 456);
GetInputState(inputno)
Reads the current alarm state from the input.
Parameter
Range
Description
inputno
1 – 40, required
Which input to read from.
The return value is a bitmap with four bits indicating the status of each of the
four alarms for this input. Bit 0=first alarm, Bit 3=fourth alarm.
Example: check the state of the third alarm for input 5:
if(GetInputState(5) & 0x04)
// 0x04 = binary 0100
// Code to run if alarm was active
Page 94 of 121
Содержание AAC
Страница 1: ...ezeio user manual Manual version 170314 ezeio models AAC AAF Page 1 of 121 ...
Страница 72: ...Page 72 of 121 ...