iMod internat structure
This is a second in a series of four articles aimed at bringing You a
revolutionary iMod platform.
Great opportunities always carry a large customizable. iMod has a user-friendly
way to configure many options, which is done by editing a simple XML file. This
allows you to freely define parameters such as:
- Way of processing data collected by the device
- Alarm options of selected values
- Logging properties
This file defines the entire iMod application logic. See how simple it is!
The following examples of configuration files.
Configuring the Temperature Sensor:
<parameter>
<id>11201</id>
<scale>0.1</scale>
<comment>"Sensor S1"</comment>
<unit>"C"</unit>
<description>"Temperature 1"</description>
(...)
</parameter>
LED configuration:
<parameter>
<id>100</id>
<description>"USR_LED"</description>
<source-channel channel-name="NPE_IO"
parameter-id="USER_LED"/>
<access-channel
channel-name="Modbus_S1"
parameter-id="100"/>
</parameter>
Functional scheme of iMod Platform:

In addition to the above three groups of channels, an internal parameter table
is shown. This is a table of cached instantaneous values representing processed
data (eg input readings), which can then be passed on through output channels.
iMod allows us to set alerts on specific events, such as:
- HiAlarm - the value is too high
- LoAlarm - value too low
- OnChange - the value has changed by the preset threshold
- NoChange - the value is not changed by the preset threshold
iMod can inform us about the alarm in several ways, for example:
- Sms
- SQL (SQL table entry)
- Logger (entry in the log file)
- Script (bash script)
- And also, very soon, MODBUS (forcing a more accurate reading from Modbus)
iMod allows you to set time spacing between reading individual parameters..
There are two parameters. GAP and CYCLE. One is forced pause between readings
(GAP), second (CYCLE), the time you expect to read a parameter. if the reading
takes more time than we anticipate it will put information to the logs.
In the next article We will present advantages of the Linux operating system on
our platform.

NPE Introduction

