Difference between revisions of "IO-EXT"

From IPLOG
Jump to: navigation, search
Line 17: Line 17:
 
Edit or add a line depending on which IO modules are connected. The module name must match the list below.<br>
 
Edit or add a line depending on which IO modules are connected. The module name must match the list below.<br>
 
Echo X is meaning '''Modbus ID Address''' of the module.<br>
 
Echo X is meaning '''Modbus ID Address''' of the module.<br>
Example with connected modules AI8.1-01 and BI8.1-05 modules.<br>
+
Example with connected modules AI8.1-01 (Modbus ID 1) and BI8.1-05 (Modbus ID 2) modules.<br>
 
{{NotePre
 
{{NotePre
 
|text= START_COMMEXT1=1
 
|text= START_COMMEXT1=1

Revision as of 10:51, 30 April 2020

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-.
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