Ahh I was assuming you are using Neuron; with the UniPi 1.1 you need to rename the inputs and outputs in the "evok.conf" configuration file; using aliases with the UniPi 1.1 is not supported as the various subdevices are fundamentally different devices. Whereas for Neuron they are, well, subdevices, which are communicated with via Modbus handles. And it is these handles which are renamed with the alias.
I can have a look if we can implement the aliases for UniPi 1.1 as well, but as of right now it's not possible. We should remove the alias-setting option for UniPi 1.1 from the web inteface.
As for the instructions, they will indeed get you the latest Master version.
your calculations are in order. With the tests we did above, I am afraid you received a PLC with wrong calibration data. The calibration is a way how to ensure that when you set a desired voltage through Modbus registers, it will in fact set the correct voltage on the terminal connectors. The calibration process is one of many throughout the assembly of the unit. The calibration is done on our testbenches and it means you have to send the unit back to us. We sincerely do apologize for this.
Please send me (email@example.com) your number of order for this PLC and I will get back to you with further information.
@Giamba or maybe @Martin-Kudláček, i'm using this program to control my dali controler which working fine now except from the switch function.
When i push my my mometary switch on HMI and keep pushing it the light slowly increases or decreases at the next push. That's all working fine. But the switch function does work fine trough the g on the sel_0. Only problem is that when i start the plc the light is off (is ok) but the input on sel_0 is true so that results in no output on the sel_0. When i keep pushing the switch on the hmi the light increases on the output of the b30 counter but not on the output of the sel_0. Only when i realease the button the sel_0 output wil be the same as the output on the BD30 counter. After the sel_0 is high on the output and the lamp is on. i can switch the lamp on/off with a short push, no problem.
What i need is : Long push > increase or decrease light (even if the plc is just turned on) short push > turn light on/off.
Can anyone help me with this funtion to work fine?
We use a modified kernel. You can use the commands
apt-mark hold raspberrypi-bootloader
apt-mark hold python-tornado
apt-mark hold raspberrypi-kernel
to prevent it being broken (also true for the Tornado webserver).
As a side note you should generally not do apt-get upgrade regularly on a non-desktop Linux system. 90%+ servers in the world do not do so to avoid precisely such issues. The same goes with any custom software. It's really only "safe" to do on a desktop with only standard packages, and even then it can sometimes break things. This is in fact the reason why Linux keeps older versions of packages in the repositories in the first place.
We plan to release packages, but all the above will still apply, functionally the differences will be
a) possibility to update UniPi software via apt
b) not needing to use the above commands manually (they will be instead done by the packages during installation)
You are of course welcome to compile the kernel yourself against any version which you wish, it's openly available in our repository.
@Wim-Stockman I will take a look at it during the next week. Thanks for the tip.
I did not check the code much but there should be some time buffer while decoding the correct input. The messages does not always come at the same time, there might be a tens of ms gap between each and you shoudl tie those together...