Difference between revisions of "IO-EXT"
Line 25: | Line 25: | ||
}} | }} | ||
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> | 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 === | |
ai8.1 | ai8.1 | ||
ao8.1 | ao8.1 |
Revision as of 10:55, 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.
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