Датчики с аналоговым выходом могут быть следующих типов:
temperature - датчик температуры (VT500 Temperature sensor и др.);
Чтение осуществляется командой getelement, с параметрами:
id - идентификатор элемента;
Примеры ответов на запрос элемента класса "analog":
<element id="201001" index="1" module="2005" clas="analog" type="temperature" name="Onboard Temperature" state="normal" value="37.5" vmax="110.0" vmin="-50.0" low_alarm="0.0" low_warning="5.0" high_warning="45.0" high_alarm="50.0" at0="1.000" at75="0.000" um="°C"></element> <element id="208001" index="16" module="2014" clas="analog" type="power" name="Outlets bank A-Psum" state="low alarm" value="0.0" vmax="20000.0" vmin="0.0" low_alarm="0.0" low_warning="0.0" high_warning="3000.0" high_alarm="3600.0" um="W" descr="Power"></element> |
Где:
id — уникальный идентификатор элемента;
name — имя элемента;
value — числовое значение соответствующее измеряемой величине;
utype — тип определяемый пользователем;
vmin — максимальное значение для диапазона измерений;
Если какой-то атрибут из указанных в ответе отсутствует - значит значение этого атрибута не определяется в процессе работы и его установка не влияет на работу элемента.
При чтении элемента, также выдается временной лог измеряемой величины, в виде:
|
Показания датчика разбиты на группы: 100 секунд посекундно, 100 минут поминутно, 100 часов и 100 суток. Показания датчика (поле 'v') указываются с временной меткой (поле 't').
id - идентификатор элемента;
С дополнительными параметрами доступными для модификации:
name — имя элемента;
Осуществляется командой resetelementdata:
id - идентификатор элемента;
Дополнительные параметры для управления гистерезисом, читаются командой getelement, устанавливаются командой updateelement, вместе с остальными параметрами датчика.
hyst_type - тип алгоритма, используемого для расчета гистерезиса:
При запросе getelement в ответе выдаются все параметры, независимо от типа алгоритма. При updateelement можно указывать все парамеры, или только те что необходимо изменить.
Эти параметры также актуальны для датчиков виртуального типа, например dewpoint.
Sensors with an analog output can be of the following types:
Reading is done with the getelement command, with the following parameters:
Examples of responses to a query for an element of the class "analog":
<element id="201001" index="1" module="2005" clas="analog" type="temperature" name="Onboard Temperature" state="normal" value="37.5" vmax="110.0" vmin="-50.0" low_alarm="0.0" low_warning="5.0" high_warning="45.0" high_alarm="50.0" at0="1.000" at75="0.000" um="°C"></element> <element id="208001" index="16" module="2014" clas="analog" type="power" name="Outlets bank A-Psum" state="low alarm" value="0.0" vmax="20000.0" vmin="0.0" low_alarm="0.0" low_warning="0.0" high_warning="3000.0" high_alarm="3600.0" um="W" descr="Power"></element> |
Where:
If there is no attribute from the answers specified in the response, then the value of this attribute is not determined in the course of work and its installation does not affect the operation of the element.
When reading an element, a temporary log of the measured value is also output, in the form:
|
The sensor readings are divided into groups: 100 seconds per second, 100 minutes per minute, 100 hours and 100 days. Sensor readings (field 'v') are indicated with a time stamp (field 't').
It is executed by the updateelement command:
With additional parameters available for modification:
The period field may not be specified, then the data of all time periods is deleted.
Additional parameters for controlling hysteresis are read by the getelement command, set by the updateelement command, along with the rest of the sensor parameters.
When you request getelement, all parameters are returned in the response, regardless of the type of algorithm. With updateelement, you can specify all the parameters, or only those that need to be changed.
These parameters are also relevant for sensors of a virtual type, for example dewpoint.