Difference between revisions of "IO-EXT"

From IPLOG
Jump to: navigation, search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
If IO modules are connected to the IPLOG unit, it is not necessary to  control the inputs/outputs via modbus registers, but directly via variables. The modules must be connected to the IPLOG-GAMA via the BUS bus A+ connected to A+ and B- to B-.<br>
+
If IO modules are connected to the IPLOG unit, it is not necessary to  control their inputs/outputs via modbus registers, but directly via variables. The modules must be connected to the IPLOG-GAMA via the BUS bus A+ connected to A+ and B- to B-.<br>
 +
Press the "i" key to enter the edit mode.<br>
 +
== Configuration from linux ==
 +
For automatic adding variables for external metel IO modules, edit the file <br>
 +
{{NotePre
 +
|text=root@iplog:~# vi /etc/init.metel/io-ext-device
 +
}}
 +
 
 +
Press the "i" key to enter the edit mode.<br>
 +
Edit or add a line depending on which IO modules are connected. <br>
 +
 
 +
[[File:ExtBusConfig.png|frameless]]<blockquote>description:</blockquote><blockquote>ex:      0 2 1 ai8.1</blockquote>
 +
FW, BUS, MODBUD ID <br>
 +
{| class="wikitable"
 +
!Parameter
 +
!Description
 +
|-
 +
|0
 +
|Revision number fw. If set to 0,
 +
then it is selected automatically
 +
 
 +
'''default 0'''
 +
|-
 +
|2
 +
|bus number
 +
0 = disable this device
 +
 
 +
1 = BUS1
 +
 
 +
2 = BUS2
 +
|-
 +
|1
 +
|modbus device id number
 +
|-
 +
|ai8.1
 +
|Device name
 +
|}
 +
 
 +
Press the ESC key to exit edit mode. Now press the ":" key and type wq and enter the command. This should close and save the file. Restart the IPLOG using the reboot command, and variables for the IO module will be available after the reboot.<br>
 +
<blockquote></blockquote>After you change configuration io module and bus use /etc/init.metel/io-ext restart for change all parameters. If is connected IO modules, then automatically change baudrate.<blockquote></blockquote>
 +
== Configuration from web ==
 +
is just being prepared!
 +
 
 +
== OLD VERSION ==
 +
<br>
 +
If IO modules are connected to the IPLOG unit, it is not necessary to  control their inputs/outputs via modbus registers, but directly via variables. The modules must be connected to the IPLOG-GAMA via the BUS bus A+ connected to A+ and B- to B-.<br>
 
Log in to the IPLOG unit via putty and write the command<br>
 
Log in to the IPLOG unit via putty and write the command<br>
  
Line 24: Line 69:
 
echo 2,bi8.1_if05    > /sys/kernel/metel-io-dev/ext1/add_dev
 
echo 2,bi8.1_if05    > /sys/kernel/metel-io-dev/ext1/add_dev
 
}}
 
}}
Press the ESC key to exit edit mode. Now press the ":" key and type wq and enter the command. This should close and save the file. Restart the IPLOG using the reboot command, and variables for the IO module will be available after the reboot.
+
Press the ESC key to exit edit mode. Now press the ":" key and type wq and enter the command. This should close and save the file. Restart the IPLOG using the reboot command, and variables for the IO module will be available after the reboot.<br>
 +
=== List of supported devices ===
 +
{{NotePre
 +
|text=ai8.1
 +
ao8.1
 +
bi8.1
 +
bi8.1_if05
 +
bi8.1_if12
 +
bi8.1_if15
 +
bm-mppt-6
 +
di8.1
 +
di8.1_if05
 +
di8.1_if11
 +
di8.1_if12
 +
di8.1_if15
 +
h2o
 +
re8.1
 +
re8.1_if12
 +
re8.1_if15
 +
re8.2
 +
re8.2_if05
 +
t2
 +
th2
 +
}}

Latest revision as of 09:51, 12 September 2024

If IO modules are connected to the IPLOG unit, it is not necessary to control their inputs/outputs via modbus registers, but directly via variables. The modules must be connected to the IPLOG-GAMA via the BUS bus A+ connected to A+ and B- to B-.
Press the "i" key to enter the edit mode.

Configuration from linux

For automatic adding variables for external metel IO modules, edit the file

root@iplog:~# vi /etc/init.metel/io-ext-device

Press the "i" key to enter the edit mode.
Edit or add a line depending on which IO modules are connected.

File:ExtBusConfig.png
description:
ex: 0 2 1 ai8.1

FW, BUS, MODBUD ID

Parameter Description
0 Revision number fw. If set to 0,

then it is selected automatically

default 0

2 bus number

0 = disable this device

1 = BUS1

2 = BUS2

1 modbus device id number
ai8.1 Device name

Press the ESC key to exit edit mode. Now press the ":" key and type wq and enter the command. This should close and save the file. Restart the IPLOG using the reboot command, and variables for the IO module will be available after the reboot.

After you change configuration io module and bus use /etc/init.metel/io-ext restart for change all parameters. If is connected IO modules, then automatically change baudrate.

Configuration from web

is just being prepared!

OLD VERSION


If IO modules are connected to the IPLOG unit, it is not necessary to control their inputs/outputs via modbus registers, but directly via variables. The modules must be connected to the IPLOG-GAMA via the BUS bus A+ connected to A+ and B- to B-.
Log in to the IPLOG unit via putty and write the command

root@iplog:~# vi /etc/init.metel/io-ext

Press the "i" key to enter the edit mode.

In the file, uncomment/delete the # character on lines: 42,44,46

# START_COMMEXT1=1
# echo ext1            > /sys/kernel/metel-io-dev/add_bus
# echo 1,bi8.1_if05    > /sys/kernel/metel-io-dev/ext1/add_dev

Edit or add a line depending on which IO modules are connected. The module name must match the list below.
Echo X is meaning Modbus ID Address of the module.
Example with connected modules AI8.1-01 (Modbus ID 1) and BI8.1-05 (Modbus ID 2) modules.

START_COMMEXT1=1
echo ext1            > /sys/kernel/metel-io-dev/add_bus
echo 1,ai8.1         > /sys/kernel/metel-io-dev/ext1/add_dev
echo 2,bi8.1_if05    > /sys/kernel/metel-io-dev/ext1/add_dev

Press the ESC key to exit edit mode. Now press the ":" key and type wq and enter the command. This should close and save the file. Restart the IPLOG using the reboot command, and variables for the IO module will be available after the reboot.

List of supported devices

ai8.1
ao8.1
bi8.1
bi8.1_if05
bi8.1_if12
bi8.1_if15
bm-mppt-6
di8.1
di8.1_if05
di8.1_if11
di8.1_if12
di8.1_if15
h2o
re8.1
re8.1_if12
re8.1_if15
re8.2
re8.2_if05
t2
th2