Difference between revisions of "IO-EXT"

From IPLOG
Jump to: navigation, search
Line 24: Line 24:
 
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.

Revision as of 10:53, 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

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.