===================
IO-Profiles example
===================
Below is a small snippet of IO-profile.
.. code-block:: xml
ECBlue
IO Profile for ECBlue modbusRTU
modbusrtu
Modbus nopeusohje
%
AV
MB1ADDR247ECBlueRTUSpeedControlOut
holding/2
1.0
uint16
100
0
Puhaltimen ottoteho
W
AV
MB1ADDR247ECBlueRTUFanInputPower
input/33
1.0
uint16
.. note:: Here custom element names start with "r" and is followed by the register number: ``r34`` for register numbered 34. However element name can be anything as long as it follows XML syntax.
.. important:: Element's name will be used as the point's name by default when using automatic point creation. If you want to use different default point name, add element to determine custom name.
Each register's information is stored in custom elements.
``initdata``-element contains information that goes into the fields of the point, e.g. ``description``, ``dispUnit`` or ``activeText``
``ioparams``-element has all the relevant information to manipulate the raw value of the register to make it usable in database, e.g. ``scale``, ``offset``, ``hilimit``, ``bitmask``
Other relevant information is stored as tags or attributes too:
dir:
Tells if point will use just dataSource and/or dataTarget. ``both`` or ``in``
autocreate:
Tell Actiweb9 to autocreate this point from IO-Profile if using AutoCreateList. ``true`` or ``false``
pointschema:
Schema that will be used to create the point
url:
register type and number separated by ``/``
alias:
Custom name to be used instead of elements tag name when using AutoCreateList.
.. note:: Order of the elements does not matter when Actiweb9 parses the XMl tree.